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

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

    static UseItemCsReqReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChJVc2VJdGVtQ3NSZXEucHJvdG8aEEF2YXRhclR5cGUucHJvdG8iqgEKDFVz",
            "ZUl0ZW1Dc1JlcRIWCg51c2VfaXRlbV9jb3VudBgJIAEoDRIaChJvcHRpb25h",
            "bF9yZXdhcmRfaWQYCCABKA0SEwoLRkVMQ0lFTUtDR0YYCyABKAgSFgoOYmFz",
            "ZV9hdmF0YXJfaWQYDCABKA0SJAoPdXNlX2F2YXRhcl90eXBlGAIgASgOMgsu",
            "QXZhdGFyVHlwZRITCgt1c2VfaXRlbV9pZBgPIAEoDUIeqgIbRWdnTGluay5E",
            "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UseItemCsReq), global::EggLink.DanhengServer.Proto.UseItemCsReq.Parser, new[]{ "UseItemCount", "OptionalRewardId", "FELCIEMKCGF", "BaseAvatarId", "UseAvatarType", "UseItemId" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public UseItemCsReq(UseItemCsReq other) : this() {
      useItemCount_ = other.useItemCount_;
      optionalRewardId_ = other.optionalRewardId_;
      fELCIEMKCGF_ = other.fELCIEMKCGF_;
      baseAvatarId_ = other.baseAvatarId_;
      useAvatarType_ = other.useAvatarType_;
      useItemId_ = other.useItemId_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "use_item_count" field.</summary>
    public const int UseItemCountFieldNumber = 9;
    private uint useItemCount_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint UseItemCount {
      get { return useItemCount_; }
      set {
        useItemCount_ = value;
      }
    }

    /// <summary>Field number for the "optional_reward_id" field.</summary>
    public const int OptionalRewardIdFieldNumber = 8;
    private uint optionalRewardId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint OptionalRewardId {
      get { return optionalRewardId_; }
      set {
        optionalRewardId_ = value;
      }
    }

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

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

    /// <summary>Field number for the "use_avatar_type" field.</summary>
    public const int UseAvatarTypeFieldNumber = 2;
    private global::EggLink.DanhengServer.Proto.AvatarType useAvatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.AvatarType UseAvatarType {
      get { return useAvatarType_; }
      set {
        useAvatarType_ = value;
      }
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(UseItemCsReq other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (UseItemCount != other.UseItemCount) return false;
      if (OptionalRewardId != other.OptionalRewardId) return false;
      if (FELCIEMKCGF != other.FELCIEMKCGF) return false;
      if (BaseAvatarId != other.BaseAvatarId) return false;
      if (UseAvatarType != other.UseAvatarType) return false;
      if (UseItemId != other.UseItemId) 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 (UseItemCount != 0) hash ^= UseItemCount.GetHashCode();
      if (OptionalRewardId != 0) hash ^= OptionalRewardId.GetHashCode();
      if (FELCIEMKCGF != false) hash ^= FELCIEMKCGF.GetHashCode();
      if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode();
      if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= UseAvatarType.GetHashCode();
      if (UseItemId != 0) hash ^= UseItemId.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 (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
        output.WriteRawTag(16);
        output.WriteEnum((int) UseAvatarType);
      }
      if (OptionalRewardId != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(OptionalRewardId);
      }
      if (UseItemCount != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(UseItemCount);
      }
      if (FELCIEMKCGF != false) {
        output.WriteRawTag(88);
        output.WriteBool(FELCIEMKCGF);
      }
      if (BaseAvatarId != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(BaseAvatarId);
      }
      if (UseItemId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(UseItemId);
      }
      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 (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
        output.WriteRawTag(16);
        output.WriteEnum((int) UseAvatarType);
      }
      if (OptionalRewardId != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(OptionalRewardId);
      }
      if (UseItemCount != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(UseItemCount);
      }
      if (FELCIEMKCGF != false) {
        output.WriteRawTag(88);
        output.WriteBool(FELCIEMKCGF);
      }
      if (BaseAvatarId != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(BaseAvatarId);
      }
      if (UseItemId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(UseItemId);
      }
      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 (UseItemCount != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemCount);
      }
      if (OptionalRewardId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalRewardId);
      }
      if (FELCIEMKCGF != false) {
        size += 1 + 1;
      }
      if (BaseAvatarId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId);
      }
      if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UseAvatarType);
      }
      if (UseItemId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemId);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(UseItemCsReq other) {
      if (other == null) {
        return;
      }
      if (other.UseItemCount != 0) {
        UseItemCount = other.UseItemCount;
      }
      if (other.OptionalRewardId != 0) {
        OptionalRewardId = other.OptionalRewardId;
      }
      if (other.FELCIEMKCGF != false) {
        FELCIEMKCGF = other.FELCIEMKCGF;
      }
      if (other.BaseAvatarId != 0) {
        BaseAvatarId = other.BaseAvatarId;
      }
      if (other.UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
        UseAvatarType = other.UseAvatarType;
      }
      if (other.UseItemId != 0) {
        UseItemId = other.UseItemId;
      }
      _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 16: {
            UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
            break;
          }
          case 64: {
            OptionalRewardId = input.ReadUInt32();
            break;
          }
          case 72: {
            UseItemCount = input.ReadUInt32();
            break;
          }
          case 88: {
            FELCIEMKCGF = input.ReadBool();
            break;
          }
          case 96: {
            BaseAvatarId = input.ReadUInt32();
            break;
          }
          case 120: {
            UseItemId = 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 16: {
            UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
            break;
          }
          case 64: {
            OptionalRewardId = input.ReadUInt32();
            break;
          }
          case 72: {
            UseItemCount = input.ReadUInt32();
            break;
          }
          case 88: {
            FELCIEMKCGF = input.ReadBool();
            break;
          }
          case 96: {
            BaseAvatarId = input.ReadUInt32();
            break;
          }
          case 120: {
            UseItemId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
