// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: circuits/static/rec_room/rr_node_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 Circuits.Static.RecRoom.Protobuf {

  /// <summary>Holder for reflection information generated from circuits/static/rec_room/rr_node_data.proto</summary>
  public static partial class RrNodeDataReflection {

    #region Descriptor
    /// <summary>File descriptor for circuits/static/rec_room/rr_node_data.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static RrNodeDataReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CitjaXJjdWl0cy9zdGF0aWMvcmVjX3Jvb20vcnJfbm9kZV9kYXRhLnByb3Rv",
            "EghjaXJjdWl0cxoxY2lyY3VpdHMvc2hhcmVkL3JlY19yb29tL2NpcmN1aXRz",
            "X3F1YXRfZGF0YS5wcm90bxoxY2lyY3VpdHMvc2hhcmVkL3JlY19yb29tL2Np",
            "cmN1aXRzX3ZlYzNfZGF0YS5wcm90byJ0CgpSUk5vZGVEYXRhEjIKDmxvY2Fs",
            "X3Bvc2l0aW9uGAEgASgLMhouY2lyY3VpdHMuQ2lyY3VpdHNWZWMzRGF0YRIy",
            "Cg5sb2NhbF9yb3RhdGlvbhgCIAEoCzIaLmNpcmN1aXRzLkNpcmN1aXRzUXVh",
            "dERhdGFCI6oCIENpcmN1aXRzLlN0YXRpYy5SZWNSb29tLlByb3RvYnVmYgZw",
            "cm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatDataReflection.Descriptor, global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3DataReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Circuits.Static.RecRoom.Protobuf.RRNodeData), global::Circuits.Static.RecRoom.Protobuf.RRNodeData.Parser, new[]{ "LocalPosition", "LocalRotation" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class RRNodeData : pb::IMessage<RRNodeData>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<RRNodeData> _parser = new pb::MessageParser<RRNodeData>(() => new RRNodeData());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<RRNodeData> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Circuits.Static.RecRoom.Protobuf.RrNodeDataReflection.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 RRNodeData() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RRNodeData(RRNodeData other) : this() {
      localPosition_ = other.localPosition_ != null ? other.localPosition_.Clone() : null;
      localRotation_ = other.localRotation_ != null ? other.localRotation_.Clone() : null;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RRNodeData Clone() {
      return new RRNodeData(this);
    }

    /// <summary>Field number for the "local_position" field.</summary>
    public const int LocalPositionFieldNumber = 1;
    private global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3Data localPosition_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3Data LocalPosition {
      get { return localPosition_; }
      set {
        localPosition_ = value;
      }
    }

    /// <summary>Field number for the "local_rotation" field.</summary>
    public const int LocalRotationFieldNumber = 2;
    private global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatData localRotation_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatData LocalRotation {
      get { return localRotation_; }
      set {
        localRotation_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as RRNodeData);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RRNodeData other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(LocalPosition, other.LocalPosition)) return false;
      if (!object.Equals(LocalRotation, other.LocalRotation)) 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 (localPosition_ != null) hash ^= LocalPosition.GetHashCode();
      if (localRotation_ != null) hash ^= LocalRotation.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 (localPosition_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(LocalPosition);
      }
      if (localRotation_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(LocalRotation);
      }
      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 (localPosition_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(LocalPosition);
      }
      if (localRotation_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(LocalRotation);
      }
      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 (localPosition_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalPosition);
      }
      if (localRotation_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalRotation);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RRNodeData other) {
      if (other == null) {
        return;
      }
      if (other.localPosition_ != null) {
        if (localPosition_ == null) {
          LocalPosition = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3Data();
        }
        LocalPosition.MergeFrom(other.LocalPosition);
      }
      if (other.localRotation_ != null) {
        if (localRotation_ == null) {
          LocalRotation = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatData();
        }
        LocalRotation.MergeFrom(other.LocalRotation);
      }
      _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: {
            if (localPosition_ == null) {
              LocalPosition = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3Data();
            }
            input.ReadMessage(LocalPosition);
            break;
          }
          case 18: {
            if (localRotation_ == null) {
              LocalRotation = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatData();
            }
            input.ReadMessage(LocalRotation);
            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: {
            if (localPosition_ == null) {
              LocalPosition = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsVec3Data();
            }
            input.ReadMessage(LocalPosition);
            break;
          }
          case 18: {
            if (localRotation_ == null) {
              LocalRotation = new global::Circuits.Shared.RecRoom.Protobuf.CircuitsQuatData();
            }
            input.ReadMessage(LocalRotation);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
