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

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

    static RechargeGiftInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChZSZWNoYXJnZUdpZnRJbmZvLnByb3RvGhZSZWNoYXJnZUdpZnREYXRhLnBy",
            "b3RvIn4KEFJlY2hhcmdlR2lmdEluZm8SEAoIZW5kX3RpbWUYAiABKAMSEQoJ",
            "Z2lmdF90eXBlGA0gASgNEhoKEmZlYXR1cmVfYmVnaW5fdGltZRgGIAEoAxIp",
            "Cg5naWZ0X2RhdGFfbGlzdBgMIAMoCzIRLlJlY2hhcmdlR2lmdERhdGFCHqoC",
            "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RechargeGiftDataReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RechargeGiftInfo), global::EggLink.DanhengServer.Proto.RechargeGiftInfo.Parser, new[]{ "EndTime", "GiftType", "FeatureBeginTime", "GiftDataList" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RechargeGiftInfo(RechargeGiftInfo other) : this() {
      endTime_ = other.endTime_;
      giftType_ = other.giftType_;
      featureBeginTime_ = other.featureBeginTime_;
      giftDataList_ = other.giftDataList_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "end_time" field.</summary>
    public const int EndTimeFieldNumber = 2;
    private long endTime_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public long EndTime {
      get { return endTime_; }
      set {
        endTime_ = value;
      }
    }

    /// <summary>Field number for the "gift_type" field.</summary>
    public const int GiftTypeFieldNumber = 13;
    private uint giftType_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint GiftType {
      get { return giftType_; }
      set {
        giftType_ = value;
      }
    }

    /// <summary>Field number for the "feature_begin_time" field.</summary>
    public const int FeatureBeginTimeFieldNumber = 6;
    private long featureBeginTime_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public long FeatureBeginTime {
      get { return featureBeginTime_; }
      set {
        featureBeginTime_ = value;
      }
    }

    /// <summary>Field number for the "gift_data_list" field.</summary>
    public const int GiftDataListFieldNumber = 12;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RechargeGiftData> _repeated_giftDataList_codec
        = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.RechargeGiftData.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RechargeGiftData> giftDataList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RechargeGiftData>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RechargeGiftData> GiftDataList {
      get { return giftDataList_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RechargeGiftInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (EndTime != other.EndTime) return false;
      if (GiftType != other.GiftType) return false;
      if (FeatureBeginTime != other.FeatureBeginTime) return false;
      if(!giftDataList_.Equals(other.giftDataList_)) 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 (EndTime != 0L) hash ^= EndTime.GetHashCode();
      if (GiftType != 0) hash ^= GiftType.GetHashCode();
      if (FeatureBeginTime != 0L) hash ^= FeatureBeginTime.GetHashCode();
      hash ^= giftDataList_.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 (EndTime != 0L) {
        output.WriteRawTag(16);
        output.WriteInt64(EndTime);
      }
      if (FeatureBeginTime != 0L) {
        output.WriteRawTag(48);
        output.WriteInt64(FeatureBeginTime);
      }
      giftDataList_.WriteTo(output, _repeated_giftDataList_codec);
      if (GiftType != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(GiftType);
      }
      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 (EndTime != 0L) {
        output.WriteRawTag(16);
        output.WriteInt64(EndTime);
      }
      if (FeatureBeginTime != 0L) {
        output.WriteRawTag(48);
        output.WriteInt64(FeatureBeginTime);
      }
      giftDataList_.WriteTo(ref output, _repeated_giftDataList_codec);
      if (GiftType != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(GiftType);
      }
      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 (EndTime != 0L) {
        size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
      }
      if (GiftType != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GiftType);
      }
      if (FeatureBeginTime != 0L) {
        size += 1 + pb::CodedOutputStream.ComputeInt64Size(FeatureBeginTime);
      }
      size += giftDataList_.CalculateSize(_repeated_giftDataList_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RechargeGiftInfo other) {
      if (other == null) {
        return;
      }
      if (other.EndTime != 0L) {
        EndTime = other.EndTime;
      }
      if (other.GiftType != 0) {
        GiftType = other.GiftType;
      }
      if (other.FeatureBeginTime != 0L) {
        FeatureBeginTime = other.FeatureBeginTime;
      }
      giftDataList_.Add(other.giftDataList_);
      _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: {
            EndTime = input.ReadInt64();
            break;
          }
          case 48: {
            FeatureBeginTime = input.ReadInt64();
            break;
          }
          case 98: {
            giftDataList_.AddEntriesFrom(input, _repeated_giftDataList_codec);
            break;
          }
          case 104: {
            GiftType = 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: {
            EndTime = input.ReadInt64();
            break;
          }
          case 48: {
            FeatureBeginTime = input.ReadInt64();
            break;
          }
          case 98: {
            giftDataList_.AddEntriesFrom(ref input, _repeated_giftDataList_codec);
            break;
          }
          case 104: {
            GiftType = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
