From 97904f88f3949339c713286b592ad156baa8d41f Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 19 Jan 2025 19:47:50 +0200 Subject: Buzzer. White Skip. Thread Loading Abort. --- .../Visual_Studio/Tango.PMR/Common/MessageType.cs | 61 ++++--- .../MachineStatus/SetBuzzerSettingsRequest.cs | 188 +++++++++++++++++++++ .../MachineStatus/SetBuzzerSettingsResponse.cs | 131 ++++++++++++++ .../MachineStatus/SetWhiteThreadSkipRequest.cs | 160 ++++++++++++++++++ .../MachineStatus/SetWhiteThreadSkipResponse.cs | 131 ++++++++++++++ Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj | 6 +- 6 files changed, 649 insertions(+), 28 deletions(-) create mode 100644 Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsResponse.cs create mode 100644 Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipResponse.cs (limited to 'Software/Visual_Studio/Tango.PMR') diff --git a/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs b/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs index ce5cdc202..b561ccc15 100644 --- a/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs +++ b/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs @@ -22,7 +22,7 @@ namespace Tango.PMR.Common { static MessageTypeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbiqiRAoLTWVz", + "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbiqiRQoLTWVz", "c2FnZVR5cGUSCAoETm9uZRAAEhEKDUVycm9yUmVzcG9uc2UQARIUChBDYWxj", "dWxhdGVSZXF1ZXN0EAM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rh", + "cnRJbmtGaWxsaW5nU3RhdHVzUmVzcG9uc2UQ4V0SHgoZSW5pdGlhdGVJbmtG", + "aWxsaW5nUmVxdWVzdBDiXRIfChpJbml0aWF0ZUlua0ZpbGxpbmdSZXNwb25z", + "ZRDjXRIYChNXYXN0ZVJlcGxhY2VSZXF1ZXN0EORdEhkKFFdhc3RlUmVwbGFj", + "ZVJlc3BvbnNlEOVdEhwKF1NldEplcnJpY2FuTGV2ZWxSZXF1ZXN0EOZdEh0K", + "GFNldEplcnJpY2FuTGV2ZWxSZXNwb25zZRDnXRIcChdQdXREYXRhU3RvcmVJ", + "dGVtUmVxdWVzdBDIZRIdChhQdXREYXRhU3RvcmVJdGVtUmVzcG9uc2UQyWUS", + "HAoXR2V0RGF0YVN0b3JlSXRlbVJlcXVlc3QQymUSHQoYR2V0RGF0YVN0b3Jl", + "SXRlbVJlc3BvbnNlEMtlEiEKHERhdGFTdG9yZUl0ZW1Nb2RpZmllZFJlcXVl", + "c3QQzGUSIgodRGF0YVN0b3JlSXRlbU1vZGlmaWVkUmVzcG9uc2UQzWVCHAoa", + "Y29tLnR3aW5lLnRhbmdvLnBtci5jb21tb25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Common.MessageType), }, null)); @@ -527,6 +530,10 @@ namespace Tango.PMR.Common { [pbr::OriginalName("SpoolTypeChangedResponse")] SpoolTypeChangedResponse = 9007, [pbr::OriginalName("SetPowerDownTimeRequest")] SetPowerDownTimeRequest = 9008, [pbr::OriginalName("SetPowerDownTimeResponse")] SetPowerDownTimeResponse = 9009, + [pbr::OriginalName("SetBuzzerSettingsRequest")] SetBuzzerSettingsRequest = 9010, + [pbr::OriginalName("SetBuzzerSettingsResponse")] SetBuzzerSettingsResponse = 9011, + [pbr::OriginalName("SetWhiteThreadSkipRequest")] SetWhiteThreadSkipRequest = 9012, + [pbr::OriginalName("SetWhiteThreadSkipResponse")] SetWhiteThreadSkipResponse = 9013, /// ///Power /// diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsRequest.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsRequest.cs new file mode 100644 index 000000000..bb993bc5a --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsRequest.cs @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetBuzzerSettingsRequest.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 SetBuzzerSettingsRequest.proto + public static partial class SetBuzzerSettingsRequestReflection { + + #region Descriptor + /// File descriptor for SetBuzzerSettingsRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetBuzzerSettingsRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TZXRCdXp6ZXJTZXR0aW5nc1JlcXVlc3QucHJvdG8SF1RhbmdvLlBNUi5N", + "YWNoaW5lU3RhdHVzIj0KGFNldEJ1enplclNldHRpbmdzUmVxdWVzdBIPCgdF", + "bmFibGVkGAEgASgIEhAKCER1cmF0aW9uGAIgASgFQiMKIWNvbS50d2luZS50", + "YW5nby5wbXIubWFjaGluZXN0YXR1c2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.SetBuzzerSettingsRequest), global::Tango.PMR.MachineStatus.SetBuzzerSettingsRequest.Parser, new[]{ "Enabled", "Duration" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetBuzzerSettingsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetBuzzerSettingsRequest()); + [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.SetBuzzerSettingsRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsRequest(SetBuzzerSettingsRequest other) : this() { + enabled_ = other.enabled_; + duration_ = other.duration_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsRequest Clone() { + return new SetBuzzerSettingsRequest(this); + } + + /// Field number for the "Enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + /// Field number for the "Duration" field. + public const int DurationFieldNumber = 2; + private int duration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Duration { + get { return duration_; } + set { + duration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetBuzzerSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetBuzzerSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + if (Duration != other.Duration) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (Duration != 0) hash ^= Duration.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 (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (Duration != 0) { + output.WriteRawTag(16); + output.WriteInt32(Duration); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Enabled != false) { + size += 1 + 1; + } + if (Duration != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Duration); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetBuzzerSettingsRequest other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + if (other.Duration != 0) { + Duration = other.Duration; + } + } + + [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: { + Enabled = input.ReadBool(); + break; + } + case 16: { + Duration = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsResponse.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsResponse.cs new file mode 100644 index 000000000..c8d3f5136 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetBuzzerSettingsResponse.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetBuzzerSettingsResponse.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 SetBuzzerSettingsResponse.proto + public static partial class SetBuzzerSettingsResponseReflection { + + #region Descriptor + /// File descriptor for SetBuzzerSettingsResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetBuzzerSettingsResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TZXRCdXp6ZXJTZXR0aW5nc1Jlc3BvbnNlLnByb3RvEhdUYW5nby5QTVIu", + "TWFjaGluZVN0YXR1cyIbChlTZXRCdXp6ZXJTZXR0aW5nc1Jlc3BvbnNlQiMK", + "IWNvbS50d2luZS50YW5nby5wbXIubWFjaGluZXN0YXR1c2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.SetBuzzerSettingsResponse), global::Tango.PMR.MachineStatus.SetBuzzerSettingsResponse.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetBuzzerSettingsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetBuzzerSettingsResponse()); + [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.SetBuzzerSettingsResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsResponse(SetBuzzerSettingsResponse other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetBuzzerSettingsResponse Clone() { + return new SetBuzzerSettingsResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetBuzzerSettingsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetBuzzerSettingsResponse 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(SetBuzzerSettingsResponse 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/SetWhiteThreadSkipRequest.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipRequest.cs new file mode 100644 index 000000000..c3ab19423 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipRequest.cs @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetWhiteThreadSkipRequest.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 SetWhiteThreadSkipRequest.proto + public static partial class SetWhiteThreadSkipRequestReflection { + + #region Descriptor + /// File descriptor for SetWhiteThreadSkipRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetWhiteThreadSkipRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TZXRXaGl0ZVRocmVhZFNraXBSZXF1ZXN0LnByb3RvEhdUYW5nby5QTVIu", + "TWFjaGluZVN0YXR1cyIsChlTZXRXaGl0ZVRocmVhZFNraXBSZXF1ZXN0Eg8K", + "B0VuYWJsZWQYASABKAhCIwohY29tLnR3aW5lLnRhbmdvLnBtci5tYWNoaW5l", + "c3RhdHVzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.SetWhiteThreadSkipRequest), global::Tango.PMR.MachineStatus.SetWhiteThreadSkipRequest.Parser, new[]{ "Enabled" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetWhiteThreadSkipRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWhiteThreadSkipRequest()); + [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.SetWhiteThreadSkipRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipRequest(SetWhiteThreadSkipRequest other) : this() { + enabled_ = other.enabled_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipRequest Clone() { + return new SetWhiteThreadSkipRequest(this); + } + + /// Field number for the "Enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetWhiteThreadSkipRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetWhiteThreadSkipRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Enabled != false) hash ^= Enabled.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 (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Enabled != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetWhiteThreadSkipRequest other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + } + + [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: { + Enabled = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipResponse.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipResponse.cs new file mode 100644 index 000000000..0ffff24a7 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/SetWhiteThreadSkipResponse.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetWhiteThreadSkipResponse.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 SetWhiteThreadSkipResponse.proto + public static partial class SetWhiteThreadSkipResponseReflection { + + #region Descriptor + /// File descriptor for SetWhiteThreadSkipResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetWhiteThreadSkipResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBTZXRXaGl0ZVRocmVhZFNraXBSZXNwb25zZS5wcm90bxIXVGFuZ28uUE1S", + "Lk1hY2hpbmVTdGF0dXMiHAoaU2V0V2hpdGVUaHJlYWRTa2lwUmVzcG9uc2VC", + "IwohY29tLnR3aW5lLnRhbmdvLnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.SetWhiteThreadSkipResponse), global::Tango.PMR.MachineStatus.SetWhiteThreadSkipResponse.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetWhiteThreadSkipResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWhiteThreadSkipResponse()); + [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.SetWhiteThreadSkipResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipResponse(SetWhiteThreadSkipResponse other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetWhiteThreadSkipResponse Clone() { + return new SetWhiteThreadSkipResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetWhiteThreadSkipResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetWhiteThreadSkipResponse 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(SetWhiteThreadSkipResponse 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/Tango.PMR.csproj b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj index b5ea1877c..b96cd5d12 100644 --- a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj +++ b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj @@ -305,10 +305,14 @@ + + + + @@ -527,7 +531,7 @@ - + \ No newline at end of file -- cgit v1.3.1