aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs37
1 files changed, 33 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs b/Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs
index 96b0a8525..98a6c2efc 100644
--- a/Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs
+++ b/Software/Visual_Studio/Tango.PMR/FirmwareUpgrade/VersionFileDescriptor.cs
@@ -23,15 +23,16 @@ namespace Tango.PMR.FirmwareUpgrade {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChtWZXJzaW9uRmlsZURlc2NyaXB0b3IucHJvdG8SGVRhbmdvLlBNUi5GaXJt",
- "d2FyZVVwZ3JhZGUaHFZlcnNpb25GaWxlRGVzdGluYXRpb24ucHJvdG8iggEK",
+ "d2FyZVVwZ3JhZGUaHFZlcnNpb25GaWxlRGVzdGluYXRpb24ucHJvdG8ilAEK",
"FVZlcnNpb25GaWxlRGVzY3JpcHRvchIQCghGaWxlTmFtZRgBIAEoCRIPCgdW",
"ZXJzaW9uGAIgASgJEkYKC0Rlc3RpbmF0aW9uGAMgASgOMjEuVGFuZ28uUE1S",
- "LkZpcm13YXJlVXBncmFkZS5WZXJzaW9uRmlsZURlc3RpbmF0aW9uQiUKI2Nv",
- "bS50d2luZS50YW5nby5wbXIuZmlybXdhcmV1cGdyYWRlYgZwcm90bzM="));
+ "LkZpcm13YXJlVXBncmFkZS5WZXJzaW9uRmlsZURlc3RpbmF0aW9uEhAKCENo",
+ "ZWNrU3VtGAQgASgMQiUKI2NvbS50d2luZS50YW5nby5wbXIuZmlybXdhcmV1",
+ "cGdyYWRlYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.FirmwareUpgrade.VersionFileDestinationReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.FirmwareUpgrade.VersionFileDescriptor), global::Tango.PMR.FirmwareUpgrade.VersionFileDescriptor.Parser, new[]{ "FileName", "Version", "Destination" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.FirmwareUpgrade.VersionFileDescriptor), global::Tango.PMR.FirmwareUpgrade.VersionFileDescriptor.Parser, new[]{ "FileName", "Version", "Destination", "CheckSum" }, null, null, null)
}));
}
#endregion
@@ -65,6 +66,7 @@ namespace Tango.PMR.FirmwareUpgrade {
fileName_ = other.fileName_;
version_ = other.version_;
destination_ = other.destination_;
+ checkSum_ = other.checkSum_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -105,6 +107,17 @@ namespace Tango.PMR.FirmwareUpgrade {
}
}
+ /// <summary>Field number for the "CheckSum" field.</summary>
+ public const int CheckSumFieldNumber = 4;
+ private pb::ByteString checkSum_ = pb::ByteString.Empty;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public pb::ByteString CheckSum {
+ get { return checkSum_; }
+ set {
+ checkSum_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as VersionFileDescriptor);
@@ -121,6 +134,7 @@ namespace Tango.PMR.FirmwareUpgrade {
if (FileName != other.FileName) return false;
if (Version != other.Version) return false;
if (Destination != other.Destination) return false;
+ if (CheckSum != other.CheckSum) return false;
return true;
}
@@ -130,6 +144,7 @@ namespace Tango.PMR.FirmwareUpgrade {
if (FileName.Length != 0) hash ^= FileName.GetHashCode();
if (Version.Length != 0) hash ^= Version.GetHashCode();
if (Destination != 0) hash ^= Destination.GetHashCode();
+ if (CheckSum.Length != 0) hash ^= CheckSum.GetHashCode();
return hash;
}
@@ -152,6 +167,10 @@ namespace Tango.PMR.FirmwareUpgrade {
output.WriteRawTag(24);
output.WriteEnum((int) Destination);
}
+ if (CheckSum.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteBytes(CheckSum);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -166,6 +185,9 @@ namespace Tango.PMR.FirmwareUpgrade {
if (Destination != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Destination);
}
+ if (CheckSum.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(CheckSum);
+ }
return size;
}
@@ -183,6 +205,9 @@ namespace Tango.PMR.FirmwareUpgrade {
if (other.Destination != 0) {
Destination = other.Destination;
}
+ if (other.CheckSum.Length != 0) {
+ CheckSum = other.CheckSum;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -205,6 +230,10 @@ namespace Tango.PMR.FirmwareUpgrade {
destination_ = (global::Tango.PMR.FirmwareUpgrade.VersionFileDestination) input.ReadEnum();
break;
}
+ case 34: {
+ CheckSum = input.ReadBytes();
+ break;
+ }
}
}
}