aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-07-09 11:34:11 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-07-09 11:34:11 +0300
commit76548e13fb850fe2dac46a352057876a04abe9ab (patch)
treea4d5b678c57ff095e9d07640bafc6ccd81268cc3 /Software/Visual_Studio
parent45a4da6b34d2aedea27e2826931f0705eb05130f (diff)
downloadTango-76548e13fb850fe2dac46a352057876a04abe9ab.tar.gz
Tango-76548e13fb850fe2dac46a352057876a04abe9ab.zip
Added Cartridges to PMR.
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs97
-rw-r--r--Software/Visual_Studio/Tango.PMR/Common/MessageType.cs75
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/Cartridge.cs224
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeAction.cs45
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeSlot.cs47
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeTagContent.cs872
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationRequest.cs197
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationResponse.cs195
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateRequest.cs131
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateResponse.cs197
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateRequest.cs131
-rw-r--r--Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateResponse.cs131
-rw-r--r--Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj12
13 files changed, 2315 insertions, 39 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs
index b43aa9f29..df409df30 100644
--- a/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs
+++ b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs
@@ -23,15 +23,16 @@ namespace Tango.PMR.ColorLab {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdPdXRwdXRDb29yZGluYXRlcy5wcm90bxISVGFuZ28uUE1SLkNvbG9yTGFi",
- "GhJPdXRwdXRMaXF1aWQucHJvdG8imwEKEU91dHB1dENvb3JkaW5hdGVzEgsK",
- "A1JlZBgBIAEoBRINCgVHcmVlbhgCIAEoBRIMCgRCbHVlGAMgASgFEjcKDU91",
- "dHB1dExpcXVpZHMYBCADKAsyIC5UYW5nby5QTVIuQ29sb3JMYWIuT3V0cHV0",
- "TGlxdWlkEiMKG1Byb2Nlc3NQYXJhbWV0ZXJzVGFibGVJbmRleBgFIAEoBUIe",
- "Chxjb20udHdpbmUudGFuZ28ucG1yLmNvbG9ybGFiYgZwcm90bzM="));
+ "GhJPdXRwdXRMaXF1aWQucHJvdG8ivAEKEU91dHB1dENvb3JkaW5hdGVzEgsK",
+ "A1JlZBgBIAEoBRINCgVHcmVlbhgCIAEoBRIMCgRCbHVlGAMgASgFEgkKAUwY",
+ "BiABKAESCQoBQRgHIAEoARIJCgFCGAggASgBEjcKDU91dHB1dExpcXVpZHMY",
+ "BCADKAsyIC5UYW5nby5QTVIuQ29sb3JMYWIuT3V0cHV0TGlxdWlkEiMKG1By",
+ "b2Nlc3NQYXJhbWV0ZXJzVGFibGVJbmRleBgFIAEoBUIeChxjb20udHdpbmUu",
+ "dGFuZ28ucG1yLmNvbG9ybGFiYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.OutputLiquidReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.OutputCoordinates), global::Tango.PMR.ColorLab.OutputCoordinates.Parser, new[]{ "Red", "Green", "Blue", "OutputLiquids", "ProcessParametersTableIndex" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.OutputCoordinates), global::Tango.PMR.ColorLab.OutputCoordinates.Parser, new[]{ "Red", "Green", "Blue", "L", "A", "B", "OutputLiquids", "ProcessParametersTableIndex" }, null, null, null)
}));
}
#endregion
@@ -65,6 +66,9 @@ namespace Tango.PMR.ColorLab {
red_ = other.red_;
green_ = other.green_;
blue_ = other.blue_;
+ l_ = other.l_;
+ a_ = other.a_;
+ b_ = other.b_;
outputLiquids_ = other.outputLiquids_.Clone();
processParametersTableIndex_ = other.processParametersTableIndex_;
}
@@ -107,6 +111,39 @@ namespace Tango.PMR.ColorLab {
}
}
+ /// <summary>Field number for the "L" field.</summary>
+ public const int LFieldNumber = 6;
+ private double l_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double L {
+ get { return l_; }
+ set {
+ l_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "A" field.</summary>
+ public const int AFieldNumber = 7;
+ private double a_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double A {
+ get { return a_; }
+ set {
+ a_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "B" field.</summary>
+ public const int BFieldNumber = 8;
+ private double b_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double B {
+ get { return b_; }
+ set {
+ b_ = value;
+ }
+ }
+
/// <summary>Field number for the "OutputLiquids" field.</summary>
public const int OutputLiquidsFieldNumber = 4;
private static readonly pb::FieldCodec<global::Tango.PMR.ColorLab.OutputLiquid> _repeated_outputLiquids_codec
@@ -144,6 +181,9 @@ namespace Tango.PMR.ColorLab {
if (Red != other.Red) return false;
if (Green != other.Green) return false;
if (Blue != other.Blue) return false;
+ if (L != other.L) return false;
+ if (A != other.A) return false;
+ if (B != other.B) return false;
if(!outputLiquids_.Equals(other.outputLiquids_)) return false;
if (ProcessParametersTableIndex != other.ProcessParametersTableIndex) return false;
return true;
@@ -155,6 +195,9 @@ namespace Tango.PMR.ColorLab {
if (Red != 0) hash ^= Red.GetHashCode();
if (Green != 0) hash ^= Green.GetHashCode();
if (Blue != 0) hash ^= Blue.GetHashCode();
+ if (L != 0D) hash ^= L.GetHashCode();
+ if (A != 0D) hash ^= A.GetHashCode();
+ if (B != 0D) hash ^= B.GetHashCode();
hash ^= outputLiquids_.GetHashCode();
if (ProcessParametersTableIndex != 0) hash ^= ProcessParametersTableIndex.GetHashCode();
return hash;
@@ -184,6 +227,18 @@ namespace Tango.PMR.ColorLab {
output.WriteRawTag(40);
output.WriteInt32(ProcessParametersTableIndex);
}
+ if (L != 0D) {
+ output.WriteRawTag(49);
+ output.WriteDouble(L);
+ }
+ if (A != 0D) {
+ output.WriteRawTag(57);
+ output.WriteDouble(A);
+ }
+ if (B != 0D) {
+ output.WriteRawTag(65);
+ output.WriteDouble(B);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -198,6 +253,15 @@ namespace Tango.PMR.ColorLab {
if (Blue != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue);
}
+ if (L != 0D) {
+ size += 1 + 8;
+ }
+ if (A != 0D) {
+ size += 1 + 8;
+ }
+ if (B != 0D) {
+ size += 1 + 8;
+ }
size += outputLiquids_.CalculateSize(_repeated_outputLiquids_codec);
if (ProcessParametersTableIndex != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProcessParametersTableIndex);
@@ -219,6 +283,15 @@ namespace Tango.PMR.ColorLab {
if (other.Blue != 0) {
Blue = other.Blue;
}
+ if (other.L != 0D) {
+ L = other.L;
+ }
+ if (other.A != 0D) {
+ A = other.A;
+ }
+ if (other.B != 0D) {
+ B = other.B;
+ }
outputLiquids_.Add(other.outputLiquids_);
if (other.ProcessParametersTableIndex != 0) {
ProcessParametersTableIndex = other.ProcessParametersTableIndex;
@@ -253,6 +326,18 @@ namespace Tango.PMR.ColorLab {
ProcessParametersTableIndex = input.ReadInt32();
break;
}
+ case 49: {
+ L = input.ReadDouble();
+ break;
+ }
+ case 57: {
+ A = input.ReadDouble();
+ break;
+ }
+ case 65: {
+ B = input.ReadDouble();
+ break;
+ }
}
}
}
diff --git a/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs b/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs
index 0dc51f01b..04e2c5e2f 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(
- "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbiqKLwoLTWVz",
+ "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbirZMAoLTWVz",
"c2FnZVR5cGUSCAoETm9uZRAAEhEKDUVycm9yUmVzcG9uc2UQARIUChBDYWxj",
"dWxhdGVSZXF1ZXN0EAMSFQoRQ2FsY3VsYXRlUmVzcG9uc2UQBBITCg9Qcm9n",
"cmVzc1JlcXVlc3QQBRIUChBQcm9ncmVzc1Jlc3BvbnNlEAYSHAoYU3R1YkNh",
@@ -127,37 +127,42 @@ namespace Tango.PMR.Common {
"EhsKFlNldEhlYXRlclN0YXRlUmVzcG9uc2UQ8w8SGgoVU2V0Qmxvd2VyU3Rh",
"dGVSZXF1ZXN0EPQPEhsKFlNldEJsb3dlclN0YXRlUmVzcG9uc2UQ9Q8SGQoU",
"U2V0VmFsdmVTdGF0ZVJlcXVlc3QQ9g8SGgoVU2V0VmFsdmVTdGF0ZVJlc3Bv",
- "bnNlEPcPEg8KCkpvYlJlcXVlc3QQuBcSEAoLSm9iUmVzcG9uc2UQuRcSFAoP",
- "QWJvcnRKb2JSZXF1ZXN0ELoXEhUKEEFib3J0Sm9iUmVzcG9uc2UQuxcSIwoe",
- "VXBsb2FkUHJvY2Vzc1BhcmFtZXRlcnNSZXF1ZXN0ELwXEiQKH1VwbG9hZFBy",
- "b2Nlc3NQYXJhbWV0ZXJzUmVzcG9uc2UQvRcSFgoRQ3VycmVudEpvYlJlcXVl",
- "c3QQvhcSFwoSQ3VycmVudEpvYlJlc3BvbnNlEL8XEhwKF1Jlc3VtZUN1cnJl",
- "bnRKb2JSZXF1ZXN0EMAXEh0KGFJlc3VtZUN1cnJlbnRKb2JSZXNwb25zZRDB",
- "FxIZChRTdGFydERlYnVnTG9nUmVxdWVzdBCgHxIaChVTdGFydERlYnVnTG9n",
- "UmVzcG9uc2UQoR8SGAoTU3RvcERlYnVnTG9nUmVxdWVzdBCiHxIZChRTdG9w",
- "RGVidWdMb2dSZXNwb25zZRCjHxInCiJVcGxvYWRIYXJkd2FyZUNvbmZpZ3Vy",
- "YXRpb25SZXF1ZXN0EIgnEigKI1VwbG9hZEhhcmR3YXJlQ29uZmlndXJhdGlv",
- "blJlc3BvbnNlEIknEhcKElN5c3RlbVJlc2V0UmVxdWVzdBCKJxIYChNTeXN0",
- "ZW1SZXNldFJlc3BvbnNlEIsnEhUKEEtlZXBBbGl2ZVJlcXVlc3QQ8C4SFgoR",
- "S2VlcEFsaXZlUmVzcG9uc2UQ8S4SEwoOQ29ubmVjdFJlcXVlc3QQ8i4SFAoP",
- "Q29ubmVjdFJlc3BvbnNlEPMuEhYKEURpc2Nvbm5lY3RSZXF1ZXN0EPQuEhcK",
- "EkRpc2Nvbm5lY3RSZXNwb25zZRD1LhIWChFGaWxlVXBsb2FkUmVxdWVzdBDY",
- "NhIXChJGaWxlVXBsb2FkUmVzcG9uc2UQ2TYSGwoWRmlsZUNodW5rVXBsb2Fk",
- "UmVxdWVzdBDaNhIcChdGaWxlQ2h1bmtVcGxvYWRSZXNwb25zZRDbNhIaChVF",
- "eGVjdXRlUHJvY2Vzc1JlcXVlc3QQ3DYSGwoWRXhlY3V0ZVByb2Nlc3NSZXNw",
- "b25zZRDdNhIXChJLaWxsUHJvY2Vzc1JlcXVlc3QQ3jYSGAoTS2lsbFByb2Nl",
- "c3NSZXNwb25zZRDfNhISCg1DcmVhdGVSZXF1ZXN0EOA2EhMKDkNyZWF0ZVJl",
- "c3BvbnNlEOE2EhIKDURlbGV0ZVJlcXVlc3QQ4jYSEwoORGVsZXRlUmVzcG9u",
- "c2UQ4zYSGgoVR2V0U3RvcmFnZUluZm9SZXF1ZXN0EOQ2EhsKFkdldFN0b3Jh",
- "Z2VJbmZvUmVzcG9uc2UQ5TYSFAoPR2V0RmlsZXNSZXF1ZXN0EOY2EhUKEEdl",
- "dEZpbGVzUmVzcG9uc2UQ5zYSGAoTRmlsZURvd25sb2FkUmVxdWVzdBDoNhIZ",
- "ChRGaWxlRG93bmxvYWRSZXNwb25zZRDpNhIdChhGaWxlQ2h1bmtEb3dubG9h",
- "ZFJlcXVlc3QQ6jYSHgoZRmlsZUNodW5rRG93bmxvYWRSZXNwb25zZRDrNhIb",
- "ChZWYWxpZGF0ZVZlcnNpb25SZXF1ZXN0EOw2EhwKF1ZhbGlkYXRlVmVyc2lv",
- "blJlc3BvbnNlEO02EhsKFkFjdGl2YXRlVmVyc2lvblJlcXVlc3QQ7jYSHAoX",
- "QWN0aXZhdGVWZXJzaW9uUmVzcG9uc2UQ7zYSGQoURGlzcGVuc2VyRGF0YVJl",
- "cXVlc3QQwD4SGgoVRGlzcGVuc2VyRGF0YVJlc3BvbnNlEME+QhwKGmNvbS50",
- "d2luZS50YW5nby5wbXIuY29tbW9uYgZwcm90bzM="));
+ "bnNlEPcPEiEKHFN0YXJ0Q2FydHJpZGdlc1VwZGF0ZVJlcXVlc3QQ+A8SIgod",
+ "U3RhcnRDYXJ0cmlkZ2VzVXBkYXRlUmVzcG9uc2UQ+Q8SIAobU3RvcENhcnRy",
+ "aWRnZXNVcGRhdGVSZXF1ZXN0EPoPEiEKHFN0b3BDYXJ0cmlkZ2VzVXBkYXRl",
+ "UmVzcG9uc2UQ+w8SHwoaQ2FydHJpZGdlVmFsaWRhdGlvblJlcXVlc3QQ/A8S",
+ "IAobQ2FydHJpZGdlVmFsaWRhdGlvblJlc3BvbnNlEP0PEg8KCkpvYlJlcXVl",
+ "c3QQuBcSEAoLSm9iUmVzcG9uc2UQuRcSFAoPQWJvcnRKb2JSZXF1ZXN0ELoX",
+ "EhUKEEFib3J0Sm9iUmVzcG9uc2UQuxcSIwoeVXBsb2FkUHJvY2Vzc1BhcmFt",
+ "ZXRlcnNSZXF1ZXN0ELwXEiQKH1VwbG9hZFByb2Nlc3NQYXJhbWV0ZXJzUmVz",
+ "cG9uc2UQvRcSFgoRQ3VycmVudEpvYlJlcXVlc3QQvhcSFwoSQ3VycmVudEpv",
+ "YlJlc3BvbnNlEL8XEhwKF1Jlc3VtZUN1cnJlbnRKb2JSZXF1ZXN0EMAXEh0K",
+ "GFJlc3VtZUN1cnJlbnRKb2JSZXNwb25zZRDBFxIZChRTdGFydERlYnVnTG9n",
+ "UmVxdWVzdBCgHxIaChVTdGFydERlYnVnTG9nUmVzcG9uc2UQoR8SGAoTU3Rv",
+ "cERlYnVnTG9nUmVxdWVzdBCiHxIZChRTdG9wRGVidWdMb2dSZXNwb25zZRCj",
+ "HxInCiJVcGxvYWRIYXJkd2FyZUNvbmZpZ3VyYXRpb25SZXF1ZXN0EIgnEigK",
+ "I1VwbG9hZEhhcmR3YXJlQ29uZmlndXJhdGlvblJlc3BvbnNlEIknEhcKElN5",
+ "c3RlbVJlc2V0UmVxdWVzdBCKJxIYChNTeXN0ZW1SZXNldFJlc3BvbnNlEIsn",
+ "EhUKEEtlZXBBbGl2ZVJlcXVlc3QQ8C4SFgoRS2VlcEFsaXZlUmVzcG9uc2UQ",
+ "8S4SEwoOQ29ubmVjdFJlcXVlc3QQ8i4SFAoPQ29ubmVjdFJlc3BvbnNlEPMu",
+ "EhYKEURpc2Nvbm5lY3RSZXF1ZXN0EPQuEhcKEkRpc2Nvbm5lY3RSZXNwb25z",
+ "ZRD1LhIWChFGaWxlVXBsb2FkUmVxdWVzdBDYNhIXChJGaWxlVXBsb2FkUmVz",
+ "cG9uc2UQ2TYSGwoWRmlsZUNodW5rVXBsb2FkUmVxdWVzdBDaNhIcChdGaWxl",
+ "Q2h1bmtVcGxvYWRSZXNwb25zZRDbNhIaChVFeGVjdXRlUHJvY2Vzc1JlcXVl",
+ "c3QQ3DYSGwoWRXhlY3V0ZVByb2Nlc3NSZXNwb25zZRDdNhIXChJLaWxsUHJv",
+ "Y2Vzc1JlcXVlc3QQ3jYSGAoTS2lsbFByb2Nlc3NSZXNwb25zZRDfNhISCg1D",
+ "cmVhdGVSZXF1ZXN0EOA2EhMKDkNyZWF0ZVJlc3BvbnNlEOE2EhIKDURlbGV0",
+ "ZVJlcXVlc3QQ4jYSEwoORGVsZXRlUmVzcG9uc2UQ4zYSGgoVR2V0U3RvcmFn",
+ "ZUluZm9SZXF1ZXN0EOQ2EhsKFkdldFN0b3JhZ2VJbmZvUmVzcG9uc2UQ5TYS",
+ "FAoPR2V0RmlsZXNSZXF1ZXN0EOY2EhUKEEdldEZpbGVzUmVzcG9uc2UQ5zYS",
+ "GAoTRmlsZURvd25sb2FkUmVxdWVzdBDoNhIZChRGaWxlRG93bmxvYWRSZXNw",
+ "b25zZRDpNhIdChhGaWxlQ2h1bmtEb3dubG9hZFJlcXVlc3QQ6jYSHgoZRmls",
+ "ZUNodW5rRG93bmxvYWRSZXNwb25zZRDrNhIbChZWYWxpZGF0ZVZlcnNpb25S",
+ "ZXF1ZXN0EOw2EhwKF1ZhbGlkYXRlVmVyc2lvblJlc3BvbnNlEO02EhsKFkFj",
+ "dGl2YXRlVmVyc2lvblJlcXVlc3QQ7jYSHAoXQWN0aXZhdGVWZXJzaW9uUmVz",
+ "cG9uc2UQ7zYSGQoURGlzcGVuc2VyRGF0YVJlcXVlc3QQwD4SGgoVRGlzcGVu",
+ "c2VyRGF0YVJlc3BvbnNlEME+QhwKGmNvbS50d2luZS50YW5nby5wbXIuY29t",
+ "bW9uYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Common.MessageType), }, null));
@@ -344,6 +349,12 @@ namespace Tango.PMR.Common {
[pbr::OriginalName("SetBlowerStateResponse")] SetBlowerStateResponse = 2037,
[pbr::OriginalName("SetValveStateRequest")] SetValveStateRequest = 2038,
[pbr::OriginalName("SetValveStateResponse")] SetValveStateResponse = 2039,
+ [pbr::OriginalName("StartCartridgesUpdateRequest")] StartCartridgesUpdateRequest = 2040,
+ [pbr::OriginalName("StartCartridgesUpdateResponse")] StartCartridgesUpdateResponse = 2041,
+ [pbr::OriginalName("StopCartridgesUpdateRequest")] StopCartridgesUpdateRequest = 2042,
+ [pbr::OriginalName("StopCartridgesUpdateResponse")] StopCartridgesUpdateResponse = 2043,
+ [pbr::OriginalName("CartridgeValidationRequest")] CartridgeValidationRequest = 2044,
+ [pbr::OriginalName("CartridgeValidationResponse")] CartridgeValidationResponse = 2045,
/// <summary>
///Printing
/// </summary>
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/Cartridge.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/Cartridge.cs
new file mode 100644
index 000000000..f3eb9ae64
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/Cartridge.cs
@@ -0,0 +1,224 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Cartridge.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from Cartridge.proto</summary>
+ public static partial class CartridgeReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for Cartridge.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Cg9DYXJ0cmlkZ2UucHJvdG8SFVRhbmdvLlBNUi5EaWFnbm9zdGljcxoTQ2Fy",
+ "dHJpZGdlU2xvdC5wcm90bxoZQ2FydHJpZGdlVGFnQ29udGVudC5wcm90byKH",
+ "AQoJQ2FydHJpZGdlEjIKBFNsb3QYASABKA4yJC5UYW5nby5QTVIuRGlhZ25v",
+ "c3RpY3MuQ2FydHJpZGdlU2xvdBI3CgNUYWcYAiABKAsyKi5UYW5nby5QTVIu",
+ "RGlhZ25vc3RpY3MuQ2FydHJpZGdlVGFnQ29udGVudBINCgVJbmRleBgDIAEo",
+ "BUIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.CartridgeSlotReflection.Descriptor, global::Tango.PMR.Diagnostics.CartridgeTagContentReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.Cartridge), global::Tango.PMR.Diagnostics.Cartridge.Parser, new[]{ "Slot", "Tag", "Index" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class Cartridge : pb::IMessage<Cartridge> {
+ private static readonly pb::MessageParser<Cartridge> _parser = new pb::MessageParser<Cartridge>(() => new Cartridge());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<Cartridge> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.CartridgeReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public Cartridge() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public Cartridge(Cartridge other) : this() {
+ slot_ = other.slot_;
+ Tag = other.tag_ != null ? other.Tag.Clone() : null;
+ index_ = other.index_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public Cartridge Clone() {
+ return new Cartridge(this);
+ }
+
+ /// <summary>Field number for the "Slot" field.</summary>
+ public const int SlotFieldNumber = 1;
+ private global::Tango.PMR.Diagnostics.CartridgeSlot slot_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.CartridgeSlot Slot {
+ get { return slot_; }
+ set {
+ slot_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Tag" field.</summary>
+ public const int TagFieldNumber = 2;
+ private global::Tango.PMR.Diagnostics.CartridgeTagContent tag_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.CartridgeTagContent Tag {
+ get { return tag_; }
+ set {
+ tag_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Index" field.</summary>
+ public const int IndexFieldNumber = 3;
+ private int index_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int Index {
+ get { return index_; }
+ set {
+ index_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as Cartridge);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(Cartridge other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Slot != other.Slot) return false;
+ if (!object.Equals(Tag, other.Tag)) return false;
+ if (Index != other.Index) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Slot != 0) hash ^= Slot.GetHashCode();
+ if (tag_ != null) hash ^= Tag.GetHashCode();
+ if (Index != 0) hash ^= Index.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 (Slot != 0) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Slot);
+ }
+ if (tag_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Tag);
+ }
+ if (Index != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Index);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (Slot != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Slot);
+ }
+ if (tag_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tag);
+ }
+ if (Index != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(Cartridge other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Slot != 0) {
+ Slot = other.Slot;
+ }
+ if (other.tag_ != null) {
+ if (tag_ == null) {
+ tag_ = new global::Tango.PMR.Diagnostics.CartridgeTagContent();
+ }
+ Tag.MergeFrom(other.Tag);
+ }
+ if (other.Index != 0) {
+ Index = other.Index;
+ }
+ }
+
+ [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: {
+ slot_ = (global::Tango.PMR.Diagnostics.CartridgeSlot) input.ReadEnum();
+ break;
+ }
+ case 18: {
+ if (tag_ == null) {
+ tag_ = new global::Tango.PMR.Diagnostics.CartridgeTagContent();
+ }
+ input.ReadMessage(tag_);
+ break;
+ }
+ case 24: {
+ Index = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeAction.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeAction.cs
new file mode 100644
index 000000000..31ea020e4
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeAction.cs
@@ -0,0 +1,45 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CartridgeAction.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from CartridgeAction.proto</summary>
+ public static partial class CartridgeActionReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for CartridgeAction.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeActionReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChVDYXJ0cmlkZ2VBY3Rpb24ucHJvdG8SFVRhbmdvLlBNUi5EaWFnbm9zdGlj",
+ "cyosCg9DYXJ0cmlkZ2VBY3Rpb24SDAoISW5zZXJ0ZWQQABILCgdFamVjdGVk",
+ "EAFCIQofY29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9zdGljc2IGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Diagnostics.CartridgeAction), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum CartridgeAction {
+ [pbr::OriginalName("Inserted")] Inserted = 0,
+ [pbr::OriginalName("Ejected")] Ejected = 1,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeSlot.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeSlot.cs
new file mode 100644
index 000000000..bfd72ec68
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeSlot.cs
@@ -0,0 +1,47 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CartridgeSlot.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from CartridgeSlot.proto</summary>
+ public static partial class CartridgeSlotReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for CartridgeSlot.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeSlotReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChNDYXJ0cmlkZ2VTbG90LnByb3RvEhVUYW5nby5QTVIuRGlhZ25vc3RpY3Mq",
+ "OQoNQ2FydHJpZGdlU2xvdBIHCgNJbmsQABIPCgtXYXN0ZU1pZGRsZRABEg4K",
+ "Cldhc3RlTG93ZXIQAkIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0",
+ "aWNzYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Diagnostics.CartridgeSlot), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum CartridgeSlot {
+ [pbr::OriginalName("Ink")] Ink = 0,
+ [pbr::OriginalName("WasteMiddle")] WasteMiddle = 1,
+ [pbr::OriginalName("WasteLower")] WasteLower = 2,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeTagContent.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeTagContent.cs
new file mode 100644
index 000000000..e2327b3a2
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeTagContent.cs
@@ -0,0 +1,872 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CartridgeTagContent.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from CartridgeTagContent.proto</summary>
+ public static partial class CartridgeTagContentReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for CartridgeTagContent.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeTagContentReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChlDYXJ0cmlkZ2VUYWdDb250ZW50LnByb3RvEhVUYW5nby5QTVIuRGlhZ25v",
+ "c3RpY3MixQQKE0NhcnRyaWRnZVRhZ0NvbnRlbnQSEAoIVW5pcXVlSWQYASAB",
+ "KA0SFAoMU2VyaWFsTnVtYmVyGAIgASgJEhEKCUZhY3RvcnlJZBgDIAEoCRIX",
+ "Cg9GaWxsaW5nU3lzdGVtSWQYBCABKAUSEQoJQ29sb3JOYW1lGAUgASgJEhUK",
+ "DUNvbG9yQ2F0ZWdvcnkYBiABKAUSGQoRQ29sb3JUeXBlUmV2aXNpb24YByAB",
+ "KAUSFQoNQ2FydHJpZGdlU2l6ZRgIIAEoBRIXCg9GaWxsZWRJbmtWb2x1bWUY",
+ "CSABKAUSEwoLSW5rQmF0Y2hOdW0YCiABKAkSEgoKSW5rTUZHRGF0ZRgLIAEo",
+ "CRISCgpJbmtFT0xEYXRlGAwgASgJEhwKFENhcnRyaWRnZUZpbGxpbmdEYXRl",
+ "GA0gASgJEhcKD1dhc3RlRmlsbGVkRGF0ZRgOIAEoCRIVCg1QbHVnSW5Db3Vu",
+ "dGVyGA8gASgFEg8KB0lua2ZpbGwYECABKAgSDwoHSW5rVXNlZBgRIAEoCBIQ",
+ "CghJbmtFbXB0eRgSIAEoCBISCgpXYXN0ZUVtcHR5GBMgASgIEhQKDFdhc3Rl",
+ "RmlsbGluZxgUIAEoCBIRCglXYXN0ZUZ1bGwYFSABKAgSDwoHQmxvY2tlZBgW",
+ "IAEoCBIMCgRGYWlsGBcgASgIEhQKDFdhc3RlQ291bnRlchgYIAEoBRIYChBN",
+ "YWNoaW5lSWRJbmtVc2VkGBkgASgJEhoKEk1hY2hpbmVJZFdhc3RlVXNlZBga",
+ "IAEoCUIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZwcm90",
+ "bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.CartridgeTagContent), global::Tango.PMR.Diagnostics.CartridgeTagContent.Parser, new[]{ "UniqueId", "SerialNumber", "FactoryId", "FillingSystemId", "ColorName", "ColorCategory", "ColorTypeRevision", "CartridgeSize", "FilledInkVolume", "InkBatchNum", "InkMFGDate", "InkEOLDate", "CartridgeFillingDate", "WasteFilledDate", "PlugInCounter", "Inkfill", "InkUsed", "InkEmpty", "WasteEmpty", "WasteFilling", "WasteFull", "Blocked", "Fail", "WasteCounter", "MachineIdInkUsed", "MachineIdWasteUsed" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class CartridgeTagContent : pb::IMessage<CartridgeTagContent> {
+ private static readonly pb::MessageParser<CartridgeTagContent> _parser = new pb::MessageParser<CartridgeTagContent>(() => new CartridgeTagContent());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<CartridgeTagContent> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.CartridgeTagContentReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeTagContent() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeTagContent(CartridgeTagContent other) : this() {
+ uniqueId_ = other.uniqueId_;
+ serialNumber_ = other.serialNumber_;
+ factoryId_ = other.factoryId_;
+ fillingSystemId_ = other.fillingSystemId_;
+ colorName_ = other.colorName_;
+ colorCategory_ = other.colorCategory_;
+ colorTypeRevision_ = other.colorTypeRevision_;
+ cartridgeSize_ = other.cartridgeSize_;
+ filledInkVolume_ = other.filledInkVolume_;
+ inkBatchNum_ = other.inkBatchNum_;
+ inkMFGDate_ = other.inkMFGDate_;
+ inkEOLDate_ = other.inkEOLDate_;
+ cartridgeFillingDate_ = other.cartridgeFillingDate_;
+ wasteFilledDate_ = other.wasteFilledDate_;
+ plugInCounter_ = other.plugInCounter_;
+ inkfill_ = other.inkfill_;
+ inkUsed_ = other.inkUsed_;
+ inkEmpty_ = other.inkEmpty_;
+ wasteEmpty_ = other.wasteEmpty_;
+ wasteFilling_ = other.wasteFilling_;
+ wasteFull_ = other.wasteFull_;
+ blocked_ = other.blocked_;
+ fail_ = other.fail_;
+ wasteCounter_ = other.wasteCounter_;
+ machineIdInkUsed_ = other.machineIdInkUsed_;
+ machineIdWasteUsed_ = other.machineIdWasteUsed_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeTagContent Clone() {
+ return new CartridgeTagContent(this);
+ }
+
+ /// <summary>Field number for the "UniqueId" field.</summary>
+ public const int UniqueIdFieldNumber = 1;
+ private uint uniqueId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public uint UniqueId {
+ get { return uniqueId_; }
+ set {
+ uniqueId_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "SerialNumber" field.</summary>
+ public const int SerialNumberFieldNumber = 2;
+ private string serialNumber_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string SerialNumber {
+ get { return serialNumber_; }
+ set {
+ serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "FactoryId" field.</summary>
+ public const int FactoryIdFieldNumber = 3;
+ private string factoryId_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string FactoryId {
+ get { return factoryId_; }
+ set {
+ factoryId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "FillingSystemId" field.</summary>
+ public const int FillingSystemIdFieldNumber = 4;
+ private int fillingSystemId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int FillingSystemId {
+ get { return fillingSystemId_; }
+ set {
+ fillingSystemId_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "ColorName" field.</summary>
+ public const int ColorNameFieldNumber = 5;
+ private string colorName_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string ColorName {
+ get { return colorName_; }
+ set {
+ colorName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "ColorCategory" field.</summary>
+ public const int ColorCategoryFieldNumber = 6;
+ private int colorCategory_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int ColorCategory {
+ get { return colorCategory_; }
+ set {
+ colorCategory_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "ColorTypeRevision" field.</summary>
+ public const int ColorTypeRevisionFieldNumber = 7;
+ private int colorTypeRevision_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int ColorTypeRevision {
+ get { return colorTypeRevision_; }
+ set {
+ colorTypeRevision_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "CartridgeSize" field.</summary>
+ public const int CartridgeSizeFieldNumber = 8;
+ private int cartridgeSize_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CartridgeSize {
+ get { return cartridgeSize_; }
+ set {
+ cartridgeSize_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "FilledInkVolume" field.</summary>
+ public const int FilledInkVolumeFieldNumber = 9;
+ private int filledInkVolume_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int FilledInkVolume {
+ get { return filledInkVolume_; }
+ set {
+ filledInkVolume_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "InkBatchNum" field.</summary>
+ public const int InkBatchNumFieldNumber = 10;
+ private string inkBatchNum_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string InkBatchNum {
+ get { return inkBatchNum_; }
+ set {
+ inkBatchNum_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "InkMFGDate" field.</summary>
+ public const int InkMFGDateFieldNumber = 11;
+ private string inkMFGDate_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string InkMFGDate {
+ get { return inkMFGDate_; }
+ set {
+ inkMFGDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "InkEOLDate" field.</summary>
+ public const int InkEOLDateFieldNumber = 12;
+ private string inkEOLDate_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string InkEOLDate {
+ get { return inkEOLDate_; }
+ set {
+ inkEOLDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "CartridgeFillingDate" field.</summary>
+ public const int CartridgeFillingDateFieldNumber = 13;
+ private string cartridgeFillingDate_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string CartridgeFillingDate {
+ get { return cartridgeFillingDate_; }
+ set {
+ cartridgeFillingDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "WasteFilledDate" field.</summary>
+ public const int WasteFilledDateFieldNumber = 14;
+ private string wasteFilledDate_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string WasteFilledDate {
+ get { return wasteFilledDate_; }
+ set {
+ wasteFilledDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "PlugInCounter" field.</summary>
+ public const int PlugInCounterFieldNumber = 15;
+ private int plugInCounter_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int PlugInCounter {
+ get { return plugInCounter_; }
+ set {
+ plugInCounter_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Inkfill" field.</summary>
+ public const int InkfillFieldNumber = 16;
+ private bool inkfill_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Inkfill {
+ get { return inkfill_; }
+ set {
+ inkfill_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "InkUsed" field.</summary>
+ public const int InkUsedFieldNumber = 17;
+ private bool inkUsed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool InkUsed {
+ get { return inkUsed_; }
+ set {
+ inkUsed_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "InkEmpty" field.</summary>
+ public const int InkEmptyFieldNumber = 18;
+ private bool inkEmpty_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool InkEmpty {
+ get { return inkEmpty_; }
+ set {
+ inkEmpty_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "WasteEmpty" field.</summary>
+ public const int WasteEmptyFieldNumber = 19;
+ private bool wasteEmpty_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool WasteEmpty {
+ get { return wasteEmpty_; }
+ set {
+ wasteEmpty_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "WasteFilling" field.</summary>
+ public const int WasteFillingFieldNumber = 20;
+ private bool wasteFilling_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool WasteFilling {
+ get { return wasteFilling_; }
+ set {
+ wasteFilling_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "WasteFull" field.</summary>
+ public const int WasteFullFieldNumber = 21;
+ private bool wasteFull_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool WasteFull {
+ get { return wasteFull_; }
+ set {
+ wasteFull_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Blocked" field.</summary>
+ public const int BlockedFieldNumber = 22;
+ private bool blocked_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Blocked {
+ get { return blocked_; }
+ set {
+ blocked_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Fail" field.</summary>
+ public const int FailFieldNumber = 23;
+ private bool fail_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Fail {
+ get { return fail_; }
+ set {
+ fail_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "WasteCounter" field.</summary>
+ public const int WasteCounterFieldNumber = 24;
+ private int wasteCounter_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int WasteCounter {
+ get { return wasteCounter_; }
+ set {
+ wasteCounter_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "MachineIdInkUsed" field.</summary>
+ public const int MachineIdInkUsedFieldNumber = 25;
+ private string machineIdInkUsed_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string MachineIdInkUsed {
+ get { return machineIdInkUsed_; }
+ set {
+ machineIdInkUsed_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "MachineIdWasteUsed" field.</summary>
+ public const int MachineIdWasteUsedFieldNumber = 26;
+ private string machineIdWasteUsed_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string MachineIdWasteUsed {
+ get { return machineIdWasteUsed_; }
+ set {
+ machineIdWasteUsed_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as CartridgeTagContent);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(CartridgeTagContent other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (UniqueId != other.UniqueId) return false;
+ if (SerialNumber != other.SerialNumber) return false;
+ if (FactoryId != other.FactoryId) return false;
+ if (FillingSystemId != other.FillingSystemId) return false;
+ if (ColorName != other.ColorName) return false;
+ if (ColorCategory != other.ColorCategory) return false;
+ if (ColorTypeRevision != other.ColorTypeRevision) return false;
+ if (CartridgeSize != other.CartridgeSize) return false;
+ if (FilledInkVolume != other.FilledInkVolume) return false;
+ if (InkBatchNum != other.InkBatchNum) return false;
+ if (InkMFGDate != other.InkMFGDate) return false;
+ if (InkEOLDate != other.InkEOLDate) return false;
+ if (CartridgeFillingDate != other.CartridgeFillingDate) return false;
+ if (WasteFilledDate != other.WasteFilledDate) return false;
+ if (PlugInCounter != other.PlugInCounter) return false;
+ if (Inkfill != other.Inkfill) return false;
+ if (InkUsed != other.InkUsed) return false;
+ if (InkEmpty != other.InkEmpty) return false;
+ if (WasteEmpty != other.WasteEmpty) return false;
+ if (WasteFilling != other.WasteFilling) return false;
+ if (WasteFull != other.WasteFull) return false;
+ if (Blocked != other.Blocked) return false;
+ if (Fail != other.Fail) return false;
+ if (WasteCounter != other.WasteCounter) return false;
+ if (MachineIdInkUsed != other.MachineIdInkUsed) return false;
+ if (MachineIdWasteUsed != other.MachineIdWasteUsed) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (UniqueId != 0) hash ^= UniqueId.GetHashCode();
+ if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode();
+ if (FactoryId.Length != 0) hash ^= FactoryId.GetHashCode();
+ if (FillingSystemId != 0) hash ^= FillingSystemId.GetHashCode();
+ if (ColorName.Length != 0) hash ^= ColorName.GetHashCode();
+ if (ColorCategory != 0) hash ^= ColorCategory.GetHashCode();
+ if (ColorTypeRevision != 0) hash ^= ColorTypeRevision.GetHashCode();
+ if (CartridgeSize != 0) hash ^= CartridgeSize.GetHashCode();
+ if (FilledInkVolume != 0) hash ^= FilledInkVolume.GetHashCode();
+ if (InkBatchNum.Length != 0) hash ^= InkBatchNum.GetHashCode();
+ if (InkMFGDate.Length != 0) hash ^= InkMFGDate.GetHashCode();
+ if (InkEOLDate.Length != 0) hash ^= InkEOLDate.GetHashCode();
+ if (CartridgeFillingDate.Length != 0) hash ^= CartridgeFillingDate.GetHashCode();
+ if (WasteFilledDate.Length != 0) hash ^= WasteFilledDate.GetHashCode();
+ if (PlugInCounter != 0) hash ^= PlugInCounter.GetHashCode();
+ if (Inkfill != false) hash ^= Inkfill.GetHashCode();
+ if (InkUsed != false) hash ^= InkUsed.GetHashCode();
+ if (InkEmpty != false) hash ^= InkEmpty.GetHashCode();
+ if (WasteEmpty != false) hash ^= WasteEmpty.GetHashCode();
+ if (WasteFilling != false) hash ^= WasteFilling.GetHashCode();
+ if (WasteFull != false) hash ^= WasteFull.GetHashCode();
+ if (Blocked != false) hash ^= Blocked.GetHashCode();
+ if (Fail != false) hash ^= Fail.GetHashCode();
+ if (WasteCounter != 0) hash ^= WasteCounter.GetHashCode();
+ if (MachineIdInkUsed.Length != 0) hash ^= MachineIdInkUsed.GetHashCode();
+ if (MachineIdWasteUsed.Length != 0) hash ^= MachineIdWasteUsed.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 (UniqueId != 0) {
+ output.WriteRawTag(8);
+ output.WriteUInt32(UniqueId);
+ }
+ if (SerialNumber.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(SerialNumber);
+ }
+ if (FactoryId.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(FactoryId);
+ }
+ if (FillingSystemId != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(FillingSystemId);
+ }
+ if (ColorName.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(ColorName);
+ }
+ if (ColorCategory != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(ColorCategory);
+ }
+ if (ColorTypeRevision != 0) {
+ output.WriteRawTag(56);
+ output.WriteInt32(ColorTypeRevision);
+ }
+ if (CartridgeSize != 0) {
+ output.WriteRawTag(64);
+ output.WriteInt32(CartridgeSize);
+ }
+ if (FilledInkVolume != 0) {
+ output.WriteRawTag(72);
+ output.WriteInt32(FilledInkVolume);
+ }
+ if (InkBatchNum.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(InkBatchNum);
+ }
+ if (InkMFGDate.Length != 0) {
+ output.WriteRawTag(90);
+ output.WriteString(InkMFGDate);
+ }
+ if (InkEOLDate.Length != 0) {
+ output.WriteRawTag(98);
+ output.WriteString(InkEOLDate);
+ }
+ if (CartridgeFillingDate.Length != 0) {
+ output.WriteRawTag(106);
+ output.WriteString(CartridgeFillingDate);
+ }
+ if (WasteFilledDate.Length != 0) {
+ output.WriteRawTag(114);
+ output.WriteString(WasteFilledDate);
+ }
+ if (PlugInCounter != 0) {
+ output.WriteRawTag(120);
+ output.WriteInt32(PlugInCounter);
+ }
+ if (Inkfill != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(Inkfill);
+ }
+ if (InkUsed != false) {
+ output.WriteRawTag(136, 1);
+ output.WriteBool(InkUsed);
+ }
+ if (InkEmpty != false) {
+ output.WriteRawTag(144, 1);
+ output.WriteBool(InkEmpty);
+ }
+ if (WasteEmpty != false) {
+ output.WriteRawTag(152, 1);
+ output.WriteBool(WasteEmpty);
+ }
+ if (WasteFilling != false) {
+ output.WriteRawTag(160, 1);
+ output.WriteBool(WasteFilling);
+ }
+ if (WasteFull != false) {
+ output.WriteRawTag(168, 1);
+ output.WriteBool(WasteFull);
+ }
+ if (Blocked != false) {
+ output.WriteRawTag(176, 1);
+ output.WriteBool(Blocked);
+ }
+ if (Fail != false) {
+ output.WriteRawTag(184, 1);
+ output.WriteBool(Fail);
+ }
+ if (WasteCounter != 0) {
+ output.WriteRawTag(192, 1);
+ output.WriteInt32(WasteCounter);
+ }
+ if (MachineIdInkUsed.Length != 0) {
+ output.WriteRawTag(202, 1);
+ output.WriteString(MachineIdInkUsed);
+ }
+ if (MachineIdWasteUsed.Length != 0) {
+ output.WriteRawTag(210, 1);
+ output.WriteString(MachineIdWasteUsed);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (UniqueId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId);
+ }
+ if (SerialNumber.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber);
+ }
+ if (FactoryId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(FactoryId);
+ }
+ if (FillingSystemId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(FillingSystemId);
+ }
+ if (ColorName.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ColorName);
+ }
+ if (ColorCategory != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorCategory);
+ }
+ if (ColorTypeRevision != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorTypeRevision);
+ }
+ if (CartridgeSize != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(CartridgeSize);
+ }
+ if (FilledInkVolume != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(FilledInkVolume);
+ }
+ if (InkBatchNum.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(InkBatchNum);
+ }
+ if (InkMFGDate.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(InkMFGDate);
+ }
+ if (InkEOLDate.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(InkEOLDate);
+ }
+ if (CartridgeFillingDate.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CartridgeFillingDate);
+ }
+ if (WasteFilledDate.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(WasteFilledDate);
+ }
+ if (PlugInCounter != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlugInCounter);
+ }
+ if (Inkfill != false) {
+ size += 2 + 1;
+ }
+ if (InkUsed != false) {
+ size += 2 + 1;
+ }
+ if (InkEmpty != false) {
+ size += 2 + 1;
+ }
+ if (WasteEmpty != false) {
+ size += 2 + 1;
+ }
+ if (WasteFilling != false) {
+ size += 2 + 1;
+ }
+ if (WasteFull != false) {
+ size += 2 + 1;
+ }
+ if (Blocked != false) {
+ size += 2 + 1;
+ }
+ if (Fail != false) {
+ size += 2 + 1;
+ }
+ if (WasteCounter != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(WasteCounter);
+ }
+ if (MachineIdInkUsed.Length != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeStringSize(MachineIdInkUsed);
+ }
+ if (MachineIdWasteUsed.Length != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeStringSize(MachineIdWasteUsed);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(CartridgeTagContent other) {
+ if (other == null) {
+ return;
+ }
+ if (other.UniqueId != 0) {
+ UniqueId = other.UniqueId;
+ }
+ if (other.SerialNumber.Length != 0) {
+ SerialNumber = other.SerialNumber;
+ }
+ if (other.FactoryId.Length != 0) {
+ FactoryId = other.FactoryId;
+ }
+ if (other.FillingSystemId != 0) {
+ FillingSystemId = other.FillingSystemId;
+ }
+ if (other.ColorName.Length != 0) {
+ ColorName = other.ColorName;
+ }
+ if (other.ColorCategory != 0) {
+ ColorCategory = other.ColorCategory;
+ }
+ if (other.ColorTypeRevision != 0) {
+ ColorTypeRevision = other.ColorTypeRevision;
+ }
+ if (other.CartridgeSize != 0) {
+ CartridgeSize = other.CartridgeSize;
+ }
+ if (other.FilledInkVolume != 0) {
+ FilledInkVolume = other.FilledInkVolume;
+ }
+ if (other.InkBatchNum.Length != 0) {
+ InkBatchNum = other.InkBatchNum;
+ }
+ if (other.InkMFGDate.Length != 0) {
+ InkMFGDate = other.InkMFGDate;
+ }
+ if (other.InkEOLDate.Length != 0) {
+ InkEOLDate = other.InkEOLDate;
+ }
+ if (other.CartridgeFillingDate.Length != 0) {
+ CartridgeFillingDate = other.CartridgeFillingDate;
+ }
+ if (other.WasteFilledDate.Length != 0) {
+ WasteFilledDate = other.WasteFilledDate;
+ }
+ if (other.PlugInCounter != 0) {
+ PlugInCounter = other.PlugInCounter;
+ }
+ if (other.Inkfill != false) {
+ Inkfill = other.Inkfill;
+ }
+ if (other.InkUsed != false) {
+ InkUsed = other.InkUsed;
+ }
+ if (other.InkEmpty != false) {
+ InkEmpty = other.InkEmpty;
+ }
+ if (other.WasteEmpty != false) {
+ WasteEmpty = other.WasteEmpty;
+ }
+ if (other.WasteFilling != false) {
+ WasteFilling = other.WasteFilling;
+ }
+ if (other.WasteFull != false) {
+ WasteFull = other.WasteFull;
+ }
+ if (other.Blocked != false) {
+ Blocked = other.Blocked;
+ }
+ if (other.Fail != false) {
+ Fail = other.Fail;
+ }
+ if (other.WasteCounter != 0) {
+ WasteCounter = other.WasteCounter;
+ }
+ if (other.MachineIdInkUsed.Length != 0) {
+ MachineIdInkUsed = other.MachineIdInkUsed;
+ }
+ if (other.MachineIdWasteUsed.Length != 0) {
+ MachineIdWasteUsed = other.MachineIdWasteUsed;
+ }
+ }
+
+ [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: {
+ UniqueId = input.ReadUInt32();
+ break;
+ }
+ case 18: {
+ SerialNumber = input.ReadString();
+ break;
+ }
+ case 26: {
+ FactoryId = input.ReadString();
+ break;
+ }
+ case 32: {
+ FillingSystemId = input.ReadInt32();
+ break;
+ }
+ case 42: {
+ ColorName = input.ReadString();
+ break;
+ }
+ case 48: {
+ ColorCategory = input.ReadInt32();
+ break;
+ }
+ case 56: {
+ ColorTypeRevision = input.ReadInt32();
+ break;
+ }
+ case 64: {
+ CartridgeSize = input.ReadInt32();
+ break;
+ }
+ case 72: {
+ FilledInkVolume = input.ReadInt32();
+ break;
+ }
+ case 82: {
+ InkBatchNum = input.ReadString();
+ break;
+ }
+ case 90: {
+ InkMFGDate = input.ReadString();
+ break;
+ }
+ case 98: {
+ InkEOLDate = input.ReadString();
+ break;
+ }
+ case 106: {
+ CartridgeFillingDate = input.ReadString();
+ break;
+ }
+ case 114: {
+ WasteFilledDate = input.ReadString();
+ break;
+ }
+ case 120: {
+ PlugInCounter = input.ReadInt32();
+ break;
+ }
+ case 128: {
+ Inkfill = input.ReadBool();
+ break;
+ }
+ case 136: {
+ InkUsed = input.ReadBool();
+ break;
+ }
+ case 144: {
+ InkEmpty = input.ReadBool();
+ break;
+ }
+ case 152: {
+ WasteEmpty = input.ReadBool();
+ break;
+ }
+ case 160: {
+ WasteFilling = input.ReadBool();
+ break;
+ }
+ case 168: {
+ WasteFull = input.ReadBool();
+ break;
+ }
+ case 176: {
+ Blocked = input.ReadBool();
+ break;
+ }
+ case 184: {
+ Fail = input.ReadBool();
+ break;
+ }
+ case 192: {
+ WasteCounter = input.ReadInt32();
+ break;
+ }
+ case 202: {
+ MachineIdInkUsed = input.ReadString();
+ break;
+ }
+ case 210: {
+ MachineIdWasteUsed = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationRequest.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationRequest.cs
new file mode 100644
index 000000000..149c2b6cb
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationRequest.cs
@@ -0,0 +1,197 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CartridgeValidationRequest.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from CartridgeValidationRequest.proto</summary>
+ public static partial class CartridgeValidationRequestReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for CartridgeValidationRequest.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeValidationRequestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiBDYXJ0cmlkZ2VWYWxpZGF0aW9uUmVxdWVzdC5wcm90bxIVVGFuZ28uUE1S",
+ "LkRpYWdub3N0aWNzGg9DYXJ0cmlkZ2UucHJvdG8aFUNhcnRyaWRnZUFjdGlv",
+ "bi5wcm90byKJAQoaQ2FydHJpZGdlVmFsaWRhdGlvblJlcXVlc3QSMwoJQ2Fy",
+ "dHJpZGdlGAEgASgLMiAuVGFuZ28uUE1SLkRpYWdub3N0aWNzLkNhcnRyaWRn",
+ "ZRI2CgZBY3Rpb24YAiABKA4yJi5UYW5nby5QTVIuRGlhZ25vc3RpY3MuQ2Fy",
+ "dHJpZGdlQWN0aW9uQiEKH2NvbS50d2luZS50YW5nby5wbXIuZGlhZ25vc3Rp",
+ "Y3NiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.CartridgeReflection.Descriptor, global::Tango.PMR.Diagnostics.CartridgeActionReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.CartridgeValidationRequest), global::Tango.PMR.Diagnostics.CartridgeValidationRequest.Parser, new[]{ "Cartridge", "Action" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class CartridgeValidationRequest : pb::IMessage<CartridgeValidationRequest> {
+ private static readonly pb::MessageParser<CartridgeValidationRequest> _parser = new pb::MessageParser<CartridgeValidationRequest>(() => new CartridgeValidationRequest());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<CartridgeValidationRequest> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.CartridgeValidationRequestReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationRequest(CartridgeValidationRequest other) : this() {
+ Cartridge = other.cartridge_ != null ? other.Cartridge.Clone() : null;
+ action_ = other.action_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationRequest Clone() {
+ return new CartridgeValidationRequest(this);
+ }
+
+ /// <summary>Field number for the "Cartridge" field.</summary>
+ public const int CartridgeFieldNumber = 1;
+ private global::Tango.PMR.Diagnostics.Cartridge cartridge_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.Cartridge Cartridge {
+ get { return cartridge_; }
+ set {
+ cartridge_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Action" field.</summary>
+ public const int ActionFieldNumber = 2;
+ private global::Tango.PMR.Diagnostics.CartridgeAction action_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.CartridgeAction Action {
+ get { return action_; }
+ set {
+ action_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as CartridgeValidationRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(CartridgeValidationRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Cartridge, other.Cartridge)) return false;
+ if (Action != other.Action) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (cartridge_ != null) hash ^= Cartridge.GetHashCode();
+ if (Action != 0) hash ^= Action.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 (cartridge_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Cartridge);
+ }
+ if (Action != 0) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Action);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (cartridge_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cartridge);
+ }
+ if (Action != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(CartridgeValidationRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.cartridge_ != null) {
+ if (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ Cartridge.MergeFrom(other.Cartridge);
+ }
+ if (other.Action != 0) {
+ Action = other.Action;
+ }
+ }
+
+ [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 (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ input.ReadMessage(cartridge_);
+ break;
+ }
+ case 16: {
+ action_ = (global::Tango.PMR.Diagnostics.CartridgeAction) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationResponse.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationResponse.cs
new file mode 100644
index 000000000..7463f0270
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/CartridgeValidationResponse.cs
@@ -0,0 +1,195 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CartridgeValidationResponse.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from CartridgeValidationResponse.proto</summary>
+ public static partial class CartridgeValidationResponseReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for CartridgeValidationResponse.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static CartridgeValidationResponseReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiFDYXJ0cmlkZ2VWYWxpZGF0aW9uUmVzcG9uc2UucHJvdG8SFVRhbmdvLlBN",
+ "Ui5EaWFnbm9zdGljcxoPQ2FydHJpZGdlLnByb3RvImMKG0NhcnRyaWRnZVZh",
+ "bGlkYXRpb25SZXNwb25zZRIPCgdJc1ZhbGlkGAEgASgIEjMKCUNhcnRyaWRn",
+ "ZRgCIAEoCzIgLlRhbmdvLlBNUi5EaWFnbm9zdGljcy5DYXJ0cmlkZ2VCIQof",
+ "Y29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9zdGljc2IGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.CartridgeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.CartridgeValidationResponse), global::Tango.PMR.Diagnostics.CartridgeValidationResponse.Parser, new[]{ "IsValid", "Cartridge" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class CartridgeValidationResponse : pb::IMessage<CartridgeValidationResponse> {
+ private static readonly pb::MessageParser<CartridgeValidationResponse> _parser = new pb::MessageParser<CartridgeValidationResponse>(() => new CartridgeValidationResponse());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<CartridgeValidationResponse> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.CartridgeValidationResponseReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationResponse(CartridgeValidationResponse other) : this() {
+ isValid_ = other.isValid_;
+ Cartridge = other.cartridge_ != null ? other.Cartridge.Clone() : null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public CartridgeValidationResponse Clone() {
+ return new CartridgeValidationResponse(this);
+ }
+
+ /// <summary>Field number for the "IsValid" field.</summary>
+ public const int IsValidFieldNumber = 1;
+ private bool isValid_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool IsValid {
+ get { return isValid_; }
+ set {
+ isValid_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Cartridge" field.</summary>
+ public const int CartridgeFieldNumber = 2;
+ private global::Tango.PMR.Diagnostics.Cartridge cartridge_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.Cartridge Cartridge {
+ get { return cartridge_; }
+ set {
+ cartridge_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as CartridgeValidationResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(CartridgeValidationResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (IsValid != other.IsValid) return false;
+ if (!object.Equals(Cartridge, other.Cartridge)) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (IsValid != false) hash ^= IsValid.GetHashCode();
+ if (cartridge_ != null) hash ^= Cartridge.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 (IsValid != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(IsValid);
+ }
+ if (cartridge_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Cartridge);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (IsValid != false) {
+ size += 1 + 1;
+ }
+ if (cartridge_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cartridge);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(CartridgeValidationResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.IsValid != false) {
+ IsValid = other.IsValid;
+ }
+ if (other.cartridge_ != null) {
+ if (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ Cartridge.MergeFrom(other.Cartridge);
+ }
+ }
+
+ [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: {
+ IsValid = input.ReadBool();
+ break;
+ }
+ case 18: {
+ if (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ input.ReadMessage(cartridge_);
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateRequest.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateRequest.cs
new file mode 100644
index 000000000..b21b24a86
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateRequest.cs
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StartCartridgesUpdateRequest.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from StartCartridgesUpdateRequest.proto</summary>
+ public static partial class StartCartridgesUpdateRequestReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for StartCartridgesUpdateRequest.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static StartCartridgesUpdateRequestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiJTdGFydENhcnRyaWRnZXNVcGRhdGVSZXF1ZXN0LnByb3RvEhVUYW5nby5Q",
+ "TVIuRGlhZ25vc3RpY3MiHgocU3RhcnRDYXJ0cmlkZ2VzVXBkYXRlUmVxdWVz",
+ "dEIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.StartCartridgesUpdateRequest), global::Tango.PMR.Diagnostics.StartCartridgesUpdateRequest.Parser, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class StartCartridgesUpdateRequest : pb::IMessage<StartCartridgesUpdateRequest> {
+ private static readonly pb::MessageParser<StartCartridgesUpdateRequest> _parser = new pb::MessageParser<StartCartridgesUpdateRequest>(() => new StartCartridgesUpdateRequest());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<StartCartridgesUpdateRequest> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.StartCartridgesUpdateRequestReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateRequest(StartCartridgesUpdateRequest other) : this() {
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateRequest Clone() {
+ return new StartCartridgesUpdateRequest(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as StartCartridgesUpdateRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(StartCartridgesUpdateRequest 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(StartCartridgesUpdateRequest 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/Diagnostics/StartCartridgesUpdateResponse.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateResponse.cs
new file mode 100644
index 000000000..3ae89c8ee
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/StartCartridgesUpdateResponse.cs
@@ -0,0 +1,197 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StartCartridgesUpdateResponse.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from StartCartridgesUpdateResponse.proto</summary>
+ public static partial class StartCartridgesUpdateResponseReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for StartCartridgesUpdateResponse.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static StartCartridgesUpdateResponseReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiNTdGFydENhcnRyaWRnZXNVcGRhdGVSZXNwb25zZS5wcm90bxIVVGFuZ28u",
+ "UE1SLkRpYWdub3N0aWNzGg9DYXJ0cmlkZ2UucHJvdG8aFUNhcnRyaWRnZUFj",
+ "dGlvbi5wcm90byKMAQodU3RhcnRDYXJ0cmlkZ2VzVXBkYXRlUmVzcG9uc2US",
+ "MwoJQ2FydHJpZGdlGAEgASgLMiAuVGFuZ28uUE1SLkRpYWdub3N0aWNzLkNh",
+ "cnRyaWRnZRI2CgZBY3Rpb24YAiABKA4yJi5UYW5nby5QTVIuRGlhZ25vc3Rp",
+ "Y3MuQ2FydHJpZGdlQWN0aW9uQiEKH2NvbS50d2luZS50YW5nby5wbXIuZGlh",
+ "Z25vc3RpY3NiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.CartridgeReflection.Descriptor, global::Tango.PMR.Diagnostics.CartridgeActionReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.StartCartridgesUpdateResponse), global::Tango.PMR.Diagnostics.StartCartridgesUpdateResponse.Parser, new[]{ "Cartridge", "Action" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class StartCartridgesUpdateResponse : pb::IMessage<StartCartridgesUpdateResponse> {
+ private static readonly pb::MessageParser<StartCartridgesUpdateResponse> _parser = new pb::MessageParser<StartCartridgesUpdateResponse>(() => new StartCartridgesUpdateResponse());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<StartCartridgesUpdateResponse> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.StartCartridgesUpdateResponseReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateResponse(StartCartridgesUpdateResponse other) : this() {
+ Cartridge = other.cartridge_ != null ? other.Cartridge.Clone() : null;
+ action_ = other.action_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StartCartridgesUpdateResponse Clone() {
+ return new StartCartridgesUpdateResponse(this);
+ }
+
+ /// <summary>Field number for the "Cartridge" field.</summary>
+ public const int CartridgeFieldNumber = 1;
+ private global::Tango.PMR.Diagnostics.Cartridge cartridge_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.Cartridge Cartridge {
+ get { return cartridge_; }
+ set {
+ cartridge_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Action" field.</summary>
+ public const int ActionFieldNumber = 2;
+ private global::Tango.PMR.Diagnostics.CartridgeAction action_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Diagnostics.CartridgeAction Action {
+ get { return action_; }
+ set {
+ action_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as StartCartridgesUpdateResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(StartCartridgesUpdateResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Cartridge, other.Cartridge)) return false;
+ if (Action != other.Action) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (cartridge_ != null) hash ^= Cartridge.GetHashCode();
+ if (Action != 0) hash ^= Action.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 (cartridge_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Cartridge);
+ }
+ if (Action != 0) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Action);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (cartridge_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cartridge);
+ }
+ if (Action != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(StartCartridgesUpdateResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.cartridge_ != null) {
+ if (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ Cartridge.MergeFrom(other.Cartridge);
+ }
+ if (other.Action != 0) {
+ Action = other.Action;
+ }
+ }
+
+ [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 (cartridge_ == null) {
+ cartridge_ = new global::Tango.PMR.Diagnostics.Cartridge();
+ }
+ input.ReadMessage(cartridge_);
+ break;
+ }
+ case 16: {
+ action_ = (global::Tango.PMR.Diagnostics.CartridgeAction) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateRequest.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateRequest.cs
new file mode 100644
index 000000000..9630b94b9
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateRequest.cs
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StopCartridgesUpdateRequest.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from StopCartridgesUpdateRequest.proto</summary>
+ public static partial class StopCartridgesUpdateRequestReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for StopCartridgesUpdateRequest.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static StopCartridgesUpdateRequestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiFTdG9wQ2FydHJpZGdlc1VwZGF0ZVJlcXVlc3QucHJvdG8SFVRhbmdvLlBN",
+ "Ui5EaWFnbm9zdGljcyIdChtTdG9wQ2FydHJpZGdlc1VwZGF0ZVJlcXVlc3RC",
+ "IQofY29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9zdGljc2IGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.StopCartridgesUpdateRequest), global::Tango.PMR.Diagnostics.StopCartridgesUpdateRequest.Parser, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class StopCartridgesUpdateRequest : pb::IMessage<StopCartridgesUpdateRequest> {
+ private static readonly pb::MessageParser<StopCartridgesUpdateRequest> _parser = new pb::MessageParser<StopCartridgesUpdateRequest>(() => new StopCartridgesUpdateRequest());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<StopCartridgesUpdateRequest> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.StopCartridgesUpdateRequestReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateRequest(StopCartridgesUpdateRequest other) : this() {
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateRequest Clone() {
+ return new StopCartridgesUpdateRequest(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as StopCartridgesUpdateRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(StopCartridgesUpdateRequest 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(StopCartridgesUpdateRequest 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/Diagnostics/StopCartridgesUpdateResponse.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateResponse.cs
new file mode 100644
index 000000000..a497c980f
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/StopCartridgesUpdateResponse.cs
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StopCartridgesUpdateResponse.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.Diagnostics {
+
+ /// <summary>Holder for reflection information generated from StopCartridgesUpdateResponse.proto</summary>
+ public static partial class StopCartridgesUpdateResponseReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for StopCartridgesUpdateResponse.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static StopCartridgesUpdateResponseReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiJTdG9wQ2FydHJpZGdlc1VwZGF0ZVJlc3BvbnNlLnByb3RvEhVUYW5nby5Q",
+ "TVIuRGlhZ25vc3RpY3MiHgocU3RvcENhcnRyaWRnZXNVcGRhdGVSZXNwb25z",
+ "ZUIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.StopCartridgesUpdateResponse), global::Tango.PMR.Diagnostics.StopCartridgesUpdateResponse.Parser, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class StopCartridgesUpdateResponse : pb::IMessage<StopCartridgesUpdateResponse> {
+ private static readonly pb::MessageParser<StopCartridgesUpdateResponse> _parser = new pb::MessageParser<StopCartridgesUpdateResponse>(() => new StopCartridgesUpdateResponse());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<StopCartridgesUpdateResponse> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Diagnostics.StopCartridgesUpdateResponseReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateResponse(StopCartridgesUpdateResponse other) : this() {
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public StopCartridgesUpdateResponse Clone() {
+ return new StopCartridgesUpdateResponse(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as StopCartridgesUpdateResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(StopCartridgesUpdateResponse 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(StopCartridgesUpdateResponse 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 e988574b1..7e417e64b 100644
--- a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj
+++ b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj
@@ -78,6 +78,12 @@
<Compile Include="Debugging\StartDebugLogResponse.cs" />
<Compile Include="Debugging\StopDebugLogRequest.cs" />
<Compile Include="Debugging\StopDebugLogResponse.cs" />
+ <Compile Include="Diagnostics\Cartridge.cs" />
+ <Compile Include="Diagnostics\CartridgeAction.cs" />
+ <Compile Include="Diagnostics\CartridgeSlot.cs" />
+ <Compile Include="Diagnostics\CartridgeTagContent.cs" />
+ <Compile Include="Diagnostics\CartridgeValidationRequest.cs" />
+ <Compile Include="Diagnostics\CartridgeValidationResponse.cs" />
<Compile Include="Diagnostics\DataFileFrame.cs" />
<Compile Include="Diagnostics\DiagnosticsMonitors.cs" />
<Compile Include="Diagnostics\DigitalInterfaceState.cs" />
@@ -116,10 +122,14 @@
<Compile Include="Diagnostics\SetHeaterStateResponse.cs" />
<Compile Include="Diagnostics\SetValveStateRequest.cs" />
<Compile Include="Diagnostics\SetValveStateResponse.cs" />
+ <Compile Include="Diagnostics\StartCartridgesUpdateRequest.cs" />
+ <Compile Include="Diagnostics\StartCartridgesUpdateResponse.cs" />
<Compile Include="Diagnostics\StartDiagnosticsRequest.cs" />
<Compile Include="Diagnostics\StartDiagnosticsResponse.cs" />
<Compile Include="Diagnostics\StartEventsNotificationRequest.cs" />
<Compile Include="Diagnostics\StartEventsNotificationResponse.cs" />
+ <Compile Include="Diagnostics\StopCartridgesUpdateRequest.cs" />
+ <Compile Include="Diagnostics\StopCartridgesUpdateResponse.cs" />
<Compile Include="Diagnostics\StopDiagnosticsRequest.cs" />
<Compile Include="Diagnostics\StopDiagnosticsResponse.cs" />
<Compile Include="Diagnostics\StopEventsNotificationRequest.cs" />
@@ -278,7 +288,7 @@
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
+ <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file