// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: circuits_v2/deprecated/DEPRECATED_port_group_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/deprecated/DEPRECATED_port_group_data.proto</summary>
  public static partial class DEPRECATEDPortGroupDataReflection {

    #region Descriptor
    /// <summary>File descriptor for circuits_v2/deprecated/DEPRECATED_port_group_data.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static DEPRECATEDPortGroupDataReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CjdjaXJjdWl0c192Mi9kZXByZWNhdGVkL0RFUFJFQ0FURURfcG9ydF9ncm91",
            "cF9kYXRhLnByb3RvEgtjaXJjdWl0c192Mho5Y2lyY3VpdHNfdjIvZGVwcmVj",
            "YXRlZC9ERVBSRUNBVEVEX2NpcmN1aXRfdHlwZV9kYXRhLnByb3RvGjZjaXJj",
            "dWl0c192Mi9kZXByZWNhdGVkL0RFUFJFQ0FURURfbm9kZV9wb3J0X2RhdGEu",
            "cHJvdG8aN2NpcmN1aXRzX3YyL2RlcHJlY2F0ZWQvREVQUkVDQVRFRF9wb3J0",
            "X2dyb3VwX3R5cGUucHJvdG8izwIKGERFUFJFQ0FURURfUG9ydEdyb3VwRGF0",
            "YRIVCg1wb3J0X2dyb3VwX2lkGAEgASgMEj4KD3BvcnRfZ3JvdXBfdHlwZRgC",
            "IAEoDjIlLmNpcmN1aXRzX3YyLkRFUFJFQ0FURURfUG9ydEdyb3VwVHlwZRI9",
            "Cg9ub2RlX3BvcnRfZGF0YXMYAyADKAsyJC5jaXJjdWl0c192Mi5ERVBSRUNB",
            "VEVEX05vZGVQb3J0RGF0YRIXCg9wb3J0X2dyb3VwX25hbWUYBCABKAkSQgoR",
            "ZWxlbWVudF9wb3J0X3R5cGUYZCABKAsyJy5jaXJjdWl0c192Mi5ERVBSRUNB",
            "VEVEX0NpcmN1aXRUeXBlRGF0YRIXCg9udW1iZXJfb2ZfcG9ydHMYZSABKA0S",
            "FAoMZWxlbWVudF9uYW1lGGYgASgJEhEKCGV4ZWNOYW1lGMkBIAEoCUIWqgIT",
            "Q2lyY3VpdHNWMi5Qcm90b2J1ZmIGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::CircuitsV2.Protobuf.DEPRECATEDCircuitTypeDataReflection.Descriptor, global::CircuitsV2.Protobuf.DEPRECATEDNodePortDataReflection.Descriptor, global::CircuitsV2.Protobuf.DEPRECATEDPortGroupTypeReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.DEPRECATED_PortGroupData), global::CircuitsV2.Protobuf.DEPRECATED_PortGroupData.Parser, new[]{ "PortGroupId", "PortGroupType", "NodePortDatas", "PortGroupName", "ElementPortType", "NumberOfPorts", "ElementName", "ExecName" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public DEPRECATED_PortGroupData(DEPRECATED_PortGroupData other) : this() {
      portGroupId_ = other.portGroupId_;
      portGroupType_ = other.portGroupType_;
      nodePortDatas_ = other.nodePortDatas_.Clone();
      portGroupName_ = other.portGroupName_;
      elementPortType_ = other.elementPortType_ != null ? other.elementPortType_.Clone() : null;
      numberOfPorts_ = other.numberOfPorts_;
      elementName_ = other.elementName_;
      execName_ = other.execName_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "port_group_id" field.</summary>
    public const int PortGroupIdFieldNumber = 1;
    private pb::ByteString portGroupId_ = pb::ByteString.Empty;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pb::ByteString PortGroupId {
      get { return portGroupId_; }
      set {
        portGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "port_group_type" field.</summary>
    public const int PortGroupTypeFieldNumber = 2;
    private global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType portGroupType_ = global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType PortGroupType {
      get { return portGroupType_; }
      set {
        portGroupType_ = value;
      }
    }

    /// <summary>Field number for the "node_port_datas" field.</summary>
    public const int NodePortDatasFieldNumber = 3;
    private static readonly pb::FieldCodec<global::CircuitsV2.Protobuf.DEPRECATED_NodePortData> _repeated_nodePortDatas_codec
        = pb::FieldCodec.ForMessage(26, global::CircuitsV2.Protobuf.DEPRECATED_NodePortData.Parser);
    private readonly pbc::RepeatedField<global::CircuitsV2.Protobuf.DEPRECATED_NodePortData> nodePortDatas_ = new pbc::RepeatedField<global::CircuitsV2.Protobuf.DEPRECATED_NodePortData>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::CircuitsV2.Protobuf.DEPRECATED_NodePortData> NodePortDatas {
      get { return nodePortDatas_; }
    }

    /// <summary>Field number for the "port_group_name" field.</summary>
    public const int PortGroupNameFieldNumber = 4;
    private string portGroupName_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string PortGroupName {
      get { return portGroupName_; }
      set {
        portGroupName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "element_port_type" field.</summary>
    public const int ElementPortTypeFieldNumber = 100;
    private global::CircuitsV2.Protobuf.DEPRECATED_CircuitTypeData elementPortType_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.DEPRECATED_CircuitTypeData ElementPortType {
      get { return elementPortType_; }
      set {
        elementPortType_ = value;
      }
    }

    /// <summary>Field number for the "number_of_ports" field.</summary>
    public const int NumberOfPortsFieldNumber = 101;
    private uint numberOfPorts_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint NumberOfPorts {
      get { return numberOfPorts_; }
      set {
        numberOfPorts_ = value;
      }
    }

    /// <summary>Field number for the "element_name" field.</summary>
    public const int ElementNameFieldNumber = 102;
    private string elementName_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ElementName {
      get { return elementName_; }
      set {
        elementName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "execName" field.</summary>
    public const int ExecNameFieldNumber = 201;
    private string execName_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ExecName {
      get { return execName_; }
      set {
        execName_ = 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 DEPRECATED_PortGroupData);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(DEPRECATED_PortGroupData other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (PortGroupId != other.PortGroupId) return false;
      if (PortGroupType != other.PortGroupType) return false;
      if(!nodePortDatas_.Equals(other.nodePortDatas_)) return false;
      if (PortGroupName != other.PortGroupName) return false;
      if (!object.Equals(ElementPortType, other.ElementPortType)) return false;
      if (NumberOfPorts != other.NumberOfPorts) return false;
      if (ElementName != other.ElementName) return false;
      if (ExecName != other.ExecName) 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 (PortGroupId.Length != 0) hash ^= PortGroupId.GetHashCode();
      if (PortGroupType != global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup) hash ^= PortGroupType.GetHashCode();
      hash ^= nodePortDatas_.GetHashCode();
      if (PortGroupName.Length != 0) hash ^= PortGroupName.GetHashCode();
      if (elementPortType_ != null) hash ^= ElementPortType.GetHashCode();
      if (NumberOfPorts != 0) hash ^= NumberOfPorts.GetHashCode();
      if (ElementName.Length != 0) hash ^= ElementName.GetHashCode();
      if (ExecName.Length != 0) hash ^= ExecName.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 (PortGroupId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteBytes(PortGroupId);
      }
      if (PortGroupType != global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup) {
        output.WriteRawTag(16);
        output.WriteEnum((int) PortGroupType);
      }
      nodePortDatas_.WriteTo(output, _repeated_nodePortDatas_codec);
      if (PortGroupName.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(PortGroupName);
      }
      if (elementPortType_ != null) {
        output.WriteRawTag(162, 6);
        output.WriteMessage(ElementPortType);
      }
      if (NumberOfPorts != 0) {
        output.WriteRawTag(168, 6);
        output.WriteUInt32(NumberOfPorts);
      }
      if (ElementName.Length != 0) {
        output.WriteRawTag(178, 6);
        output.WriteString(ElementName);
      }
      if (ExecName.Length != 0) {
        output.WriteRawTag(202, 12);
        output.WriteString(ExecName);
      }
      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 (PortGroupId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteBytes(PortGroupId);
      }
      if (PortGroupType != global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup) {
        output.WriteRawTag(16);
        output.WriteEnum((int) PortGroupType);
      }
      nodePortDatas_.WriteTo(ref output, _repeated_nodePortDatas_codec);
      if (PortGroupName.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(PortGroupName);
      }
      if (elementPortType_ != null) {
        output.WriteRawTag(162, 6);
        output.WriteMessage(ElementPortType);
      }
      if (NumberOfPorts != 0) {
        output.WriteRawTag(168, 6);
        output.WriteUInt32(NumberOfPorts);
      }
      if (ElementName.Length != 0) {
        output.WriteRawTag(178, 6);
        output.WriteString(ElementName);
      }
      if (ExecName.Length != 0) {
        output.WriteRawTag(202, 12);
        output.WriteString(ExecName);
      }
      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 (PortGroupId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeBytesSize(PortGroupId);
      }
      if (PortGroupType != global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PortGroupType);
      }
      size += nodePortDatas_.CalculateSize(_repeated_nodePortDatas_codec);
      if (PortGroupName.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(PortGroupName);
      }
      if (elementPortType_ != null) {
        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ElementPortType);
      }
      if (NumberOfPorts != 0) {
        size += 2 + pb::CodedOutputStream.ComputeUInt32Size(NumberOfPorts);
      }
      if (ElementName.Length != 0) {
        size += 2 + pb::CodedOutputStream.ComputeStringSize(ElementName);
      }
      if (ExecName.Length != 0) {
        size += 2 + pb::CodedOutputStream.ComputeStringSize(ExecName);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(DEPRECATED_PortGroupData other) {
      if (other == null) {
        return;
      }
      if (other.PortGroupId.Length != 0) {
        PortGroupId = other.PortGroupId;
      }
      if (other.PortGroupType != global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType.BasicGroup) {
        PortGroupType = other.PortGroupType;
      }
      nodePortDatas_.Add(other.nodePortDatas_);
      if (other.PortGroupName.Length != 0) {
        PortGroupName = other.PortGroupName;
      }
      if (other.elementPortType_ != null) {
        if (elementPortType_ == null) {
          ElementPortType = new global::CircuitsV2.Protobuf.DEPRECATED_CircuitTypeData();
        }
        ElementPortType.MergeFrom(other.ElementPortType);
      }
      if (other.NumberOfPorts != 0) {
        NumberOfPorts = other.NumberOfPorts;
      }
      if (other.ElementName.Length != 0) {
        ElementName = other.ElementName;
      }
      if (other.ExecName.Length != 0) {
        ExecName = other.ExecName;
      }
      _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: {
            PortGroupId = input.ReadBytes();
            break;
          }
          case 16: {
            PortGroupType = (global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType) input.ReadEnum();
            break;
          }
          case 26: {
            nodePortDatas_.AddEntriesFrom(input, _repeated_nodePortDatas_codec);
            break;
          }
          case 34: {
            PortGroupName = input.ReadString();
            break;
          }
          case 802: {
            if (elementPortType_ == null) {
              ElementPortType = new global::CircuitsV2.Protobuf.DEPRECATED_CircuitTypeData();
            }
            input.ReadMessage(ElementPortType);
            break;
          }
          case 808: {
            NumberOfPorts = input.ReadUInt32();
            break;
          }
          case 818: {
            ElementName = input.ReadString();
            break;
          }
          case 1610: {
            ExecName = 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 10: {
            PortGroupId = input.ReadBytes();
            break;
          }
          case 16: {
            PortGroupType = (global::CircuitsV2.Protobuf.DEPRECATED_PortGroupType) input.ReadEnum();
            break;
          }
          case 26: {
            nodePortDatas_.AddEntriesFrom(ref input, _repeated_nodePortDatas_codec);
            break;
          }
          case 34: {
            PortGroupName = input.ReadString();
            break;
          }
          case 802: {
            if (elementPortType_ == null) {
              ElementPortType = new global::CircuitsV2.Protobuf.DEPRECATED_CircuitTypeData();
            }
            input.ReadMessage(ElementPortType);
            break;
          }
          case 808: {
            NumberOfPorts = input.ReadUInt32();
            break;
          }
          case 818: {
            ElementName = input.ReadString();
            break;
          }
          case 1610: {
            ExecName = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
