// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HeaterState.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 HeaterState.proto
public static partial class HeaterStateReflection {
#region Descriptor
/// File descriptor for HeaterState.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HeaterStateReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChFIZWF0ZXJTdGF0ZS5wcm90bxIVVGFuZ28uUE1SLkRpYWdub3N0aWNzGhBI",
"ZWF0ZXJUeXBlLnByb3RvIqkBCgtIZWF0ZXJTdGF0ZRI1CgpIZWF0ZXJUeXBl",
"GAEgASgOMiEuVGFuZ28uUE1SLkRpYWdub3N0aWNzLkhlYXRlclR5cGUSEAoI",
"U2V0UG9pbnQYAiABKAESFAoMQ3VycmVudFZhbHVlGAMgASgBEhAKCElzQWN0",
"aXZlGAQgASgIEhMKC0lzUmFtcGluZ1VwGAUgASgIEhQKDElzSW5TZXRQb2lu",
"dBgGIAEoCEIhCh9jb20udHdpbmUudGFuZ28ucG1yLmRpYWdub3N0aWNzYgZw",
"cm90bzM="));
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.HeaterState), global::Tango.PMR.Diagnostics.HeaterState.Parser, new[]{ "HeaterType", "SetPoint", "CurrentValue", "IsActive", "IsRampingUp", "IsInSetPoint" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class HeaterState : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeaterState());
[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.HeaterStateReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HeaterState() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HeaterState(HeaterState other) : this() {
heaterType_ = other.heaterType_;
setPoint_ = other.setPoint_;
currentValue_ = other.currentValue_;
isActive_ = other.isActive_;
isRampingUp_ = other.isRampingUp_;
isInSetPoint_ = other.isInSetPoint_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HeaterState Clone() {
return new HeaterState(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 "CurrentValue" field.
public const int CurrentValueFieldNumber = 3;
private double currentValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double CurrentValue {
get { return currentValue_; }
set {
currentValue_ = value;
}
}
/// Field number for the "IsActive" field.
public const int IsActiveFieldNumber = 4;
private bool isActive_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsActive {
get { return isActive_; }
set {
isActive_ = value;
}
}
/// Field number for the "IsRampingUp" field.
public const int IsRampingUpFieldNumber = 5;
private bool isRampingUp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsRampingUp {
get { return isRampingUp_; }
set {
isRampingUp_ = value;
}
}
/// Field number for the "IsInSetPoint" field.
public const int IsInSetPointFieldNumber = 6;
private bool isInSetPoint_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsInSetPoint {
get { return isInSetPoint_; }
set {
isInSetPoint_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HeaterState);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(HeaterState 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 (CurrentValue != other.CurrentValue) return false;
if (IsActive != other.IsActive) return false;
if (IsRampingUp != other.IsRampingUp) return false;
if (IsInSetPoint != other.IsInSetPoint) 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 (CurrentValue != 0D) hash ^= CurrentValue.GetHashCode();
if (IsActive != false) hash ^= IsActive.GetHashCode();
if (IsRampingUp != false) hash ^= IsRampingUp.GetHashCode();
if (IsInSetPoint != false) hash ^= IsInSetPoint.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 (CurrentValue != 0D) {
output.WriteRawTag(25);
output.WriteDouble(CurrentValue);
}
if (IsActive != false) {
output.WriteRawTag(32);
output.WriteBool(IsActive);
}
if (IsRampingUp != false) {
output.WriteRawTag(40);
output.WriteBool(IsRampingUp);
}
if (IsInSetPoint != false) {
output.WriteRawTag(48);
output.WriteBool(IsInSetPoint);
}
}
[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 (CurrentValue != 0D) {
size += 1 + 8;
}
if (IsActive != false) {
size += 1 + 1;
}
if (IsRampingUp != false) {
size += 1 + 1;
}
if (IsInSetPoint != false) {
size += 1 + 1;
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(HeaterState other) {
if (other == null) {
return;
}
if (other.HeaterType != 0) {
HeaterType = other.HeaterType;
}
if (other.SetPoint != 0D) {
SetPoint = other.SetPoint;
}
if (other.CurrentValue != 0D) {
CurrentValue = other.CurrentValue;
}
if (other.IsActive != false) {
IsActive = other.IsActive;
}
if (other.IsRampingUp != false) {
IsRampingUp = other.IsRampingUp;
}
if (other.IsInSetPoint != false) {
IsInSetPoint = other.IsInSetPoint;
}
}
[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 25: {
CurrentValue = input.ReadDouble();
break;
}
case 32: {
IsActive = input.ReadBool();
break;
}
case 40: {
IsRampingUp = input.ReadBool();
break;
}
case 48: {
IsInSetPoint = input.ReadBool();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code