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

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

    static WorkbenchEnhanceBuffFuncInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CiJXb3JrYmVuY2hFbmhhbmNlQnVmZkZ1bmNJbmZvLnByb3RvItEBChxXb3Jr",
            "YmVuY2hFbmhhbmNlQnVmZkZ1bmNJbmZvEg8KB21heF9udW0YDiABKA0SDwoH",
            "Y3VyX251bRgFIAEoDRJUChVidWZmX2VuaGFuY2VfY29zdF9tYXAYAiADKAsy",
            "NS5Xb3JrYmVuY2hFbmhhbmNlQnVmZkZ1bmNJbmZvLkJ1ZmZFbmhhbmNlQ29z",
            "dE1hcEVudHJ5GjkKF0J1ZmZFbmhhbmNlQ29zdE1hcEVudHJ5EgsKA2tleRgB",
            "IAEoDRINCgV2YWx1ZRgCIAEoDToCOAFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl",
            "cnZlci5Qcm90b2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.WorkbenchEnhanceBuffFuncInfo), global::EggLink.DanhengServer.Proto.WorkbenchEnhanceBuffFuncInfo.Parser, new[]{ "MaxNum", "CurNum", "BuffEnhanceCostMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public WorkbenchEnhanceBuffFuncInfo(WorkbenchEnhanceBuffFuncInfo other) : this() {
      maxNum_ = other.maxNum_;
      curNum_ = other.curNum_;
      buffEnhanceCostMap_ = other.buffEnhanceCostMap_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

    /// <summary>Field number for the "cur_num" field.</summary>
    public const int CurNumFieldNumber = 5;
    private uint curNum_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint CurNum {
      get { return curNum_; }
      set {
        curNum_ = value;
      }
    }

    /// <summary>Field number for the "buff_enhance_cost_map" field.</summary>
    public const int BuffEnhanceCostMapFieldNumber = 2;
    private static readonly pbc::MapField<uint, uint>.Codec _map_buffEnhanceCostMap_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 18);
    private readonly pbc::MapField<uint, uint> buffEnhanceCostMap_ = new pbc::MapField<uint, uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::MapField<uint, uint> BuffEnhanceCostMap {
      get { return buffEnhanceCostMap_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(WorkbenchEnhanceBuffFuncInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (MaxNum != other.MaxNum) return false;
      if (CurNum != other.CurNum) return false;
      if (!BuffEnhanceCostMap.Equals(other.BuffEnhanceCostMap)) 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 (MaxNum != 0) hash ^= MaxNum.GetHashCode();
      if (CurNum != 0) hash ^= CurNum.GetHashCode();
      hash ^= BuffEnhanceCostMap.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
      buffEnhanceCostMap_.WriteTo(output, _map_buffEnhanceCostMap_codec);
      if (CurNum != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(CurNum);
      }
      if (MaxNum != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(MaxNum);
      }
      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) {
      buffEnhanceCostMap_.WriteTo(ref output, _map_buffEnhanceCostMap_codec);
      if (CurNum != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(CurNum);
      }
      if (MaxNum != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(MaxNum);
      }
      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 (MaxNum != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxNum);
      }
      if (CurNum != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurNum);
      }
      size += buffEnhanceCostMap_.CalculateSize(_map_buffEnhanceCostMap_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(WorkbenchEnhanceBuffFuncInfo other) {
      if (other == null) {
        return;
      }
      if (other.MaxNum != 0) {
        MaxNum = other.MaxNum;
      }
      if (other.CurNum != 0) {
        CurNum = other.CurNum;
      }
      buffEnhanceCostMap_.MergeFrom(other.buffEnhanceCostMap_);
      _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 18: {
            buffEnhanceCostMap_.AddEntriesFrom(input, _map_buffEnhanceCostMap_codec);
            break;
          }
          case 40: {
            CurNum = input.ReadUInt32();
            break;
          }
          case 112: {
            MaxNum = 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 18: {
            buffEnhanceCostMap_.AddEntriesFrom(ref input, _map_buffEnhanceCostMap_codec);
            break;
          }
          case 40: {
            CurNum = input.ReadUInt32();
            break;
          }
          case 112: {
            MaxNum = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
