123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: central_control_message.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #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 Message {
- /// <summary>Holder for reflection information generated from central_control_message.proto</summary>
- public static partial class CentralControlMessageReflection {
- #region Descriptor
- /// <summary>File descriptor for central_control_message.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static CentralControlMessageReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Ch1jZW50cmFsX2NvbnRyb2xfbWVzc2FnZS5wcm90bxIHbWVzc2FnZRoSbWVz",
- "c2FnZV9iYXNlLnByb3RvIq0BCg5FbnRyYW5jZV9zdGF0dRIOCgZwYXVzZWQY",
- "ASACKAgSLgoPcGFya3NwYWNlX3N0YXR1GAIgASgOMhUubWVzc2FnZS5Nb2R1",
- "bGVfc3RhdHUSLAoNbWVhc3VyZV9zdGF0dRgDIAEoDjIVLm1lc3NhZ2UuTW9k",
- "dWxlX3N0YXR1Ei0KDmRpc3BhdGNoX3N0YXR1GAQgASgOMhUubWVzc2FnZS5N",
- "b2R1bGVfc3RhdHUiswEKHENlbnRyYWxfY29udHJvbGxlcl9zdGF0dV9tc2cS",
- "JQoJYmFzZV9pbmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SNgoVZW50",
- "cmFuY2Vfc3RhdHVfdmVjdG9yGAIgAygLMhcubWVzc2FnZS5FbnRyYW5jZV9z",
- "dGF0dRI0ChNleHBvcnRfc3RhdHVfdmVjdG9yGAMgAygLMhcubWVzc2FnZS5F",
- "bnRyYW5jZV9zdGF0dSKYAQodRW50cmFuY2VfbWFudWFsX29wZXJhdGlvbl9t",
- "c2cSJQoJYmFzZV9pbmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SEwoL",
- "dGVybWluYWxfaWQYAiACKAUSKwoMcHJvY2Vzc190eXBlGAMgAigOMhUubWVz",
- "c2FnZS5Qcm9jZXNzX3R5cGUSDgoGcGF1c2VkGAQgAigIIrQBChxQcm9jZXNz",
- "X21hbnVhbF9vcGVyYXRpb25fbXNnEiUKCWJhc2VfaW5mbxgBIAIoCzISLm1l",
- "c3NhZ2UuQmFzZV9pbmZvEg8KB2xpY2Vuc2UYAiACKAkSJQoJc3RlcF90eXBl",
- "GAMgAigOMhIubWVzc2FnZS5TdGVwX3R5cGUSNQoMb3BlcmF0ZV90eXBlGAQg",
- "AigOMh8ubWVzc2FnZS5Qcm9jZXNzX29wZXJhdGlvbl90eXBlKlMKFlByb2Nl",
- "c3Nfb3BlcmF0aW9uX3R5cGUSEgoOZU1hbnVhbF9jYW5jZWwQABIRCg1lTWFu",
- "dWFsX3JldHJ5EAESEgoOZU1hbnVhbF9pZ25vcmUQAio9CgxNb2R1bGVfc3Rh",
- "dHUSDgoKZUNvbm5lY3RlZBAAEhEKDWVEaXNjb25uZWN0ZWQQARIKCgZlRmF1",
- "bHQQAg=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Message.MessageBaseReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Message.Process_operation_type), typeof(global::Message.Module_statu), }, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Message.Entrance_statu), global::Message.Entrance_statu.Parser, new[]{ "Paused", "ParkspaceStatu", "MeasureStatu", "DispatchStatu" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Message.Central_controller_statu_msg), global::Message.Central_controller_statu_msg.Parser, new[]{ "BaseInfo", "EntranceStatuVector", "ExportStatuVector" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Message.Entrance_manual_operation_msg), global::Message.Entrance_manual_operation_msg.Parser, new[]{ "BaseInfo", "TerminalId", "ProcessType", "Paused" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Message.Process_manual_operation_msg), global::Message.Process_manual_operation_msg.Parser, new[]{ "BaseInfo", "License", "StepType", "OperateType" }, null, null, null, null)
- }));
- }
- #endregion
- }
- #region Enums
- /// <summary>
- ///针对流程的手动操作类型
- /// </summary>
- public enum Process_operation_type {
- /// <summary>
- ///取消流程
- /// </summary>
- [pbr::OriginalName("eManual_cancel")] EManualCancel = 0,
- /// <summary>
- ///重试
- /// </summary>
- [pbr::OriginalName("eManual_retry")] EManualRetry = 1,
- /// <summary>
- ///忽略
- /// </summary>
- [pbr::OriginalName("eManual_ignore")] EManualIgnore = 2,
- }
- public enum Module_statu {
- /// <summary>
- ///连接
- /// </summary>
- [pbr::OriginalName("eConnected")] EConnected = 0,
- /// <summary>
- ///连接丢失
- /// </summary>
- [pbr::OriginalName("eDisconnected")] EDisconnected = 1,
- /// <summary>
- ///故障
- /// </summary>
- [pbr::OriginalName("eFault")] EFault = 2,
- }
- #endregion
- #region Messages
- /// <summary>
- ///出入口状态
- /// </summary>
- public sealed partial class Entrance_statu : pb::IMessage<Entrance_statu> {
- private static readonly pb::MessageParser<Entrance_statu> _parser = new pb::MessageParser<Entrance_statu>(() => new Entrance_statu());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Entrance_statu> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.CentralControlMessageReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_statu() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_statu(Entrance_statu other) : this() {
- _hasBits0 = other._hasBits0;
- paused_ = other.paused_;
- parkspaceStatu_ = other.parkspaceStatu_;
- measureStatu_ = other.measureStatu_;
- dispatchStatu_ = other.dispatchStatu_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_statu Clone() {
- return new Entrance_statu(this);
- }
- /// <summary>Field number for the "paused" field.</summary>
- public const int PausedFieldNumber = 1;
- private readonly static bool PausedDefaultValue = false;
- private bool paused_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Paused {
- get { if ((_hasBits0 & 1) != 0) { return paused_; } else { return PausedDefaultValue; } }
- set {
- _hasBits0 |= 1;
- paused_ = value;
- }
- }
- /// <summary>Gets whether the "paused" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasPaused {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "paused" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearPaused() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "parkspace_statu" field.</summary>
- public const int ParkspaceStatuFieldNumber = 2;
- private readonly static global::Message.Module_statu ParkspaceStatuDefaultValue = global::Message.Module_statu.EConnected;
- private global::Message.Module_statu parkspaceStatu_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Module_statu ParkspaceStatu {
- get { if ((_hasBits0 & 2) != 0) { return parkspaceStatu_; } else { return ParkspaceStatuDefaultValue; } }
- set {
- _hasBits0 |= 2;
- parkspaceStatu_ = value;
- }
- }
- /// <summary>Gets whether the "parkspace_statu" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasParkspaceStatu {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "parkspace_statu" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearParkspaceStatu() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "measure_statu" field.</summary>
- public const int MeasureStatuFieldNumber = 3;
- private readonly static global::Message.Module_statu MeasureStatuDefaultValue = global::Message.Module_statu.EConnected;
- private global::Message.Module_statu measureStatu_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Module_statu MeasureStatu {
- get { if ((_hasBits0 & 4) != 0) { return measureStatu_; } else { return MeasureStatuDefaultValue; } }
- set {
- _hasBits0 |= 4;
- measureStatu_ = value;
- }
- }
- /// <summary>Gets whether the "measure_statu" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMeasureStatu {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "measure_statu" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMeasureStatu() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "dispatch_statu" field.</summary>
- public const int DispatchStatuFieldNumber = 4;
- private readonly static global::Message.Module_statu DispatchStatuDefaultValue = global::Message.Module_statu.EConnected;
- private global::Message.Module_statu dispatchStatu_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Module_statu DispatchStatu {
- get { if ((_hasBits0 & 8) != 0) { return dispatchStatu_; } else { return DispatchStatuDefaultValue; } }
- set {
- _hasBits0 |= 8;
- dispatchStatu_ = value;
- }
- }
- /// <summary>Gets whether the "dispatch_statu" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDispatchStatu {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "dispatch_statu" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDispatchStatu() {
- _hasBits0 &= ~8;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Entrance_statu);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Entrance_statu other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Paused != other.Paused) return false;
- if (ParkspaceStatu != other.ParkspaceStatu) return false;
- if (MeasureStatu != other.MeasureStatu) return false;
- if (DispatchStatu != other.DispatchStatu) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasPaused) hash ^= Paused.GetHashCode();
- if (HasParkspaceStatu) hash ^= ParkspaceStatu.GetHashCode();
- if (HasMeasureStatu) hash ^= MeasureStatu.GetHashCode();
- if (HasDispatchStatu) hash ^= DispatchStatu.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasPaused) {
- output.WriteRawTag(8);
- output.WriteBool(Paused);
- }
- if (HasParkspaceStatu) {
- output.WriteRawTag(16);
- output.WriteEnum((int) ParkspaceStatu);
- }
- if (HasMeasureStatu) {
- output.WriteRawTag(24);
- output.WriteEnum((int) MeasureStatu);
- }
- if (HasDispatchStatu) {
- output.WriteRawTag(32);
- output.WriteEnum((int) DispatchStatu);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasPaused) {
- size += 1 + 1;
- }
- if (HasParkspaceStatu) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ParkspaceStatu);
- }
- if (HasMeasureStatu) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MeasureStatu);
- }
- if (HasDispatchStatu) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DispatchStatu);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Entrance_statu other) {
- if (other == null) {
- return;
- }
- if (other.HasPaused) {
- Paused = other.Paused;
- }
- if (other.HasParkspaceStatu) {
- ParkspaceStatu = other.ParkspaceStatu;
- }
- if (other.HasMeasureStatu) {
- MeasureStatu = other.MeasureStatu;
- }
- if (other.HasDispatchStatu) {
- DispatchStatu = other.DispatchStatu;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Paused = input.ReadBool();
- break;
- }
- case 16: {
- ParkspaceStatu = (global::Message.Module_statu) input.ReadEnum();
- break;
- }
- case 24: {
- MeasureStatu = (global::Message.Module_statu) input.ReadEnum();
- break;
- }
- case 32: {
- DispatchStatu = (global::Message.Module_statu) input.ReadEnum();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- ///中控状态消息
- /// </summary>
- public sealed partial class Central_controller_statu_msg : pb::IMessage<Central_controller_statu_msg> {
- private static readonly pb::MessageParser<Central_controller_statu_msg> _parser = new pb::MessageParser<Central_controller_statu_msg>(() => new Central_controller_statu_msg());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Central_controller_statu_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.CentralControlMessageReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Central_controller_statu_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Central_controller_statu_msg(Central_controller_statu_msg other) : this() {
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- entranceStatuVector_ = other.entranceStatuVector_.Clone();
- exportStatuVector_ = other.exportStatuVector_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Central_controller_statu_msg Clone() {
- return new Central_controller_statu_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- /// <summary>
- ///消息类型
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "entrance_statu_vector" field.</summary>
- public const int EntranceStatuVectorFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Message.Entrance_statu> _repeated_entranceStatuVector_codec
- = pb::FieldCodec.ForMessage(18, global::Message.Entrance_statu.Parser);
- private readonly pbc::RepeatedField<global::Message.Entrance_statu> entranceStatuVector_ = new pbc::RepeatedField<global::Message.Entrance_statu>();
- /// <summary>
- ///入口状态(关闭或者开放)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Message.Entrance_statu> EntranceStatuVector {
- get { return entranceStatuVector_; }
- }
- /// <summary>Field number for the "export_statu_vector" field.</summary>
- public const int ExportStatuVectorFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Message.Entrance_statu> _repeated_exportStatuVector_codec
- = pb::FieldCodec.ForMessage(26, global::Message.Entrance_statu.Parser);
- private readonly pbc::RepeatedField<global::Message.Entrance_statu> exportStatuVector_ = new pbc::RepeatedField<global::Message.Entrance_statu>();
- /// <summary>
- ///出口状态
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Message.Entrance_statu> ExportStatuVector {
- get { return exportStatuVector_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Central_controller_statu_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Central_controller_statu_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if(!entranceStatuVector_.Equals(other.entranceStatuVector_)) return false;
- if(!exportStatuVector_.Equals(other.exportStatuVector_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- hash ^= entranceStatuVector_.GetHashCode();
- hash ^= exportStatuVector_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- entranceStatuVector_.WriteTo(output, _repeated_entranceStatuVector_codec);
- exportStatuVector_.WriteTo(output, _repeated_exportStatuVector_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- size += entranceStatuVector_.CalculateSize(_repeated_entranceStatuVector_codec);
- size += exportStatuVector_.CalculateSize(_repeated_exportStatuVector_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Central_controller_statu_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- entranceStatuVector_.Add(other.entranceStatuVector_);
- exportStatuVector_.Add(other.exportStatuVector_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 18: {
- entranceStatuVector_.AddEntriesFrom(input, _repeated_entranceStatuVector_codec);
- break;
- }
- case 26: {
- exportStatuVector_.AddEntriesFrom(input, _repeated_exportStatuVector_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- ///出入口手动急停/启动消息
- /// </summary>
- public sealed partial class Entrance_manual_operation_msg : pb::IMessage<Entrance_manual_operation_msg> {
- private static readonly pb::MessageParser<Entrance_manual_operation_msg> _parser = new pb::MessageParser<Entrance_manual_operation_msg>(() => new Entrance_manual_operation_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Entrance_manual_operation_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.CentralControlMessageReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_manual_operation_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_manual_operation_msg(Entrance_manual_operation_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- terminalId_ = other.terminalId_;
- processType_ = other.processType_;
- paused_ = other.paused_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Entrance_manual_operation_msg Clone() {
- return new Entrance_manual_operation_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "terminal_id" field.</summary>
- public const int TerminalIdFieldNumber = 2;
- private readonly static int TerminalIdDefaultValue = 0;
- private int terminalId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int TerminalId {
- get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
- set {
- _hasBits0 |= 1;
- terminalId_ = value;
- }
- }
- /// <summary>Gets whether the "terminal_id" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasTerminalId {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "terminal_id" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearTerminalId() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "process_type" field.</summary>
- public const int ProcessTypeFieldNumber = 3;
- private readonly static global::Message.Process_type ProcessTypeDefaultValue = global::Message.Process_type.EStoring;
- private global::Message.Process_type processType_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Process_type ProcessType {
- get { if ((_hasBits0 & 2) != 0) { return processType_; } else { return ProcessTypeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- processType_ = value;
- }
- }
- /// <summary>Gets whether the "process_type" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasProcessType {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "process_type" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearProcessType() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "paused" field.</summary>
- public const int PausedFieldNumber = 4;
- private readonly static bool PausedDefaultValue = false;
- private bool paused_;
- /// <summary>
- ///是否急停
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Paused {
- get { if ((_hasBits0 & 4) != 0) { return paused_; } else { return PausedDefaultValue; } }
- set {
- _hasBits0 |= 4;
- paused_ = value;
- }
- }
- /// <summary>Gets whether the "paused" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasPaused {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "paused" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearPaused() {
- _hasBits0 &= ~4;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Entrance_manual_operation_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Entrance_manual_operation_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (TerminalId != other.TerminalId) return false;
- if (ProcessType != other.ProcessType) return false;
- if (Paused != other.Paused) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasTerminalId) hash ^= TerminalId.GetHashCode();
- if (HasProcessType) hash ^= ProcessType.GetHashCode();
- if (HasPaused) hash ^= Paused.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasTerminalId) {
- output.WriteRawTag(16);
- output.WriteInt32(TerminalId);
- }
- if (HasProcessType) {
- output.WriteRawTag(24);
- output.WriteEnum((int) ProcessType);
- }
- if (HasPaused) {
- output.WriteRawTag(32);
- output.WriteBool(Paused);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasTerminalId) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
- }
- if (HasProcessType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProcessType);
- }
- if (HasPaused) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Entrance_manual_operation_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasTerminalId) {
- TerminalId = other.TerminalId;
- }
- if (other.HasProcessType) {
- ProcessType = other.ProcessType;
- }
- if (other.HasPaused) {
- Paused = other.Paused;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 16: {
- TerminalId = input.ReadInt32();
- break;
- }
- case 24: {
- ProcessType = (global::Message.Process_type) input.ReadEnum();
- break;
- }
- case 32: {
- Paused = input.ReadBool();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- ///流程手动操作消息
- /// </summary>
- public sealed partial class Process_manual_operation_msg : pb::IMessage<Process_manual_operation_msg> {
- private static readonly pb::MessageParser<Process_manual_operation_msg> _parser = new pb::MessageParser<Process_manual_operation_msg>(() => new Process_manual_operation_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Process_manual_operation_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.CentralControlMessageReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Process_manual_operation_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Process_manual_operation_msg(Process_manual_operation_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- license_ = other.license_;
- stepType_ = other.stepType_;
- operateType_ = other.operateType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Process_manual_operation_msg Clone() {
- return new Process_manual_operation_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "license" field.</summary>
- public const int LicenseFieldNumber = 2;
- private readonly static string LicenseDefaultValue = "";
- private string license_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string License {
- get { return license_ ?? LicenseDefaultValue; }
- set {
- license_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "license" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasLicense {
- get { return license_ != null; }
- }
- /// <summary>Clears the value of the "license" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearLicense() {
- license_ = null;
- }
- /// <summary>Field number for the "step_type" field.</summary>
- public const int StepTypeFieldNumber = 3;
- private readonly static global::Message.Step_type StepTypeDefaultValue = global::Message.Step_type.EAllocStep;
- private global::Message.Step_type stepType_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Step_type StepType {
- get { if ((_hasBits0 & 1) != 0) { return stepType_; } else { return StepTypeDefaultValue; } }
- set {
- _hasBits0 |= 1;
- stepType_ = value;
- }
- }
- /// <summary>Gets whether the "step_type" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasStepType {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "step_type" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearStepType() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "operate_type" field.</summary>
- public const int OperateTypeFieldNumber = 4;
- private readonly static global::Message.Process_operation_type OperateTypeDefaultValue = global::Message.Process_operation_type.EManualCancel;
- private global::Message.Process_operation_type operateType_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Process_operation_type OperateType {
- get { if ((_hasBits0 & 2) != 0) { return operateType_; } else { return OperateTypeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- operateType_ = value;
- }
- }
- /// <summary>Gets whether the "operate_type" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOperateType {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "operate_type" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOperateType() {
- _hasBits0 &= ~2;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Process_manual_operation_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Process_manual_operation_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (License != other.License) return false;
- if (StepType != other.StepType) return false;
- if (OperateType != other.OperateType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasLicense) hash ^= License.GetHashCode();
- if (HasStepType) hash ^= StepType.GetHashCode();
- if (HasOperateType) hash ^= OperateType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasLicense) {
- output.WriteRawTag(18);
- output.WriteString(License);
- }
- if (HasStepType) {
- output.WriteRawTag(24);
- output.WriteEnum((int) StepType);
- }
- if (HasOperateType) {
- output.WriteRawTag(32);
- output.WriteEnum((int) OperateType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasLicense) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(License);
- }
- if (HasStepType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StepType);
- }
- if (HasOperateType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OperateType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Process_manual_operation_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasLicense) {
- License = other.License;
- }
- if (other.HasStepType) {
- StepType = other.StepType;
- }
- if (other.HasOperateType) {
- OperateType = other.OperateType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 18: {
- License = input.ReadString();
- break;
- }
- case 24: {
- StepType = (global::Message.Step_type) input.ReadEnum();
- break;
- }
- case 32: {
- OperateType = (global::Message.Process_operation_type) input.ReadEnum();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|