diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-15 17:29:25 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-15 17:29:25 +0300 |
| commit | ca9a080e283819b40c424d17332a18423ff6dcb1 (patch) | |
| tree | e26beedc04a704cdf1d09e73f05bfc631fc9cee1 /Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs | |
| parent | 68f0b285920d9c17189522916c6f0e783629bc9a (diff) | |
| download | Tango-ca9a080e283819b40c424d17332a18423ff6dcb1.tar.gz Tango-ca9a080e283819b40c424d17332a18423ff6dcb1.zip | |
Implemented basic machine status support.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs | 216 |
1 files changed, 216 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs new file mode 100644 index 000000000..007a72214 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs @@ -0,0 +1,216 @@ +// 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 { + + /// <summary>Holder for reflection information generated from IDSPackLevel.proto</summary> + public static partial class IDSPackLevelReflection { + + #region Descriptor + /// <summary>File descriptor for IDSPackLevel.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static IDSPackLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJJRFNQYWNrTGV2ZWwucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVz", + "IksKDElEU1BhY2tMZXZlbBINCgVJbmRleBgBIAEoBRIWCg5EaXNwZW5zZXJM", + "ZXZlbBgCIAEoBRIUCgxNaWRUYW5rTGV2ZWwYAyABKAVCIwohY29tLnR3aW5l", + "LnRhbmdvLnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + 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" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class IDSPackLevel : pb::IMessage<IDSPackLevel> { + private static readonly pb::MessageParser<IDSPackLevel> _parser = new pb::MessageParser<IDSPackLevel>(() => new IDSPackLevel()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<IDSPackLevel> 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_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IDSPackLevel Clone() { + return new IDSPackLevel(this); + } + + /// <summary>Field number for the "Index" field.</summary> + public const int IndexFieldNumber = 1; + private int index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// <summary>Field number for the "DispenserLevel" field.</summary> + public const int DispenserLevelFieldNumber = 2; + private int dispenserLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int DispenserLevel { + get { return dispenserLevel_; } + set { + dispenserLevel_ = value; + } + } + + /// <summary>Field number for the "MidTankLevel" field.</summary> + public const int MidTankLevelFieldNumber = 3; + private int midTankLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int MidTankLevel { + get { return midTankLevel_; } + set { + midTankLevel_ = value; + } + } + + [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; + 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 != 0) hash ^= MidTankLevel.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 != 0) { + output.WriteRawTag(24); + output.WriteInt32(MidTankLevel); + } + } + + [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 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MidTankLevel); + } + 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 != 0) { + MidTankLevel = other.MidTankLevel; + } + } + + [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 24: { + MidTankLevel = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code |
