// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: EquipmentTrackInfo.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 EggLink.DanhengServer.Proto {

  /// <summary>Holder for reflection information generated from EquipmentTrackInfo.proto</summary>
  public static partial class EquipmentTrackInfoReflection {

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

    static EquipmentTrackInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChhFcXVpcG1lbnRUcmFja0luZm8ucHJvdG8aH0dyaWRGaWdodEVxdWlwVHJh",
            "Y2tTb3VyY2UucHJvdG8iwgEKEkVxdWlwbWVudFRyYWNrSW5mbxIeChZ0cmFj",
            "a19lcXVpcHBlZF9pZF9saXN0GAUgAygNEioKBnNvdXJjZRgKIAEoDjIaLkdy",
            "aWRGaWdodEVxdWlwVHJhY2tTb3VyY2USEwoLaXNfdHJhY2tpbmcYASABKAgS",
            "HAoUZ3JpZF9maWdodF9pdGVtX2xpc3QYCCADKA0SFQoNdHJhY2tfcm9sZV9p",
            "ZBgOIAEoDRIWCg50cmFja19wcmlvcml0eRgNIAEoDUIeqgIbRWdnTGluay5E",
            "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GridFightEquipTrackSourceReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EquipmentTrackInfo), global::EggLink.DanhengServer.Proto.EquipmentTrackInfo.Parser, new[]{ "TrackEquippedIdList", "Source", "IsTracking", "GridFightItemList", "TrackRoleId", "TrackPriority" }, null, null, null, null)
          }));
    }
    #endregion

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::EggLink.DanhengServer.Proto.EquipmentTrackInfoReflection.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 EquipmentTrackInfo() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public EquipmentTrackInfo(EquipmentTrackInfo other) : this() {
      trackEquippedIdList_ = other.trackEquippedIdList_.Clone();
      source_ = other.source_;
      isTracking_ = other.isTracking_;
      gridFightItemList_ = other.gridFightItemList_.Clone();
      trackRoleId_ = other.trackRoleId_;
      trackPriority_ = other.trackPriority_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "track_equipped_id_list" field.</summary>
    public const int TrackEquippedIdListFieldNumber = 5;
    private static readonly pb::FieldCodec<uint> _repeated_trackEquippedIdList_codec
        = pb::FieldCodec.ForUInt32(42);
    private readonly pbc::RepeatedField<uint> trackEquippedIdList_ = new pbc::RepeatedField<uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<uint> TrackEquippedIdList {
      get { return trackEquippedIdList_; }
    }

    /// <summary>Field number for the "source" field.</summary>
    public const int SourceFieldNumber = 10;
    private global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource source_ = global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource Source {
      get { return source_; }
      set {
        source_ = value;
      }
    }

    /// <summary>Field number for the "is_tracking" field.</summary>
    public const int IsTrackingFieldNumber = 1;
    private bool isTracking_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool IsTracking {
      get { return isTracking_; }
      set {
        isTracking_ = value;
      }
    }

    /// <summary>Field number for the "grid_fight_item_list" field.</summary>
    public const int GridFightItemListFieldNumber = 8;
    private static readonly pb::FieldCodec<uint> _repeated_gridFightItemList_codec
        = pb::FieldCodec.ForUInt32(66);
    private readonly pbc::RepeatedField<uint> gridFightItemList_ = new pbc::RepeatedField<uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<uint> GridFightItemList {
      get { return gridFightItemList_; }
    }

    /// <summary>Field number for the "track_role_id" field.</summary>
    public const int TrackRoleIdFieldNumber = 14;
    private uint trackRoleId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint TrackRoleId {
      get { return trackRoleId_; }
      set {
        trackRoleId_ = value;
      }
    }

    /// <summary>Field number for the "track_priority" field.</summary>
    public const int TrackPriorityFieldNumber = 13;
    private uint trackPriority_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint TrackPriority {
      get { return trackPriority_; }
      set {
        trackPriority_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(EquipmentTrackInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if(!trackEquippedIdList_.Equals(other.trackEquippedIdList_)) return false;
      if (Source != other.Source) return false;
      if (IsTracking != other.IsTracking) return false;
      if(!gridFightItemList_.Equals(other.gridFightItemList_)) return false;
      if (TrackRoleId != other.TrackRoleId) return false;
      if (TrackPriority != other.TrackPriority) 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;
      hash ^= trackEquippedIdList_.GetHashCode();
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone) hash ^= Source.GetHashCode();
      if (IsTracking != false) hash ^= IsTracking.GetHashCode();
      hash ^= gridFightItemList_.GetHashCode();
      if (TrackRoleId != 0) hash ^= TrackRoleId.GetHashCode();
      if (TrackPriority != 0) hash ^= TrackPriority.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 (IsTracking != false) {
        output.WriteRawTag(8);
        output.WriteBool(IsTracking);
      }
      trackEquippedIdList_.WriteTo(output, _repeated_trackEquippedIdList_codec);
      gridFightItemList_.WriteTo(output, _repeated_gridFightItemList_codec);
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone) {
        output.WriteRawTag(80);
        output.WriteEnum((int) Source);
      }
      if (TrackPriority != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(TrackPriority);
      }
      if (TrackRoleId != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(TrackRoleId);
      }
      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 (IsTracking != false) {
        output.WriteRawTag(8);
        output.WriteBool(IsTracking);
      }
      trackEquippedIdList_.WriteTo(ref output, _repeated_trackEquippedIdList_codec);
      gridFightItemList_.WriteTo(ref output, _repeated_gridFightItemList_codec);
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone) {
        output.WriteRawTag(80);
        output.WriteEnum((int) Source);
      }
      if (TrackPriority != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(TrackPriority);
      }
      if (TrackRoleId != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(TrackRoleId);
      }
      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;
      size += trackEquippedIdList_.CalculateSize(_repeated_trackEquippedIdList_codec);
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source);
      }
      if (IsTracking != false) {
        size += 1 + 1;
      }
      size += gridFightItemList_.CalculateSize(_repeated_gridFightItemList_codec);
      if (TrackRoleId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TrackRoleId);
      }
      if (TrackPriority != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TrackPriority);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(EquipmentTrackInfo other) {
      if (other == null) {
        return;
      }
      trackEquippedIdList_.Add(other.trackEquippedIdList_);
      if (other.Source != global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource.KGridFightEquipTrackSourceNone) {
        Source = other.Source;
      }
      if (other.IsTracking != false) {
        IsTracking = other.IsTracking;
      }
      gridFightItemList_.Add(other.gridFightItemList_);
      if (other.TrackRoleId != 0) {
        TrackRoleId = other.TrackRoleId;
      }
      if (other.TrackPriority != 0) {
        TrackPriority = other.TrackPriority;
      }
      _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) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 8: {
            IsTracking = input.ReadBool();
            break;
          }
          case 42:
          case 40: {
            trackEquippedIdList_.AddEntriesFrom(input, _repeated_trackEquippedIdList_codec);
            break;
          }
          case 66:
          case 64: {
            gridFightItemList_.AddEntriesFrom(input, _repeated_gridFightItemList_codec);
            break;
          }
          case 80: {
            Source = (global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource) input.ReadEnum();
            break;
          }
          case 104: {
            TrackPriority = input.ReadUInt32();
            break;
          }
          case 112: {
            TrackRoleId = input.ReadUInt32();
            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) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 8: {
            IsTracking = input.ReadBool();
            break;
          }
          case 42:
          case 40: {
            trackEquippedIdList_.AddEntriesFrom(ref input, _repeated_trackEquippedIdList_codec);
            break;
          }
          case 66:
          case 64: {
            gridFightItemList_.AddEntriesFrom(ref input, _repeated_gridFightItemList_codec);
            break;
          }
          case 80: {
            Source = (global::EggLink.DanhengServer.Proto.GridFightEquipTrackSource) input.ReadEnum();
            break;
          }
          case 104: {
            TrackPriority = input.ReadUInt32();
            break;
          }
          case 112: {
            TrackRoleId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
