// Generated by the protocol buffer compiler. DO NOT EDIT! // source: IDSPackLevel.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.MachineStatus { /// Holder for reflection information generated from IDSPackLevel.proto public static partial class IDSPackLevelReflection { #region Descriptor /// File descriptor for IDSPackLevel.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static IDSPackLevelReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChJJRFNQYWNrTGV2ZWwucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVz", "IksKDElEU1BhY2tMZXZlbBINCgVJbmRleBgBIAEoBRIWCg5EaXNwZW5zZXJM", "ZXZlbBgCIAEoBRIUCgxNaWRUYW5rTGV2ZWwYAyABKAVCIwohY29tLnR3aW5l", "LnRhbmdvLnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.IDSPackLevel), global::Tango.PMR.MachineStatus.IDSPackLevel.Parser, new[]{ "Index", "DispenserLevel", "MidTankLevel" }, null, null, null) })); } #endregion } #region Messages public sealed partial class IDSPackLevel : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IDSPackLevel()); [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.MachineStatus.IDSPackLevelReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel(IDSPackLevel other) : this() { index_ = other.index_; dispenserLevel_ = other.dispenserLevel_; midTankLevel_ = other.midTankLevel_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public IDSPackLevel Clone() { return new IDSPackLevel(this); } /// Field number for the "Index" field. public const int IndexFieldNumber = 1; private int index_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Index { get { return index_; } set { index_ = value; } } /// Field number for the "DispenserLevel" field. public const int DispenserLevelFieldNumber = 2; private int dispenserLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int DispenserLevel { get { return dispenserLevel_; } set { dispenserLevel_ = value; } } /// Field number for the "MidTankLevel" field. public const int MidTankLevelFieldNumber = 3; private int midTankLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int MidTankLevel { get { return midTankLevel_; } set { midTankLevel_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as IDSPackLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(IDSPackLevel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Index != other.Index) return false; if (DispenserLevel != other.DispenserLevel) return false; if (MidTankLevel != other.MidTankLevel) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Index != 0) hash ^= Index.GetHashCode(); if (DispenserLevel != 0) hash ^= DispenserLevel.GetHashCode(); if (MidTankLevel != 0) hash ^= MidTankLevel.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 (Index != 0) { output.WriteRawTag(8); output.WriteInt32(Index); } if (DispenserLevel != 0) { output.WriteRawTag(16); output.WriteInt32(DispenserLevel); } if (MidTankLevel != 0) { output.WriteRawTag(24); output.WriteInt32(MidTankLevel); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Index != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); } if (DispenserLevel != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DispenserLevel); } if (MidTankLevel != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MidTankLevel); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(IDSPackLevel other) { if (other == null) { return; } if (other.Index != 0) { Index = other.Index; } if (other.DispenserLevel != 0) { DispenserLevel = other.DispenserLevel; } if (other.MidTankLevel != 0) { MidTankLevel = other.MidTankLevel; } } [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: { Index = input.ReadInt32(); break; } case 16: { DispenserLevel = input.ReadInt32(); break; } case 24: { MidTankLevel = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code