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

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

    static GridGameTraitInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChdHcmlkR2FtZVRyYWl0SW5mby5wcm90bxoeR3JpZEZpZ2h0VHJhaXRFZmZl",
            "Y3RJbmZvLnByb3RvIqcBChFHcmlkR2FtZVRyYWl0SW5mbxIQCgh0cmFpdF9p",
            "ZBgPIAEoDRI0ChF0cmFpdF9lZmZlY3RfbGlzdBgFIAMoCzIZLkdyaWRGaWdo",
            "dFRyYWl0RWZmZWN0SW5mbxIuCiZncmlkX2ZpZ2h0X3RyYWl0X21lbWJlcl91",
            "bmlxdWVfaWRfbGlzdBgMIAMoDRIaChJ0cmFpdF9lZmZlY3RfbGF5ZXIYASAB",
            "KA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GridGameTraitInfo), global::EggLink.DanhengServer.Proto.GridGameTraitInfo.Parser, new[]{ "TraitId", "TraitEffectList", "GridFightTraitMemberUniqueIdList", "TraitEffectLayer" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public GridGameTraitInfo(GridGameTraitInfo other) : this() {
      traitId_ = other.traitId_;
      traitEffectList_ = other.traitEffectList_.Clone();
      gridFightTraitMemberUniqueIdList_ = other.gridFightTraitMemberUniqueIdList_.Clone();
      traitEffectLayer_ = other.traitEffectLayer_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "trait_id" field.</summary>
    public const int TraitIdFieldNumber = 15;
    private uint traitId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint TraitId {
      get { return traitId_; }
      set {
        traitId_ = value;
      }
    }

    /// <summary>Field number for the "trait_effect_list" field.</summary>
    public const int TraitEffectListFieldNumber = 5;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfo> _repeated_traitEffectList_codec
        = pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfo> traitEffectList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridFightTraitEffectInfo> TraitEffectList {
      get { return traitEffectList_; }
    }

    /// <summary>Field number for the "grid_fight_trait_member_unique_id_list" field.</summary>
    public const int GridFightTraitMemberUniqueIdListFieldNumber = 12;
    private static readonly pb::FieldCodec<uint> _repeated_gridFightTraitMemberUniqueIdList_codec
        = pb::FieldCodec.ForUInt32(98);
    private readonly pbc::RepeatedField<uint> gridFightTraitMemberUniqueIdList_ = new pbc::RepeatedField<uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<uint> GridFightTraitMemberUniqueIdList {
      get { return gridFightTraitMemberUniqueIdList_; }
    }

    /// <summary>Field number for the "trait_effect_layer" field.</summary>
    public const int TraitEffectLayerFieldNumber = 1;
    private uint traitEffectLayer_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint TraitEffectLayer {
      get { return traitEffectLayer_; }
      set {
        traitEffectLayer_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(GridGameTraitInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (TraitId != other.TraitId) return false;
      if(!traitEffectList_.Equals(other.traitEffectList_)) return false;
      if(!gridFightTraitMemberUniqueIdList_.Equals(other.gridFightTraitMemberUniqueIdList_)) return false;
      if (TraitEffectLayer != other.TraitEffectLayer) 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 (TraitId != 0) hash ^= TraitId.GetHashCode();
      hash ^= traitEffectList_.GetHashCode();
      hash ^= gridFightTraitMemberUniqueIdList_.GetHashCode();
      if (TraitEffectLayer != 0) hash ^= TraitEffectLayer.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 (TraitEffectLayer != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(TraitEffectLayer);
      }
      traitEffectList_.WriteTo(output, _repeated_traitEffectList_codec);
      gridFightTraitMemberUniqueIdList_.WriteTo(output, _repeated_gridFightTraitMemberUniqueIdList_codec);
      if (TraitId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(TraitId);
      }
      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 (TraitEffectLayer != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(TraitEffectLayer);
      }
      traitEffectList_.WriteTo(ref output, _repeated_traitEffectList_codec);
      gridFightTraitMemberUniqueIdList_.WriteTo(ref output, _repeated_gridFightTraitMemberUniqueIdList_codec);
      if (TraitId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(TraitId);
      }
      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 (TraitId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TraitId);
      }
      size += traitEffectList_.CalculateSize(_repeated_traitEffectList_codec);
      size += gridFightTraitMemberUniqueIdList_.CalculateSize(_repeated_gridFightTraitMemberUniqueIdList_codec);
      if (TraitEffectLayer != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TraitEffectLayer);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(GridGameTraitInfo other) {
      if (other == null) {
        return;
      }
      if (other.TraitId != 0) {
        TraitId = other.TraitId;
      }
      traitEffectList_.Add(other.traitEffectList_);
      gridFightTraitMemberUniqueIdList_.Add(other.gridFightTraitMemberUniqueIdList_);
      if (other.TraitEffectLayer != 0) {
        TraitEffectLayer = other.TraitEffectLayer;
      }
      _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: {
            TraitEffectLayer = input.ReadUInt32();
            break;
          }
          case 42: {
            traitEffectList_.AddEntriesFrom(input, _repeated_traitEffectList_codec);
            break;
          }
          case 98:
          case 96: {
            gridFightTraitMemberUniqueIdList_.AddEntriesFrom(input, _repeated_gridFightTraitMemberUniqueIdList_codec);
            break;
          }
          case 120: {
            TraitId = 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: {
            TraitEffectLayer = input.ReadUInt32();
            break;
          }
          case 42: {
            traitEffectList_.AddEntriesFrom(ref input, _repeated_traitEffectList_codec);
            break;
          }
          case 98:
          case 96: {
            gridFightTraitMemberUniqueIdList_.AddEntriesFrom(ref input, _repeated_gridFightTraitMemberUniqueIdList_codec);
            break;
          }
          case 120: {
            TraitId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
