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

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

    static GridFightEquipCraftCsReqReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Ch5HcmlkRmlnaHRFcXVpcENyYWZ0Q3NSZXEucHJvdG8aH0dyaWRGaWdodEVx",
            "dWlwQ3JhZnRTb3VyY2UucHJvdG8iiQEKGEdyaWRGaWdodEVxdWlwQ3JhZnRD",
            "c1JlcRIWCg5jcmFmdF9lcXVpcF9pZBgOIAEoDRIQCghjcmFmdF9pZBgMIAEo",
            "DRIXCg9jcmFmdF9tYXRlcmlhbHMYDyADKA0SKgoGc291cmNlGAcgASgOMhou",
            "R3JpZEZpZ2h0RXF1aXBDcmFmdFNvdXJjZUIeqgIbRWdnTGluay5EYW5oZW5n",
            "U2VydmVyLlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GridFightEquipCraftSourceReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GridFightEquipCraftCsReq), global::EggLink.DanhengServer.Proto.GridFightEquipCraftCsReq.Parser, new[]{ "CraftEquipId", "CraftId", "CraftMaterials", "Source" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public GridFightEquipCraftCsReq(GridFightEquipCraftCsReq other) : this() {
      craftEquipId_ = other.craftEquipId_;
      craftId_ = other.craftId_;
      craftMaterials_ = other.craftMaterials_.Clone();
      source_ = other.source_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

    /// <summary>Field number for the "craft_id" field.</summary>
    public const int CraftIdFieldNumber = 12;
    private uint craftId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint CraftId {
      get { return craftId_; }
      set {
        craftId_ = value;
      }
    }

    /// <summary>Field number for the "craft_materials" field.</summary>
    public const int CraftMaterialsFieldNumber = 15;
    private static readonly pb::FieldCodec<uint> _repeated_craftMaterials_codec
        = pb::FieldCodec.ForUInt32(122);
    private readonly pbc::RepeatedField<uint> craftMaterials_ = new pbc::RepeatedField<uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<uint> CraftMaterials {
      get { return craftMaterials_; }
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(GridFightEquipCraftCsReq other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (CraftEquipId != other.CraftEquipId) return false;
      if (CraftId != other.CraftId) return false;
      if(!craftMaterials_.Equals(other.craftMaterials_)) return false;
      if (Source != other.Source) 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 (CraftEquipId != 0) hash ^= CraftEquipId.GetHashCode();
      if (CraftId != 0) hash ^= CraftId.GetHashCode();
      hash ^= craftMaterials_.GetHashCode();
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource.KGridFightEquipCraftSourceNone) hash ^= Source.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 (Source != global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource.KGridFightEquipCraftSourceNone) {
        output.WriteRawTag(56);
        output.WriteEnum((int) Source);
      }
      if (CraftId != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(CraftId);
      }
      if (CraftEquipId != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(CraftEquipId);
      }
      craftMaterials_.WriteTo(output, _repeated_craftMaterials_codec);
      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 (Source != global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource.KGridFightEquipCraftSourceNone) {
        output.WriteRawTag(56);
        output.WriteEnum((int) Source);
      }
      if (CraftId != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(CraftId);
      }
      if (CraftEquipId != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(CraftEquipId);
      }
      craftMaterials_.WriteTo(ref output, _repeated_craftMaterials_codec);
      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 (CraftEquipId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CraftEquipId);
      }
      if (CraftId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CraftId);
      }
      size += craftMaterials_.CalculateSize(_repeated_craftMaterials_codec);
      if (Source != global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource.KGridFightEquipCraftSourceNone) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(GridFightEquipCraftCsReq other) {
      if (other == null) {
        return;
      }
      if (other.CraftEquipId != 0) {
        CraftEquipId = other.CraftEquipId;
      }
      if (other.CraftId != 0) {
        CraftId = other.CraftId;
      }
      craftMaterials_.Add(other.craftMaterials_);
      if (other.Source != global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource.KGridFightEquipCraftSourceNone) {
        Source = other.Source;
      }
      _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 56: {
            Source = (global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource) input.ReadEnum();
            break;
          }
          case 96: {
            CraftId = input.ReadUInt32();
            break;
          }
          case 112: {
            CraftEquipId = input.ReadUInt32();
            break;
          }
          case 122:
          case 120: {
            craftMaterials_.AddEntriesFrom(input, _repeated_craftMaterials_codec);
            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 56: {
            Source = (global::EggLink.DanhengServer.Proto.GridFightEquipCraftSource) input.ReadEnum();
            break;
          }
          case 96: {
            CraftId = input.ReadUInt32();
            break;
          }
          case 112: {
            CraftEquipId = input.ReadUInt32();
            break;
          }
          case 122:
          case 120: {
            craftMaterials_.AddEntriesFrom(ref input, _repeated_craftMaterials_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
