aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/DataStore
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-20 20:58:32 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-20 20:58:32 +0300
commit50b5a229c4fe547a896539f24c96e5e9a86ebb80 (patch)
tree653f78a466296564862e5bcba38422284f693545 /Software/Visual_Studio/Tango.PMR/DataStore
parentb732167cbc51f0b19447d67687af5c514cf4f65a (diff)
downloadTango-50b5a229c4fe547a896539f24c96e5e9a86ebb80.tar.gz
Tango-50b5a229c4fe547a896539f24c96e5e9a86ebb80.zip
DATA STORE !
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/DataStore')
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/DataStoreItem.cs359
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/DataType.cs50
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemRequest.cs188
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemResponse.cs167
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs195
-rw-r--r--Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemResponse.cs131
6 files changed, 1090 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/DataStoreItem.cs b/Software/Visual_Studio/Tango.PMR/DataStore/DataStoreItem.cs
new file mode 100644
index 000000000..a6d2fe860
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/DataStoreItem.cs
@@ -0,0 +1,359 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataStoreItem.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from DataStoreItem.proto</summary>
+ public static partial class DataStoreItemReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for DataStoreItem.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static DataStoreItemReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChNEYXRhU3RvcmVJdGVtLnByb3RvEhNUYW5nby5QTVIuRGF0YVN0b3JlGg5E",
+ "YXRhVHlwZS5wcm90byLJAQoNRGF0YVN0b3JlSXRlbRILCgNLZXkYASABKAkS",
+ "LwoIRGF0YVR5cGUYAiABKA4yHS5UYW5nby5QTVIuRGF0YVN0b3JlLkRhdGFU",
+ "eXBlEhIKCkludDMyVmFsdWUYAyABKAUSEgoKRmxvYXRWYWx1ZRgEIAEoAhIT",
+ "CgtEb3VibGVWYWx1ZRgFIAEoARIUCgxCb29sZWFuVmFsdWUYBiABKAgSEwoL",
+ "U3RyaW5nVmFsdWUYByABKAkSEgoKQnl0ZXNWYWx1ZRgIIAEoDEIfCh1jb20u",
+ "dHdpbmUudGFuZ28ucG1yLmRhdGFzdG9yZWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.DataStore.DataTypeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.DataStoreItem), global::Tango.PMR.DataStore.DataStoreItem.Parser, new[]{ "Key", "DataType", "Int32Value", "FloatValue", "DoubleValue", "BooleanValue", "StringValue", "BytesValue" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class DataStoreItem : pb::IMessage<DataStoreItem> {
+ private static readonly pb::MessageParser<DataStoreItem> _parser = new pb::MessageParser<DataStoreItem>(() => new DataStoreItem());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<DataStoreItem> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.DataStore.DataStoreItemReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public DataStoreItem() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public DataStoreItem(DataStoreItem other) : this() {
+ key_ = other.key_;
+ dataType_ = other.dataType_;
+ int32Value_ = other.int32Value_;
+ floatValue_ = other.floatValue_;
+ doubleValue_ = other.doubleValue_;
+ booleanValue_ = other.booleanValue_;
+ stringValue_ = other.stringValue_;
+ bytesValue_ = other.bytesValue_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public DataStoreItem Clone() {
+ return new DataStoreItem(this);
+ }
+
+ /// <summary>Field number for the "Key" field.</summary>
+ public const int KeyFieldNumber = 1;
+ private string key_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string Key {
+ get { return key_; }
+ set {
+ key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "DataType" field.</summary>
+ public const int DataTypeFieldNumber = 2;
+ private global::Tango.PMR.DataStore.DataType dataType_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.DataStore.DataType DataType {
+ get { return dataType_; }
+ set {
+ dataType_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Int32Value" field.</summary>
+ public const int Int32ValueFieldNumber = 3;
+ private int int32Value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int Int32Value {
+ get { return int32Value_; }
+ set {
+ int32Value_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "FloatValue" field.</summary>
+ public const int FloatValueFieldNumber = 4;
+ private float floatValue_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public float FloatValue {
+ get { return floatValue_; }
+ set {
+ floatValue_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "DoubleValue" field.</summary>
+ public const int DoubleValueFieldNumber = 5;
+ private double doubleValue_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleValue {
+ get { return doubleValue_; }
+ set {
+ doubleValue_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "BooleanValue" field.</summary>
+ public const int BooleanValueFieldNumber = 6;
+ private bool booleanValue_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool BooleanValue {
+ get { return booleanValue_; }
+ set {
+ booleanValue_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "StringValue" field.</summary>
+ public const int StringValueFieldNumber = 7;
+ private string stringValue_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string StringValue {
+ get { return stringValue_; }
+ set {
+ stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "BytesValue" field.</summary>
+ public const int BytesValueFieldNumber = 8;
+ private pb::ByteString bytesValue_ = pb::ByteString.Empty;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public pb::ByteString BytesValue {
+ get { return bytesValue_; }
+ set {
+ bytesValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as DataStoreItem);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(DataStoreItem other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Key != other.Key) return false;
+ if (DataType != other.DataType) return false;
+ if (Int32Value != other.Int32Value) return false;
+ if (FloatValue != other.FloatValue) return false;
+ if (DoubleValue != other.DoubleValue) return false;
+ if (BooleanValue != other.BooleanValue) return false;
+ if (StringValue != other.StringValue) return false;
+ if (BytesValue != other.BytesValue) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Key.Length != 0) hash ^= Key.GetHashCode();
+ if (DataType != 0) hash ^= DataType.GetHashCode();
+ if (Int32Value != 0) hash ^= Int32Value.GetHashCode();
+ if (FloatValue != 0F) hash ^= FloatValue.GetHashCode();
+ if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
+ if (BooleanValue != false) hash ^= BooleanValue.GetHashCode();
+ if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
+ if (BytesValue.Length != 0) hash ^= BytesValue.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 (Key.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Key);
+ }
+ if (DataType != 0) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) DataType);
+ }
+ if (Int32Value != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Int32Value);
+ }
+ if (FloatValue != 0F) {
+ output.WriteRawTag(37);
+ output.WriteFloat(FloatValue);
+ }
+ if (DoubleValue != 0D) {
+ output.WriteRawTag(41);
+ output.WriteDouble(DoubleValue);
+ }
+ if (BooleanValue != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(BooleanValue);
+ }
+ if (StringValue.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(StringValue);
+ }
+ if (BytesValue.Length != 0) {
+ output.WriteRawTag(66);
+ output.WriteBytes(BytesValue);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (Key.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
+ }
+ if (DataType != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataType);
+ }
+ if (Int32Value != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Int32Value);
+ }
+ if (FloatValue != 0F) {
+ size += 1 + 4;
+ }
+ if (DoubleValue != 0D) {
+ size += 1 + 8;
+ }
+ if (BooleanValue != false) {
+ size += 1 + 1;
+ }
+ if (StringValue.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
+ }
+ if (BytesValue.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeBytesSize(BytesValue);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(DataStoreItem other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Key.Length != 0) {
+ Key = other.Key;
+ }
+ if (other.DataType != 0) {
+ DataType = other.DataType;
+ }
+ if (other.Int32Value != 0) {
+ Int32Value = other.Int32Value;
+ }
+ if (other.FloatValue != 0F) {
+ FloatValue = other.FloatValue;
+ }
+ if (other.DoubleValue != 0D) {
+ DoubleValue = other.DoubleValue;
+ }
+ if (other.BooleanValue != false) {
+ BooleanValue = other.BooleanValue;
+ }
+ if (other.StringValue.Length != 0) {
+ StringValue = other.StringValue;
+ }
+ if (other.BytesValue.Length != 0) {
+ BytesValue = other.BytesValue;
+ }
+ }
+
+ [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: {
+ Key = input.ReadString();
+ break;
+ }
+ case 16: {
+ dataType_ = (global::Tango.PMR.DataStore.DataType) input.ReadEnum();
+ break;
+ }
+ case 24: {
+ Int32Value = input.ReadInt32();
+ break;
+ }
+ case 37: {
+ FloatValue = input.ReadFloat();
+ break;
+ }
+ case 41: {
+ DoubleValue = input.ReadDouble();
+ break;
+ }
+ case 48: {
+ BooleanValue = input.ReadBool();
+ break;
+ }
+ case 58: {
+ StringValue = input.ReadString();
+ break;
+ }
+ case 66: {
+ BytesValue = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/DataType.cs b/Software/Visual_Studio/Tango.PMR/DataStore/DataType.cs
new file mode 100644
index 000000000..0c2a2c1ab
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/DataType.cs
@@ -0,0 +1,50 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataType.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from DataType.proto</summary>
+ public static partial class DataTypeReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for DataType.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static DataTypeReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Cg5EYXRhVHlwZS5wcm90bxITVGFuZ28uUE1SLkRhdGFTdG9yZSpQCghEYXRh",
+ "VHlwZRIJCgVJbnQzMhAAEgkKBUZsb2F0EAESCgoGRG91YmxlEAISCwoHQm9v",
+ "bGVhbhADEgoKBlN0cmluZxAEEgkKBUJ5dGVzEAVCHwodY29tLnR3aW5lLnRh",
+ "bmdvLnBtci5kYXRhc3RvcmViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.DataStore.DataType), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum DataType {
+ [pbr::OriginalName("Int32")] Int32 = 0,
+ [pbr::OriginalName("Float")] Float = 1,
+ [pbr::OriginalName("Double")] Double = 2,
+ [pbr::OriginalName("Boolean")] Boolean = 3,
+ [pbr::OriginalName("String")] String = 4,
+ [pbr::OriginalName("Bytes")] Bytes = 5,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemRequest.cs b/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemRequest.cs
new file mode 100644
index 000000000..6c6d20b72
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemRequest.cs
@@ -0,0 +1,188 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetDataStoreItemRequest.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from GetDataStoreItemRequest.proto</summary>
+ public static partial class GetDataStoreItemRequestReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for GetDataStoreItemRequest.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static GetDataStoreItemRequestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ch1HZXREYXRhU3RvcmVJdGVtUmVxdWVzdC5wcm90bxITVGFuZ28uUE1SLkRh",
+ "dGFTdG9yZSI6ChdHZXREYXRhU3RvcmVJdGVtUmVxdWVzdBISCgpDb2xsZWN0",
+ "aW9uGAEgASgJEgsKA0tleRgCIAEoCUIfCh1jb20udHdpbmUudGFuZ28ucG1y",
+ "LmRhdGFzdG9yZWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.GetDataStoreItemRequest), global::Tango.PMR.DataStore.GetDataStoreItemRequest.Parser, new[]{ "Collection", "Key" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class GetDataStoreItemRequest : pb::IMessage<GetDataStoreItemRequest> {
+ private static readonly pb::MessageParser<GetDataStoreItemRequest> _parser = new pb::MessageParser<GetDataStoreItemRequest>(() => new GetDataStoreItemRequest());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<GetDataStoreItemRequest> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.DataStore.GetDataStoreItemRequestReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemRequest(GetDataStoreItemRequest other) : this() {
+ collection_ = other.collection_;
+ key_ = other.key_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemRequest Clone() {
+ return new GetDataStoreItemRequest(this);
+ }
+
+ /// <summary>Field number for the "Collection" field.</summary>
+ public const int CollectionFieldNumber = 1;
+ private string collection_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string Collection {
+ get { return collection_; }
+ set {
+ collection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "Key" field.</summary>
+ public const int KeyFieldNumber = 2;
+ private string key_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string Key {
+ get { return key_; }
+ set {
+ key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as GetDataStoreItemRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(GetDataStoreItemRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Collection != other.Collection) return false;
+ if (Key != other.Key) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Collection.Length != 0) hash ^= Collection.GetHashCode();
+ if (Key.Length != 0) hash ^= Key.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 (Collection.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Collection);
+ }
+ if (Key.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Key);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (Collection.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Collection);
+ }
+ if (Key.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(GetDataStoreItemRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Collection.Length != 0) {
+ Collection = other.Collection;
+ }
+ if (other.Key.Length != 0) {
+ Key = other.Key;
+ }
+ }
+
+ [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: {
+ Collection = input.ReadString();
+ break;
+ }
+ case 18: {
+ Key = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemResponse.cs b/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemResponse.cs
new file mode 100644
index 000000000..892f197d8
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/GetDataStoreItemResponse.cs
@@ -0,0 +1,167 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: GetDataStoreItemResponse.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from GetDataStoreItemResponse.proto</summary>
+ public static partial class GetDataStoreItemResponseReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for GetDataStoreItemResponse.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static GetDataStoreItemResponseReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ch5HZXREYXRhU3RvcmVJdGVtUmVzcG9uc2UucHJvdG8SE1RhbmdvLlBNUi5E",
+ "YXRhU3RvcmUaE0RhdGFTdG9yZUl0ZW0ucHJvdG8iTAoYR2V0RGF0YVN0b3Jl",
+ "SXRlbVJlc3BvbnNlEjAKBEl0ZW0YASABKAsyIi5UYW5nby5QTVIuRGF0YVN0",
+ "b3JlLkRhdGFTdG9yZUl0ZW1CHwodY29tLnR3aW5lLnRhbmdvLnBtci5kYXRh",
+ "c3RvcmViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.DataStore.DataStoreItemReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.GetDataStoreItemResponse), global::Tango.PMR.DataStore.GetDataStoreItemResponse.Parser, new[]{ "Item" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class GetDataStoreItemResponse : pb::IMessage<GetDataStoreItemResponse> {
+ private static readonly pb::MessageParser<GetDataStoreItemResponse> _parser = new pb::MessageParser<GetDataStoreItemResponse>(() => new GetDataStoreItemResponse());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<GetDataStoreItemResponse> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.DataStore.GetDataStoreItemResponseReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemResponse(GetDataStoreItemResponse other) : this() {
+ Item = other.item_ != null ? other.Item.Clone() : null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public GetDataStoreItemResponse Clone() {
+ return new GetDataStoreItemResponse(this);
+ }
+
+ /// <summary>Field number for the "Item" field.</summary>
+ public const int ItemFieldNumber = 1;
+ private global::Tango.PMR.DataStore.DataStoreItem item_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.DataStore.DataStoreItem Item {
+ get { return item_; }
+ set {
+ item_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as GetDataStoreItemResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(GetDataStoreItemResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Item, other.Item)) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (item_ != null) hash ^= Item.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 (item_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Item);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (item_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(GetDataStoreItemResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.item_ != null) {
+ if (item_ == null) {
+ item_ = new global::Tango.PMR.DataStore.DataStoreItem();
+ }
+ Item.MergeFrom(other.Item);
+ }
+ }
+
+ [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 (item_ == null) {
+ item_ = new global::Tango.PMR.DataStore.DataStoreItem();
+ }
+ input.ReadMessage(item_);
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs
new file mode 100644
index 000000000..7281b4c9c
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs
@@ -0,0 +1,195 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: PutDataStoreItemRequest.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from PutDataStoreItemRequest.proto</summary>
+ public static partial class PutDataStoreItemRequestReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for PutDataStoreItemRequest.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static PutDataStoreItemRequestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ch1QdXREYXRhU3RvcmVJdGVtUmVxdWVzdC5wcm90bxITVGFuZ28uUE1SLkRh",
+ "dGFTdG9yZRoTRGF0YVN0b3JlSXRlbS5wcm90byJfChdQdXREYXRhU3RvcmVJ",
+ "dGVtUmVxdWVzdBISCgpDb2xsZWN0aW9uGAEgASgJEjAKBEl0ZW0YAiABKAsy",
+ "Ii5UYW5nby5QTVIuRGF0YVN0b3JlLkRhdGFTdG9yZUl0ZW1CHwodY29tLnR3",
+ "aW5lLnRhbmdvLnBtci5kYXRhc3RvcmViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.DataStore.DataStoreItemReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.PutDataStoreItemRequest), global::Tango.PMR.DataStore.PutDataStoreItemRequest.Parser, new[]{ "Collection", "Item" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class PutDataStoreItemRequest : pb::IMessage<PutDataStoreItemRequest> {
+ private static readonly pb::MessageParser<PutDataStoreItemRequest> _parser = new pb::MessageParser<PutDataStoreItemRequest>(() => new PutDataStoreItemRequest());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<PutDataStoreItemRequest> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.DataStore.PutDataStoreItemRequestReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemRequest(PutDataStoreItemRequest other) : this() {
+ collection_ = other.collection_;
+ Item = other.item_ != null ? other.Item.Clone() : null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemRequest Clone() {
+ return new PutDataStoreItemRequest(this);
+ }
+
+ /// <summary>Field number for the "Collection" field.</summary>
+ public const int CollectionFieldNumber = 1;
+ private string collection_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string Collection {
+ get { return collection_; }
+ set {
+ collection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// <summary>Field number for the "Item" field.</summary>
+ public const int ItemFieldNumber = 2;
+ private global::Tango.PMR.DataStore.DataStoreItem item_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.DataStore.DataStoreItem Item {
+ get { return item_; }
+ set {
+ item_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as PutDataStoreItemRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(PutDataStoreItemRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Collection != other.Collection) return false;
+ if (!object.Equals(Item, other.Item)) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Collection.Length != 0) hash ^= Collection.GetHashCode();
+ if (item_ != null) hash ^= Item.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 (Collection.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Collection);
+ }
+ if (item_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Item);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (Collection.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Collection);
+ }
+ if (item_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(PutDataStoreItemRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Collection.Length != 0) {
+ Collection = other.Collection;
+ }
+ if (other.item_ != null) {
+ if (item_ == null) {
+ item_ = new global::Tango.PMR.DataStore.DataStoreItem();
+ }
+ Item.MergeFrom(other.Item);
+ }
+ }
+
+ [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: {
+ Collection = input.ReadString();
+ break;
+ }
+ case 18: {
+ if (item_ == null) {
+ item_ = new global::Tango.PMR.DataStore.DataStoreItem();
+ }
+ input.ReadMessage(item_);
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemResponse.cs b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemResponse.cs
new file mode 100644
index 000000000..bd798cedf
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemResponse.cs
@@ -0,0 +1,131 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: PutDataStoreItemResponse.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.DataStore {
+
+ /// <summary>Holder for reflection information generated from PutDataStoreItemResponse.proto</summary>
+ public static partial class PutDataStoreItemResponseReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for PutDataStoreItemResponse.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static PutDataStoreItemResponseReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ch5QdXREYXRhU3RvcmVJdGVtUmVzcG9uc2UucHJvdG8SE1RhbmdvLlBNUi5E",
+ "YXRhU3RvcmUiGgoYUHV0RGF0YVN0b3JlSXRlbVJlc3BvbnNlQh8KHWNvbS50",
+ "d2luZS50YW5nby5wbXIuZGF0YXN0b3JlYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.PutDataStoreItemResponse), global::Tango.PMR.DataStore.PutDataStoreItemResponse.Parser, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class PutDataStoreItemResponse : pb::IMessage<PutDataStoreItemResponse> {
+ private static readonly pb::MessageParser<PutDataStoreItemResponse> _parser = new pb::MessageParser<PutDataStoreItemResponse>(() => new PutDataStoreItemResponse());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<PutDataStoreItemResponse> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.DataStore.PutDataStoreItemResponseReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemResponse(PutDataStoreItemResponse other) : this() {
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public PutDataStoreItemResponse Clone() {
+ return new PutDataStoreItemResponse(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as PutDataStoreItemResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(PutDataStoreItemResponse 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(PutDataStoreItemResponse 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