// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HardwareConfiguration.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 HardwareConfiguration.proto
public static partial class HardwareConfigurationReflection {
#region Descriptor
/// File descriptor for HardwareConfiguration.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HardwareConfigurationReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChtIYXJkd2FyZUNvbmZpZ3VyYXRpb24ucHJvdG8SElRhbmdvLlBNUi5IYXJk",
"d2FyZRoUSGFyZHdhcmVEYW5jZXIucHJvdG8aF0hhcmR3YXJlRGlzcGVuc2Vy",
"LnByb3RvGhNIYXJkd2FyZU1vdG9yLnByb3RvGhhIYXJkd2FyZVBpZENvbnRy",
"b2wucHJvdG8aFEhhcmR3YXJlV2luZGVyLnByb3RvGhlIYXJkd2FyZVNwZWVk",
"U2Vuc29yLnByb3RvGhRIYXJkd2FyZUJsb3dlci5wcm90bxoZSGFyZHdhcmVC",
"cmVha1NlbnNvci5wcm90byLfAwoVSGFyZHdhcmVDb25maWd1cmF0aW9uEjMK",
"B0RhbmNlcnMYASADKAsyIi5UYW5nby5QTVIuSGFyZHdhcmUuSGFyZHdhcmVE",
"YW5jZXISOQoKRGlzcGVuc2VycxgCIAMoCzIlLlRhbmdvLlBNUi5IYXJkd2Fy",
"ZS5IYXJkd2FyZURpc3BlbnNlchIxCgZNb3RvcnMYAyADKAsyIS5UYW5nby5Q",
"TVIuSGFyZHdhcmUuSGFyZHdhcmVNb3RvchI7CgtQaWRDb250cm9scxgEIAMo",
"CzImLlRhbmdvLlBNUi5IYXJkd2FyZS5IYXJkd2FyZVBpZENvbnRyb2wSMwoH",
"V2luZGVycxgFIAMoCzIiLlRhbmdvLlBNUi5IYXJkd2FyZS5IYXJkd2FyZVdp",
"bmRlchI9CgxTcGVlZFNlbnNvcnMYBiADKAsyJy5UYW5nby5QTVIuSGFyZHdh",
"cmUuSGFyZHdhcmVTcGVlZFNlbnNvchIzCgdCbG93ZXJzGAcgAygLMiIuVGFu",
"Z28uUE1SLkhhcmR3YXJlLkhhcmR3YXJlQmxvd2VyEj0KDEJyZWFrU2Vuc29y",
"cxgIIAMoCzInLlRhbmdvLlBNUi5IYXJkd2FyZS5IYXJkd2FyZUJyZWFrU2Vu",
"c29yQh4KHGNvbS50d2luZS50YW5nby5wbXIuaGFyZHdhcmViBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareDancerReflection.Descriptor, global::Tango.PMR.Hardware.HardwareDispenserReflection.Descriptor, global::Tango.PMR.Hardware.HardwareMotorReflection.Descriptor, global::Tango.PMR.Hardware.HardwarePidControlReflection.Descriptor, global::Tango.PMR.Hardware.HardwareWinderReflection.Descriptor, global::Tango.PMR.Hardware.HardwareSpeedSensorReflection.Descriptor, global::Tango.PMR.Hardware.HardwareBlowerReflection.Descriptor, global::Tango.PMR.Hardware.HardwareBreakSensorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareConfiguration), global::Tango.PMR.Hardware.HardwareConfiguration.Parser, new[]{ "Dancers", "Dispensers", "Motors", "PidControls", "Winders", "SpeedSensors", "Blowers", "BreakSensors" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class HardwareConfiguration : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HardwareConfiguration());
[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.HardwareConfigurationReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareConfiguration() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareConfiguration(HardwareConfiguration other) : this() {
dancers_ = other.dancers_.Clone();
dispensers_ = other.dispensers_.Clone();
motors_ = other.motors_.Clone();
pidControls_ = other.pidControls_.Clone();
winders_ = other.winders_.Clone();
speedSensors_ = other.speedSensors_.Clone();
blowers_ = other.blowers_.Clone();
breakSensors_ = other.breakSensors_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareConfiguration Clone() {
return new HardwareConfiguration(this);
}
/// Field number for the "Dancers" field.
public const int DancersFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_dancers_codec
= pb::FieldCodec.ForMessage(10, global::Tango.PMR.Hardware.HardwareDancer.Parser);
private readonly pbc::RepeatedField dancers_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Dancers {
get { return dancers_; }
}
/// Field number for the "Dispensers" field.
public const int DispensersFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_dispensers_codec
= pb::FieldCodec.ForMessage(18, global::Tango.PMR.Hardware.HardwareDispenser.Parser);
private readonly pbc::RepeatedField dispensers_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Dispensers {
get { return dispensers_; }
}
/// Field number for the "Motors" field.
public const int MotorsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_motors_codec
= pb::FieldCodec.ForMessage(26, global::Tango.PMR.Hardware.HardwareMotor.Parser);
private readonly pbc::RepeatedField motors_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Motors {
get { return motors_; }
}
/// Field number for the "PidControls" field.
public const int PidControlsFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_pidControls_codec
= pb::FieldCodec.ForMessage(34, global::Tango.PMR.Hardware.HardwarePidControl.Parser);
private readonly pbc::RepeatedField pidControls_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField PidControls {
get { return pidControls_; }
}
/// Field number for the "Winders" field.
public const int WindersFieldNumber = 5;
private static readonly pb::FieldCodec _repeated_winders_codec
= pb::FieldCodec.ForMessage(42, global::Tango.PMR.Hardware.HardwareWinder.Parser);
private readonly pbc::RepeatedField winders_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Winders {
get { return winders_; }
}
/// Field number for the "SpeedSensors" field.
public const int SpeedSensorsFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_speedSensors_codec
= pb::FieldCodec.ForMessage(50, global::Tango.PMR.Hardware.HardwareSpeedSensor.Parser);
private readonly pbc::RepeatedField speedSensors_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField SpeedSensors {
get { return speedSensors_; }
}
/// Field number for the "Blowers" field.
public const int BlowersFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_blowers_codec
= pb::FieldCodec.ForMessage(58, global::Tango.PMR.Hardware.HardwareBlower.Parser);
private readonly pbc::RepeatedField blowers_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Blowers {
get { return blowers_; }
}
/// Field number for the "BreakSensors" field.
public const int BreakSensorsFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_breakSensors_codec
= pb::FieldCodec.ForMessage(66, global::Tango.PMR.Hardware.HardwareBreakSensor.Parser);
private readonly pbc::RepeatedField breakSensors_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField BreakSensors {
get { return breakSensors_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HardwareConfiguration);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(HardwareConfiguration other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!dancers_.Equals(other.dancers_)) return false;
if(!dispensers_.Equals(other.dispensers_)) return false;
if(!motors_.Equals(other.motors_)) return false;
if(!pidControls_.Equals(other.pidControls_)) return false;
if(!winders_.Equals(other.winders_)) return false;
if(!speedSensors_.Equals(other.speedSensors_)) return false;
if(!blowers_.Equals(other.blowers_)) return false;
if(!breakSensors_.Equals(other.breakSensors_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= dancers_.GetHashCode();
hash ^= dispensers_.GetHashCode();
hash ^= motors_.GetHashCode();
hash ^= pidControls_.GetHashCode();
hash ^= winders_.GetHashCode();
hash ^= speedSensors_.GetHashCode();
hash ^= blowers_.GetHashCode();
hash ^= breakSensors_.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) {
dancers_.WriteTo(output, _repeated_dancers_codec);
dispensers_.WriteTo(output, _repeated_dispensers_codec);
motors_.WriteTo(output, _repeated_motors_codec);
pidControls_.WriteTo(output, _repeated_pidControls_codec);
winders_.WriteTo(output, _repeated_winders_codec);
speedSensors_.WriteTo(output, _repeated_speedSensors_codec);
blowers_.WriteTo(output, _repeated_blowers_codec);
breakSensors_.WriteTo(output, _repeated_breakSensors_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += dancers_.CalculateSize(_repeated_dancers_codec);
size += dispensers_.CalculateSize(_repeated_dispensers_codec);
size += motors_.CalculateSize(_repeated_motors_codec);
size += pidControls_.CalculateSize(_repeated_pidControls_codec);
size += winders_.CalculateSize(_repeated_winders_codec);
size += speedSensors_.CalculateSize(_repeated_speedSensors_codec);
size += blowers_.CalculateSize(_repeated_blowers_codec);
size += breakSensors_.CalculateSize(_repeated_breakSensors_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(HardwareConfiguration other) {
if (other == null) {
return;
}
dancers_.Add(other.dancers_);
dispensers_.Add(other.dispensers_);
motors_.Add(other.motors_);
pidControls_.Add(other.pidControls_);
winders_.Add(other.winders_);
speedSensors_.Add(other.speedSensors_);
blowers_.Add(other.blowers_);
breakSensors_.Add(other.breakSensors_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
dancers_.AddEntriesFrom(input, _repeated_dancers_codec);
break;
}
case 18: {
dispensers_.AddEntriesFrom(input, _repeated_dispensers_codec);
break;
}
case 26: {
motors_.AddEntriesFrom(input, _repeated_motors_codec);
break;
}
case 34: {
pidControls_.AddEntriesFrom(input, _repeated_pidControls_codec);
break;
}
case 42: {
winders_.AddEntriesFrom(input, _repeated_winders_codec);
break;
}
case 50: {
speedSensors_.AddEntriesFrom(input, _repeated_speedSensors_codec);
break;
}
case 58: {
blowers_.AddEntriesFrom(input, _repeated_blowers_codec);
break;
}
case 66: {
breakSensors_.AddEntriesFrom(input, _repeated_breakSensors_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code