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 | |
| 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')
8 files changed, 1195 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 diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineState.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineState.cs new file mode 100644 index 000000000..9e3725f20 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineState.cs @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MachineState.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 MachineState.proto</summary> + public static partial class MachineStateReflection { + + #region Descriptor + /// <summary>File descriptor for MachineState.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MachineStateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJNYWNoaW5lU3RhdGUucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVz", + "KnEKDE1hY2hpbmVTdGF0ZRIQCgxJbml0aWFsaXppbmcQABIJCgVSZWFkeRAB", + "EgkKBVNsZWVwEAISCQoFRXJyb3IQAxIMCghQb3dlck9mZhAEEhAKDFByZXBh", + "cmluZ0pvYhAFEg4KClJ1bm5pbmdKb2IQBkIjCiFjb20udHdpbmUudGFuZ28u", + "cG1yLm1hY2hpbmVzdGF0dXNiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.MachineStatus.MachineState), }, null)); + } + #endregion + + } + #region Enums + public enum MachineState { + [pbr::OriginalName("Initializing")] Initializing = 0, + [pbr::OriginalName("Ready")] Ready = 1, + [pbr::OriginalName("Sleep")] Sleep = 2, + [pbr::OriginalName("Error")] Error = 3, + [pbr::OriginalName("PowerOff")] PowerOff = 4, + [pbr::OriginalName("PreparingJob")] PreparingJob = 5, + [pbr::OriginalName("RunningJob")] RunningJob = 6, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs new file mode 100644 index 000000000..413789202 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MachineStatus.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 MachineStatus.proto</summary> + public static partial class MachineStatusReflection { + + #region Descriptor + /// <summary>File descriptor for MachineStatus.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MachineStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNNYWNoaW5lU3RhdHVzLnByb3RvEhdUYW5nby5QTVIuTWFjaGluZVN0YXR1", + "cxoSTWFjaGluZVN0YXRlLnByb3RvGhJJRFNQYWNrTGV2ZWwucHJvdG8ihAEK", + "DU1hY2hpbmVTdGF0dXMSNAoFU3RhdGUYASABKA4yJS5UYW5nby5QTVIuTWFj", + "aGluZVN0YXR1cy5NYWNoaW5lU3RhdGUSPQoOSURTUGFja3NMZXZlbHMYAiAD", + "KAsyJS5UYW5nby5QTVIuTWFjaGluZVN0YXR1cy5JRFNQYWNrTGV2ZWxCIwoh", + "Y29tLnR3aW5lLnRhbmdvLnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.MachineStateReflection.Descriptor, global::Tango.PMR.MachineStatus.IDSPackLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.MachineStatus), global::Tango.PMR.MachineStatus.MachineStatus.Parser, new[]{ "State", "IDSPacksLevels" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MachineStatus : pb::IMessage<MachineStatus> { + private static readonly pb::MessageParser<MachineStatus> _parser = new pb::MessageParser<MachineStatus>(() => new MachineStatus()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<MachineStatus> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.MachineStatusReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MachineStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MachineStatus(MachineStatus other) : this() { + state_ = other.state_; + iDSPacksLevels_ = other.iDSPacksLevels_.Clone(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MachineStatus Clone() { + return new MachineStatus(this); + } + + /// <summary>Field number for the "State" field.</summary> + public const int StateFieldNumber = 1; + private global::Tango.PMR.MachineStatus.MachineState state_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.MachineStatus.MachineState State { + get { return state_; } + set { + state_ = value; + } + } + + /// <summary>Field number for the "IDSPacksLevels" field.</summary> + public const int IDSPacksLevelsFieldNumber = 2; + private static readonly pb::FieldCodec<global::Tango.PMR.MachineStatus.IDSPackLevel> _repeated_iDSPacksLevels_codec + = pb::FieldCodec.ForMessage(18, global::Tango.PMR.MachineStatus.IDSPackLevel.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel> iDSPacksLevels_ = new pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel> IDSPacksLevels { + get { return iDSPacksLevels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MachineStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MachineStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if(!iDSPacksLevels_.Equals(other.iDSPacksLevels_)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (State != 0) hash ^= State.GetHashCode(); + hash ^= iDSPacksLevels_.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 (State != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + iDSPacksLevels_.WriteTo(output, _repeated_iDSPacksLevels_codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + size += iDSPacksLevels_.CalculateSize(_repeated_iDSPacksLevels_codec); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MachineStatus other) { + if (other == null) { + return; + } + if (other.State != 0) { + State = other.State; + } + iDSPacksLevels_.Add(other.iDSPacksLevels_); + } + + [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: { + state_ = (global::Tango.PMR.MachineStatus.MachineState) input.ReadEnum(); + break; + } + case 18: { + iDSPacksLevels_.AddEntriesFrom(input, _repeated_iDSPacksLevels_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateRequest.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateRequest.cs new file mode 100644 index 000000000..7570ae181 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateRequest.cs @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartMachineStatusUpdateRequest.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 StartMachineStatusUpdateRequest.proto</summary> + public static partial class StartMachineStatusUpdateRequestReflection { + + #region Descriptor + /// <summary>File descriptor for StartMachineStatusUpdateRequest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartMachineStatusUpdateRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVTdGFydE1hY2hpbmVTdGF0dXNVcGRhdGVSZXF1ZXN0LnByb3RvEhdUYW5n", + "by5QTVIuTWFjaGluZVN0YXR1cyIhCh9TdGFydE1hY2hpbmVTdGF0dXNVcGRh", + "dGVSZXF1ZXN0QiMKIWNvbS50d2luZS50YW5nby5wbXIubWFjaGluZXN0YXR1", + "c2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.StartMachineStatusUpdateRequest), global::Tango.PMR.MachineStatus.StartMachineStatusUpdateRequest.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StartMachineStatusUpdateRequest : pb::IMessage<StartMachineStatusUpdateRequest> { + private static readonly pb::MessageParser<StartMachineStatusUpdateRequest> _parser = new pb::MessageParser<StartMachineStatusUpdateRequest>(() => new StartMachineStatusUpdateRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<StartMachineStatusUpdateRequest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.StartMachineStatusUpdateRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateRequest(StartMachineStatusUpdateRequest other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateRequest Clone() { + return new StartMachineStatusUpdateRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StartMachineStatusUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StartMachineStatusUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + 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) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StartMachineStatusUpdateRequest other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateResponse.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateResponse.cs new file mode 100644 index 000000000..7f2a4ff94 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/StartMachineStatusUpdateResponse.cs @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartMachineStatusUpdateResponse.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 StartMachineStatusUpdateResponse.proto</summary> + public static partial class StartMachineStatusUpdateResponseReflection { + + #region Descriptor + /// <summary>File descriptor for StartMachineStatusUpdateResponse.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartMachineStatusUpdateResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZTdGFydE1hY2hpbmVTdGF0dXNVcGRhdGVSZXNwb25zZS5wcm90bxIXVGFu", + "Z28uUE1SLk1hY2hpbmVTdGF0dXMaE01hY2hpbmVTdGF0dXMucHJvdG8iWgog", + "U3RhcnRNYWNoaW5lU3RhdHVzVXBkYXRlUmVzcG9uc2USNgoGU3RhdHVzGAEg", + "ASgLMiYuVGFuZ28uUE1SLk1hY2hpbmVTdGF0dXMuTWFjaGluZVN0YXR1c0Ij", + "CiFjb20udHdpbmUudGFuZ28ucG1yLm1hY2hpbmVzdGF0dXNiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.MachineStatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.StartMachineStatusUpdateResponse), global::Tango.PMR.MachineStatus.StartMachineStatusUpdateResponse.Parser, new[]{ "Status" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StartMachineStatusUpdateResponse : pb::IMessage<StartMachineStatusUpdateResponse> { + private static readonly pb::MessageParser<StartMachineStatusUpdateResponse> _parser = new pb::MessageParser<StartMachineStatusUpdateResponse>(() => new StartMachineStatusUpdateResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<StartMachineStatusUpdateResponse> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.StartMachineStatusUpdateResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateResponse(StartMachineStatusUpdateResponse other) : this() { + Status = other.status_ != null ? other.Status.Clone() : null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartMachineStatusUpdateResponse Clone() { + return new StartMachineStatusUpdateResponse(this); + } + + /// <summary>Field number for the "Status" field.</summary> + public const int StatusFieldNumber = 1; + private global::Tango.PMR.MachineStatus.MachineStatus status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.MachineStatus.MachineStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StartMachineStatusUpdateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StartMachineStatusUpdateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Status, other.Status)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (status_ != null) hash ^= Status.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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (status_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StartMachineStatusUpdateResponse other) { + if (other == null) { + return; + } + if (other.status_ != null) { + if (status_ == null) { + status_ = new global::Tango.PMR.MachineStatus.MachineStatus(); + } + Status.MergeFrom(other.Status); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + if (status_ == null) { + status_ = new global::Tango.PMR.MachineStatus.MachineStatus(); + } + input.ReadMessage(status_); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/Status.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/Status.cs new file mode 100644 index 000000000..b21ab8011 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/Status.cs @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Status.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 Status.proto</summary> + public static partial class StatusReflection { + + #region Descriptor + /// <summary>File descriptor for Status.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxTdGF0dXMucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVzGhJNYWNo", + "aW5lU3RhdGUucHJvdG8aEklEU1BhY2tMZXZlbC5wcm90byJ9CgZTdGF0dXMS", + "NAoFU3RhdGUYASABKA4yJS5UYW5nby5QTVIuTWFjaGluZVN0YXR1cy5NYWNo", + "aW5lU3RhdGUSPQoOSURTUGFja3NMZXZlbHMYAiADKAsyJS5UYW5nby5QTVIu", + "TWFjaGluZVN0YXR1cy5JRFNQYWNrTGV2ZWxCIwohY29tLnR3aW5lLnRhbmdv", + "LnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.MachineStateReflection.Descriptor, global::Tango.PMR.MachineStatus.IDSPackLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.Status), global::Tango.PMR.MachineStatus.Status.Parser, new[]{ "State", "IDSPacksLevels" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Status : pb::IMessage<Status> { + private static readonly pb::MessageParser<Status> _parser = new pb::MessageParser<Status>(() => new Status()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<Status> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.StatusReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Status() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Status(Status other) : this() { + state_ = other.state_; + iDSPacksLevels_ = other.iDSPacksLevels_.Clone(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Status Clone() { + return new Status(this); + } + + /// <summary>Field number for the "State" field.</summary> + public const int StateFieldNumber = 1; + private global::Tango.PMR.MachineStatus.MachineState state_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.MachineStatus.MachineState State { + get { return state_; } + set { + state_ = value; + } + } + + /// <summary>Field number for the "IDSPacksLevels" field.</summary> + public const int IDSPacksLevelsFieldNumber = 2; + private static readonly pb::FieldCodec<global::Tango.PMR.MachineStatus.IDSPackLevel> _repeated_iDSPacksLevels_codec + = pb::FieldCodec.ForMessage(18, global::Tango.PMR.MachineStatus.IDSPackLevel.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel> iDSPacksLevels_ = new pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField<global::Tango.PMR.MachineStatus.IDSPackLevel> IDSPacksLevels { + get { return iDSPacksLevels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Status); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Status other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if(!iDSPacksLevels_.Equals(other.iDSPacksLevels_)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (State != 0) hash ^= State.GetHashCode(); + hash ^= iDSPacksLevels_.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 (State != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + iDSPacksLevels_.WriteTo(output, _repeated_iDSPacksLevels_codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + size += iDSPacksLevels_.CalculateSize(_repeated_iDSPacksLevels_codec); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Status other) { + if (other == null) { + return; + } + if (other.State != 0) { + State = other.State; + } + iDSPacksLevels_.Add(other.iDSPacksLevels_); + } + + [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: { + state_ = (global::Tango.PMR.MachineStatus.MachineState) input.ReadEnum(); + break; + } + case 18: { + iDSPacksLevels_.AddEntriesFrom(input, _repeated_iDSPacksLevels_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateRequest.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateRequest.cs new file mode 100644 index 000000000..d7fd64c92 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateRequest.cs @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StopMachineStatusUpdateRequest.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 StopMachineStatusUpdateRequest.proto</summary> + public static partial class StopMachineStatusUpdateRequestReflection { + + #region Descriptor + /// <summary>File descriptor for StopMachineStatusUpdateRequest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StopMachineStatusUpdateRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRTdG9wTWFjaGluZVN0YXR1c1VwZGF0ZVJlcXVlc3QucHJvdG8SF1Rhbmdv", + "LlBNUi5NYWNoaW5lU3RhdHVzIiAKHlN0b3BNYWNoaW5lU3RhdHVzVXBkYXRl", + "UmVxdWVzdEIjCiFjb20udHdpbmUudGFuZ28ucG1yLm1hY2hpbmVzdGF0dXNi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.StopMachineStatusUpdateRequest), global::Tango.PMR.MachineStatus.StopMachineStatusUpdateRequest.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StopMachineStatusUpdateRequest : pb::IMessage<StopMachineStatusUpdateRequest> { + private static readonly pb::MessageParser<StopMachineStatusUpdateRequest> _parser = new pb::MessageParser<StopMachineStatusUpdateRequest>(() => new StopMachineStatusUpdateRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<StopMachineStatusUpdateRequest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.StopMachineStatusUpdateRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateRequest(StopMachineStatusUpdateRequest other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateRequest Clone() { + return new StopMachineStatusUpdateRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StopMachineStatusUpdateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StopMachineStatusUpdateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + 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) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StopMachineStatusUpdateRequest other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateResponse.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateResponse.cs new file mode 100644 index 000000000..9e2ae8f63 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/StopMachineStatusUpdateResponse.cs @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StopMachineStatusUpdateResponse.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 StopMachineStatusUpdateResponse.proto</summary> + public static partial class StopMachineStatusUpdateResponseReflection { + + #region Descriptor + /// <summary>File descriptor for StopMachineStatusUpdateResponse.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StopMachineStatusUpdateResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVTdG9wTWFjaGluZVN0YXR1c1VwZGF0ZVJlc3BvbnNlLnByb3RvEhdUYW5n", + "by5QTVIuTWFjaGluZVN0YXR1cyIhCh9TdG9wTWFjaGluZVN0YXR1c1VwZGF0", + "ZVJlc3BvbnNlQiMKIWNvbS50d2luZS50YW5nby5wbXIubWFjaGluZXN0YXR1", + "c2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.StopMachineStatusUpdateResponse), global::Tango.PMR.MachineStatus.StopMachineStatusUpdateResponse.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StopMachineStatusUpdateResponse : pb::IMessage<StopMachineStatusUpdateResponse> { + private static readonly pb::MessageParser<StopMachineStatusUpdateResponse> _parser = new pb::MessageParser<StopMachineStatusUpdateResponse>(() => new StopMachineStatusUpdateResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<StopMachineStatusUpdateResponse> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.MachineStatus.StopMachineStatusUpdateResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateResponse(StopMachineStatusUpdateResponse other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopMachineStatusUpdateResponse Clone() { + return new StopMachineStatusUpdateResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StopMachineStatusUpdateResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StopMachineStatusUpdateResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + 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) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StopMachineStatusUpdateResponse other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code |
