// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SetHeaterStateRequest.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 SetHeaterStateRequest.proto public static partial class SetHeaterStateRequestReflection { #region Descriptor /// File descriptor for SetHeaterStateRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SetHeaterStateRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChtTZXRIZWF0ZXJTdGF0ZVJlcXVlc3QucHJvdG8SFVRhbmdvLlBNUi5EaWFn", "bm9zdGljcxoQSGVhdGVyVHlwZS5wcm90byJyChVTZXRIZWF0ZXJTdGF0ZVJl", "cXVlc3QSNQoKSGVhdGVyVHlwZRgBIAEoDjIhLlRhbmdvLlBNUi5EaWFnbm9z", "dGljcy5IZWF0ZXJUeXBlEhAKCFNldFBvaW50GAIgASgBEhAKCElzQWN0aXZl", "GAMgASgIQiEKH2NvbS50d2luZS50YW5nby5wbXIuZGlhZ25vc3RpY3NiBnBy", "b3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.HeaterTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.SetHeaterStateRequest), global::Tango.PMR.Diagnostics.SetHeaterStateRequest.Parser, new[]{ "HeaterType", "SetPoint", "IsActive" }, null, null, null) })); } #endregion } #region Messages public sealed partial class SetHeaterStateRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeaterStateRequest()); [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.SetHeaterStateRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetHeaterStateRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetHeaterStateRequest(SetHeaterStateRequest other) : this() { heaterType_ = other.heaterType_; setPoint_ = other.setPoint_; isActive_ = other.isActive_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetHeaterStateRequest Clone() { return new SetHeaterStateRequest(this); } /// Field number for the "HeaterType" field. public const int HeaterTypeFieldNumber = 1; private global::Tango.PMR.Diagnostics.HeaterType heaterType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.HeaterType HeaterType { get { return heaterType_; } set { heaterType_ = value; } } /// Field number for the "SetPoint" field. public const int SetPointFieldNumber = 2; private double setPoint_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double SetPoint { get { return setPoint_; } set { setPoint_ = value; } } /// Field number for the "IsActive" field. public const int IsActiveFieldNumber = 3; private bool isActive_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool IsActive { get { return isActive_; } set { isActive_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SetHeaterStateRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SetHeaterStateRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HeaterType != other.HeaterType) return false; if (SetPoint != other.SetPoint) return false; if (IsActive != other.IsActive) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HeaterType != 0) hash ^= HeaterType.GetHashCode(); if (SetPoint != 0D) hash ^= SetPoint.GetHashCode(); if (IsActive != false) hash ^= IsActive.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 (HeaterType != 0) { output.WriteRawTag(8); output.WriteEnum((int) HeaterType); } if (SetPoint != 0D) { output.WriteRawTag(17); output.WriteDouble(SetPoint); } if (IsActive != false) { output.WriteRawTag(24); output.WriteBool(IsActive); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HeaterType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeaterType); } if (SetPoint != 0D) { size += 1 + 8; } if (IsActive != false) { size += 1 + 1; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SetHeaterStateRequest other) { if (other == null) { return; } if (other.HeaterType != 0) { HeaterType = other.HeaterType; } if (other.SetPoint != 0D) { SetPoint = other.SetPoint; } if (other.IsActive != false) { IsActive = other.IsActive; } } [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: { heaterType_ = (global::Tango.PMR.Diagnostics.HeaterType) input.ReadEnum(); break; } case 17: { SetPoint = input.ReadDouble(); break; } case 24: { IsActive = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code