// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HardwareBlower.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.Hardware {
/// Holder for reflection information generated from HardwareBlower.proto
public static partial class HardwareBlowerReflection {
#region Descriptor
/// File descriptor for HardwareBlower.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HardwareBlowerReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRIYXJkd2FyZUJsb3dlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlGhhI",
"YXJkd2FyZUJsb3dlclR5cGUucHJvdG8ijgEKDkhhcmR3YXJlQmxvd2VyEkIK",
"EkhhcmR3YXJlQmxvd2VyVHlwZRgBIAEoDjImLlRhbmdvLlBNUi5IYXJkd2Fy",
"ZS5IYXJkd2FyZUJsb3dlclR5cGUSDwoHRW5hYmxlZBgCIAEoCBIPCgdWb2x0",
"YWdlGAMgASgBEhYKDkhlYXRpbmdWb2x0YWdlGAQgASgBQh4KHGNvbS50d2lu",
"ZS50YW5nby5wbXIuaGFyZHdhcmViBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareBlowerTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareBlower), global::Tango.PMR.Hardware.HardwareBlower.Parser, new[]{ "HardwareBlowerType", "Enabled", "Voltage", "HeatingVoltage" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class HardwareBlower : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HardwareBlower());
[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.Hardware.HardwareBlowerReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareBlower() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareBlower(HardwareBlower other) : this() {
hardwareBlowerType_ = other.hardwareBlowerType_;
enabled_ = other.enabled_;
voltage_ = other.voltage_;
heatingVoltage_ = other.heatingVoltage_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareBlower Clone() {
return new HardwareBlower(this);
}
/// Field number for the "HardwareBlowerType" field.
public const int HardwareBlowerTypeFieldNumber = 1;
private global::Tango.PMR.Hardware.HardwareBlowerType hardwareBlowerType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Hardware.HardwareBlowerType HardwareBlowerType {
get { return hardwareBlowerType_; }
set {
hardwareBlowerType_ = value;
}
}
/// Field number for the "Enabled" field.
public const int EnabledFieldNumber = 2;
private bool enabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Enabled {
get { return enabled_; }
set {
enabled_ = value;
}
}
/// Field number for the "Voltage" field.
public const int VoltageFieldNumber = 3;
private double voltage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Voltage {
get { return voltage_; }
set {
voltage_ = value;
}
}
/// Field number for the "HeatingVoltage" field.
public const int HeatingVoltageFieldNumber = 4;
private double heatingVoltage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double HeatingVoltage {
get { return heatingVoltage_; }
set {
heatingVoltage_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HardwareBlower);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(HardwareBlower other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (HardwareBlowerType != other.HardwareBlowerType) return false;
if (Enabled != other.Enabled) return false;
if (Voltage != other.Voltage) return false;
if (HeatingVoltage != other.HeatingVoltage) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HardwareBlowerType != 0) hash ^= HardwareBlowerType.GetHashCode();
if (Enabled != false) hash ^= Enabled.GetHashCode();
if (Voltage != 0D) hash ^= Voltage.GetHashCode();
if (HeatingVoltage != 0D) hash ^= HeatingVoltage.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 (HardwareBlowerType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) HardwareBlowerType);
}
if (Enabled != false) {
output.WriteRawTag(16);
output.WriteBool(Enabled);
}
if (Voltage != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Voltage);
}
if (HeatingVoltage != 0D) {
output.WriteRawTag(33);
output.WriteDouble(HeatingVoltage);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HardwareBlowerType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareBlowerType);
}
if (Enabled != false) {
size += 1 + 1;
}
if (Voltage != 0D) {
size += 1 + 8;
}
if (HeatingVoltage != 0D) {
size += 1 + 8;
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(HardwareBlower other) {
if (other == null) {
return;
}
if (other.HardwareBlowerType != 0) {
HardwareBlowerType = other.HardwareBlowerType;
}
if (other.Enabled != false) {
Enabled = other.Enabled;
}
if (other.Voltage != 0D) {
Voltage = other.Voltage;
}
if (other.HeatingVoltage != 0D) {
HeatingVoltage = other.HeatingVoltage;
}
}
[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: {
hardwareBlowerType_ = (global::Tango.PMR.Hardware.HardwareBlowerType) input.ReadEnum();
break;
}
case 16: {
Enabled = input.ReadBool();
break;
}
case 25: {
Voltage = input.ReadDouble();
break;
}
case 33: {
HeatingVoltage = input.ReadDouble();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code