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

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

    static TrainVisitorInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChZUcmFpblZpc2l0b3JJbmZvLnByb3RvGhhUcmFpblZpc2l0b3JTdGF0dXMu",
            "cHJvdG8ilwEKEFRyYWluVmlzaXRvckluZm8SEwoLRURISEdDUERLSUsYDCAD",
            "KA0SIQoZdG9hc3RfZmluaXNoX21haW5fbWlzc2lvbhgCIAEoCBISCgp2aXNp",
            "dG9yX2lkGAYgASgNEiMKBnN0YXR1cxgNIAEoDjITLlRyYWluVmlzaXRvclN0",
            "YXR1cxISCgptaXNzaW9uX2lkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT",
            "ZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.TrainVisitorStatusReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TrainVisitorInfo), global::EggLink.DanhengServer.Proto.TrainVisitorInfo.Parser, new[]{ "EDHHGCPDKIK", "ToastFinishMainMission", "VisitorId", "Status", "MissionId" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TrainVisitorInfo(TrainVisitorInfo other) : this() {
      eDHHGCPDKIK_ = other.eDHHGCPDKIK_.Clone();
      toastFinishMainMission_ = other.toastFinishMainMission_;
      visitorId_ = other.visitorId_;
      status_ = other.status_;
      missionId_ = other.missionId_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "EDHHGCPDKIK" field.</summary>
    public const int EDHHGCPDKIKFieldNumber = 12;
    private static readonly pb::FieldCodec<uint> _repeated_eDHHGCPDKIK_codec
        = pb::FieldCodec.ForUInt32(98);
    private readonly pbc::RepeatedField<uint> eDHHGCPDKIK_ = new pbc::RepeatedField<uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<uint> EDHHGCPDKIK {
      get { return eDHHGCPDKIK_; }
    }

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

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

    /// <summary>Field number for the "status" field.</summary>
    public const int StatusFieldNumber = 13;
    private global::EggLink.DanhengServer.Proto.TrainVisitorStatus status_ = global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.TrainVisitorStatus Status {
      get { return status_; }
      set {
        status_ = value;
      }
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TrainVisitorInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if(!eDHHGCPDKIK_.Equals(other.eDHHGCPDKIK_)) return false;
      if (ToastFinishMainMission != other.ToastFinishMainMission) return false;
      if (VisitorId != other.VisitorId) return false;
      if (Status != other.Status) return false;
      if (MissionId != other.MissionId) 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;
      hash ^= eDHHGCPDKIK_.GetHashCode();
      if (ToastFinishMainMission != false) hash ^= ToastFinishMainMission.GetHashCode();
      if (VisitorId != 0) hash ^= VisitorId.GetHashCode();
      if (Status != global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None) hash ^= Status.GetHashCode();
      if (MissionId != 0) hash ^= MissionId.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 (ToastFinishMainMission != false) {
        output.WriteRawTag(16);
        output.WriteBool(ToastFinishMainMission);
      }
      if (MissionId != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(MissionId);
      }
      if (VisitorId != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(VisitorId);
      }
      eDHHGCPDKIK_.WriteTo(output, _repeated_eDHHGCPDKIK_codec);
      if (Status != global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None) {
        output.WriteRawTag(104);
        output.WriteEnum((int) Status);
      }
      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 (ToastFinishMainMission != false) {
        output.WriteRawTag(16);
        output.WriteBool(ToastFinishMainMission);
      }
      if (MissionId != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(MissionId);
      }
      if (VisitorId != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(VisitorId);
      }
      eDHHGCPDKIK_.WriteTo(ref output, _repeated_eDHHGCPDKIK_codec);
      if (Status != global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None) {
        output.WriteRawTag(104);
        output.WriteEnum((int) Status);
      }
      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;
      size += eDHHGCPDKIK_.CalculateSize(_repeated_eDHHGCPDKIK_codec);
      if (ToastFinishMainMission != false) {
        size += 1 + 1;
      }
      if (VisitorId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(VisitorId);
      }
      if (Status != global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
      }
      if (MissionId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MissionId);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TrainVisitorInfo other) {
      if (other == null) {
        return;
      }
      eDHHGCPDKIK_.Add(other.eDHHGCPDKIK_);
      if (other.ToastFinishMainMission != false) {
        ToastFinishMainMission = other.ToastFinishMainMission;
      }
      if (other.VisitorId != 0) {
        VisitorId = other.VisitorId;
      }
      if (other.Status != global::EggLink.DanhengServer.Proto.TrainVisitorStatus.None) {
        Status = other.Status;
      }
      if (other.MissionId != 0) {
        MissionId = other.MissionId;
      }
      _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: {
            ToastFinishMainMission = input.ReadBool();
            break;
          }
          case 32: {
            MissionId = input.ReadUInt32();
            break;
          }
          case 48: {
            VisitorId = input.ReadUInt32();
            break;
          }
          case 98:
          case 96: {
            eDHHGCPDKIK_.AddEntriesFrom(input, _repeated_eDHHGCPDKIK_codec);
            break;
          }
          case 104: {
            Status = (global::EggLink.DanhengServer.Proto.TrainVisitorStatus) input.ReadEnum();
            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: {
            ToastFinishMainMission = input.ReadBool();
            break;
          }
          case 32: {
            MissionId = input.ReadUInt32();
            break;
          }
          case 48: {
            VisitorId = input.ReadUInt32();
            break;
          }
          case 98:
          case 96: {
            eDHHGCPDKIK_.AddEntriesFrom(ref input, _repeated_eDHHGCPDKIK_codec);
            break;
          }
          case 104: {
            Status = (global::EggLink.DanhengServer.Proto.TrainVisitorStatus) input.ReadEnum();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
