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

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

    static FormulaInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChFGb3JtdWxhSW5mby5wcm90bxoZRm9ybXVsYUJ1ZmZUeXBlSW5mby5wcm90",
            "byJqCgtGb3JtdWxhSW5mbxI0ChZmb3JtdWxhX2J1ZmZfdHlwZV9saXN0GAMg",
            "AygLMhQuRm9ybXVsYUJ1ZmZUeXBlSW5mbxISCgpmb3JtdWxhX2lkGA4gASgN",
            "EhEKCWlzX2V4cGFuZBgKIAEoCEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy",
            "LlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FormulaInfo), global::EggLink.DanhengServer.Proto.FormulaInfo.Parser, new[]{ "FormulaBuffTypeList", "FormulaId", "IsExpand" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public FormulaInfo(FormulaInfo other) : this() {
      formulaBuffTypeList_ = other.formulaBuffTypeList_.Clone();
      formulaId_ = other.formulaId_;
      isExpand_ = other.isExpand_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "formula_buff_type_list" field.</summary>
    public const int FormulaBuffTypeListFieldNumber = 3;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfo> _repeated_formulaBuffTypeList_codec
        = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfo> formulaBuffTypeList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.FormulaBuffTypeInfo> FormulaBuffTypeList {
      get { return formulaBuffTypeList_; }
    }

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

    /// <summary>Field number for the "is_expand" field.</summary>
    public const int IsExpandFieldNumber = 10;
    private bool isExpand_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool IsExpand {
      get { return isExpand_; }
      set {
        isExpand_ = value;
      }
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(FormulaInfo other) {
      if (other == null) {
        return;
      }
      formulaBuffTypeList_.Add(other.formulaBuffTypeList_);
      if (other.FormulaId != 0) {
        FormulaId = other.FormulaId;
      }
      if (other.IsExpand != false) {
        IsExpand = other.IsExpand;
      }
      _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 26: {
            formulaBuffTypeList_.AddEntriesFrom(input, _repeated_formulaBuffTypeList_codec);
            break;
          }
          case 80: {
            IsExpand = input.ReadBool();
            break;
          }
          case 112: {
            FormulaId = 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 26: {
            formulaBuffTypeList_.AddEntriesFrom(ref input, _repeated_formulaBuffTypeList_codec);
            break;
          }
          case 80: {
            IsExpand = input.ReadBool();
            break;
          }
          case 112: {
            FormulaId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
