//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rec_room/creation_transient/tool_spawn_request_data.proto
//
#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.Creation.Protobuf {
/// Holder for reflection information generated from rec_room/creation_transient/tool_spawn_request_data.proto
public static partial class ToolSpawnRequestDataReflection {
#region Descriptor
/// File descriptor for rec_room/creation_transient/tool_spawn_request_data.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ToolSpawnRequestDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjlyZWNfcm9vbS9jcmVhdGlvbl90cmFuc2llbnQvdG9vbF9zcGF3bl9yZXF1",
"ZXN0X2RhdGEucHJvdG8SCGNyZWF0aW9uGhdjb3JlL3ZlY3RvcjNfZGF0YS5w",
"cm90bxoaY29yZS9xdWF0ZXJuaW9uX2RhdGEucHJvdG8isQEKFFRvb2xTcGF3",
"blJlcXVlc3REYXRhEhsKE3NwYXduYWJsZV90b29sX3R5cGUYASABKAUSIwoI",
"cG9zaXRpb24YBSABKAsyES5jb3JlLlZlY3RvcjNEYXRhEiYKCHJvdGF0aW9u",
"GAYgASgLMhQuY29yZS5RdWF0ZXJuaW9uRGF0YRINCgVzY2FsZRgHIAEoAhIg",
"ChhyZXF1ZXN0ZWRfcGVyc2lzdGVuY2VfaWQYCSABKAxCHKoCGVJlY1Jvb20u",
"Q3JlYXRpb24uUHJvdG9idWZiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.Vector3DataReflection.Descriptor, global::RecRoom.Protobuf.Core.QuaternionDataReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Creation.Protobuf.ToolSpawnRequestData), global::RecRoom.Creation.Protobuf.ToolSpawnRequestData.Parser, new[]{ "SpawnableToolType", "Position", "Rotation", "Scale", "RequestedPersistenceId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ToolSpawnRequestData : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToolSpawnRequestData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::RecRoom.Creation.Protobuf.ToolSpawnRequestDataReflection.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 ToolSpawnRequestData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ToolSpawnRequestData(ToolSpawnRequestData other) : this() {
spawnableToolType_ = other.spawnableToolType_;
position_ = other.position_ != null ? other.position_.Clone() : null;
rotation_ = other.rotation_ != null ? other.rotation_.Clone() : null;
scale_ = other.scale_;
requestedPersistenceId_ = other.requestedPersistenceId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ToolSpawnRequestData Clone() {
return new ToolSpawnRequestData(this);
}
/// Field number for the "spawnable_tool_type" field.
public const int SpawnableToolTypeFieldNumber = 1;
private int spawnableToolType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int SpawnableToolType {
get { return spawnableToolType_; }
set {
spawnableToolType_ = value;
}
}
/// Field number for the "position" field.
public const int PositionFieldNumber = 5;
private global::RecRoom.Protobuf.Core.Vector3Data position_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.Vector3Data Position {
get { return position_; }
set {
position_ = value;
}
}
/// Field number for the "rotation" field.
public const int RotationFieldNumber = 6;
private global::RecRoom.Protobuf.Core.QuaternionData rotation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.QuaternionData Rotation {
get { return rotation_; }
set {
rotation_ = value;
}
}
/// Field number for the "scale" field.
public const int ScaleFieldNumber = 7;
private float scale_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Scale {
get { return scale_; }
set {
scale_ = value;
}
}
/// Field number for the "requested_persistence_id" field.
public const int RequestedPersistenceIdFieldNumber = 9;
private pb::ByteString requestedPersistenceId_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString RequestedPersistenceId {
get { return requestedPersistenceId_; }
set {
requestedPersistenceId_ = 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 ToolSpawnRequestData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ToolSpawnRequestData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (SpawnableToolType != other.SpawnableToolType) return false;
if (!object.Equals(Position, other.Position)) return false;
if (!object.Equals(Rotation, other.Rotation)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Scale, other.Scale)) return false;
if (RequestedPersistenceId != other.RequestedPersistenceId) 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 (SpawnableToolType != 0) hash ^= SpawnableToolType.GetHashCode();
if (position_ != null) hash ^= Position.GetHashCode();
if (rotation_ != null) hash ^= Rotation.GetHashCode();
if (Scale != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Scale);
if (RequestedPersistenceId.Length != 0) hash ^= RequestedPersistenceId.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 (SpawnableToolType != 0) {
output.WriteRawTag(8);
output.WriteInt32(SpawnableToolType);
}
if (position_ != null) {
output.WriteRawTag(42);
output.WriteMessage(Position);
}
if (rotation_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Rotation);
}
if (Scale != 0F) {
output.WriteRawTag(61);
output.WriteFloat(Scale);
}
if (RequestedPersistenceId.Length != 0) {
output.WriteRawTag(74);
output.WriteBytes(RequestedPersistenceId);
}
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 (SpawnableToolType != 0) {
output.WriteRawTag(8);
output.WriteInt32(SpawnableToolType);
}
if (position_ != null) {
output.WriteRawTag(42);
output.WriteMessage(Position);
}
if (rotation_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Rotation);
}
if (Scale != 0F) {
output.WriteRawTag(61);
output.WriteFloat(Scale);
}
if (RequestedPersistenceId.Length != 0) {
output.WriteRawTag(74);
output.WriteBytes(RequestedPersistenceId);
}
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 (SpawnableToolType != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpawnableToolType);
}
if (position_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
}
if (rotation_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rotation);
}
if (Scale != 0F) {
size += 1 + 4;
}
if (RequestedPersistenceId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(RequestedPersistenceId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ToolSpawnRequestData other) {
if (other == null) {
return;
}
if (other.SpawnableToolType != 0) {
SpawnableToolType = other.SpawnableToolType;
}
if (other.position_ != null) {
if (position_ == null) {
Position = new global::RecRoom.Protobuf.Core.Vector3Data();
}
Position.MergeFrom(other.Position);
}
if (other.rotation_ != null) {
if (rotation_ == null) {
Rotation = new global::RecRoom.Protobuf.Core.QuaternionData();
}
Rotation.MergeFrom(other.Rotation);
}
if (other.Scale != 0F) {
Scale = other.Scale;
}
if (other.RequestedPersistenceId.Length != 0) {
RequestedPersistenceId = other.RequestedPersistenceId;
}
_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: {
SpawnableToolType = input.ReadInt32();
break;
}
case 42: {
if (position_ == null) {
Position = new global::RecRoom.Protobuf.Core.Vector3Data();
}
input.ReadMessage(Position);
break;
}
case 50: {
if (rotation_ == null) {
Rotation = new global::RecRoom.Protobuf.Core.QuaternionData();
}
input.ReadMessage(Rotation);
break;
}
case 61: {
Scale = input.ReadFloat();
break;
}
case 74: {
RequestedPersistenceId = input.ReadBytes();
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: {
SpawnableToolType = input.ReadInt32();
break;
}
case 42: {
if (position_ == null) {
Position = new global::RecRoom.Protobuf.Core.Vector3Data();
}
input.ReadMessage(Position);
break;
}
case 50: {
if (rotation_ == null) {
Rotation = new global::RecRoom.Protobuf.Core.QuaternionData();
}
input.ReadMessage(Rotation);
break;
}
case 61: {
Scale = input.ReadFloat();
break;
}
case 74: {
RequestedPersistenceId = input.ReadBytes();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code