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

441 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rec_room/persistence/sandbox_colorable_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/persistence/sandbox_colorable_data.proto</summary>
public static partial class SandboxColorableDataReflection {
#region Descriptor
/// <summary>File descriptor for rec_room/persistence/sandbox_colorable_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static SandboxColorableDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjFyZWNfcm9vbS9wZXJzaXN0ZW5jZS9zYW5kYm94X2NvbG9yYWJsZV9kYXRh",
"LnByb3RvEghyZWNfcm9vbRoVY29yZS9jb2xvcl9kYXRhLnByb3RvIpwBChRT",
"YW5kYm94Q29sb3JhYmxlRGF0YRINCgVjb2xvchgBIAEoBRIQCghtYXRlcmlh",
"bBgCIAEoBRIhCghyZ2Jjb2xvchgDIAEoCzIPLmNvcmUuQ29sb3JEYXRhEhQK",
"DHRleHR1cmVfc2l6ZRgEIAEoAhISCgppbWFnZV9uYW1lGAUgASgJEhYKDmlt",
"YWdlX3RpbGVhYmxlGAYgASgIQhOqAhBSZWNSb29tLlByb3RvYnVmYgZwcm90",
"bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.ColorDataReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.SandboxColorableData), global::RecRoom.Protobuf.SandboxColorableData.Parser, new[]{ "Color", "Material", "Rgbcolor", "TextureSize", "ImageName", "ImageTileable" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class SandboxColorableData : pb::IMessage<SandboxColorableData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SandboxColorableData> _parser = new pb::MessageParser<SandboxColorableData>(() => new SandboxColorableData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SandboxColorableData> 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.SandboxColorableDataReflection.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 SandboxColorableData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SandboxColorableData(SandboxColorableData other) : this() {
color_ = other.color_;
material_ = other.material_;
rgbcolor_ = other.rgbcolor_ != null ? other.rgbcolor_.Clone() : null;
textureSize_ = other.textureSize_;
imageName_ = other.imageName_;
imageTileable_ = other.imageTileable_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SandboxColorableData Clone() {
return new SandboxColorableData(this);
}
/// <summary>Field number for the "color" field.</summary>
public const int ColorFieldNumber = 1;
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 "material" field.</summary>
public const int MaterialFieldNumber = 2;
private int material_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Material {
get { return material_; }
set {
material_ = value;
}
}
/// <summary>Field number for the "rgbcolor" field.</summary>
public const int RgbcolorFieldNumber = 3;
private global::RecRoom.Protobuf.Core.ColorData rgbcolor_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.ColorData Rgbcolor {
get { return rgbcolor_; }
set {
rgbcolor_ = value;
}
}
/// <summary>Field number for the "texture_size" field.</summary>
public const int TextureSizeFieldNumber = 4;
private float textureSize_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float TextureSize {
get { return textureSize_; }
set {
textureSize_ = value;
}
}
/// <summary>Field number for the "image_name" field.</summary>
public const int ImageNameFieldNumber = 5;
private string imageName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ImageName {
get { return imageName_; }
set {
imageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "image_tileable" field.</summary>
public const int ImageTileableFieldNumber = 6;
private bool imageTileable_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ImageTileable {
get { return imageTileable_; }
set {
imageTileable_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SandboxColorableData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SandboxColorableData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Color != other.Color) return false;
if (Material != other.Material) return false;
if (!object.Equals(Rgbcolor, other.Rgbcolor)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TextureSize, other.TextureSize)) return false;
if (ImageName != other.ImageName) return false;
if (ImageTileable != other.ImageTileable) 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 (Color != 0) hash ^= Color.GetHashCode();
if (Material != 0) hash ^= Material.GetHashCode();
if (rgbcolor_ != null) hash ^= Rgbcolor.GetHashCode();
if (TextureSize != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TextureSize);
if (ImageName.Length != 0) hash ^= ImageName.GetHashCode();
if (ImageTileable != false) hash ^= ImageTileable.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 (Color != 0) {
output.WriteRawTag(8);
output.WriteInt32(Color);
}
if (Material != 0) {
output.WriteRawTag(16);
output.WriteInt32(Material);
}
if (rgbcolor_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Rgbcolor);
}
if (TextureSize != 0F) {
output.WriteRawTag(37);
output.WriteFloat(TextureSize);
}
if (ImageName.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ImageName);
}
if (ImageTileable != false) {
output.WriteRawTag(48);
output.WriteBool(ImageTileable);
}
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 (Color != 0) {
output.WriteRawTag(8);
output.WriteInt32(Color);
}
if (Material != 0) {
output.WriteRawTag(16);
output.WriteInt32(Material);
}
if (rgbcolor_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Rgbcolor);
}
if (TextureSize != 0F) {
output.WriteRawTag(37);
output.WriteFloat(TextureSize);
}
if (ImageName.Length != 0) {
output.WriteRawTag(42);
output.WriteString(ImageName);
}
if (ImageTileable != false) {
output.WriteRawTag(48);
output.WriteBool(ImageTileable);
}
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 (Color != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Color);
}
if (Material != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Material);
}
if (rgbcolor_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rgbcolor);
}
if (TextureSize != 0F) {
size += 1 + 4;
}
if (ImageName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageName);
}
if (ImageTileable != 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(SandboxColorableData other) {
if (other == null) {
return;
}
if (other.Color != 0) {
Color = other.Color;
}
if (other.Material != 0) {
Material = other.Material;
}
if (other.rgbcolor_ != null) {
if (rgbcolor_ == null) {
Rgbcolor = new global::RecRoom.Protobuf.Core.ColorData();
}
Rgbcolor.MergeFrom(other.Rgbcolor);
}
if (other.TextureSize != 0F) {
TextureSize = other.TextureSize;
}
if (other.ImageName.Length != 0) {
ImageName = other.ImageName;
}
if (other.ImageTileable != false) {
ImageTileable = other.ImageTileable;
}
_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: {
Color = input.ReadInt32();
break;
}
case 16: {
Material = input.ReadInt32();
break;
}
case 26: {
if (rgbcolor_ == null) {
Rgbcolor = new global::RecRoom.Protobuf.Core.ColorData();
}
input.ReadMessage(Rgbcolor);
break;
}
case 37: {
TextureSize = input.ReadFloat();
break;
}
case 42: {
ImageName = input.ReadString();
break;
}
case 48: {
ImageTileable = 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 8: {
Color = input.ReadInt32();
break;
}
case 16: {
Material = input.ReadInt32();
break;
}
case 26: {
if (rgbcolor_ == null) {
Rgbcolor = new global::RecRoom.Protobuf.Core.ColorData();
}
input.ReadMessage(Rgbcolor);
break;
}
case 37: {
TextureSize = input.ReadFloat();
break;
}
case 42: {
ImageName = input.ReadString();
break;
}
case 48: {
ImageTileable = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code