1073 lines
36 KiB
C#
1073 lines
36 KiB
C#
|
|
// <auto-generated>
|
||
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
|
// source: protocol.proto
|
||
|
|
// </auto-generated>
|
||
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
||
|
|
#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 Ragon.Relay {
|
||
|
|
|
||
|
|
/// <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(
|
||
|
|
"Cg5wcm90b2NvbC5wcm90byJNCgREYXRhEg8KB1JlbGF5SUQYASABKAkSHwoK",
|
||
|
|
"U3RhdGlzdGljcxgCIAEoCzILLlN0YXRpc3RpY3MSEwoEUm9vbRgDIAEoCzIF",
|
||
|
|
"LlJvb20iXgoKU3RhdGlzdGljcxITCgtDb25uZWN0aW9ucxgBIAEoAxIYChBD",
|
||
|
|
"b25uZWN0aW9uc0xpbWl0GAIgASgDEg0KBVJvb21zGAMgASgDEhIKClJvb21z",
|
||
|
|
"TGltaXQYBCABKAMiFAoGUGxheWVyEgoKAklkGAEgASgJIiwKBFJvb20SCgoC",
|
||
|
|
"SWQYASABKAkSGAoHUGxheWVycxgCIAMoCzIHLlBsYXllckIUWgQuL3BiqgIL",
|
||
|
|
"UmFnb24uUmVsYXliBnByb3RvMw=="));
|
||
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
|
|
new pbr::FileDescriptor[] { },
|
||
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Ragon.Relay.Data), global::Ragon.Relay.Data.Parser, new[]{ "RelayID", "Statistics", "Room" }, null, null, null, null),
|
||
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Ragon.Relay.Statistics), global::Ragon.Relay.Statistics.Parser, new[]{ "Connections", "ConnectionsLimit", "Rooms", "RoomsLimit" }, null, null, null, null),
|
||
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Ragon.Relay.Player), global::Ragon.Relay.Player.Parser, new[]{ "Id" }, null, null, null, null),
|
||
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Ragon.Relay.Room), global::Ragon.Relay.Room.Parser, new[]{ "Id", "Players" }, null, null, null, null)
|
||
|
|
}));
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
}
|
||
|
|
#region Messages
|
||
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
|
public sealed partial class Data : pb::IMessage<Data>
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
, pb::IBufferMessage
|
||
|
|
#endif
|
||
|
|
{
|
||
|
|
private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data());
|
||
|
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pb::MessageParser<Data> Parser { get { return _parser; } }
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
|
get { return global::Ragon.Relay.ProtocolReflection.Descriptor.MessageTypes[0]; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
|
get { return Descriptor; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Data() {
|
||
|
|
OnConstruction();
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void OnConstruction();
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Data(Data other) : this() {
|
||
|
|
relayID_ = other.relayID_;
|
||
|
|
statistics_ = other.statistics_ != null ? other.statistics_.Clone() : null;
|
||
|
|
room_ = other.room_ != null ? other.room_.Clone() : null;
|
||
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Data Clone() {
|
||
|
|
return new Data(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "RelayID" field.</summary>
|
||
|
|
public const int RelayIDFieldNumber = 1;
|
||
|
|
private string relayID_ = "";
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public string RelayID {
|
||
|
|
get { return relayID_; }
|
||
|
|
set {
|
||
|
|
relayID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Statistics" field.</summary>
|
||
|
|
public const int StatisticsFieldNumber = 2;
|
||
|
|
private global::Ragon.Relay.Statistics statistics_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public global::Ragon.Relay.Statistics Statistics {
|
||
|
|
get { return statistics_; }
|
||
|
|
set {
|
||
|
|
statistics_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Room" field.</summary>
|
||
|
|
public const int RoomFieldNumber = 3;
|
||
|
|
private global::Ragon.Relay.Room room_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public global::Ragon.Relay.Room Room {
|
||
|
|
get { return room_; }
|
||
|
|
set {
|
||
|
|
room_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override bool Equals(object other) {
|
||
|
|
return Equals(other as Data);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public bool Equals(Data other) {
|
||
|
|
if (ReferenceEquals(other, null)) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if (ReferenceEquals(other, this)) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if (RelayID != other.RelayID) return false;
|
||
|
|
if (!object.Equals(Statistics, other.Statistics)) return false;
|
||
|
|
if (!object.Equals(Room, other.Room)) return false;
|
||
|
|
return Equals(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override int GetHashCode() {
|
||
|
|
int hash = 1;
|
||
|
|
if (RelayID.Length != 0) hash ^= RelayID.GetHashCode();
|
||
|
|
if (statistics_ != null) hash ^= Statistics.GetHashCode();
|
||
|
|
if (room_ != null) hash ^= Room.GetHashCode();
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
hash ^= _unknownFields.GetHashCode();
|
||
|
|
}
|
||
|
|
return hash;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override string ToString() {
|
||
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
output.WriteRawMessage(this);
|
||
|
|
#else
|
||
|
|
if (RelayID.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(RelayID);
|
||
|
|
}
|
||
|
|
if (statistics_ != null) {
|
||
|
|
output.WriteRawTag(18);
|
||
|
|
output.WriteMessage(Statistics);
|
||
|
|
}
|
||
|
|
if (room_ != null) {
|
||
|
|
output.WriteRawTag(26);
|
||
|
|
output.WriteMessage(Room);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(output);
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||
|
|
if (RelayID.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(RelayID);
|
||
|
|
}
|
||
|
|
if (statistics_ != null) {
|
||
|
|
output.WriteRawTag(18);
|
||
|
|
output.WriteMessage(Statistics);
|
||
|
|
}
|
||
|
|
if (room_ != null) {
|
||
|
|
output.WriteRawTag(26);
|
||
|
|
output.WriteMessage(Room);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(ref output);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public int CalculateSize() {
|
||
|
|
int size = 0;
|
||
|
|
if (RelayID.Length != 0) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RelayID);
|
||
|
|
}
|
||
|
|
if (statistics_ != null) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Statistics);
|
||
|
|
}
|
||
|
|
if (room_ != null) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Room);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
size += _unknownFields.CalculateSize();
|
||
|
|
}
|
||
|
|
return size;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(Data other) {
|
||
|
|
if (other == null) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (other.RelayID.Length != 0) {
|
||
|
|
RelayID = other.RelayID;
|
||
|
|
}
|
||
|
|
if (other.statistics_ != null) {
|
||
|
|
if (statistics_ == null) {
|
||
|
|
Statistics = new global::Ragon.Relay.Statistics();
|
||
|
|
}
|
||
|
|
Statistics.MergeFrom(other.Statistics);
|
||
|
|
}
|
||
|
|
if (other.room_ != null) {
|
||
|
|
if (room_ == null) {
|
||
|
|
Room = new global::Ragon.Relay.Room();
|
||
|
|
}
|
||
|
|
Room.MergeFrom(other.Room);
|
||
|
|
}
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
input.ReadRawMessage(this);
|
||
|
|
#else
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
RelayID = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 18: {
|
||
|
|
if (statistics_ == null) {
|
||
|
|
Statistics = new global::Ragon.Relay.Statistics();
|
||
|
|
}
|
||
|
|
input.ReadMessage(Statistics);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 26: {
|
||
|
|
if (room_ == null) {
|
||
|
|
Room = new global::Ragon.Relay.Room();
|
||
|
|
}
|
||
|
|
input.ReadMessage(Room);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
RelayID = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 18: {
|
||
|
|
if (statistics_ == null) {
|
||
|
|
Statistics = new global::Ragon.Relay.Statistics();
|
||
|
|
}
|
||
|
|
input.ReadMessage(Statistics);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 26: {
|
||
|
|
if (room_ == null) {
|
||
|
|
Room = new global::Ragon.Relay.Room();
|
||
|
|
}
|
||
|
|
input.ReadMessage(Room);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
|
public sealed partial class Statistics : pb::IMessage<Statistics>
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
, pb::IBufferMessage
|
||
|
|
#endif
|
||
|
|
{
|
||
|
|
private static readonly pb::MessageParser<Statistics> _parser = new pb::MessageParser<Statistics>(() => new Statistics());
|
||
|
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pb::MessageParser<Statistics> Parser { get { return _parser; } }
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
|
get { return global::Ragon.Relay.ProtocolReflection.Descriptor.MessageTypes[1]; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
|
get { return Descriptor; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Statistics() {
|
||
|
|
OnConstruction();
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void OnConstruction();
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Statistics(Statistics other) : this() {
|
||
|
|
connections_ = other.connections_;
|
||
|
|
connectionsLimit_ = other.connectionsLimit_;
|
||
|
|
rooms_ = other.rooms_;
|
||
|
|
roomsLimit_ = other.roomsLimit_;
|
||
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Statistics Clone() {
|
||
|
|
return new Statistics(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Connections" field.</summary>
|
||
|
|
public const int ConnectionsFieldNumber = 1;
|
||
|
|
private long connections_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public long Connections {
|
||
|
|
get { return connections_; }
|
||
|
|
set {
|
||
|
|
connections_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "ConnectionsLimit" field.</summary>
|
||
|
|
public const int ConnectionsLimitFieldNumber = 2;
|
||
|
|
private long connectionsLimit_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public long ConnectionsLimit {
|
||
|
|
get { return connectionsLimit_; }
|
||
|
|
set {
|
||
|
|
connectionsLimit_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Rooms" field.</summary>
|
||
|
|
public const int RoomsFieldNumber = 3;
|
||
|
|
private long rooms_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public long Rooms {
|
||
|
|
get { return rooms_; }
|
||
|
|
set {
|
||
|
|
rooms_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "RoomsLimit" field.</summary>
|
||
|
|
public const int RoomsLimitFieldNumber = 4;
|
||
|
|
private long roomsLimit_;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public long RoomsLimit {
|
||
|
|
get { return roomsLimit_; }
|
||
|
|
set {
|
||
|
|
roomsLimit_ = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override bool Equals(object other) {
|
||
|
|
return Equals(other as Statistics);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public bool Equals(Statistics other) {
|
||
|
|
if (ReferenceEquals(other, null)) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if (ReferenceEquals(other, this)) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if (Connections != other.Connections) return false;
|
||
|
|
if (ConnectionsLimit != other.ConnectionsLimit) return false;
|
||
|
|
if (Rooms != other.Rooms) return false;
|
||
|
|
if (RoomsLimit != other.RoomsLimit) return false;
|
||
|
|
return Equals(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override int GetHashCode() {
|
||
|
|
int hash = 1;
|
||
|
|
if (Connections != 0L) hash ^= Connections.GetHashCode();
|
||
|
|
if (ConnectionsLimit != 0L) hash ^= ConnectionsLimit.GetHashCode();
|
||
|
|
if (Rooms != 0L) hash ^= Rooms.GetHashCode();
|
||
|
|
if (RoomsLimit != 0L) hash ^= RoomsLimit.GetHashCode();
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
hash ^= _unknownFields.GetHashCode();
|
||
|
|
}
|
||
|
|
return hash;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override string ToString() {
|
||
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
output.WriteRawMessage(this);
|
||
|
|
#else
|
||
|
|
if (Connections != 0L) {
|
||
|
|
output.WriteRawTag(8);
|
||
|
|
output.WriteInt64(Connections);
|
||
|
|
}
|
||
|
|
if (ConnectionsLimit != 0L) {
|
||
|
|
output.WriteRawTag(16);
|
||
|
|
output.WriteInt64(ConnectionsLimit);
|
||
|
|
}
|
||
|
|
if (Rooms != 0L) {
|
||
|
|
output.WriteRawTag(24);
|
||
|
|
output.WriteInt64(Rooms);
|
||
|
|
}
|
||
|
|
if (RoomsLimit != 0L) {
|
||
|
|
output.WriteRawTag(32);
|
||
|
|
output.WriteInt64(RoomsLimit);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(output);
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||
|
|
if (Connections != 0L) {
|
||
|
|
output.WriteRawTag(8);
|
||
|
|
output.WriteInt64(Connections);
|
||
|
|
}
|
||
|
|
if (ConnectionsLimit != 0L) {
|
||
|
|
output.WriteRawTag(16);
|
||
|
|
output.WriteInt64(ConnectionsLimit);
|
||
|
|
}
|
||
|
|
if (Rooms != 0L) {
|
||
|
|
output.WriteRawTag(24);
|
||
|
|
output.WriteInt64(Rooms);
|
||
|
|
}
|
||
|
|
if (RoomsLimit != 0L) {
|
||
|
|
output.WriteRawTag(32);
|
||
|
|
output.WriteInt64(RoomsLimit);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(ref output);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public int CalculateSize() {
|
||
|
|
int size = 0;
|
||
|
|
if (Connections != 0L) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Connections);
|
||
|
|
}
|
||
|
|
if (ConnectionsLimit != 0L) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ConnectionsLimit);
|
||
|
|
}
|
||
|
|
if (Rooms != 0L) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Rooms);
|
||
|
|
}
|
||
|
|
if (RoomsLimit != 0L) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomsLimit);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
size += _unknownFields.CalculateSize();
|
||
|
|
}
|
||
|
|
return size;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(Statistics other) {
|
||
|
|
if (other == null) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (other.Connections != 0L) {
|
||
|
|
Connections = other.Connections;
|
||
|
|
}
|
||
|
|
if (other.ConnectionsLimit != 0L) {
|
||
|
|
ConnectionsLimit = other.ConnectionsLimit;
|
||
|
|
}
|
||
|
|
if (other.Rooms != 0L) {
|
||
|
|
Rooms = other.Rooms;
|
||
|
|
}
|
||
|
|
if (other.RoomsLimit != 0L) {
|
||
|
|
RoomsLimit = other.RoomsLimit;
|
||
|
|
}
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
input.ReadRawMessage(this);
|
||
|
|
#else
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
|
break;
|
||
|
|
case 8: {
|
||
|
|
Connections = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 16: {
|
||
|
|
ConnectionsLimit = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 24: {
|
||
|
|
Rooms = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 32: {
|
||
|
|
RoomsLimit = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
|
break;
|
||
|
|
case 8: {
|
||
|
|
Connections = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 16: {
|
||
|
|
ConnectionsLimit = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 24: {
|
||
|
|
Rooms = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 32: {
|
||
|
|
RoomsLimit = input.ReadInt64();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
|
public sealed partial class Player : pb::IMessage<Player>
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
, pb::IBufferMessage
|
||
|
|
#endif
|
||
|
|
{
|
||
|
|
private static readonly pb::MessageParser<Player> _parser = new pb::MessageParser<Player>(() => new Player());
|
||
|
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pb::MessageParser<Player> Parser { get { return _parser; } }
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
|
get { return global::Ragon.Relay.ProtocolReflection.Descriptor.MessageTypes[2]; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
|
get { return Descriptor; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Player() {
|
||
|
|
OnConstruction();
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void OnConstruction();
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Player(Player other) : this() {
|
||
|
|
id_ = other.id_;
|
||
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Player Clone() {
|
||
|
|
return new Player(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Id" field.</summary>
|
||
|
|
public const int IdFieldNumber = 1;
|
||
|
|
private string id_ = "";
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public string Id {
|
||
|
|
get { return id_; }
|
||
|
|
set {
|
||
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override bool Equals(object other) {
|
||
|
|
return Equals(other as Player);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public bool Equals(Player other) {
|
||
|
|
if (ReferenceEquals(other, null)) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if (ReferenceEquals(other, this)) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if (Id != other.Id) return false;
|
||
|
|
return Equals(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override int GetHashCode() {
|
||
|
|
int hash = 1;
|
||
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
hash ^= _unknownFields.GetHashCode();
|
||
|
|
}
|
||
|
|
return hash;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override string ToString() {
|
||
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
output.WriteRawMessage(this);
|
||
|
|
#else
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(Id);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(output);
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(Id);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(ref output);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public int CalculateSize() {
|
||
|
|
int size = 0;
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
||
|
|
}
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
size += _unknownFields.CalculateSize();
|
||
|
|
}
|
||
|
|
return size;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(Player other) {
|
||
|
|
if (other == null) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (other.Id.Length != 0) {
|
||
|
|
Id = other.Id;
|
||
|
|
}
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
input.ReadRawMessage(this);
|
||
|
|
#else
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
Id = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
Id = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
|
public sealed partial class Room : pb::IMessage<Room>
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
, pb::IBufferMessage
|
||
|
|
#endif
|
||
|
|
{
|
||
|
|
private static readonly pb::MessageParser<Room> _parser = new pb::MessageParser<Room>(() => new Room());
|
||
|
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pb::MessageParser<Room> Parser { get { return _parser; } }
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
|
get { return global::Ragon.Relay.ProtocolReflection.Descriptor.MessageTypes[3]; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
|
get { return Descriptor; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Room() {
|
||
|
|
OnConstruction();
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void OnConstruction();
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Room(Room other) : this() {
|
||
|
|
id_ = other.id_;
|
||
|
|
players_ = other.players_.Clone();
|
||
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public Room Clone() {
|
||
|
|
return new Room(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Id" field.</summary>
|
||
|
|
public const int IdFieldNumber = 1;
|
||
|
|
private string id_ = "";
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public string Id {
|
||
|
|
get { return id_; }
|
||
|
|
set {
|
||
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Field number for the "Players" field.</summary>
|
||
|
|
public const int PlayersFieldNumber = 2;
|
||
|
|
private static readonly pb::FieldCodec<global::Ragon.Relay.Player> _repeated_players_codec
|
||
|
|
= pb::FieldCodec.ForMessage(18, global::Ragon.Relay.Player.Parser);
|
||
|
|
private readonly pbc::RepeatedField<global::Ragon.Relay.Player> players_ = new pbc::RepeatedField<global::Ragon.Relay.Player>();
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public pbc::RepeatedField<global::Ragon.Relay.Player> Players {
|
||
|
|
get { return players_; }
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override bool Equals(object other) {
|
||
|
|
return Equals(other as Room);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public bool Equals(Room other) {
|
||
|
|
if (ReferenceEquals(other, null)) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if (ReferenceEquals(other, this)) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if (Id != other.Id) return false;
|
||
|
|
if(!players_.Equals(other.players_)) return false;
|
||
|
|
return Equals(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override int GetHashCode() {
|
||
|
|
int hash = 1;
|
||
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
||
|
|
hash ^= players_.GetHashCode();
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
hash ^= _unknownFields.GetHashCode();
|
||
|
|
}
|
||
|
|
return hash;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public override string ToString() {
|
||
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
output.WriteRawMessage(this);
|
||
|
|
#else
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(Id);
|
||
|
|
}
|
||
|
|
players_.WriteTo(output, _repeated_players_codec);
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(output);
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
output.WriteRawTag(10);
|
||
|
|
output.WriteString(Id);
|
||
|
|
}
|
||
|
|
players_.WriteTo(ref output, _repeated_players_codec);
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
_unknownFields.WriteTo(ref output);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public int CalculateSize() {
|
||
|
|
int size = 0;
|
||
|
|
if (Id.Length != 0) {
|
||
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
||
|
|
}
|
||
|
|
size += players_.CalculateSize(_repeated_players_codec);
|
||
|
|
if (_unknownFields != null) {
|
||
|
|
size += _unknownFields.CalculateSize();
|
||
|
|
}
|
||
|
|
return size;
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(Room other) {
|
||
|
|
if (other == null) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (other.Id.Length != 0) {
|
||
|
|
Id = other.Id;
|
||
|
|
}
|
||
|
|
players_.Add(other.players_);
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||
|
|
}
|
||
|
|
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
input.ReadRawMessage(this);
|
||
|
|
#else
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
Id = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 18: {
|
||
|
|
players_.AddEntriesFrom(input, _repeated_players_codec);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
}
|
||
|
|
|
||
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||
|
|
uint tag;
|
||
|
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
|
if ((tag & 7) == 4) {
|
||
|
|
// Abort on any end group tag.
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
switch(tag) {
|
||
|
|
default:
|
||
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
|
break;
|
||
|
|
case 10: {
|
||
|
|
Id = input.ReadString();
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
case 18: {
|
||
|
|
players_.AddEntriesFrom(ref input, _repeated_players_codec);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion Designer generated code
|