|
| 1 | +// <auto-generated> |
| 2 | +// Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | +// source: outputs/battery.proto |
| 4 | +// </auto-generated> |
| 5 | +#pragma warning disable 1591, 0612, 3021 |
| 6 | +#region Designer generated code |
| 7 | + |
| 8 | +using pb = global::Google.Protobuf; |
| 9 | +using pbc = global::Google.Protobuf.Collections; |
| 10 | +using pbr = global::Google.Protobuf.Reflection; |
| 11 | +using scg = global::System.Collections.Generic; |
| 12 | +namespace ProtobufMsgs { |
| 13 | + |
| 14 | + /// <summary>Holder for reflection information generated from outputs/battery.proto</summary> |
| 15 | + public static partial class BatteryReflection { |
| 16 | + |
| 17 | + #region Descriptor |
| 18 | + /// <summary>File descriptor for outputs/battery.proto</summary> |
| 19 | + public static pbr::FileDescriptor Descriptor { |
| 20 | + get { return descriptor; } |
| 21 | + } |
| 22 | + private static pbr::FileDescriptor descriptor; |
| 23 | + |
| 24 | + static BatteryReflection() { |
| 25 | + byte[] descriptorData = global::System.Convert.FromBase64String( |
| 26 | + string.Concat( |
| 27 | + "ChVvdXRwdXRzL2JhdHRlcnkucHJvdG8SDXByb3RvYnVmX21zZ3MiXQoTQmF0", |
| 28 | + "dGVyeVNlbnNvck91dHB1dBIcChRjdXJyZW50T3V0cHV0Vm9sdGFnZRgBIAEo", |
| 29 | + "AhITCgt3YXJuVm9sdGFnZRgCIAEoAhITCgtraWxsVm9sdGFnZRgDIAEoAkIQ", |
| 30 | + "Wg5hc2UvcGJfb3V0cHV0c2IGcHJvdG8z")); |
| 31 | + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 32 | + new pbr::FileDescriptor[] { }, |
| 33 | + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| 34 | + new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufMsgs.BatterySensorOutput), global::ProtobufMsgs.BatterySensorOutput.Parser, new[]{ "CurrentOutputVoltage", "WarnVoltage", "KillVoltage" }, null, null, null, null) |
| 35 | + })); |
| 36 | + } |
| 37 | + #endregion |
| 38 | + |
| 39 | + } |
| 40 | + #region Messages |
| 41 | + public sealed partial class BatterySensorOutput : pb::IMessage<BatterySensorOutput> { |
| 42 | + private static readonly pb::MessageParser<BatterySensorOutput> _parser = new pb::MessageParser<BatterySensorOutput>(() => new BatterySensorOutput()); |
| 43 | + private pb::UnknownFieldSet _unknownFields; |
| 44 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 45 | + public static pb::MessageParser<BatterySensorOutput> Parser { get { return _parser; } } |
| 46 | + |
| 47 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 48 | + public static pbr::MessageDescriptor Descriptor { |
| 49 | + get { return global::ProtobufMsgs.BatteryReflection.Descriptor.MessageTypes[0]; } |
| 50 | + } |
| 51 | + |
| 52 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 53 | + pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 54 | + get { return Descriptor; } |
| 55 | + } |
| 56 | + |
| 57 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 58 | + public BatterySensorOutput() { |
| 59 | + OnConstruction(); |
| 60 | + } |
| 61 | + |
| 62 | + partial void OnConstruction(); |
| 63 | + |
| 64 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 65 | + public BatterySensorOutput(BatterySensorOutput other) : this() { |
| 66 | + currentOutputVoltage_ = other.currentOutputVoltage_; |
| 67 | + warnVoltage_ = other.warnVoltage_; |
| 68 | + killVoltage_ = other.killVoltage_; |
| 69 | + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 70 | + } |
| 71 | + |
| 72 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 73 | + public BatterySensorOutput Clone() { |
| 74 | + return new BatterySensorOutput(this); |
| 75 | + } |
| 76 | + |
| 77 | + /// <summary>Field number for the "currentOutputVoltage" field.</summary> |
| 78 | + public const int CurrentOutputVoltageFieldNumber = 1; |
| 79 | + private float currentOutputVoltage_; |
| 80 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 81 | + public float CurrentOutputVoltage { |
| 82 | + get { return currentOutputVoltage_; } |
| 83 | + set { |
| 84 | + currentOutputVoltage_ = value; |
| 85 | + } |
| 86 | + } |
| 87 | + |
| 88 | + /// <summary>Field number for the "warnVoltage" field.</summary> |
| 89 | + public const int WarnVoltageFieldNumber = 2; |
| 90 | + private float warnVoltage_; |
| 91 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 92 | + public float WarnVoltage { |
| 93 | + get { return warnVoltage_; } |
| 94 | + set { |
| 95 | + warnVoltage_ = value; |
| 96 | + } |
| 97 | + } |
| 98 | + |
| 99 | + /// <summary>Field number for the "killVoltage" field.</summary> |
| 100 | + public const int KillVoltageFieldNumber = 3; |
| 101 | + private float killVoltage_; |
| 102 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 103 | + public float KillVoltage { |
| 104 | + get { return killVoltage_; } |
| 105 | + set { |
| 106 | + killVoltage_ = value; |
| 107 | + } |
| 108 | + } |
| 109 | + |
| 110 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 111 | + public override bool Equals(object other) { |
| 112 | + return Equals(other as BatterySensorOutput); |
| 113 | + } |
| 114 | + |
| 115 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 116 | + public bool Equals(BatterySensorOutput other) { |
| 117 | + if (ReferenceEquals(other, null)) { |
| 118 | + return false; |
| 119 | + } |
| 120 | + if (ReferenceEquals(other, this)) { |
| 121 | + return true; |
| 122 | + } |
| 123 | + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CurrentOutputVoltage, other.CurrentOutputVoltage)) return false; |
| 124 | + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WarnVoltage, other.WarnVoltage)) return false; |
| 125 | + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(KillVoltage, other.KillVoltage)) return false; |
| 126 | + return Equals(_unknownFields, other._unknownFields); |
| 127 | + } |
| 128 | + |
| 129 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 130 | + public override int GetHashCode() { |
| 131 | + int hash = 1; |
| 132 | + if (CurrentOutputVoltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CurrentOutputVoltage); |
| 133 | + if (WarnVoltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WarnVoltage); |
| 134 | + if (KillVoltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KillVoltage); |
| 135 | + if (_unknownFields != null) { |
| 136 | + hash ^= _unknownFields.GetHashCode(); |
| 137 | + } |
| 138 | + return hash; |
| 139 | + } |
| 140 | + |
| 141 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 142 | + public override string ToString() { |
| 143 | + return pb::JsonFormatter.ToDiagnosticString(this); |
| 144 | + } |
| 145 | + |
| 146 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 147 | + public void WriteTo(pb::CodedOutputStream output) { |
| 148 | + if (CurrentOutputVoltage != 0F) { |
| 149 | + output.WriteRawTag(13); |
| 150 | + output.WriteFloat(CurrentOutputVoltage); |
| 151 | + } |
| 152 | + if (WarnVoltage != 0F) { |
| 153 | + output.WriteRawTag(21); |
| 154 | + output.WriteFloat(WarnVoltage); |
| 155 | + } |
| 156 | + if (KillVoltage != 0F) { |
| 157 | + output.WriteRawTag(29); |
| 158 | + output.WriteFloat(KillVoltage); |
| 159 | + } |
| 160 | + if (_unknownFields != null) { |
| 161 | + _unknownFields.WriteTo(output); |
| 162 | + } |
| 163 | + } |
| 164 | + |
| 165 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 166 | + public int CalculateSize() { |
| 167 | + int size = 0; |
| 168 | + if (CurrentOutputVoltage != 0F) { |
| 169 | + size += 1 + 4; |
| 170 | + } |
| 171 | + if (WarnVoltage != 0F) { |
| 172 | + size += 1 + 4; |
| 173 | + } |
| 174 | + if (KillVoltage != 0F) { |
| 175 | + size += 1 + 4; |
| 176 | + } |
| 177 | + if (_unknownFields != null) { |
| 178 | + size += _unknownFields.CalculateSize(); |
| 179 | + } |
| 180 | + return size; |
| 181 | + } |
| 182 | + |
| 183 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 184 | + public void MergeFrom(BatterySensorOutput other) { |
| 185 | + if (other == null) { |
| 186 | + return; |
| 187 | + } |
| 188 | + if (other.CurrentOutputVoltage != 0F) { |
| 189 | + CurrentOutputVoltage = other.CurrentOutputVoltage; |
| 190 | + } |
| 191 | + if (other.WarnVoltage != 0F) { |
| 192 | + WarnVoltage = other.WarnVoltage; |
| 193 | + } |
| 194 | + if (other.KillVoltage != 0F) { |
| 195 | + KillVoltage = other.KillVoltage; |
| 196 | + } |
| 197 | + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 198 | + } |
| 199 | + |
| 200 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 201 | + public void MergeFrom(pb::CodedInputStream input) { |
| 202 | + uint tag; |
| 203 | + while ((tag = input.ReadTag()) != 0) { |
| 204 | + switch(tag) { |
| 205 | + default: |
| 206 | + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 207 | + break; |
| 208 | + case 13: { |
| 209 | + CurrentOutputVoltage = input.ReadFloat(); |
| 210 | + break; |
| 211 | + } |
| 212 | + case 21: { |
| 213 | + WarnVoltage = input.ReadFloat(); |
| 214 | + break; |
| 215 | + } |
| 216 | + case 29: { |
| 217 | + KillVoltage = input.ReadFloat(); |
| 218 | + break; |
| 219 | + } |
| 220 | + } |
| 221 | + } |
| 222 | + } |
| 223 | + |
| 224 | + } |
| 225 | + |
| 226 | + #endregion |
| 227 | + |
| 228 | +} |
| 229 | + |
| 230 | +#endregion Designer generated code |
0 commit comments