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.
2094 lines
77 KiB
2094 lines
77 KiB
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protocol.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 Protocol {
|
|
|
|
/// <summary>Holder for reflection information generated from protocol.proto</summary>
|
|
public static partial class ProtocolReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for protocol.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ProtocolReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5wcm90b2NvbC5wcm90bxIIcHJvdG9jb2waG2dvb2dsZS9wcm90b2J1Zi9l",
|
|
"bXB0eS5wcm90bxoMY29tbW9uLnByb3RvGhBjb25uZWN0aW9uLnByb3RvGgts",
|
|
"b2JieS5wcm90bxoKZ2FtZS5wcm90byLKBAoSQ2xpZW50U2VydmVyUGFja2V0",
|
|
"EisKCXF1ZXJ5TmFtZRgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgA",
|
|
"Eh8KB2Nvbm5lY3QYAiABKAsyDC5jb21tb24uTmFtZUgAEiwKCmRpc2Nvbm5l",
|
|
"Y3QYAyABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIABIqCglqb2luTG9i",
|
|
"YnkYBCABKAsyFS5jb25uZWN0aW9uLkxvYmJ5Q29kZUgAEi4KC2NyZWF0ZUxv",
|
|
"YmJ5GAUgASgLMhcuY29ubmVjdGlvbi5Mb2JieUNvbmZpZ0gAEiwKCnF1ZXJ5",
|
|
"R2FtZXMYBiABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIABI0ChJxdWVy",
|
|
"eVB1YmxpY0xvYmJpZXMYByABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlI",
|
|
"ABIsCgpxdWVyeVVzZXJzGAggASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5",
|
|
"SAASIQoEdm90ZRgJIAEoCzIRLmxvYmJ5LlNpbmdsZVZvdGVIABInCgVyZWFk",
|
|
"eRgKIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEicKBWxlYXZlGAsg",
|
|
"ASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASKAoOcXVlcnlDYXJkSW1h",
|
|
"Z2UYDCABKAsyDi5nYW1lLkNhcmRLaW5kSAASIwoLY2FsbE9uQ2xpY2sYDSAB",
|
|
"KAsyDC5nYW1lLkNhcmRJZEgAQgYKBGRhdGEizwMKElNlcnZlckNsaWVudFBh",
|
|
"Y2tldBIiCgpyZXR1cm5OYW1lGAEgASgLMgwuY29tbW9uLk5hbWVIABIrCg1y",
|
|
"ZXR1cm5Db25uZWN0GAIgASgLMhIuY29ubmVjdGlvbi5Vc2VySURIABIsCgpk",
|
|
"aXNjb25uZWN0GAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASMgoR",
|
|
"cmV0dXJuQ3JlYXRlTG9iYnkYBCABKAsyFS5jb25uZWN0aW9uLkxvYmJ5Q29k",
|
|
"ZUgAEiYKC3JldHVybkdhbWVzGAUgASgLMg8ucHJvdG9jb2wuR2FtZXNIABIz",
|
|
"ChNyZXR1cm5QdWJsaWNMb2JiaWVzGAYgASgLMhQucHJvdG9jb2wuTG9iYnlD",
|
|
"b2Rlc0gAEiYKC3JldHVyblVzZXJzGAcgASgLMg8ucHJvdG9jb2wuTmFtZXNI",
|
|
"ABIpCgtsb2JieVN0YXR1cxgIIAEoCzISLmxvYmJ5LkxvYmJ5U3RhdHVzSAAS",
|
|
"JgoPcmV0dXJuQ2FyZEltYWdlGAkgASgLMgsuZ2FtZS5JbWFnZUgAEiYKCmdh",
|
|
"bWVTdGF0dXMYCiABKAsyEC5nYW1lLkdhbWVTdGF0dXNIAEIGCgRkYXRhIigK",
|
|
"BUdhbWVzEh8KBWdhbWVzGAEgAygLMhAuY29ubmVjdGlvbi5HYW1lIjcKCkxv",
|
|
"YmJ5Q29kZXMSKQoKbG9iYnlDb2RlcxgBIAMoCzIVLmNvbm5lY3Rpb24uTG9i",
|
|
"YnlDb2RlIiQKBU5hbWVzEhsKBW5hbWVzGAEgAygLMgwuY29tbW9uLk5hbWVi",
|
|
"BnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, global::Connection.ConnectionReflection.Descriptor, global::Lobby.LobbyReflection.Descriptor, global::Game.GameReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ClientServerPacket), global::Protocol.ClientServerPacket.Parser, new[]{ "QueryName", "Connect", "Disconnect", "JoinLobby", "CreateLobby", "QueryGames", "QueryPublicLobbies", "QueryUsers", "Vote", "Ready", "Leave", "QueryCardImage", "CallOnClick" }, new[]{ "Data" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ServerClientPacket), global::Protocol.ServerClientPacket.Parser, new[]{ "ReturnName", "ReturnConnect", "Disconnect", "ReturnCreateLobby", "ReturnGames", "ReturnPublicLobbies", "ReturnUsers", "LobbyStatus", "ReturnCardImage", "GameStatus" }, new[]{ "Data" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.Games), global::Protocol.Games.Parser, new[]{ "Games_" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.LobbyCodes), global::Protocol.LobbyCodes.Parser, new[]{ "LobbyCodes_" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.Names), global::Protocol.Names.Parser, new[]{ "Names_" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
public sealed partial class ClientServerPacket : pb::IMessage<ClientServerPacket>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ClientServerPacket> _parser = new pb::MessageParser<ClientServerPacket>(() => new ClientServerPacket());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ClientServerPacket> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Protocol.ProtocolReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ClientServerPacket() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ClientServerPacket(ClientServerPacket other) : this() {
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.QueryName:
|
|
QueryName = other.QueryName.Clone();
|
|
break;
|
|
case DataOneofCase.Connect:
|
|
Connect = other.Connect.Clone();
|
|
break;
|
|
case DataOneofCase.Disconnect:
|
|
Disconnect = other.Disconnect.Clone();
|
|
break;
|
|
case DataOneofCase.JoinLobby:
|
|
JoinLobby = other.JoinLobby.Clone();
|
|
break;
|
|
case DataOneofCase.CreateLobby:
|
|
CreateLobby = other.CreateLobby.Clone();
|
|
break;
|
|
case DataOneofCase.QueryGames:
|
|
QueryGames = other.QueryGames.Clone();
|
|
break;
|
|
case DataOneofCase.QueryPublicLobbies:
|
|
QueryPublicLobbies = other.QueryPublicLobbies.Clone();
|
|
break;
|
|
case DataOneofCase.QueryUsers:
|
|
QueryUsers = other.QueryUsers.Clone();
|
|
break;
|
|
case DataOneofCase.Vote:
|
|
Vote = other.Vote.Clone();
|
|
break;
|
|
case DataOneofCase.Ready:
|
|
Ready = other.Ready.Clone();
|
|
break;
|
|
case DataOneofCase.Leave:
|
|
Leave = other.Leave.Clone();
|
|
break;
|
|
case DataOneofCase.QueryCardImage:
|
|
QueryCardImage = other.QueryCardImage.Clone();
|
|
break;
|
|
case DataOneofCase.CallOnClick:
|
|
CallOnClick = other.CallOnClick.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ClientServerPacket Clone() {
|
|
return new ClientServerPacket(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "queryName" field.</summary>
|
|
public const int QueryNameFieldNumber = 1;
|
|
/// <summary>
|
|
/// CONNECTION
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty QueryName {
|
|
get { return dataCase_ == DataOneofCase.QueryName ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryName;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "connect" field.</summary>
|
|
public const int ConnectFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Common.Name Connect {
|
|
get { return dataCase_ == DataOneofCase.Connect ? (global::Common.Name) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Connect;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "disconnect" field.</summary>
|
|
public const int DisconnectFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty Disconnect {
|
|
get { return dataCase_ == DataOneofCase.Disconnect ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Disconnect;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "joinLobby" field.</summary>
|
|
public const int JoinLobbyFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Connection.LobbyCode JoinLobby {
|
|
get { return dataCase_ == DataOneofCase.JoinLobby ? (global::Connection.LobbyCode) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.JoinLobby;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "createLobby" field.</summary>
|
|
public const int CreateLobbyFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Connection.LobbyConfig CreateLobby {
|
|
get { return dataCase_ == DataOneofCase.CreateLobby ? (global::Connection.LobbyConfig) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.CreateLobby;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "queryGames" field.</summary>
|
|
public const int QueryGamesFieldNumber = 6;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty QueryGames {
|
|
get { return dataCase_ == DataOneofCase.QueryGames ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryGames;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "queryPublicLobbies" field.</summary>
|
|
public const int QueryPublicLobbiesFieldNumber = 7;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty QueryPublicLobbies {
|
|
get { return dataCase_ == DataOneofCase.QueryPublicLobbies ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryPublicLobbies;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "queryUsers" field.</summary>
|
|
public const int QueryUsersFieldNumber = 8;
|
|
/// <summary>
|
|
/// LOBBY
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty QueryUsers {
|
|
get { return dataCase_ == DataOneofCase.QueryUsers ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryUsers;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "vote" field.</summary>
|
|
public const int VoteFieldNumber = 9;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Lobby.SingleVote Vote {
|
|
get { return dataCase_ == DataOneofCase.Vote ? (global::Lobby.SingleVote) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Vote;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "ready" field.</summary>
|
|
public const int ReadyFieldNumber = 10;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty Ready {
|
|
get { return dataCase_ == DataOneofCase.Ready ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Ready;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "leave" field.</summary>
|
|
public const int LeaveFieldNumber = 11;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty Leave {
|
|
get { return dataCase_ == DataOneofCase.Leave ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Leave;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "queryCardImage" field.</summary>
|
|
public const int QueryCardImageFieldNumber = 12;
|
|
/// <summary>
|
|
/// GAME
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.CardKind QueryCardImage {
|
|
get { return dataCase_ == DataOneofCase.QueryCardImage ? (global::Game.CardKind) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryCardImage;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "callOnClick" field.</summary>
|
|
public const int CallOnClickFieldNumber = 13;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.CardId CallOnClick {
|
|
get { return dataCase_ == DataOneofCase.CallOnClick ? (global::Game.CardId) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.CallOnClick;
|
|
}
|
|
}
|
|
|
|
private object data_;
|
|
/// <summary>Enum of possible cases for the "data" oneof.</summary>
|
|
public enum DataOneofCase {
|
|
None = 0,
|
|
QueryName = 1,
|
|
Connect = 2,
|
|
Disconnect = 3,
|
|
JoinLobby = 4,
|
|
CreateLobby = 5,
|
|
QueryGames = 6,
|
|
QueryPublicLobbies = 7,
|
|
QueryUsers = 8,
|
|
Vote = 9,
|
|
Ready = 10,
|
|
Leave = 11,
|
|
QueryCardImage = 12,
|
|
CallOnClick = 13,
|
|
}
|
|
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 ClientServerPacket);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ClientServerPacket other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(QueryName, other.QueryName)) return false;
|
|
if (!object.Equals(Connect, other.Connect)) return false;
|
|
if (!object.Equals(Disconnect, other.Disconnect)) return false;
|
|
if (!object.Equals(JoinLobby, other.JoinLobby)) return false;
|
|
if (!object.Equals(CreateLobby, other.CreateLobby)) return false;
|
|
if (!object.Equals(QueryGames, other.QueryGames)) return false;
|
|
if (!object.Equals(QueryPublicLobbies, other.QueryPublicLobbies)) return false;
|
|
if (!object.Equals(QueryUsers, other.QueryUsers)) return false;
|
|
if (!object.Equals(Vote, other.Vote)) return false;
|
|
if (!object.Equals(Ready, other.Ready)) return false;
|
|
if (!object.Equals(Leave, other.Leave)) return false;
|
|
if (!object.Equals(QueryCardImage, other.QueryCardImage)) return false;
|
|
if (!object.Equals(CallOnClick, other.CallOnClick)) 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.QueryName) hash ^= QueryName.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Connect) hash ^= Connect.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Disconnect) hash ^= Disconnect.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.JoinLobby) hash ^= JoinLobby.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.CreateLobby) hash ^= CreateLobby.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.QueryGames) hash ^= QueryGames.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) hash ^= QueryPublicLobbies.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.QueryUsers) hash ^= QueryUsers.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Vote) hash ^= Vote.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Ready) hash ^= Ready.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Leave) hash ^= Leave.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) hash ^= QueryCardImage.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.CallOnClick) hash ^= CallOnClick.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.QueryName) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(QueryName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Connect) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Connect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.JoinLobby) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(JoinLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CreateLobby) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(CreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryGames) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(QueryGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(QueryPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryUsers) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(QueryUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Vote) {
|
|
output.WriteRawTag(74);
|
|
output.WriteMessage(Vote);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Ready) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(Ready);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Leave) {
|
|
output.WriteRawTag(90);
|
|
output.WriteMessage(Leave);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) {
|
|
output.WriteRawTag(98);
|
|
output.WriteMessage(QueryCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CallOnClick) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(CallOnClick);
|
|
}
|
|
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.QueryName) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(QueryName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Connect) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Connect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.JoinLobby) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(JoinLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CreateLobby) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(CreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryGames) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(QueryGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(QueryPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryUsers) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(QueryUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Vote) {
|
|
output.WriteRawTag(74);
|
|
output.WriteMessage(Vote);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Ready) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(Ready);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Leave) {
|
|
output.WriteRawTag(90);
|
|
output.WriteMessage(Leave);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) {
|
|
output.WriteRawTag(98);
|
|
output.WriteMessage(QueryCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CallOnClick) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(CallOnClick);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (dataCase_ == DataOneofCase.QueryName) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Connect) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Connect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.JoinLobby) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CreateLobby) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryGames) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryUsers) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Vote) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Vote);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Ready) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ready);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Leave) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Leave);
|
|
}
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.CallOnClick) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallOnClick);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ClientServerPacket other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.QueryName:
|
|
if (QueryName == null) {
|
|
QueryName = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
QueryName.MergeFrom(other.QueryName);
|
|
break;
|
|
case DataOneofCase.Connect:
|
|
if (Connect == null) {
|
|
Connect = new global::Common.Name();
|
|
}
|
|
Connect.MergeFrom(other.Connect);
|
|
break;
|
|
case DataOneofCase.Disconnect:
|
|
if (Disconnect == null) {
|
|
Disconnect = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
Disconnect.MergeFrom(other.Disconnect);
|
|
break;
|
|
case DataOneofCase.JoinLobby:
|
|
if (JoinLobby == null) {
|
|
JoinLobby = new global::Connection.LobbyCode();
|
|
}
|
|
JoinLobby.MergeFrom(other.JoinLobby);
|
|
break;
|
|
case DataOneofCase.CreateLobby:
|
|
if (CreateLobby == null) {
|
|
CreateLobby = new global::Connection.LobbyConfig();
|
|
}
|
|
CreateLobby.MergeFrom(other.CreateLobby);
|
|
break;
|
|
case DataOneofCase.QueryGames:
|
|
if (QueryGames == null) {
|
|
QueryGames = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
QueryGames.MergeFrom(other.QueryGames);
|
|
break;
|
|
case DataOneofCase.QueryPublicLobbies:
|
|
if (QueryPublicLobbies == null) {
|
|
QueryPublicLobbies = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
QueryPublicLobbies.MergeFrom(other.QueryPublicLobbies);
|
|
break;
|
|
case DataOneofCase.QueryUsers:
|
|
if (QueryUsers == null) {
|
|
QueryUsers = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
QueryUsers.MergeFrom(other.QueryUsers);
|
|
break;
|
|
case DataOneofCase.Vote:
|
|
if (Vote == null) {
|
|
Vote = new global::Lobby.SingleVote();
|
|
}
|
|
Vote.MergeFrom(other.Vote);
|
|
break;
|
|
case DataOneofCase.Ready:
|
|
if (Ready == null) {
|
|
Ready = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
Ready.MergeFrom(other.Ready);
|
|
break;
|
|
case DataOneofCase.Leave:
|
|
if (Leave == null) {
|
|
Leave = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
Leave.MergeFrom(other.Leave);
|
|
break;
|
|
case DataOneofCase.QueryCardImage:
|
|
if (QueryCardImage == null) {
|
|
QueryCardImage = new global::Game.CardKind();
|
|
}
|
|
QueryCardImage.MergeFrom(other.QueryCardImage);
|
|
break;
|
|
case DataOneofCase.CallOnClick:
|
|
if (CallOnClick == null) {
|
|
CallOnClick = new global::Game.CardId();
|
|
}
|
|
CallOnClick.MergeFrom(other.CallOnClick);
|
|
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::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryName) {
|
|
subBuilder.MergeFrom(QueryName);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryName = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Common.Name subBuilder = new global::Common.Name();
|
|
if (dataCase_ == DataOneofCase.Connect) {
|
|
subBuilder.MergeFrom(Connect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Connect = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
subBuilder.MergeFrom(Disconnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Disconnect = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::Connection.LobbyCode subBuilder = new global::Connection.LobbyCode();
|
|
if (dataCase_ == DataOneofCase.JoinLobby) {
|
|
subBuilder.MergeFrom(JoinLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::Connection.LobbyConfig subBuilder = new global::Connection.LobbyConfig();
|
|
if (dataCase_ == DataOneofCase.CreateLobby) {
|
|
subBuilder.MergeFrom(CreateLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
CreateLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryGames) {
|
|
subBuilder.MergeFrom(QueryGames);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryGames = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) {
|
|
subBuilder.MergeFrom(QueryPublicLobbies);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryPublicLobbies = subBuilder;
|
|
break;
|
|
}
|
|
case 66: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryUsers) {
|
|
subBuilder.MergeFrom(QueryUsers);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryUsers = subBuilder;
|
|
break;
|
|
}
|
|
case 74: {
|
|
global::Lobby.SingleVote subBuilder = new global::Lobby.SingleVote();
|
|
if (dataCase_ == DataOneofCase.Vote) {
|
|
subBuilder.MergeFrom(Vote);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Vote = subBuilder;
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Ready) {
|
|
subBuilder.MergeFrom(Ready);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Ready = subBuilder;
|
|
break;
|
|
}
|
|
case 90: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Leave) {
|
|
subBuilder.MergeFrom(Leave);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Leave = subBuilder;
|
|
break;
|
|
}
|
|
case 98: {
|
|
global::Game.CardKind subBuilder = new global::Game.CardKind();
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) {
|
|
subBuilder.MergeFrom(QueryCardImage);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryCardImage = subBuilder;
|
|
break;
|
|
}
|
|
case 106: {
|
|
global::Game.CardId subBuilder = new global::Game.CardId();
|
|
if (dataCase_ == DataOneofCase.CallOnClick) {
|
|
subBuilder.MergeFrom(CallOnClick);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
CallOnClick = 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::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryName) {
|
|
subBuilder.MergeFrom(QueryName);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryName = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Common.Name subBuilder = new global::Common.Name();
|
|
if (dataCase_ == DataOneofCase.Connect) {
|
|
subBuilder.MergeFrom(Connect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Connect = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
subBuilder.MergeFrom(Disconnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Disconnect = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::Connection.LobbyCode subBuilder = new global::Connection.LobbyCode();
|
|
if (dataCase_ == DataOneofCase.JoinLobby) {
|
|
subBuilder.MergeFrom(JoinLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::Connection.LobbyConfig subBuilder = new global::Connection.LobbyConfig();
|
|
if (dataCase_ == DataOneofCase.CreateLobby) {
|
|
subBuilder.MergeFrom(CreateLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
CreateLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryGames) {
|
|
subBuilder.MergeFrom(QueryGames);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryGames = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryPublicLobbies) {
|
|
subBuilder.MergeFrom(QueryPublicLobbies);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryPublicLobbies = subBuilder;
|
|
break;
|
|
}
|
|
case 66: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.QueryUsers) {
|
|
subBuilder.MergeFrom(QueryUsers);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryUsers = subBuilder;
|
|
break;
|
|
}
|
|
case 74: {
|
|
global::Lobby.SingleVote subBuilder = new global::Lobby.SingleVote();
|
|
if (dataCase_ == DataOneofCase.Vote) {
|
|
subBuilder.MergeFrom(Vote);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Vote = subBuilder;
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Ready) {
|
|
subBuilder.MergeFrom(Ready);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Ready = subBuilder;
|
|
break;
|
|
}
|
|
case 90: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Leave) {
|
|
subBuilder.MergeFrom(Leave);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Leave = subBuilder;
|
|
break;
|
|
}
|
|
case 98: {
|
|
global::Game.CardKind subBuilder = new global::Game.CardKind();
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) {
|
|
subBuilder.MergeFrom(QueryCardImage);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
QueryCardImage = subBuilder;
|
|
break;
|
|
}
|
|
case 106: {
|
|
global::Game.CardId subBuilder = new global::Game.CardId();
|
|
if (dataCase_ == DataOneofCase.CallOnClick) {
|
|
subBuilder.MergeFrom(CallOnClick);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
CallOnClick = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class ServerClientPacket : pb::IMessage<ServerClientPacket>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ServerClientPacket> _parser = new pb::MessageParser<ServerClientPacket>(() => new ServerClientPacket());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ServerClientPacket> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Protocol.ProtocolReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ServerClientPacket() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ServerClientPacket(ServerClientPacket other) : this() {
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.ReturnName:
|
|
ReturnName = other.ReturnName.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnConnect:
|
|
ReturnConnect = other.ReturnConnect.Clone();
|
|
break;
|
|
case DataOneofCase.Disconnect:
|
|
Disconnect = other.Disconnect.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnCreateLobby:
|
|
ReturnCreateLobby = other.ReturnCreateLobby.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnGames:
|
|
ReturnGames = other.ReturnGames.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnPublicLobbies:
|
|
ReturnPublicLobbies = other.ReturnPublicLobbies.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnUsers:
|
|
ReturnUsers = other.ReturnUsers.Clone();
|
|
break;
|
|
case DataOneofCase.LobbyStatus:
|
|
LobbyStatus = other.LobbyStatus.Clone();
|
|
break;
|
|
case DataOneofCase.ReturnCardImage:
|
|
ReturnCardImage = other.ReturnCardImage.Clone();
|
|
break;
|
|
case DataOneofCase.GameStatus:
|
|
GameStatus = other.GameStatus.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ServerClientPacket Clone() {
|
|
return new ServerClientPacket(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "returnName" field.</summary>
|
|
public const int ReturnNameFieldNumber = 1;
|
|
/// <summary>
|
|
/// CONNECTION
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Common.Name ReturnName {
|
|
get { return dataCase_ == DataOneofCase.ReturnName ? (global::Common.Name) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnName;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnConnect" field.</summary>
|
|
public const int ReturnConnectFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Connection.UserID ReturnConnect {
|
|
get { return dataCase_ == DataOneofCase.ReturnConnect ? (global::Connection.UserID) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnConnect;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "disconnect" field.</summary>
|
|
public const int DisconnectFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Empty Disconnect {
|
|
get { return dataCase_ == DataOneofCase.Disconnect ? (global::Google.Protobuf.WellKnownTypes.Empty) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Disconnect;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnCreateLobby" field.</summary>
|
|
public const int ReturnCreateLobbyFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Connection.LobbyCode ReturnCreateLobby {
|
|
get { return dataCase_ == DataOneofCase.ReturnCreateLobby ? (global::Connection.LobbyCode) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnCreateLobby;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnGames" field.</summary>
|
|
public const int ReturnGamesFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Protocol.Games ReturnGames {
|
|
get { return dataCase_ == DataOneofCase.ReturnGames ? (global::Protocol.Games) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnGames;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnPublicLobbies" field.</summary>
|
|
public const int ReturnPublicLobbiesFieldNumber = 6;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Protocol.LobbyCodes ReturnPublicLobbies {
|
|
get { return dataCase_ == DataOneofCase.ReturnPublicLobbies ? (global::Protocol.LobbyCodes) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnPublicLobbies;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnUsers" field.</summary>
|
|
public const int ReturnUsersFieldNumber = 7;
|
|
/// <summary>
|
|
/// LOBBY
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Protocol.Names ReturnUsers {
|
|
get { return dataCase_ == DataOneofCase.ReturnUsers ? (global::Protocol.Names) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnUsers;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "lobbyStatus" field.</summary>
|
|
public const int LobbyStatusFieldNumber = 8;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Lobby.LobbyStatus LobbyStatus {
|
|
get { return dataCase_ == DataOneofCase.LobbyStatus ? (global::Lobby.LobbyStatus) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.LobbyStatus;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "returnCardImage" field.</summary>
|
|
public const int ReturnCardImageFieldNumber = 9;
|
|
/// <summary>
|
|
/// GAME
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.Image ReturnCardImage {
|
|
get { return dataCase_ == DataOneofCase.ReturnCardImage ? (global::Game.Image) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnCardImage;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "gameStatus" field.</summary>
|
|
public const int GameStatusFieldNumber = 10;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Game.GameStatus GameStatus {
|
|
get { return dataCase_ == DataOneofCase.GameStatus ? (global::Game.GameStatus) data_ : null; }
|
|
set {
|
|
data_ = value;
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.GameStatus;
|
|
}
|
|
}
|
|
|
|
private object data_;
|
|
/// <summary>Enum of possible cases for the "data" oneof.</summary>
|
|
public enum DataOneofCase {
|
|
None = 0,
|
|
ReturnName = 1,
|
|
ReturnConnect = 2,
|
|
Disconnect = 3,
|
|
ReturnCreateLobby = 4,
|
|
ReturnGames = 5,
|
|
ReturnPublicLobbies = 6,
|
|
ReturnUsers = 7,
|
|
LobbyStatus = 8,
|
|
ReturnCardImage = 9,
|
|
GameStatus = 10,
|
|
}
|
|
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 ServerClientPacket);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ServerClientPacket other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ReturnName, other.ReturnName)) return false;
|
|
if (!object.Equals(ReturnConnect, other.ReturnConnect)) return false;
|
|
if (!object.Equals(Disconnect, other.Disconnect)) return false;
|
|
if (!object.Equals(ReturnCreateLobby, other.ReturnCreateLobby)) return false;
|
|
if (!object.Equals(ReturnGames, other.ReturnGames)) return false;
|
|
if (!object.Equals(ReturnPublicLobbies, other.ReturnPublicLobbies)) return false;
|
|
if (!object.Equals(ReturnUsers, other.ReturnUsers)) return false;
|
|
if (!object.Equals(LobbyStatus, other.LobbyStatus)) return false;
|
|
if (!object.Equals(ReturnCardImage, other.ReturnCardImage)) return false;
|
|
if (!object.Equals(GameStatus, other.GameStatus)) 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.ReturnName) hash ^= ReturnName.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) hash ^= ReturnConnect.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.Disconnect) hash ^= Disconnect.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) hash ^= ReturnCreateLobby.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnGames) hash ^= ReturnGames.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) hash ^= ReturnPublicLobbies.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) hash ^= ReturnUsers.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) hash ^= LobbyStatus.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) hash ^= ReturnCardImage.GetHashCode();
|
|
if (dataCase_ == DataOneofCase.GameStatus) hash ^= GameStatus.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.ReturnName) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ReturnName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(ReturnConnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(ReturnCreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnGames) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(ReturnGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(ReturnPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(ReturnUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(LobbyStatus);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) {
|
|
output.WriteRawTag(74);
|
|
output.WriteMessage(ReturnCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.GameStatus) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(GameStatus);
|
|
}
|
|
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.ReturnName) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ReturnName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(ReturnConnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(ReturnCreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnGames) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(ReturnGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(ReturnPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(ReturnUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(LobbyStatus);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) {
|
|
output.WriteRawTag(74);
|
|
output.WriteMessage(ReturnCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.GameStatus) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(GameStatus);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (dataCase_ == DataOneofCase.ReturnName) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnName);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnConnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Disconnect);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnCreateLobby);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnGames) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnGames);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnPublicLobbies);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnUsers);
|
|
}
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LobbyStatus);
|
|
}
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnCardImage);
|
|
}
|
|
if (dataCase_ == DataOneofCase.GameStatus) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameStatus);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ServerClientPacket other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.DataCase) {
|
|
case DataOneofCase.ReturnName:
|
|
if (ReturnName == null) {
|
|
ReturnName = new global::Common.Name();
|
|
}
|
|
ReturnName.MergeFrom(other.ReturnName);
|
|
break;
|
|
case DataOneofCase.ReturnConnect:
|
|
if (ReturnConnect == null) {
|
|
ReturnConnect = new global::Connection.UserID();
|
|
}
|
|
ReturnConnect.MergeFrom(other.ReturnConnect);
|
|
break;
|
|
case DataOneofCase.Disconnect:
|
|
if (Disconnect == null) {
|
|
Disconnect = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
}
|
|
Disconnect.MergeFrom(other.Disconnect);
|
|
break;
|
|
case DataOneofCase.ReturnCreateLobby:
|
|
if (ReturnCreateLobby == null) {
|
|
ReturnCreateLobby = new global::Connection.LobbyCode();
|
|
}
|
|
ReturnCreateLobby.MergeFrom(other.ReturnCreateLobby);
|
|
break;
|
|
case DataOneofCase.ReturnGames:
|
|
if (ReturnGames == null) {
|
|
ReturnGames = new global::Protocol.Games();
|
|
}
|
|
ReturnGames.MergeFrom(other.ReturnGames);
|
|
break;
|
|
case DataOneofCase.ReturnPublicLobbies:
|
|
if (ReturnPublicLobbies == null) {
|
|
ReturnPublicLobbies = new global::Protocol.LobbyCodes();
|
|
}
|
|
ReturnPublicLobbies.MergeFrom(other.ReturnPublicLobbies);
|
|
break;
|
|
case DataOneofCase.ReturnUsers:
|
|
if (ReturnUsers == null) {
|
|
ReturnUsers = new global::Protocol.Names();
|
|
}
|
|
ReturnUsers.MergeFrom(other.ReturnUsers);
|
|
break;
|
|
case DataOneofCase.LobbyStatus:
|
|
if (LobbyStatus == null) {
|
|
LobbyStatus = new global::Lobby.LobbyStatus();
|
|
}
|
|
LobbyStatus.MergeFrom(other.LobbyStatus);
|
|
break;
|
|
case DataOneofCase.ReturnCardImage:
|
|
if (ReturnCardImage == null) {
|
|
ReturnCardImage = new global::Game.Image();
|
|
}
|
|
ReturnCardImage.MergeFrom(other.ReturnCardImage);
|
|
break;
|
|
case DataOneofCase.GameStatus:
|
|
if (GameStatus == null) {
|
|
GameStatus = new global::Game.GameStatus();
|
|
}
|
|
GameStatus.MergeFrom(other.GameStatus);
|
|
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::Common.Name subBuilder = new global::Common.Name();
|
|
if (dataCase_ == DataOneofCase.ReturnName) {
|
|
subBuilder.MergeFrom(ReturnName);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnName = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Connection.UserID subBuilder = new global::Connection.UserID();
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) {
|
|
subBuilder.MergeFrom(ReturnConnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnConnect = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
subBuilder.MergeFrom(Disconnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Disconnect = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::Connection.LobbyCode subBuilder = new global::Connection.LobbyCode();
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) {
|
|
subBuilder.MergeFrom(ReturnCreateLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnCreateLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::Protocol.Games subBuilder = new global::Protocol.Games();
|
|
if (dataCase_ == DataOneofCase.ReturnGames) {
|
|
subBuilder.MergeFrom(ReturnGames);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnGames = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::Protocol.LobbyCodes subBuilder = new global::Protocol.LobbyCodes();
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) {
|
|
subBuilder.MergeFrom(ReturnPublicLobbies);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnPublicLobbies = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::Protocol.Names subBuilder = new global::Protocol.Names();
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) {
|
|
subBuilder.MergeFrom(ReturnUsers);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnUsers = subBuilder;
|
|
break;
|
|
}
|
|
case 66: {
|
|
global::Lobby.LobbyStatus subBuilder = new global::Lobby.LobbyStatus();
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) {
|
|
subBuilder.MergeFrom(LobbyStatus);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LobbyStatus = subBuilder;
|
|
break;
|
|
}
|
|
case 74: {
|
|
global::Game.Image subBuilder = new global::Game.Image();
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) {
|
|
subBuilder.MergeFrom(ReturnCardImage);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnCardImage = subBuilder;
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::Game.GameStatus subBuilder = new global::Game.GameStatus();
|
|
if (dataCase_ == DataOneofCase.GameStatus) {
|
|
subBuilder.MergeFrom(GameStatus);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
GameStatus = 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::Common.Name subBuilder = new global::Common.Name();
|
|
if (dataCase_ == DataOneofCase.ReturnName) {
|
|
subBuilder.MergeFrom(ReturnName);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnName = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Connection.UserID subBuilder = new global::Connection.UserID();
|
|
if (dataCase_ == DataOneofCase.ReturnConnect) {
|
|
subBuilder.MergeFrom(ReturnConnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnConnect = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
|
|
if (dataCase_ == DataOneofCase.Disconnect) {
|
|
subBuilder.MergeFrom(Disconnect);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Disconnect = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::Connection.LobbyCode subBuilder = new global::Connection.LobbyCode();
|
|
if (dataCase_ == DataOneofCase.ReturnCreateLobby) {
|
|
subBuilder.MergeFrom(ReturnCreateLobby);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnCreateLobby = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::Protocol.Games subBuilder = new global::Protocol.Games();
|
|
if (dataCase_ == DataOneofCase.ReturnGames) {
|
|
subBuilder.MergeFrom(ReturnGames);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnGames = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::Protocol.LobbyCodes subBuilder = new global::Protocol.LobbyCodes();
|
|
if (dataCase_ == DataOneofCase.ReturnPublicLobbies) {
|
|
subBuilder.MergeFrom(ReturnPublicLobbies);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnPublicLobbies = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::Protocol.Names subBuilder = new global::Protocol.Names();
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) {
|
|
subBuilder.MergeFrom(ReturnUsers);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnUsers = subBuilder;
|
|
break;
|
|
}
|
|
case 66: {
|
|
global::Lobby.LobbyStatus subBuilder = new global::Lobby.LobbyStatus();
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) {
|
|
subBuilder.MergeFrom(LobbyStatus);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LobbyStatus = subBuilder;
|
|
break;
|
|
}
|
|
case 74: {
|
|
global::Game.Image subBuilder = new global::Game.Image();
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) {
|
|
subBuilder.MergeFrom(ReturnCardImage);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ReturnCardImage = subBuilder;
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::Game.GameStatus subBuilder = new global::Game.GameStatus();
|
|
if (dataCase_ == DataOneofCase.GameStatus) {
|
|
subBuilder.MergeFrom(GameStatus);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
GameStatus = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class Games : pb::IMessage<Games>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Games> _parser = new pb::MessageParser<Games>(() => new Games());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Games> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Protocol.ProtocolReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Games() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Games(Games other) : this() {
|
|
games_ = other.games_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Games Clone() {
|
|
return new Games(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "games" field.</summary>
|
|
public const int Games_FieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Connection.Game> _repeated_games_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Connection.Game.Parser);
|
|
private readonly pbc::RepeatedField<global::Connection.Game> games_ = new pbc::RepeatedField<global::Connection.Game>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Connection.Game> Games_ {
|
|
get { return games_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Games);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Games other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!games_.Equals(other.games_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= games_.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
|
|
games_.WriteTo(output, _repeated_games_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) {
|
|
games_.WriteTo(ref output, _repeated_games_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += games_.CalculateSize(_repeated_games_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Games other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
games_.Add(other.games_);
|
|
_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: {
|
|
games_.AddEntriesFrom(input, _repeated_games_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: {
|
|
games_.AddEntriesFrom(ref input, _repeated_games_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class LobbyCodes : pb::IMessage<LobbyCodes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LobbyCodes> _parser = new pb::MessageParser<LobbyCodes>(() => new LobbyCodes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<LobbyCodes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Protocol.ProtocolReflection.Descriptor.MessageTypes[3]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public LobbyCodes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public LobbyCodes(LobbyCodes other) : this() {
|
|
lobbyCodes_ = other.lobbyCodes_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public LobbyCodes Clone() {
|
|
return new LobbyCodes(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "lobbyCodes" field.</summary>
|
|
public const int LobbyCodes_FieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Connection.LobbyCode> _repeated_lobbyCodes_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Connection.LobbyCode.Parser);
|
|
private readonly pbc::RepeatedField<global::Connection.LobbyCode> lobbyCodes_ = new pbc::RepeatedField<global::Connection.LobbyCode>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Connection.LobbyCode> LobbyCodes_ {
|
|
get { return lobbyCodes_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LobbyCodes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(LobbyCodes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!lobbyCodes_.Equals(other.lobbyCodes_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= lobbyCodes_.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
|
|
lobbyCodes_.WriteTo(output, _repeated_lobbyCodes_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) {
|
|
lobbyCodes_.WriteTo(ref output, _repeated_lobbyCodes_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += lobbyCodes_.CalculateSize(_repeated_lobbyCodes_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(LobbyCodes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
lobbyCodes_.Add(other.lobbyCodes_);
|
|
_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: {
|
|
lobbyCodes_.AddEntriesFrom(input, _repeated_lobbyCodes_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: {
|
|
lobbyCodes_.AddEntriesFrom(ref input, _repeated_lobbyCodes_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class Names : pb::IMessage<Names>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Names> _parser = new pb::MessageParser<Names>(() => new Names());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Names> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Protocol.ProtocolReflection.Descriptor.MessageTypes[4]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Names() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Names(Names other) : this() {
|
|
names_ = other.names_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Names Clone() {
|
|
return new Names(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "names" field.</summary>
|
|
public const int Names_FieldNumber = 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_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Names);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Names other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!names_.Equals(other.names_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= names_.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);
|
|
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);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += names_.CalculateSize(_repeated_names_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Names other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
names_.Add(other.names_);
|
|
_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;
|
|
}
|
|
}
|
|
}
|
|
#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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|
|
|