356 lines
12 KiB
C#
356 lines
12 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: rec_room/game_configuration/game_stat_configuration_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/game_configuration/game_stat_configuration_data.proto</summary>
|
|
public static partial class GameStatConfigurationDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for rec_room/game_configuration/game_stat_configuration_data.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static GameStatConfigurationDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cj5yZWNfcm9vbS9nYW1lX2NvbmZpZ3VyYXRpb24vZ2FtZV9zdGF0X2NvbmZp",
|
|
"Z3VyYXRpb25fZGF0YS5wcm90bxIIcmVjX3Jvb20icgoZR2FtZVN0YXRDb25m",
|
|
"aWd1cmF0aW9uRGF0YRIRCglzdGF0X25hbWUYASABKAkSFQoNdmlzaWJsZV9p",
|
|
"bl91aRgCIAEoCBITCgtzdGF0X2Zvcm1hdBgDIAEoBRIWCg52aXNpYmxlX2lu",
|
|
"X2h1ZBgEIAEoCEITqgIQUmVjUm9vbS5Qcm90b2J1ZmIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.GameStatConfigurationData), global::RecRoom.Protobuf.GameStatConfigurationData.Parser, new[]{ "StatName", "VisibleInUi", "StatFormat", "VisibleInHud" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class GameStatConfigurationData : pb::IMessage<GameStatConfigurationData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<GameStatConfigurationData> _parser = new pb::MessageParser<GameStatConfigurationData>(() => new GameStatConfigurationData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<GameStatConfigurationData> 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.GameStatConfigurationDataReflection.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 GameStatConfigurationData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GameStatConfigurationData(GameStatConfigurationData other) : this() {
|
|
statName_ = other.statName_;
|
|
visibleInUi_ = other.visibleInUi_;
|
|
statFormat_ = other.statFormat_;
|
|
visibleInHud_ = other.visibleInHud_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GameStatConfigurationData Clone() {
|
|
return new GameStatConfigurationData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "stat_name" field.</summary>
|
|
public const int StatNameFieldNumber = 1;
|
|
private string statName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string StatName {
|
|
get { return statName_; }
|
|
set {
|
|
statName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "visible_in_ui" field.</summary>
|
|
public const int VisibleInUiFieldNumber = 2;
|
|
private bool visibleInUi_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool VisibleInUi {
|
|
get { return visibleInUi_; }
|
|
set {
|
|
visibleInUi_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "stat_format" field.</summary>
|
|
public const int StatFormatFieldNumber = 3;
|
|
private int statFormat_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int StatFormat {
|
|
get { return statFormat_; }
|
|
set {
|
|
statFormat_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "visible_in_hud" field.</summary>
|
|
public const int VisibleInHudFieldNumber = 4;
|
|
private bool visibleInHud_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool VisibleInHud {
|
|
get { return visibleInHud_; }
|
|
set {
|
|
visibleInHud_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GameStatConfigurationData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(GameStatConfigurationData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (StatName != other.StatName) return false;
|
|
if (VisibleInUi != other.VisibleInUi) return false;
|
|
if (StatFormat != other.StatFormat) return false;
|
|
if (VisibleInHud != other.VisibleInHud) 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 (StatName.Length != 0) hash ^= StatName.GetHashCode();
|
|
if (VisibleInUi != false) hash ^= VisibleInUi.GetHashCode();
|
|
if (StatFormat != 0) hash ^= StatFormat.GetHashCode();
|
|
if (VisibleInHud != false) hash ^= VisibleInHud.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 (StatName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(StatName);
|
|
}
|
|
if (VisibleInUi != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(VisibleInUi);
|
|
}
|
|
if (StatFormat != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(StatFormat);
|
|
}
|
|
if (VisibleInHud != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(VisibleInHud);
|
|
}
|
|
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 (StatName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(StatName);
|
|
}
|
|
if (VisibleInUi != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(VisibleInUi);
|
|
}
|
|
if (StatFormat != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(StatFormat);
|
|
}
|
|
if (VisibleInHud != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(VisibleInHud);
|
|
}
|
|
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 (StatName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(StatName);
|
|
}
|
|
if (VisibleInUi != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (StatFormat != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatFormat);
|
|
}
|
|
if (VisibleInHud != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(GameStatConfigurationData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.StatName.Length != 0) {
|
|
StatName = other.StatName;
|
|
}
|
|
if (other.VisibleInUi != false) {
|
|
VisibleInUi = other.VisibleInUi;
|
|
}
|
|
if (other.StatFormat != 0) {
|
|
StatFormat = other.StatFormat;
|
|
}
|
|
if (other.VisibleInHud != false) {
|
|
VisibleInHud = other.VisibleInHud;
|
|
}
|
|
_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: {
|
|
StatName = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
VisibleInUi = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
StatFormat = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
VisibleInHud = input.ReadBool();
|
|
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: {
|
|
StatName = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
VisibleInUi = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
StatFormat = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
VisibleInHud = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|