// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: star_tower_give_up.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 Proto {

  /// <summary>Holder for reflection information generated from star_tower_give_up.proto</summary>
  public static partial class StarTowerGiveUpReflection {

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

    static StarTowerGiveUpReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChhzdGFyX3Rvd2VyX2dpdmVfdXAucHJvdG8SBXByb3RvGhdwdWJsaWNfc3Rh",
            "cl90b3dlci5wcm90byLGAQoTU3RhclRvd2VyR2l2ZVVwUmVzcBIhCgZDaGFu",
            "Z2UYASABKAsyES5wcm90by5DaGFuZ2VJbmZvEigKBUJ1aWxkGAIgASgLMhku",
            "cHJvdG8uU3RhclRvd2VyQnVpbGRJbmZvEg0KBUZsb29yGAwgASgNEhQKDFBv",
            "dGVudGlhbENudBgNIAEoDRIRCglUb3RhbFRpbWUYDiABKA0SFAoMVG90YWxE",
            "YW1hZ2VzGA8gAygEEhQKC05leHRQYWNrYWdlGP8PIAEoDGIGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Proto.PublicStarTowerReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Proto.StarTowerGiveUpResp), global::Proto.StarTowerGiveUpResp.Parser, new[]{ "Change", "Build", "Floor", "PotentialCnt", "TotalTime", "TotalDamages", "NextPackage" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class StarTowerGiveUpResp : pb::IMessage<StarTowerGiveUpResp>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<StarTowerGiveUpResp> _parser = new pb::MessageParser<StarTowerGiveUpResp>(() => new StarTowerGiveUpResp());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<StarTowerGiveUpResp> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Proto.StarTowerGiveUpReflection.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 StarTowerGiveUpResp() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public StarTowerGiveUpResp(StarTowerGiveUpResp other) : this() {
      change_ = other.change_ != null ? other.change_.Clone() : null;
      build_ = other.build_ != null ? other.build_.Clone() : null;
      floor_ = other.floor_;
      potentialCnt_ = other.potentialCnt_;
      totalTime_ = other.totalTime_;
      totalDamages_ = other.totalDamages_.Clone();
      nextPackage_ = other.nextPackage_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "Change" field.</summary>
    public const int ChangeFieldNumber = 1;
    private global::Proto.ChangeInfo change_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Proto.ChangeInfo Change {
      get { return change_; }
      set {
        change_ = value;
      }
    }

    /// <summary>Field number for the "Build" field.</summary>
    public const int BuildFieldNumber = 2;
    private global::Proto.StarTowerBuildInfo build_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Proto.StarTowerBuildInfo Build {
      get { return build_; }
      set {
        build_ = value;
      }
    }

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

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

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

    /// <summary>Field number for the "TotalDamages" field.</summary>
    public const int TotalDamagesFieldNumber = 15;
    private static readonly pb::FieldCodec<ulong> _repeated_totalDamages_codec
        = pb::FieldCodec.ForUInt64(122);
    private readonly pbc::RepeatedField<ulong> totalDamages_ = new pbc::RepeatedField<ulong>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<ulong> TotalDamages {
      get { return totalDamages_; }
    }

    /// <summary>Field number for the "NextPackage" field.</summary>
    public const int NextPackageFieldNumber = 2047;
    private pb::ByteString nextPackage_ = pb::ByteString.Empty;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pb::ByteString NextPackage {
      get { return nextPackage_; }
      set {
        nextPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(StarTowerGiveUpResp other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(Change, other.Change)) return false;
      if (!object.Equals(Build, other.Build)) return false;
      if (Floor != other.Floor) return false;
      if (PotentialCnt != other.PotentialCnt) return false;
      if (TotalTime != other.TotalTime) return false;
      if(!totalDamages_.Equals(other.totalDamages_)) return false;
      if (NextPackage != other.NextPackage) 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 (change_ != null) hash ^= Change.GetHashCode();
      if (build_ != null) hash ^= Build.GetHashCode();
      if (Floor != 0) hash ^= Floor.GetHashCode();
      if (PotentialCnt != 0) hash ^= PotentialCnt.GetHashCode();
      if (TotalTime != 0) hash ^= TotalTime.GetHashCode();
      hash ^= totalDamages_.GetHashCode();
      if (NextPackage.Length != 0) hash ^= NextPackage.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 (change_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(Change);
      }
      if (build_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(Build);
      }
      if (Floor != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(Floor);
      }
      if (PotentialCnt != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(PotentialCnt);
      }
      if (TotalTime != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(TotalTime);
      }
      totalDamages_.WriteTo(output, _repeated_totalDamages_codec);
      if (NextPackage.Length != 0) {
        output.WriteRawTag(250, 127);
        output.WriteBytes(NextPackage);
      }
      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 (change_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(Change);
      }
      if (build_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(Build);
      }
      if (Floor != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(Floor);
      }
      if (PotentialCnt != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(PotentialCnt);
      }
      if (TotalTime != 0) {
        output.WriteRawTag(112);
        output.WriteUInt32(TotalTime);
      }
      totalDamages_.WriteTo(ref output, _repeated_totalDamages_codec);
      if (NextPackage.Length != 0) {
        output.WriteRawTag(250, 127);
        output.WriteBytes(NextPackage);
      }
      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 (change_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Change);
      }
      if (build_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Build);
      }
      if (Floor != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Floor);
      }
      if (PotentialCnt != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PotentialCnt);
      }
      if (TotalTime != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalTime);
      }
      size += totalDamages_.CalculateSize(_repeated_totalDamages_codec);
      if (NextPackage.Length != 0) {
        size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(StarTowerGiveUpResp other) {
      if (other == null) {
        return;
      }
      if (other.change_ != null) {
        if (change_ == null) {
          Change = new global::Proto.ChangeInfo();
        }
        Change.MergeFrom(other.Change);
      }
      if (other.build_ != null) {
        if (build_ == null) {
          Build = new global::Proto.StarTowerBuildInfo();
        }
        Build.MergeFrom(other.Build);
      }
      if (other.Floor != 0) {
        Floor = other.Floor;
      }
      if (other.PotentialCnt != 0) {
        PotentialCnt = other.PotentialCnt;
      }
      if (other.TotalTime != 0) {
        TotalTime = other.TotalTime;
      }
      totalDamages_.Add(other.totalDamages_);
      if (other.NextPackage.Length != 0) {
        NextPackage = other.NextPackage;
      }
      _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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            if (change_ == null) {
              Change = new global::Proto.ChangeInfo();
            }
            input.ReadMessage(Change);
            break;
          }
          case 18: {
            if (build_ == null) {
              Build = new global::Proto.StarTowerBuildInfo();
            }
            input.ReadMessage(Build);
            break;
          }
          case 96: {
            Floor = input.ReadUInt32();
            break;
          }
          case 104: {
            PotentialCnt = input.ReadUInt32();
            break;
          }
          case 112: {
            TotalTime = input.ReadUInt32();
            break;
          }
          case 122:
          case 120: {
            totalDamages_.AddEntriesFrom(input, _repeated_totalDamages_codec);
            break;
          }
          case 16378: {
            NextPackage = input.ReadBytes();
            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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            if (change_ == null) {
              Change = new global::Proto.ChangeInfo();
            }
            input.ReadMessage(Change);
            break;
          }
          case 18: {
            if (build_ == null) {
              Build = new global::Proto.StarTowerBuildInfo();
            }
            input.ReadMessage(Build);
            break;
          }
          case 96: {
            Floor = input.ReadUInt32();
            break;
          }
          case 104: {
            PotentialCnt = input.ReadUInt32();
            break;
          }
          case 112: {
            TotalTime = input.ReadUInt32();
            break;
          }
          case 122:
          case 120: {
            totalDamages_.AddEntriesFrom(ref input, _repeated_totalDamages_codec);
            break;
          }
          case 16378: {
            NextPackage = input.ReadBytes();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
