diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs index 7281b4c9c..9e9be6768 100644 --- a/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs +++ b/Software/Visual_Studio/Tango.PMR/DataStore/PutDataStoreItemRequest.cs @@ -23,14 +23,14 @@ namespace Tango.PMR.DataStore { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch1QdXREYXRhU3RvcmVJdGVtUmVxdWVzdC5wcm90bxITVGFuZ28uUE1SLkRh", - "dGFTdG9yZRoTRGF0YVN0b3JlSXRlbS5wcm90byJfChdQdXREYXRhU3RvcmVJ", - "dGVtUmVxdWVzdBISCgpDb2xsZWN0aW9uGAEgASgJEjAKBEl0ZW0YAiABKAsy", - "Ii5UYW5nby5QTVIuRGF0YVN0b3JlLkRhdGFTdG9yZUl0ZW1CHwodY29tLnR3", - "aW5lLnRhbmdvLnBtci5kYXRhc3RvcmViBnByb3RvMw==")); + "dGFTdG9yZRoTRGF0YVN0b3JlSXRlbS5wcm90byJsChdQdXREYXRhU3RvcmVJ", + "dGVtUmVxdWVzdBISCgpDb2xsZWN0aW9uGAEgASgJEgsKA0tleRgCIAEoCRIw", + "CgRJdGVtGAMgASgLMiIuVGFuZ28uUE1SLkRhdGFTdG9yZS5EYXRhU3RvcmVJ", + "dGVtQh8KHWNvbS50d2luZS50YW5nby5wbXIuZGF0YXN0b3JlYgZwcm90bzM=")); 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) + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.DataStore.PutDataStoreItemRequest), global::Tango.PMR.DataStore.PutDataStoreItemRequest.Parser, new[]{ "Collection", "Key", "Item" }, null, null, null) })); } #endregion @@ -62,6 +62,7 @@ namespace Tango.PMR.DataStore { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PutDataStoreItemRequest(PutDataStoreItemRequest other) : this() { collection_ = other.collection_; + key_ = other.key_; Item = other.item_ != null ? other.Item.Clone() : null; } @@ -81,8 +82,19 @@ namespace Tango.PMR.DataStore { } } + /// <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"); + } + } + /// <summary>Field number for the "Item" field.</summary> - public const int ItemFieldNumber = 2; + public const int ItemFieldNumber = 3; private global::Tango.PMR.DataStore.DataStoreItem item_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.DataStore.DataStoreItem Item { @@ -106,6 +118,7 @@ namespace Tango.PMR.DataStore { return true; } if (Collection != other.Collection) return false; + if (Key != other.Key) return false; if (!object.Equals(Item, other.Item)) return false; return true; } @@ -114,6 +127,7 @@ namespace Tango.PMR.DataStore { public override int GetHashCode() { int hash = 1; if (Collection.Length != 0) hash ^= Collection.GetHashCode(); + if (Key.Length != 0) hash ^= Key.GetHashCode(); if (item_ != null) hash ^= Item.GetHashCode(); return hash; } @@ -129,8 +143,12 @@ namespace Tango.PMR.DataStore { output.WriteRawTag(10); output.WriteString(Collection); } - if (item_ != null) { + if (Key.Length != 0) { output.WriteRawTag(18); + output.WriteString(Key); + } + if (item_ != null) { + output.WriteRawTag(26); output.WriteMessage(Item); } } @@ -141,6 +159,9 @@ namespace Tango.PMR.DataStore { if (Collection.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Collection); } + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } if (item_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); } @@ -155,6 +176,9 @@ namespace Tango.PMR.DataStore { if (other.Collection.Length != 0) { Collection = other.Collection; } + if (other.Key.Length != 0) { + Key = other.Key; + } if (other.item_ != null) { if (item_ == null) { item_ = new global::Tango.PMR.DataStore.DataStoreItem(); @@ -176,6 +200,10 @@ namespace Tango.PMR.DataStore { break; } case 18: { + Key = input.ReadString(); + break; + } + case 26: { if (item_ == null) { item_ = new global::Tango.PMR.DataStore.DataStoreItem(); } |
