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

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

    static BuffInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Cg5CdWZmSW5mby5wcm90byKEAgoIQnVmZkluZm8SEwoLYWRkX3RpbWVfbXMY",
            "CSABKAQSFgoOYmFzZV9hdmF0YXJfaWQYCCABKA0SDwoHYnVmZl9pZBgDIAEo",
            "DRINCgVsZXZlbBgGIAEoDRI0Cg5keW5hbWljX3ZhbHVlcxgBIAMoCzIcLkJ1",
            "ZmZJbmZvLkR5bmFtaWNWYWx1ZXNFbnRyeRIRCglsaWZlX3RpbWUYAiABKAIS",
            "DQoFY291bnQYBSABKA0SHQoVYnVmZl9zdW1tb25fZW50aXR5X2lkGA8gASgN",
            "GjQKEkR5bmFtaWNWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY",
            "AiABKAI6AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy",
            "b3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BuffInfo), global::EggLink.DanhengServer.Proto.BuffInfo.Parser, new[]{ "AddTimeMs", "BaseAvatarId", "BuffId", "Level", "DynamicValues", "LifeTime", "Count", "BuffSummonEntityId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public BuffInfo(BuffInfo other) : this() {
      addTimeMs_ = other.addTimeMs_;
      baseAvatarId_ = other.baseAvatarId_;
      buffId_ = other.buffId_;
      level_ = other.level_;
      dynamicValues_ = other.dynamicValues_.Clone();
      lifeTime_ = other.lifeTime_;
      count_ = other.count_;
      buffSummonEntityId_ = other.buffSummonEntityId_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "add_time_ms" field.</summary>
    public const int AddTimeMsFieldNumber = 9;
    private ulong addTimeMs_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public ulong AddTimeMs {
      get { return addTimeMs_; }
      set {
        addTimeMs_ = value;
      }
    }

    /// <summary>Field number for the "base_avatar_id" field.</summary>
    public const int BaseAvatarIdFieldNumber = 8;
    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 "buff_id" field.</summary>
    public const int BuffIdFieldNumber = 3;
    private uint buffId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint BuffId {
      get { return buffId_; }
      set {
        buffId_ = value;
      }
    }

    /// <summary>Field number for the "level" field.</summary>
    public const int LevelFieldNumber = 6;
    private uint level_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint Level {
      get { return level_; }
      set {
        level_ = value;
      }
    }

    /// <summary>Field number for the "dynamic_values" field.</summary>
    public const int DynamicValuesFieldNumber = 1;
    private static readonly pbc::MapField<string, float>.Codec _map_dynamicValues_codec
        = new pbc::MapField<string, float>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 10);
    private readonly pbc::MapField<string, float> dynamicValues_ = new pbc::MapField<string, float>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::MapField<string, float> DynamicValues {
      get { return dynamicValues_; }
    }

    /// <summary>Field number for the "life_time" field.</summary>
    public const int LifeTimeFieldNumber = 2;
    private float lifeTime_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public float LifeTime {
      get { return lifeTime_; }
      set {
        lifeTime_ = value;
      }
    }

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

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(BuffInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (AddTimeMs != other.AddTimeMs) return false;
      if (BaseAvatarId != other.BaseAvatarId) return false;
      if (BuffId != other.BuffId) return false;
      if (Level != other.Level) return false;
      if (!DynamicValues.Equals(other.DynamicValues)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LifeTime, other.LifeTime)) return false;
      if (Count != other.Count) return false;
      if (BuffSummonEntityId != other.BuffSummonEntityId) 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 (AddTimeMs != 0UL) hash ^= AddTimeMs.GetHashCode();
      if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode();
      if (BuffId != 0) hash ^= BuffId.GetHashCode();
      if (Level != 0) hash ^= Level.GetHashCode();
      hash ^= DynamicValues.GetHashCode();
      if (LifeTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LifeTime);
      if (Count != 0) hash ^= Count.GetHashCode();
      if (BuffSummonEntityId != 0) hash ^= BuffSummonEntityId.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
      dynamicValues_.WriteTo(output, _map_dynamicValues_codec);
      if (LifeTime != 0F) {
        output.WriteRawTag(21);
        output.WriteFloat(LifeTime);
      }
      if (BuffId != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(BuffId);
      }
      if (Count != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(Count);
      }
      if (Level != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(Level);
      }
      if (BaseAvatarId != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(BaseAvatarId);
      }
      if (AddTimeMs != 0UL) {
        output.WriteRawTag(72);
        output.WriteUInt64(AddTimeMs);
      }
      if (BuffSummonEntityId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(BuffSummonEntityId);
      }
      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) {
      dynamicValues_.WriteTo(ref output, _map_dynamicValues_codec);
      if (LifeTime != 0F) {
        output.WriteRawTag(21);
        output.WriteFloat(LifeTime);
      }
      if (BuffId != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(BuffId);
      }
      if (Count != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(Count);
      }
      if (Level != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(Level);
      }
      if (BaseAvatarId != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(BaseAvatarId);
      }
      if (AddTimeMs != 0UL) {
        output.WriteRawTag(72);
        output.WriteUInt64(AddTimeMs);
      }
      if (BuffSummonEntityId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(BuffSummonEntityId);
      }
      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 (AddTimeMs != 0UL) {
        size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AddTimeMs);
      }
      if (BaseAvatarId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId);
      }
      if (BuffId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId);
      }
      if (Level != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level);
      }
      size += dynamicValues_.CalculateSize(_map_dynamicValues_codec);
      if (LifeTime != 0F) {
        size += 1 + 4;
      }
      if (Count != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count);
      }
      if (BuffSummonEntityId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffSummonEntityId);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(BuffInfo other) {
      if (other == null) {
        return;
      }
      if (other.AddTimeMs != 0UL) {
        AddTimeMs = other.AddTimeMs;
      }
      if (other.BaseAvatarId != 0) {
        BaseAvatarId = other.BaseAvatarId;
      }
      if (other.BuffId != 0) {
        BuffId = other.BuffId;
      }
      if (other.Level != 0) {
        Level = other.Level;
      }
      dynamicValues_.MergeFrom(other.dynamicValues_);
      if (other.LifeTime != 0F) {
        LifeTime = other.LifeTime;
      }
      if (other.Count != 0) {
        Count = other.Count;
      }
      if (other.BuffSummonEntityId != 0) {
        BuffSummonEntityId = other.BuffSummonEntityId;
      }
      _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 10: {
            dynamicValues_.AddEntriesFrom(input, _map_dynamicValues_codec);
            break;
          }
          case 21: {
            LifeTime = input.ReadFloat();
            break;
          }
          case 24: {
            BuffId = input.ReadUInt32();
            break;
          }
          case 40: {
            Count = input.ReadUInt32();
            break;
          }
          case 48: {
            Level = input.ReadUInt32();
            break;
          }
          case 64: {
            BaseAvatarId = input.ReadUInt32();
            break;
          }
          case 72: {
            AddTimeMs = input.ReadUInt64();
            break;
          }
          case 120: {
            BuffSummonEntityId = 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 10: {
            dynamicValues_.AddEntriesFrom(ref input, _map_dynamicValues_codec);
            break;
          }
          case 21: {
            LifeTime = input.ReadFloat();
            break;
          }
          case 24: {
            BuffId = input.ReadUInt32();
            break;
          }
          case 40: {
            Count = input.ReadUInt32();
            break;
          }
          case 48: {
            Level = input.ReadUInt32();
            break;
          }
          case 64: {
            BaseAvatarId = input.ReadUInt32();
            break;
          }
          case 72: {
            AddTimeMs = input.ReadUInt64();
            break;
          }
          case 120: {
            BuffSummonEntityId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
