// 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 { /// Holder for reflection information generated from GetDataStoreItemResponse.proto public static partial class GetDataStoreItemResponseReflection { #region Descriptor /// File descriptor for GetDataStoreItemResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static GetDataStoreItemResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch5HZXREYXRhU3RvcmVJdGVtUmVzcG9uc2UucHJvdG8SE1RhbmdvLlBNUi5E", "YXRhU3RvcmUaE0RhdGFTdG9yZUl0ZW0ucHJvdG8iWQoYR2V0RGF0YVN0b3Jl", "SXRlbVJlc3BvbnNlEgsKA0tleRgBIAEoCRIwCgRJdGVtGAIgASgLMiIuVGFu", "Z28uUE1SLkRhdGFTdG9yZS5EYXRhU3RvcmVJdGVtQh8KHWNvbS50d2luZS50", "YW5nby5wbXIuZGF0YXN0b3JlYgZwcm90bzM=")); 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[]{ "Key", "Item" }, null, null, null) })); } #endregion } #region Messages public sealed partial class GetDataStoreItemResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDataStoreItemResponse()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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() { key_ = other.key_; Item = other.item_ != null ? other.Item.Clone() : null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public GetDataStoreItemResponse Clone() { return new GetDataStoreItemResponse(this); } /// Field number for the "Key" field. 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"); } } /// Field number for the "Item" field. 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 GetDataStoreItemResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(GetDataStoreItemResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Key != other.Key) return false; if (!object.Equals(Item, other.Item)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.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 (Key.Length != 0) { output.WriteRawTag(10); output.WriteString(Key); } if (item_ != null) { output.WriteRawTag(18); output.WriteMessage(Item); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } 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.Key.Length != 0) { Key = other.Key; } 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: { Key = input.ReadString(); break; } case 18: { if (item_ == null) { item_ = new global::Tango.PMR.DataStore.DataStoreItem(); } input.ReadMessage(item_); break; } } } } } #endregion } #endregion Designer generated code