// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Cartridge.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.Diagnostics { /// Holder for reflection information generated from Cartridge.proto public static partial class CartridgeReflection { #region Descriptor /// File descriptor for Cartridge.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CartridgeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg9DYXJ0cmlkZ2UucHJvdG8SFVRhbmdvLlBNUi5EaWFnbm9zdGljcxoTQ2Fy", "dHJpZGdlU2xvdC5wcm90bxoZQ2FydHJpZGdlVGFnQ29udGVudC5wcm90byKH", "AQoJQ2FydHJpZGdlEjIKBFNsb3QYASABKA4yJC5UYW5nby5QTVIuRGlhZ25v", "c3RpY3MuQ2FydHJpZGdlU2xvdBI3CgNUYWcYAiABKAsyKi5UYW5nby5QTVIu", "RGlhZ25vc3RpY3MuQ2FydHJpZGdlVGFnQ29udGVudBINCgVJbmRleBgDIAEo", "BUIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.CartridgeSlotReflection.Descriptor, global::Tango.PMR.Diagnostics.CartridgeTagContentReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.Cartridge), global::Tango.PMR.Diagnostics.Cartridge.Parser, new[]{ "Slot", "Tag", "Index" }, null, null, null) })); } #endregion } #region Messages public sealed partial class Cartridge : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Cartridge()); [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.Diagnostics.CartridgeReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Cartridge() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Cartridge(Cartridge other) : this() { slot_ = other.slot_; Tag = other.tag_ != null ? other.Tag.Clone() : null; index_ = other.index_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Cartridge Clone() { return new Cartridge(this); } /// Field number for the "Slot" field. public const int SlotFieldNumber = 1; private global::Tango.PMR.Diagnostics.CartridgeSlot slot_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.CartridgeSlot Slot { get { return slot_; } set { slot_ = value; } } /// Field number for the "Tag" field. public const int TagFieldNumber = 2; private global::Tango.PMR.Diagnostics.CartridgeTagContent tag_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.CartridgeTagContent Tag { get { return tag_; } set { tag_ = value; } } /// Field number for the "Index" field. public const int IndexFieldNumber = 3; private int index_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Index { get { return index_; } set { index_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Cartridge); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Cartridge other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Slot != other.Slot) return false; if (!object.Equals(Tag, other.Tag)) return false; if (Index != other.Index) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Slot != 0) hash ^= Slot.GetHashCode(); if (tag_ != null) hash ^= Tag.GetHashCode(); if (Index != 0) hash ^= Index.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 (Slot != 0) { output.WriteRawTag(8); output.WriteEnum((int) Slot); } if (tag_ != null) { output.WriteRawTag(18); output.WriteMessage(Tag); } if (Index != 0) { output.WriteRawTag(24); output.WriteInt32(Index); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Slot != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Slot); } if (tag_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tag); } if (Index != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Cartridge other) { if (other == null) { return; } if (other.Slot != 0) { Slot = other.Slot; } if (other.tag_ != null) { if (tag_ == null) { tag_ = new global::Tango.PMR.Diagnostics.CartridgeTagContent(); } Tag.MergeFrom(other.Tag); } if (other.Index != 0) { Index = other.Index; } } [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: { slot_ = (global::Tango.PMR.Diagnostics.CartridgeSlot) input.ReadEnum(); break; } case 18: { if (tag_ == null) { tag_ = new global::Tango.PMR.Diagnostics.CartridgeTagContent(); } input.ReadMessage(tag_); break; } case 24: { Index = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code