diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-06-17 12:41:46 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-06-17 12:41:46 +0300 |
| commit | 4887d7d6d0353987dd00314bfa0449a76dd74b1e (patch) | |
| tree | e6b4862b0ed7a90b0c5834b681e45ee2fde26262 /Software/Visual_Studio | |
| parent | 381c741261a6eba5ba39e2ed3116ac8a4fa61469 (diff) | |
| download | Tango-4887d7d6d0353987dd00314bfa0449a76dd74b1e.tar.gz Tango-4887d7d6d0353987dd00314bfa0449a76dd74b1e.zip | |
Compiled MainCardStoredDataRequest.
Diffstat (limited to 'Software/Visual_Studio')
6 files changed, 759 insertions, 18 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs b/Software/Visual_Studio/Tango.PMR/Common/MessageType.cs index e3ebc0260..088ceb863 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( - "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbirFOwoLTWVz", + "ChFNZXNzYWdlVHlwZS5wcm90bxIQVGFuZ28uUE1SLkNvbW1vbiqGPAoLTWVz", "c2FnZVR5cGUSCAoETm9uZRAAEhEKDUVycm9yUmVzcG9uc2UQARIUChBDYWxj", "dWxhdGVSZXF1ZXN0EAMSFQoRQ2FsY3VsYXRlUmVzcG9uc2UQBBITCg9Qcm9n", "cmVzc1JlcXVlc3QQBRIUChBQcm9ncmVzc1Jlc3BvbnNlEAYSHAoYU3R1YkNh", @@ -178,22 +178,23 @@ namespace Tango.PMR.Common { "ZXNwb25zZRDBPhIcChdNaWRUYW5rRGF0YVNldHVwUmVxdWVzdBDCPhIdChhN", "aWRUYW5rRGF0YVNldHVwUmVzcG9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ileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Common.MessageType), }, null)); @@ -478,6 +479,8 @@ namespace Tango.PMR.Common { [pbr::OriginalName("MidTankDataSetupResponse")] MidTankDataSetupResponse = 8003, [pbr::OriginalName("MachineCalibrationDataRequest")] MachineCalibrationDataRequest = 8004, [pbr::OriginalName("MachineCalibrationDataResponse")] MachineCalibrationDataResponse = 8005, + [pbr::OriginalName("MainCardStoredDataRequest")] MainCardStoredDataRequest = 8006, + [pbr::OriginalName("MainCardStoredDataResponse")] MainCardStoredDataResponse = 8007, /// <summary> ///Machine Status /// </summary> diff --git a/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredData.cs b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredData.cs new file mode 100644 index 000000000..94a15b2a0 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredData.cs @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MainCardStoredData.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.EmbeddedParameters { + + /// <summary>Holder for reflection information generated from MainCardStoredData.proto</summary> + public static partial class MainCardStoredDataReflection { + + #region Descriptor + /// <summary>File descriptor for MainCardStoredData.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainCardStoredDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhNYWluQ2FyZFN0b3JlZERhdGEucHJvdG8SHFRhbmdvLlBNUi5FbWJlZGRl", + "ZFBhcmFtZXRlcnMaGE1haW5DYXJkU3RvcmVkSXRlbS5wcm90byJvChJNYWlu", + "Q2FyZFN0b3JlZERhdGESEwoLTWFpbkNhcmRTX04YASABKAkSRAoKU3RvcmVk", + "SXRlbRgCIAMoCzIwLlRhbmdvLlBNUi5FbWJlZGRlZFBhcmFtZXRlcnMuTWFp", + "bkNhcmRTdG9yZWRJdGVtQigKJmNvbS50d2luZS50YW5nby5wbXIuZW1iZWRk", + "ZWRwYXJhbWV0ZXJzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.EmbeddedParameters.MainCardStoredItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.MainCardStoredData), global::Tango.PMR.EmbeddedParameters.MainCardStoredData.Parser, new[]{ "MainCardSN", "StoredItem" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MainCardStoredData : pb::IMessage<MainCardStoredData> { + private static readonly pb::MessageParser<MainCardStoredData> _parser = new pb::MessageParser<MainCardStoredData>(() => new MainCardStoredData()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<MainCardStoredData> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.EmbeddedParameters.MainCardStoredDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredData(MainCardStoredData other) : this() { + mainCardSN_ = other.mainCardSN_; + storedItem_ = other.storedItem_.Clone(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredData Clone() { + return new MainCardStoredData(this); + } + + /// <summary>Field number for the "MainCardS_N" field.</summary> + public const int MainCardSNFieldNumber = 1; + private string mainCardSN_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string MainCardSN { + get { return mainCardSN_; } + set { + mainCardSN_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "StoredItem" field.</summary> + public const int StoredItemFieldNumber = 2; + private static readonly pb::FieldCodec<global::Tango.PMR.EmbeddedParameters.MainCardStoredItem> _repeated_storedItem_codec + = pb::FieldCodec.ForMessage(18, global::Tango.PMR.EmbeddedParameters.MainCardStoredItem.Parser); + private readonly pbc::RepeatedField<global::Tango.PMR.EmbeddedParameters.MainCardStoredItem> storedItem_ = new pbc::RepeatedField<global::Tango.PMR.EmbeddedParameters.MainCardStoredItem>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField<global::Tango.PMR.EmbeddedParameters.MainCardStoredItem> StoredItem { + get { return storedItem_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MainCardStoredData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MainCardStoredData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MainCardSN != other.MainCardSN) return false; + if(!storedItem_.Equals(other.storedItem_)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (MainCardSN.Length != 0) hash ^= MainCardSN.GetHashCode(); + hash ^= storedItem_.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 (MainCardSN.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MainCardSN); + } + storedItem_.WriteTo(output, _repeated_storedItem_codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (MainCardSN.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MainCardSN); + } + size += storedItem_.CalculateSize(_repeated_storedItem_codec); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MainCardStoredData other) { + if (other == null) { + return; + } + if (other.MainCardSN.Length != 0) { + MainCardSN = other.MainCardSN; + } + storedItem_.Add(other.storedItem_); + } + + [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: { + MainCardSN = input.ReadString(); + break; + } + case 18: { + storedItem_.AddEntriesFrom(input, _repeated_storedItem_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataRequest.cs b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataRequest.cs new file mode 100644 index 000000000..6db8ab8f8 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataRequest.cs @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MainCardStoredDataRequest.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.EmbeddedParameters { + + /// <summary>Holder for reflection information generated from MainCardStoredDataRequest.proto</summary> + public static partial class MainCardStoredDataRequestReflection { + + #region Descriptor + /// <summary>File descriptor for MainCardStoredDataRequest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainCardStoredDataRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9NYWluQ2FyZFN0b3JlZERhdGFSZXF1ZXN0LnByb3RvEhxUYW5nby5QTVIu", + "RW1iZWRkZWRQYXJhbWV0ZXJzGhhNYWluQ2FyZFN0b3JlZERhdGEucHJvdG8i", + "fgoZTWFpbkNhcmRTdG9yZWREYXRhUmVxdWVzdBITCgtCdXJuUmVxdWVzdBgB", + "IAEoCBJMChJNYWluQ2FyZFN0b3JlZERhdGEYAiABKAsyMC5UYW5nby5QTVIu", + "RW1iZWRkZWRQYXJhbWV0ZXJzLk1haW5DYXJkU3RvcmVkRGF0YUIoCiZjb20u", + "dHdpbmUudGFuZ28ucG1yLmVtYmVkZGVkcGFyYW1ldGVyc2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.EmbeddedParameters.MainCardStoredDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.MainCardStoredDataRequest), global::Tango.PMR.EmbeddedParameters.MainCardStoredDataRequest.Parser, new[]{ "BurnRequest", "MainCardStoredData" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MainCardStoredDataRequest : pb::IMessage<MainCardStoredDataRequest> { + private static readonly pb::MessageParser<MainCardStoredDataRequest> _parser = new pb::MessageParser<MainCardStoredDataRequest>(() => new MainCardStoredDataRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<MainCardStoredDataRequest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.EmbeddedParameters.MainCardStoredDataRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataRequest(MainCardStoredDataRequest other) : this() { + burnRequest_ = other.burnRequest_; + MainCardStoredData = other.mainCardStoredData_ != null ? other.MainCardStoredData.Clone() : null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataRequest Clone() { + return new MainCardStoredDataRequest(this); + } + + /// <summary>Field number for the "BurnRequest" field.</summary> + public const int BurnRequestFieldNumber = 1; + private bool burnRequest_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool BurnRequest { + get { return burnRequest_; } + set { + burnRequest_ = value; + } + } + + /// <summary>Field number for the "MainCardStoredData" field.</summary> + public const int MainCardStoredDataFieldNumber = 2; + private global::Tango.PMR.EmbeddedParameters.MainCardStoredData mainCardStoredData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.EmbeddedParameters.MainCardStoredData MainCardStoredData { + get { return mainCardStoredData_; } + set { + mainCardStoredData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MainCardStoredDataRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MainCardStoredDataRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BurnRequest != other.BurnRequest) return false; + if (!object.Equals(MainCardStoredData, other.MainCardStoredData)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (BurnRequest != false) hash ^= BurnRequest.GetHashCode(); + if (mainCardStoredData_ != null) hash ^= MainCardStoredData.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 (BurnRequest != false) { + output.WriteRawTag(8); + output.WriteBool(BurnRequest); + } + if (mainCardStoredData_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MainCardStoredData); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (BurnRequest != false) { + size += 1 + 1; + } + if (mainCardStoredData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainCardStoredData); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MainCardStoredDataRequest other) { + if (other == null) { + return; + } + if (other.BurnRequest != false) { + BurnRequest = other.BurnRequest; + } + if (other.mainCardStoredData_ != null) { + if (mainCardStoredData_ == null) { + mainCardStoredData_ = new global::Tango.PMR.EmbeddedParameters.MainCardStoredData(); + } + MainCardStoredData.MergeFrom(other.MainCardStoredData); + } + } + + [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: { + BurnRequest = input.ReadBool(); + break; + } + case 18: { + if (mainCardStoredData_ == null) { + mainCardStoredData_ = new global::Tango.PMR.EmbeddedParameters.MainCardStoredData(); + } + input.ReadMessage(mainCardStoredData_); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataResponse.cs b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataResponse.cs new file mode 100644 index 000000000..b2e40a5bb --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredDataResponse.cs @@ -0,0 +1,168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MainCardStoredDataResponse.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.EmbeddedParameters { + + /// <summary>Holder for reflection information generated from MainCardStoredDataResponse.proto</summary> + public static partial class MainCardStoredDataResponseReflection { + + #region Descriptor + /// <summary>File descriptor for MainCardStoredDataResponse.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainCardStoredDataResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBNYWluQ2FyZFN0b3JlZERhdGFSZXNwb25zZS5wcm90bxIcVGFuZ28uUE1S", + "LkVtYmVkZGVkUGFyYW1ldGVycxoYTWFpbkNhcmRTdG9yZWREYXRhLnByb3Rv", + "ImoKGk1haW5DYXJkU3RvcmVkRGF0YVJlc3BvbnNlEkwKEk1haW5DYXJkU3Rv", + "cmVkRGF0YRgBIAEoCzIwLlRhbmdvLlBNUi5FbWJlZGRlZFBhcmFtZXRlcnMu", + "TWFpbkNhcmRTdG9yZWREYXRhQigKJmNvbS50d2luZS50YW5nby5wbXIuZW1i", + "ZWRkZWRwYXJhbWV0ZXJzYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.EmbeddedParameters.MainCardStoredDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.MainCardStoredDataResponse), global::Tango.PMR.EmbeddedParameters.MainCardStoredDataResponse.Parser, new[]{ "MainCardStoredData" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MainCardStoredDataResponse : pb::IMessage<MainCardStoredDataResponse> { + private static readonly pb::MessageParser<MainCardStoredDataResponse> _parser = new pb::MessageParser<MainCardStoredDataResponse>(() => new MainCardStoredDataResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<MainCardStoredDataResponse> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.EmbeddedParameters.MainCardStoredDataResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataResponse(MainCardStoredDataResponse other) : this() { + MainCardStoredData = other.mainCardStoredData_ != null ? other.MainCardStoredData.Clone() : null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredDataResponse Clone() { + return new MainCardStoredDataResponse(this); + } + + /// <summary>Field number for the "MainCardStoredData" field.</summary> + public const int MainCardStoredDataFieldNumber = 1; + private global::Tango.PMR.EmbeddedParameters.MainCardStoredData mainCardStoredData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.EmbeddedParameters.MainCardStoredData MainCardStoredData { + get { return mainCardStoredData_; } + set { + mainCardStoredData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MainCardStoredDataResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MainCardStoredDataResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MainCardStoredData, other.MainCardStoredData)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (mainCardStoredData_ != null) hash ^= MainCardStoredData.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 (mainCardStoredData_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MainCardStoredData); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (mainCardStoredData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainCardStoredData); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MainCardStoredDataResponse other) { + if (other == null) { + return; + } + if (other.mainCardStoredData_ != null) { + if (mainCardStoredData_ == null) { + mainCardStoredData_ = new global::Tango.PMR.EmbeddedParameters.MainCardStoredData(); + } + MainCardStoredData.MergeFrom(other.MainCardStoredData); + } + } + + [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 (mainCardStoredData_ == null) { + mainCardStoredData_ = new global::Tango.PMR.EmbeddedParameters.MainCardStoredData(); + } + input.ReadMessage(mainCardStoredData_); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredItem.cs b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredItem.cs new file mode 100644 index 000000000..3cc7457ab --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/EmbeddedParameters/MainCardStoredItem.cs @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MainCardStoredItem.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.EmbeddedParameters { + + /// <summary>Holder for reflection information generated from MainCardStoredItem.proto</summary> + public static partial class MainCardStoredItemReflection { + + #region Descriptor + /// <summary>File descriptor for MainCardStoredItem.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainCardStoredItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhNYWluQ2FyZFN0b3JlZEl0ZW0ucHJvdG8SHFRhbmdvLlBNUi5FbWJlZGRl", + "ZFBhcmFtZXRlcnMiMwoSTWFpbkNhcmRTdG9yZWRJdGVtEg8KB0FkZHJlc3MY", + "ASABKA0SDAoERGF0YRgCIAEoDUIoCiZjb20udHdpbmUudGFuZ28ucG1yLmVt", + "YmVkZGVkcGFyYW1ldGVyc2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.MainCardStoredItem), global::Tango.PMR.EmbeddedParameters.MainCardStoredItem.Parser, new[]{ "Address", "Data" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class MainCardStoredItem : pb::IMessage<MainCardStoredItem> { + private static readonly pb::MessageParser<MainCardStoredItem> _parser = new pb::MessageParser<MainCardStoredItem>(() => new MainCardStoredItem()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<MainCardStoredItem> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.EmbeddedParameters.MainCardStoredItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredItem(MainCardStoredItem other) : this() { + address_ = other.address_; + data_ = other.data_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MainCardStoredItem Clone() { + return new MainCardStoredItem(this); + } + + /// <summary>Field number for the "Address" field.</summary> + public const int AddressFieldNumber = 1; + private uint address_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Address { + get { return address_; } + set { + address_ = value; + } + } + + /// <summary>Field number for the "Data" field.</summary> + public const int DataFieldNumber = 2; + private uint data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as MainCardStoredItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MainCardStoredItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Address != other.Address) return false; + if (Data != other.Data) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Address != 0) hash ^= Address.GetHashCode(); + if (Data != 0) hash ^= Data.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 (Address != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Address); + } + if (Data != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Data); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Address != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Address); + } + if (Data != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MainCardStoredItem other) { + if (other == null) { + return; + } + if (other.Address != 0) { + Address = other.Address; + } + if (other.Data != 0) { + Data = other.Data; + } + } + + [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: { + Address = input.ReadUInt32(); + break; + } + case 16: { + Data = input.ReadUInt32(); + 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 0a5c8d58c..cfe5ef8f2 100644 --- a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj +++ b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj @@ -158,6 +158,10 @@ <Compile Include="EmbeddedParameters\MachineCalibrationData.cs" /> <Compile Include="EmbeddedParameters\MachineCalibrationDataRequest.cs" /> <Compile Include="EmbeddedParameters\MachineCalibrationDataResponse.cs" /> + <Compile Include="EmbeddedParameters\MainCardStoredData.cs" /> + <Compile Include="EmbeddedParameters\MainCardStoredDataRequest.cs" /> + <Compile Include="EmbeddedParameters\MainCardStoredDataResponse.cs" /> + <Compile Include="EmbeddedParameters\MainCardStoredItem.cs" /> <Compile Include="EmbeddedParameters\MidTankData.cs" /> <Compile Include="EmbeddedParameters\MidTankDataSetupRequest.cs" /> <Compile Include="EmbeddedParameters\MidTankDataSetupResponse.cs" /> @@ -452,7 +456,7 @@ </PropertyGroup> <ProjectExtensions> <VisualStudio> - <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" /> + <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" /> </VisualStudio> </ProjectExtensions> </Project>
\ No newline at end of file |
