Files
RecRoom.Protobuf/HudElementData.cs
2026-05-10 13:39:01 -07:00

505 lines
16 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: circuits_v2/hud_element_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 CircuitsV2.Protobuf {
/// <summary>Holder for reflection information generated from circuits_v2/hud_element_data.proto</summary>
public static partial class HudElementDataReflection {
#region Descriptor
/// <summary>File descriptor for circuits_v2/hud_element_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HudElementDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiJjaXJjdWl0c192Mi9odWRfZWxlbWVudF9kYXRhLnByb3RvEgtjaXJjdWl0",
"c192MiKbAQoOSHVkRWxlbWVudERhdGESEgoKaHVkRWxlbWVudBgBIAEoBRIN",
"CgVsYWJlbBgCIAEoCRINCgVjb2xvchgDIAEoBRINCgV2YWx1ZRgEIAEoBRIQ",
"CghtYXhWYWx1ZRgFIAEoBRIRCglzaG93TGFiZWwYBiABKAgSFQoNc2hvd1Zh",
"bHVlVGV4dBgHIAEoCBIMCgRuYW1lGAggASgJQhaqAhNDaXJjdWl0c1YyLlBy",
"b3RvYnVmYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.HudElementData), global::CircuitsV2.Protobuf.HudElementData.Parser, new[]{ "HudElement", "Label", "Color", "Value", "MaxValue", "ShowLabel", "ShowValueText", "Name" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class HudElementData : pb::IMessage<HudElementData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<HudElementData> _parser = new pb::MessageParser<HudElementData>(() => new HudElementData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<HudElementData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::CircuitsV2.Protobuf.HudElementDataReflection.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 HudElementData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public HudElementData(HudElementData other) : this() {
hudElement_ = other.hudElement_;
label_ = other.label_;
color_ = other.color_;
value_ = other.value_;
maxValue_ = other.maxValue_;
showLabel_ = other.showLabel_;
showValueText_ = other.showValueText_;
name_ = other.name_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public HudElementData Clone() {
return new HudElementData(this);
}
/// <summary>Field number for the "hudElement" field.</summary>
public const int HudElementFieldNumber = 1;
private int hudElement_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int HudElement {
get { return hudElement_; }
set {
hudElement_ = value;
}
}
/// <summary>Field number for the "label" field.</summary>
public const int LabelFieldNumber = 2;
private string label_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Label {
get { return label_; }
set {
label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "color" field.</summary>
public const int ColorFieldNumber = 3;
private int color_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Color {
get { return color_; }
set {
color_ = value;
}
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 4;
private int value_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Value {
get { return value_; }
set {
value_ = value;
}
}
/// <summary>Field number for the "maxValue" field.</summary>
public const int MaxValueFieldNumber = 5;
private int maxValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int MaxValue {
get { return maxValue_; }
set {
maxValue_ = value;
}
}
/// <summary>Field number for the "showLabel" field.</summary>
public const int ShowLabelFieldNumber = 6;
private bool showLabel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ShowLabel {
get { return showLabel_; }
set {
showLabel_ = value;
}
}
/// <summary>Field number for the "showValueText" field.</summary>
public const int ShowValueTextFieldNumber = 7;
private bool showValueText_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ShowValueText {
get { return showValueText_; }
set {
showValueText_ = value;
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 8;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = 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 HudElementData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(HudElementData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (HudElement != other.HudElement) return false;
if (Label != other.Label) return false;
if (Color != other.Color) return false;
if (Value != other.Value) return false;
if (MaxValue != other.MaxValue) return false;
if (ShowLabel != other.ShowLabel) return false;
if (ShowValueText != other.ShowValueText) return false;
if (Name != other.Name) 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 (HudElement != 0) hash ^= HudElement.GetHashCode();
if (Label.Length != 0) hash ^= Label.GetHashCode();
if (Color != 0) hash ^= Color.GetHashCode();
if (Value != 0) hash ^= Value.GetHashCode();
if (MaxValue != 0) hash ^= MaxValue.GetHashCode();
if (ShowLabel != false) hash ^= ShowLabel.GetHashCode();
if (ShowValueText != false) hash ^= ShowValueText.GetHashCode();
if (Name.Length != 0) hash ^= Name.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 (HudElement != 0) {
output.WriteRawTag(8);
output.WriteInt32(HudElement);
}
if (Label.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Label);
}
if (Color != 0) {
output.WriteRawTag(24);
output.WriteInt32(Color);
}
if (Value != 0) {
output.WriteRawTag(32);
output.WriteInt32(Value);
}
if (MaxValue != 0) {
output.WriteRawTag(40);
output.WriteInt32(MaxValue);
}
if (ShowLabel != false) {
output.WriteRawTag(48);
output.WriteBool(ShowLabel);
}
if (ShowValueText != false) {
output.WriteRawTag(56);
output.WriteBool(ShowValueText);
}
if (Name.Length != 0) {
output.WriteRawTag(66);
output.WriteString(Name);
}
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 (HudElement != 0) {
output.WriteRawTag(8);
output.WriteInt32(HudElement);
}
if (Label.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Label);
}
if (Color != 0) {
output.WriteRawTag(24);
output.WriteInt32(Color);
}
if (Value != 0) {
output.WriteRawTag(32);
output.WriteInt32(Value);
}
if (MaxValue != 0) {
output.WriteRawTag(40);
output.WriteInt32(MaxValue);
}
if (ShowLabel != false) {
output.WriteRawTag(48);
output.WriteBool(ShowLabel);
}
if (ShowValueText != false) {
output.WriteRawTag(56);
output.WriteBool(ShowValueText);
}
if (Name.Length != 0) {
output.WriteRawTag(66);
output.WriteString(Name);
}
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 (HudElement != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(HudElement);
}
if (Label.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (Color != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Color);
}
if (Value != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
}
if (MaxValue != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxValue);
}
if (ShowLabel != false) {
size += 1 + 1;
}
if (ShowValueText != false) {
size += 1 + 1;
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(HudElementData other) {
if (other == null) {
return;
}
if (other.HudElement != 0) {
HudElement = other.HudElement;
}
if (other.Label.Length != 0) {
Label = other.Label;
}
if (other.Color != 0) {
Color = other.Color;
}
if (other.Value != 0) {
Value = other.Value;
}
if (other.MaxValue != 0) {
MaxValue = other.MaxValue;
}
if (other.ShowLabel != false) {
ShowLabel = other.ShowLabel;
}
if (other.ShowValueText != false) {
ShowValueText = other.ShowValueText;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
_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: {
HudElement = input.ReadInt32();
break;
}
case 18: {
Label = input.ReadString();
break;
}
case 24: {
Color = input.ReadInt32();
break;
}
case 32: {
Value = input.ReadInt32();
break;
}
case 40: {
MaxValue = input.ReadInt32();
break;
}
case 48: {
ShowLabel = input.ReadBool();
break;
}
case 56: {
ShowValueText = input.ReadBool();
break;
}
case 66: {
Name = 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 8: {
HudElement = input.ReadInt32();
break;
}
case 18: {
Label = input.ReadString();
break;
}
case 24: {
Color = input.ReadInt32();
break;
}
case 32: {
Value = input.ReadInt32();
break;
}
case 40: {
MaxValue = input.ReadInt32();
break;
}
case 48: {
ShowLabel = input.ReadBool();
break;
}
case 56: {
ShowValueText = input.ReadBool();
break;
}
case 66: {
Name = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code