// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SetBlowerStateRequest.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 SetBlowerStateRequest.proto
public static partial class SetBlowerStateRequestReflection {
#region Descriptor
/// File descriptor for SetBlowerStateRequest.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static SetBlowerStateRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChtTZXRCbG93ZXJTdGF0ZVJlcXVlc3QucHJvdG8SFVRhbmdvLlBNUi5EaWFn",
"bm9zdGljcxoYSGFyZHdhcmVCbG93ZXJUeXBlLnByb3RvInYKFVNldEJsb3dl",
"clN0YXRlUmVxdWVzdBI6CgpCbG93ZXJUeXBlGAEgASgOMiYuVGFuZ28uUE1S",
"LkhhcmR3YXJlLkhhcmR3YXJlQmxvd2VyVHlwZRIPCgdWb2x0YWdlGAIgASgB",
"EhAKCElzQWN0aXZlGAMgASgIQiEKH2NvbS50d2luZS50YW5nby5wbXIuZGlh",
"Z25vc3RpY3NiBnByb3RvMw=="));
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.Diagnostics.SetBlowerStateRequest), global::Tango.PMR.Diagnostics.SetBlowerStateRequest.Parser, new[]{ "BlowerType", "Voltage", "IsActive" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class SetBlowerStateRequest : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetBlowerStateRequest());
[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.SetBlowerStateRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SetBlowerStateRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SetBlowerStateRequest(SetBlowerStateRequest other) : this() {
blowerType_ = other.blowerType_;
voltage_ = other.voltage_;
isActive_ = other.isActive_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SetBlowerStateRequest Clone() {
return new SetBlowerStateRequest(this);
}
/// Field number for the "BlowerType" field.
public const int BlowerTypeFieldNumber = 1;
private global::Tango.PMR.Hardware.HardwareBlowerType blowerType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Hardware.HardwareBlowerType BlowerType {
get { return blowerType_; }
set {
blowerType_ = value;
}
}
/// Field number for the "Voltage" field.
public const int VoltageFieldNumber = 2;
private double voltage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Voltage {
get { return voltage_; }
set {
voltage_ = 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 SetBlowerStateRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SetBlowerStateRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (BlowerType != other.BlowerType) return false;
if (Voltage != other.Voltage) return false;
if (IsActive != other.IsActive) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (BlowerType != 0) hash ^= BlowerType.GetHashCode();
if (Voltage != 0D) hash ^= Voltage.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 (BlowerType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) BlowerType);
}
if (Voltage != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Voltage);
}
if (IsActive != false) {
output.WriteRawTag(24);
output.WriteBool(IsActive);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (BlowerType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BlowerType);
}
if (Voltage != 0D) {
size += 1 + 8;
}
if (IsActive != false) {
size += 1 + 1;
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SetBlowerStateRequest other) {
if (other == null) {
return;
}
if (other.BlowerType != 0) {
BlowerType = other.BlowerType;
}
if (other.Voltage != 0D) {
Voltage = other.Voltage;
}
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: {
blowerType_ = (global::Tango.PMR.Hardware.HardwareBlowerType) input.ReadEnum();
break;
}
case 17: {
Voltage = input.ReadDouble();
break;
}
case 24: {
IsActive = input.ReadBool();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code