Protobuf...
This commit is contained in:
282
RoomRoleCollectionData.cs
Normal file
282
RoomRoleCollectionData.cs
Normal file
@@ -0,0 +1,282 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: rec_room/player_roles/room_role_collection_data.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 RecRoom.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from rec_room/player_roles/room_role_collection_data.proto</summary>
|
||||
public static partial class RoomRoleCollectionDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for rec_room/player_roles/room_role_collection_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RoomRoleCollectionDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjVyZWNfcm9vbS9wbGF5ZXJfcm9sZXMvcm9vbV9yb2xlX2NvbGxlY3Rpb25f",
|
||||
"ZGF0YS5wcm90bxIIcmVjX3Jvb20aMXJlY19yb29tL3BsYXllcl9yb2xlcy9w",
|
||||
"bGF5ZXJfcm9vbV9yb2xlX2RhdGEucHJvdG8ikAEKFlJvb21Sb2xlQ29sbGVj",
|
||||
"dGlvbkRhdGESMAoKcm9vbV9yb2xlcxgBIAMoCzIcLnJlY19yb29tLlBsYXll",
|
||||
"clJvb21Sb2xlRGF0YRJEChlyZWNfbmV0X21pZ3JhdGlvbl92ZXJzaW9uGAIg",
|
||||
"ASgOMiEucmVjX3Jvb20uTWlncmF0ZWRUb1JlY05ldFZlcnNpb24qQwoXTWln",
|
||||
"cmF0ZWRUb1JlY05ldFZlcnNpb24SEgoOTm90WWV0TWlncmF0ZWQQABIUChBN",
|
||||
"aWdyYXRlZFRvUmVjTmV0EAFCE6oCEFJlY1Jvb20uUHJvdG9idWZiBnByb3Rv",
|
||||
"Mw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.PlayerRoomRoleDataReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::RecRoom.Protobuf.MigratedToRecNetVersion), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.RoomRoleCollectionData), global::RecRoom.Protobuf.RoomRoleCollectionData.Parser, new[]{ "RoomRoles", "RecNetMigrationVersion" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum MigratedToRecNetVersion {
|
||||
[pbr::OriginalName("NotYetMigrated")] NotYetMigrated = 0,
|
||||
[pbr::OriginalName("MigratedToRecNet")] MigratedToRecNet = 1,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class RoomRoleCollectionData : pb::IMessage<RoomRoleCollectionData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RoomRoleCollectionData> _parser = new pb::MessageParser<RoomRoleCollectionData>(() => new RoomRoleCollectionData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RoomRoleCollectionData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::RecRoom.Protobuf.RoomRoleCollectionDataReflection.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 RoomRoleCollectionData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RoomRoleCollectionData(RoomRoleCollectionData other) : this() {
|
||||
roomRoles_ = other.roomRoles_.Clone();
|
||||
recNetMigrationVersion_ = other.recNetMigrationVersion_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RoomRoleCollectionData Clone() {
|
||||
return new RoomRoleCollectionData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "room_roles" field.</summary>
|
||||
public const int RoomRolesFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<global::RecRoom.Protobuf.PlayerRoomRoleData> _repeated_roomRoles_codec
|
||||
= pb::FieldCodec.ForMessage(10, global::RecRoom.Protobuf.PlayerRoomRoleData.Parser);
|
||||
private readonly pbc::RepeatedField<global::RecRoom.Protobuf.PlayerRoomRoleData> roomRoles_ = new pbc::RepeatedField<global::RecRoom.Protobuf.PlayerRoomRoleData>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::RecRoom.Protobuf.PlayerRoomRoleData> RoomRoles {
|
||||
get { return roomRoles_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rec_net_migration_version" field.</summary>
|
||||
public const int RecNetMigrationVersionFieldNumber = 2;
|
||||
private global::RecRoom.Protobuf.MigratedToRecNetVersion recNetMigrationVersion_ = global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::RecRoom.Protobuf.MigratedToRecNetVersion RecNetMigrationVersion {
|
||||
get { return recNetMigrationVersion_; }
|
||||
set {
|
||||
recNetMigrationVersion_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RoomRoleCollectionData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RoomRoleCollectionData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!roomRoles_.Equals(other.roomRoles_)) return false;
|
||||
if (RecNetMigrationVersion != other.RecNetMigrationVersion) 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;
|
||||
hash ^= roomRoles_.GetHashCode();
|
||||
if (RecNetMigrationVersion != global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated) hash ^= RecNetMigrationVersion.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
|
||||
roomRoles_.WriteTo(output, _repeated_roomRoles_codec);
|
||||
if (RecNetMigrationVersion != global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteEnum((int) RecNetMigrationVersion);
|
||||
}
|
||||
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) {
|
||||
roomRoles_.WriteTo(ref output, _repeated_roomRoles_codec);
|
||||
if (RecNetMigrationVersion != global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteEnum((int) RecNetMigrationVersion);
|
||||
}
|
||||
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;
|
||||
size += roomRoles_.CalculateSize(_repeated_roomRoles_codec);
|
||||
if (RecNetMigrationVersion != global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RecNetMigrationVersion);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RoomRoleCollectionData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
roomRoles_.Add(other.roomRoles_);
|
||||
if (other.RecNetMigrationVersion != global::RecRoom.Protobuf.MigratedToRecNetVersion.NotYetMigrated) {
|
||||
RecNetMigrationVersion = other.RecNetMigrationVersion;
|
||||
}
|
||||
_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: {
|
||||
roomRoles_.AddEntriesFrom(input, _repeated_roomRoles_codec);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RecNetMigrationVersion = (global::RecRoom.Protobuf.MigratedToRecNetVersion) input.ReadEnum();
|
||||
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: {
|
||||
roomRoles_.AddEntriesFrom(ref input, _repeated_roomRoles_codec);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RecNetMigrationVersion = (global::RecRoom.Protobuf.MigratedToRecNetVersion) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user