// Generated by the protocol buffer compiler. DO NOT EDIT! // source: IDSPackLevel.proto #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 Tango.PMR.MachineStatus { /// Holder for reflection information generated from IDSPackLevel.proto public static partial class IDSPackLevelReflection { #region Descriptor /// File descriptor for IDSPackLevel.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static IDSPackLevelReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChJJRFNQYWNrTGV2ZWwucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVz", "GhBQdW1wU3RhdHVzLnByb3RvItsCCgxJRFNQYWNrTGV2ZWwSDQoFSW5kZXgY", "ASABKAUSFgoORGlzcGVuc2VyTGV2ZWwYAiABKAUSFAoMTWlkVGFua0xldmVs", "GAMgASgBEhcKD0plcnJpY2FuUHJlc2VudBgEIAEoCBIbChNGaWxsaW5nVGlt", "ZW91dEVycm9yGAUgASgIEhQKDE1pZFRhbmtFbXB0eRgGIAEoCBIfChdNaWRU", "YW5rUmVmaWxsUHVtcEFjdGl2ZRgHIAEoCBIdChVUaW1lclJlbWFpbmluZ1Nl", "Y29uZHMYCCABKAUSGAoQRGlzcGVuc2VyTGV2ZWw2NBgJIAEoAxIVCg1Ub3Rh", "bFB1bXBGbG93GAogASgCEh0KFVRvdGFsUHVtcEFjdGl2aXR5VGltZRgLIAEo", "DRIyCgVQdW1wcxgMIAMoCzIjLlRhbmdvLlBNUi5NYWNoaW5lU3RhdHVzLlB1", "bXBTdGF0dXNCIwohY29tLnR3aW5lLnRhbmdvLnBtci5tYWNoaW5lc3RhdHVz", "YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.PumpStatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.IDSPackLevel), global::Tango.PMR.MachineStatus.IDSPackLevel.Parser, new[]{ "Index", "DispenserLevel", "MidTankLevel", "JerricanPresent", "FillingTimeoutError", "MidTankEmpty", "MidTankRefillPumpActive", "TimerRemainingSeconds", "DispenserLevel64", "TotalPumpFlow", "TotalPumpActivityTime", "Pumps" }, null, null, null) })); } #endregion } #region Messages public sealed partial class IDSPackLevel : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IDSPackLevel()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.MachineStatus.IDSPackLevelReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel(IDSPackLevel other) : this() { index_ = other.index_; dispenserLevel_ = other.dispenserLevel_; midTankLevel_ = other.midTankLevel_; jerricanPresent_ = other.jerricanPresent_; fillingTimeoutError_ = other.fillingTimeoutError_; midTankEmpty_ = other.midTankEmpty_; midTankRefillPumpActive_ = other.midTankRefillPumpActive_; timerRemainingSeconds_ = other.timerRemainingSeconds_; dispenserLevel64_ = other.dispenserLevel64_; totalPumpFlow_ = other.totalPumpFlow_; totalPumpActivityTime_ = other.totalPumpActivityTime_; pumps_ = other.pumps_.Clone(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel Clone() { return new IDSPackLevel(this); } /// Field number for the "Index" field. public const int IndexFieldNumber = 1; private int index_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Index { get { return index_; } set { index_ = value; } } /// Field number for the "DispenserLevel" field. public const int DispenserLevelFieldNumber = 2; private int dispenserLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int DispenserLevel { get { return dispenserLevel_; } set { dispenserLevel_ = value; } } /// Field number for the "MidTankLevel" field. public const int MidTankLevelFieldNumber = 3; private double midTankLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double MidTankLevel { get { return midTankLevel_; } set { midTankLevel_ = value; } } /// Field number for the "JerricanPresent" field. public const int JerricanPresentFieldNumber = 4; private bool jerricanPresent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool JerricanPresent { get { return jerricanPresent_; } set { jerricanPresent_ = value; } } /// Field number for the "FillingTimeoutError" field. public const int FillingTimeoutErrorFieldNumber = 5; private bool fillingTimeoutError_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool FillingTimeoutError { get { return fillingTimeoutError_; } set { fillingTimeoutError_ = value; } } /// Field number for the "MidTankEmpty" field. public const int MidTankEmptyFieldNumber = 6; private bool midTankEmpty_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool MidTankEmpty { get { return midTankEmpty_; } set { midTankEmpty_ = value; } } /// Field number for the "MidTankRefillPumpActive" field. public const int MidTankRefillPumpActiveFieldNumber = 7; private bool midTankRefillPumpActive_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool MidTankRefillPumpActive { get { return midTankRefillPumpActive_; } set { midTankRefillPumpActive_ = value; } } /// Field number for the "TimerRemainingSeconds" field. public const int TimerRemainingSecondsFieldNumber = 8; private int timerRemainingSeconds_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int TimerRemainingSeconds { get { return timerRemainingSeconds_; } set { timerRemainingSeconds_ = value; } } /// Field number for the "DispenserLevel64" field. public const int DispenserLevel64FieldNumber = 9; private long dispenserLevel64_; /// ///Used only for X4 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long DispenserLevel64 { get { return dispenserLevel64_; } set { dispenserLevel64_ = value; } } /// Field number for the "TotalPumpFlow" field. public const int TotalPumpFlowFieldNumber = 10; private float totalPumpFlow_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public float TotalPumpFlow { get { return totalPumpFlow_; } set { totalPumpFlow_ = value; } } /// Field number for the "TotalPumpActivityTime" field. public const int TotalPumpActivityTimeFieldNumber = 11; private uint totalPumpActivityTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint TotalPumpActivityTime { get { return totalPumpActivityTime_; } set { totalPumpActivityTime_ = value; } } /// Field number for the "Pumps" field. public const int PumpsFieldNumber = 12; private static readonly pb::FieldCodec _repeated_pumps_codec = pb::FieldCodec.ForMessage(98, global::Tango.PMR.MachineStatus.PumpStatus.Parser); private readonly pbc::RepeatedField pumps_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Pumps { get { return pumps_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as IDSPackLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(IDSPackLevel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Index != other.Index) return false; if (DispenserLevel != other.DispenserLevel) return false; if (MidTankLevel != other.MidTankLevel) return false; if (JerricanPresent != other.JerricanPresent) return false; if (FillingTimeoutError != other.FillingTimeoutError) return false; if (MidTankEmpty != other.MidTankEmpty) return false; if (MidTankRefillPumpActive != other.MidTankRefillPumpActive) return false; if (TimerRemainingSeconds != other.TimerRemainingSeconds) return false; if (DispenserLevel64 != other.DispenserLevel64) return false; if (TotalPumpFlow != other.TotalPumpFlow) return false; if (TotalPumpActivityTime != other.TotalPumpActivityTime) return false; if(!pumps_.Equals(other.pumps_)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Index != 0) hash ^= Index.GetHashCode(); if (DispenserLevel != 0) hash ^= DispenserLevel.GetHashCode(); if (MidTankLevel != 0D) hash ^= MidTankLevel.GetHashCode(); if (JerricanPresent != false) hash ^= JerricanPresent.GetHashCode(); if (FillingTimeoutError != false) hash ^= FillingTimeoutError.GetHashCode(); if (MidTankEmpty != false) hash ^= MidTankEmpty.GetHashCode(); if (MidTankRefillPumpActive != false) hash ^= MidTankRefillPumpActive.GetHashCode(); if (TimerRemainingSeconds != 0) hash ^= TimerRemainingSeconds.GetHashCode(); if (DispenserLevel64 != 0L) hash ^= DispenserLevel64.GetHashCode(); if (TotalPumpFlow != 0F) hash ^= TotalPumpFlow.GetHashCode(); if (TotalPumpActivityTime != 0) hash ^= TotalPumpActivityTime.GetHashCode(); hash ^= pumps_.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 (Index != 0) { output.WriteRawTag(8); output.WriteInt32(Index); } if (DispenserLevel != 0) { output.WriteRawTag(16); output.WriteInt32(DispenserLevel); } if (MidTankLevel != 0D) { output.WriteRawTag(25); output.WriteDouble(MidTankLevel); } if (JerricanPresent != false) { output.WriteRawTag(32); output.WriteBool(JerricanPresent); } if (FillingTimeoutError != false) { output.WriteRawTag(40); output.WriteBool(FillingTimeoutError); } if (MidTankEmpty != false) { output.WriteRawTag(48); output.WriteBool(MidTankEmpty); } if (MidTankRefillPumpActive != false) { output.WriteRawTag(56); output.WriteBool(MidTankRefillPumpActive); } if (TimerRemainingSeconds != 0) { output.WriteRawTag(64); output.WriteInt32(TimerRemainingSeconds); } if (DispenserLevel64 != 0L) { output.WriteRawTag(72); output.WriteInt64(DispenserLevel64); } if (TotalPumpFlow != 0F) { output.WriteRawTag(85); output.WriteFloat(TotalPumpFlow); } if (TotalPumpActivityTime != 0) { output.WriteRawTag(88); output.WriteUInt32(TotalPumpActivityTime); } pumps_.WriteTo(output, _repeated_pumps_codec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Index != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); } if (DispenserLevel != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DispenserLevel); } if (MidTankLevel != 0D) { size += 1 + 8; } if (JerricanPresent != false) { size += 1 + 1; } if (FillingTimeoutError != false) { size += 1 + 1; } if (MidTankEmpty != false) { size += 1 + 1; } if (MidTankRefillPumpActive != false) { size += 1 + 1; } if (TimerRemainingSeconds != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimerRemainingSeconds); } if (DispenserLevel64 != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(DispenserLevel64); } if (TotalPumpFlow != 0F) { size += 1 + 4; } if (TotalPumpActivityTime != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalPumpActivityTime); } size += pumps_.CalculateSize(_repeated_pumps_codec); return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(IDSPackLevel other) { if (other == null) { return; } if (other.Index != 0) { Index = other.Index; } if (other.DispenserLevel != 0) { DispenserLevel = other.DispenserLevel; } if (other.MidTankLevel != 0D) { MidTankLevel = other.MidTankLevel; } if (other.JerricanPresent != false) { JerricanPresent = other.JerricanPresent; } if (other.FillingTimeoutError != false) { FillingTimeoutError = other.FillingTimeoutError; } if (other.MidTankEmpty != false) { MidTankEmpty = other.MidTankEmpty; } if (other.MidTankRefillPumpActive != false) { MidTankRefillPumpActive = other.MidTankRefillPumpActive; } if (other.TimerRemainingSeconds != 0) { TimerRemainingSeconds = other.TimerRemainingSeconds; } if (other.DispenserLevel64 != 0L) { DispenserLevel64 = other.DispenserLevel64; } if (other.TotalPumpFlow != 0F) { TotalPumpFlow = other.TotalPumpFlow; } if (other.TotalPumpActivityTime != 0) { TotalPumpActivityTime = other.TotalPumpActivityTime; } pumps_.Add(other.pumps_); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { Index = input.ReadInt32(); break; } case 16: { DispenserLevel = input.ReadInt32(); break; } case 25: { MidTankLevel = input.ReadDouble(); break; } case 32: { JerricanPresent = input.ReadBool(); break; } case 40: { FillingTimeoutError = input.ReadBool(); break; } case 48: { MidTankEmpty = input.ReadBool(); break; } case 56: { MidTankRefillPumpActive = input.ReadBool(); break; } case 64: { TimerRemainingSeconds = input.ReadInt32(); break; } case 72: { DispenserLevel64 = input.ReadInt64(); break; } case 85: { TotalPumpFlow = input.ReadFloat(); break; } case 88: { TotalPumpActivityTime = input.ReadUInt32(); break; } case 98: { pumps_.AddEntriesFrom(input, _repeated_pumps_codec); break; } } } } } #endregion } #endregion Designer generated code