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/Tango.PMR/EmbeddedParameters | |
| parent | 381c741261a6eba5ba39e2ed3116ac8a4fa61469 (diff) | |
| download | Tango-4887d7d6d0353987dd00314bfa0449a76dd74b1e.tar.gz Tango-4887d7d6d0353987dd00314bfa0449a76dd74b1e.zip | |
Compiled MainCardStoredDataRequest.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/EmbeddedParameters')
4 files changed, 734 insertions, 0 deletions
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 |
