// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: circuits/static/core/tree_system/tree_sys_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.Core.TreeSystem.Protobuf {

  /// <summary>Holder for reflection information generated from circuits/static/core/tree_system/tree_sys_data.proto</summary>
  public static partial class TreeSysDataReflection {

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

    static TreeSysDataReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CjRjaXJjdWl0cy9zdGF0aWMvY29yZS90cmVlX3N5c3RlbS90cmVlX3N5c19k",
            "YXRhLnByb3RvEghjaXJjdWl0cxo5Y2lyY3VpdHMvc3RhdGljL2NvcmUvdHJl",
            "ZV9zeXN0ZW0vbm9kZV9jaGlsZHJlbl9kYXRhLnByb3RvGi5jaXJjdWl0cy9z",
            "aGFyZWQvdXRpbGl0aWVzL3NvYV9pZF8zMl9kYXRhLnByb3RvIm8KC1RyZWVT",
            "eXNEYXRhEiIKA2lkcxgBIAEoCzIVLmNpcmN1aXRzLlNPQUlkMzJEYXRhEg4K",
            "BnBhcmVudBgCIAMoBRIsCghjaGlsZHJlbhgDIAMoCzIaLmNpcmN1aXRzLk5v",
            "ZGVDaGlsZHJlbkRhdGFCK6oCKENpcmN1aXRzLlN0YXRpYy5Db3JlLlRyZWVT",
            "eXN0ZW0uUHJvdG9idWZiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenDataReflection.Descriptor, global::Circuits.Shared.Utilities.Protobuf.SoaId32DataReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Circuits.Static.Core.TreeSystem.Protobuf.TreeSysData), global::Circuits.Static.Core.TreeSystem.Protobuf.TreeSysData.Parser, new[]{ "Ids", "Parent", "Children" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class TreeSysData : pb::IMessage<TreeSysData>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<TreeSysData> _parser = new pb::MessageParser<TreeSysData>(() => new TreeSysData());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<TreeSysData> 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.Core.TreeSystem.Protobuf.TreeSysDataReflection.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 TreeSysData() {
      OnConstruction();
    }

    partial void OnConstruction();

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

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

    /// <summary>Field number for the "ids" field.</summary>
    public const int IdsFieldNumber = 1;
    private global::Circuits.Shared.Utilities.Protobuf.SOAId32Data ids_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Circuits.Shared.Utilities.Protobuf.SOAId32Data Ids {
      get { return ids_; }
      set {
        ids_ = value;
      }
    }

    /// <summary>Field number for the "parent" field.</summary>
    public const int ParentFieldNumber = 2;
    private static readonly pb::FieldCodec<int> _repeated_parent_codec
        = pb::FieldCodec.ForInt32(18);
    private readonly pbc::RepeatedField<int> parent_ = new pbc::RepeatedField<int>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<int> Parent {
      get { return parent_; }
    }

    /// <summary>Field number for the "children" field.</summary>
    public const int ChildrenFieldNumber = 3;
    private static readonly pb::FieldCodec<global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenData> _repeated_children_codec
        = pb::FieldCodec.ForMessage(26, global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenData.Parser);
    private readonly pbc::RepeatedField<global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenData> children_ = new pbc::RepeatedField<global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenData>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::Circuits.Static.Core.TreeSystem.Protobuf.NodeChildrenData> Children {
      get { return children_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TreeSysData other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(Ids, other.Ids)) return false;
      if(!parent_.Equals(other.parent_)) return false;
      if(!children_.Equals(other.children_)) 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 (ids_ != null) hash ^= Ids.GetHashCode();
      hash ^= parent_.GetHashCode();
      hash ^= children_.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 (ids_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(Ids);
      }
      parent_.WriteTo(output, _repeated_parent_codec);
      children_.WriteTo(output, _repeated_children_codec);
      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 (ids_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(Ids);
      }
      parent_.WriteTo(ref output, _repeated_parent_codec);
      children_.WriteTo(ref output, _repeated_children_codec);
      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 (ids_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ids);
      }
      size += parent_.CalculateSize(_repeated_parent_codec);
      size += children_.CalculateSize(_repeated_children_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TreeSysData other) {
      if (other == null) {
        return;
      }
      if (other.ids_ != null) {
        if (ids_ == null) {
          Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
        }
        Ids.MergeFrom(other.Ids);
      }
      parent_.Add(other.parent_);
      children_.Add(other.children_);
      _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 (ids_ == null) {
              Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
            }
            input.ReadMessage(Ids);
            break;
          }
          case 18:
          case 16: {
            parent_.AddEntriesFrom(input, _repeated_parent_codec);
            break;
          }
          case 26: {
            children_.AddEntriesFrom(input, _repeated_children_codec);
            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 (ids_ == null) {
              Ids = new global::Circuits.Shared.Utilities.Protobuf.SOAId32Data();
            }
            input.ReadMessage(Ids);
            break;
          }
          case 18:
          case 16: {
            parent_.AddEntriesFrom(ref input, _repeated_parent_codec);
            break;
          }
          case 26: {
            children_.AddEntriesFrom(ref input, _repeated_children_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
