| | | 1 | | // <auto-generated> |
| | | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | | 3 | | // source: Simulation/sensor.proto |
| | | 4 | | // </auto-generated> |
| | | 5 | | #pragma warning disable 1591, 0612, 3021, 8981 |
| | | 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 Simulation { |
| | | 13 | | |
| | | 14 | | /// <summary>Holder for reflection information generated from Simulation/sensor.proto</summary> |
| | | 15 | | public static partial class SensorReflection { |
| | | 16 | | |
| | | 17 | | #region Descriptor |
| | | 18 | | /// <summary>File descriptor for Simulation/sensor.proto</summary> |
| | | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 0 | 20 | | get { return descriptor; } |
| | | 21 | | } |
| | | 22 | | private static pbr::FileDescriptor descriptor; |
| | | 23 | | |
| | 0 | 24 | | static SensorReflection() { |
| | 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | | 26 | | string.Concat( |
| | | 27 | | "ChdTaW11bGF0aW9uL3NlbnNvci5wcm90bxIKc2ltdWxhdGlvbhocU2ltdWxh", |
| | | 28 | | "dGlvbi9jb29yZGluYXRlcy5wcm90byJHCgxTZW5zb3JDb25maWcSJAoEdHlw", |
| | | 29 | | "ZRgBIAEoDjIWLnNpbXVsYXRpb24uU2Vuc29yVHlwZRIRCglmcmVxdWVuY3kY", |
| | | 30 | | "AiABKAIitAEKDFNlbnNvck91dHB1dBIyCghwb3NpdGlvbhgBIAEoCzIgLnNp", |
| | | 31 | | "bXVsYXRpb24uU3BoZXJpY2FsQ29vcmRpbmF0ZXMSMgoIdmVsb2NpdHkYAiAB", |
| | | 32 | | "KAsyIC5zaW11bGF0aW9uLlNwaGVyaWNhbENvb3JkaW5hdGVzEjwKEnBvc2l0", |
| | | 33 | | "aW9uX2NhcnRlc2lhbhgDIAEoCzIgLnNpbXVsYXRpb24uQ2FydGVzaWFuQ29v", |
| | | 34 | | "cmRpbmF0ZXMqFwoKU2Vuc29yVHlwZRIJCgVJREVBTBAAYgZwcm90bzM=")); |
| | 0 | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | | 36 | | new pbr::FileDescriptor[] { global::Simulation.CoordinatesReflection.Descriptor, }, |
| | | 37 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Simulation.SensorType), }, null, new pbr::GeneratedClrType |
| | | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.SensorConfig), global::Simulation.SensorConfig.Parse |
| | | 39 | | new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.SensorOutput), global::Simulation.SensorOutput.Parse |
| | | 40 | | })); |
| | 0 | 41 | | } |
| | | 42 | | #endregion |
| | | 43 | | |
| | | 44 | | } |
| | | 45 | | #region Enums |
| | | 46 | | /// <summary> |
| | | 47 | | /// Sensor type enumeration. |
| | | 48 | | /// </summary> |
| | | 49 | | public enum SensorType { |
| | | 50 | | [pbr::OriginalName("IDEAL")] Ideal = 0, |
| | | 51 | | } |
| | | 52 | | |
| | | 53 | | #endregion |
| | | 54 | | |
| | | 55 | | #region Messages |
| | | 56 | | /// <summary> |
| | | 57 | | /// Sensor configuration. |
| | | 58 | | /// </summary> |
| | | 59 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | | 60 | | public sealed partial class SensorConfig : pb::IMessage<SensorConfig> |
| | | 61 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 62 | | , pb::IBufferMessage |
| | | 63 | | #endif |
| | | 64 | | { |
| | | 65 | | private static readonly pb::MessageParser<SensorConfig> _parser = new pb::MessageParser<SensorConfig>(() => new Sens |
| | | 66 | | private pb::UnknownFieldSet _unknownFields; |
| | | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 68 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 69 | | public static pb::MessageParser<SensorConfig> Parser { get { return _parser; } } |
| | | 70 | | |
| | | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 73 | | public static pbr::MessageDescriptor Descriptor { |
| | | 74 | | get { return global::Simulation.SensorReflection.Descriptor.MessageTypes[0]; } |
| | | 75 | | } |
| | | 76 | | |
| | | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 79 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | | 80 | | get { return Descriptor; } |
| | | 81 | | } |
| | | 82 | | |
| | | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 85 | | public SensorConfig() { |
| | | 86 | | OnConstruction(); |
| | | 87 | | } |
| | | 88 | | |
| | | 89 | | partial void OnConstruction(); |
| | | 90 | | |
| | | 91 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 92 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 93 | | public SensorConfig(SensorConfig other) : this() { |
| | | 94 | | type_ = other.type_; |
| | | 95 | | frequency_ = other.frequency_; |
| | | 96 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | | 97 | | } |
| | | 98 | | |
| | | 99 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 100 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 101 | | public SensorConfig Clone() { |
| | | 102 | | return new SensorConfig(this); |
| | | 103 | | } |
| | | 104 | | |
| | | 105 | | /// <summary>Field number for the "type" field.</summary> |
| | | 106 | | public const int TypeFieldNumber = 1; |
| | | 107 | | private global::Simulation.SensorType type_ = global::Simulation.SensorType.Ideal; |
| | | 108 | | /// <summary> |
| | | 109 | | /// Sensor type. |
| | | 110 | | /// </summary> |
| | | 111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 112 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 113 | | public global::Simulation.SensorType Type { |
| | | 114 | | get { return type_; } |
| | | 115 | | set { |
| | | 116 | | type_ = value; |
| | | 117 | | } |
| | | 118 | | } |
| | | 119 | | |
| | | 120 | | /// <summary>Field number for the "frequency" field.</summary> |
| | | 121 | | public const int FrequencyFieldNumber = 2; |
| | | 122 | | private float frequency_; |
| | | 123 | | /// <summary> |
| | | 124 | | /// Sensor frequency in Hz. |
| | | 125 | | /// </summary> |
| | | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 127 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 128 | | public float Frequency { |
| | | 129 | | get { return frequency_; } |
| | | 130 | | set { |
| | | 131 | | frequency_ = value; |
| | | 132 | | } |
| | | 133 | | } |
| | | 134 | | |
| | | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 136 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 137 | | public override bool Equals(object other) { |
| | | 138 | | return Equals(other as SensorConfig); |
| | | 139 | | } |
| | | 140 | | |
| | | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 142 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 143 | | public bool Equals(SensorConfig other) { |
| | | 144 | | if (ReferenceEquals(other, null)) { |
| | | 145 | | return false; |
| | | 146 | | } |
| | | 147 | | if (ReferenceEquals(other, this)) { |
| | | 148 | | return true; |
| | | 149 | | } |
| | | 150 | | if (Type != other.Type) return false; |
| | | 151 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Frequency, other.Frequency)) return false |
| | | 152 | | return Equals(_unknownFields, other._unknownFields); |
| | | 153 | | } |
| | | 154 | | |
| | | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 156 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 157 | | public override int GetHashCode() { |
| | | 158 | | int hash = 1; |
| | | 159 | | if (Type != global::Simulation.SensorType.Ideal) hash ^= Type.GetHashCode(); |
| | | 160 | | if (Frequency != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Frequency); |
| | | 161 | | if (_unknownFields != null) { |
| | | 162 | | hash ^= _unknownFields.GetHashCode(); |
| | | 163 | | } |
| | | 164 | | return hash; |
| | | 165 | | } |
| | | 166 | | |
| | | 167 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 168 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 169 | | public override string ToString() { |
| | | 170 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | | 171 | | } |
| | | 172 | | |
| | | 173 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 174 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 175 | | public void WriteTo(pb::CodedOutputStream output) { |
| | | 176 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 177 | | output.WriteRawMessage(this); |
| | | 178 | | #else |
| | | 179 | | if (Type != global::Simulation.SensorType.Ideal) { |
| | | 180 | | output.WriteRawTag(8); |
| | | 181 | | output.WriteEnum((int) Type); |
| | | 182 | | } |
| | | 183 | | if (Frequency != 0F) { |
| | | 184 | | output.WriteRawTag(21); |
| | | 185 | | output.WriteFloat(Frequency); |
| | | 186 | | } |
| | | 187 | | if (_unknownFields != null) { |
| | | 188 | | _unknownFields.WriteTo(output); |
| | | 189 | | } |
| | | 190 | | #endif |
| | | 191 | | } |
| | | 192 | | |
| | | 193 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 194 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 195 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 196 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | | 197 | | if (Type != global::Simulation.SensorType.Ideal) { |
| | | 198 | | output.WriteRawTag(8); |
| | | 199 | | output.WriteEnum((int) Type); |
| | | 200 | | } |
| | | 201 | | if (Frequency != 0F) { |
| | | 202 | | output.WriteRawTag(21); |
| | | 203 | | output.WriteFloat(Frequency); |
| | | 204 | | } |
| | | 205 | | if (_unknownFields != null) { |
| | | 206 | | _unknownFields.WriteTo(ref output); |
| | | 207 | | } |
| | | 208 | | } |
| | | 209 | | #endif |
| | | 210 | | |
| | | 211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 213 | | public int CalculateSize() { |
| | | 214 | | int size = 0; |
| | | 215 | | if (Type != global::Simulation.SensorType.Ideal) { |
| | | 216 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); |
| | | 217 | | } |
| | | 218 | | if (Frequency != 0F) { |
| | | 219 | | size += 1 + 4; |
| | | 220 | | } |
| | | 221 | | if (_unknownFields != null) { |
| | | 222 | | size += _unknownFields.CalculateSize(); |
| | | 223 | | } |
| | | 224 | | return size; |
| | | 225 | | } |
| | | 226 | | |
| | | 227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 229 | | public void MergeFrom(SensorConfig other) { |
| | | 230 | | if (other == null) { |
| | | 231 | | return; |
| | | 232 | | } |
| | | 233 | | if (other.Type != global::Simulation.SensorType.Ideal) { |
| | | 234 | | Type = other.Type; |
| | | 235 | | } |
| | | 236 | | if (other.Frequency != 0F) { |
| | | 237 | | Frequency = other.Frequency; |
| | | 238 | | } |
| | | 239 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | | 240 | | } |
| | | 241 | | |
| | | 242 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 243 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 244 | | public void MergeFrom(pb::CodedInputStream input) { |
| | | 245 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 246 | | input.ReadRawMessage(this); |
| | | 247 | | #else |
| | | 248 | | uint tag; |
| | | 249 | | while ((tag = input.ReadTag()) != 0) { |
| | | 250 | | if ((tag & 7) == 4) { |
| | | 251 | | // Abort on any end group tag. |
| | | 252 | | return; |
| | | 253 | | } |
| | | 254 | | switch(tag) { |
| | | 255 | | default: |
| | | 256 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | | 257 | | break; |
| | | 258 | | case 8: { |
| | | 259 | | Type = (global::Simulation.SensorType) input.ReadEnum(); |
| | | 260 | | break; |
| | | 261 | | } |
| | | 262 | | case 21: { |
| | | 263 | | Frequency = input.ReadFloat(); |
| | | 264 | | break; |
| | | 265 | | } |
| | | 266 | | } |
| | | 267 | | } |
| | | 268 | | #endif |
| | | 269 | | } |
| | | 270 | | |
| | | 271 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 274 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | | 275 | | uint tag; |
| | | 276 | | while ((tag = input.ReadTag()) != 0) { |
| | | 277 | | if ((tag & 7) == 4) { |
| | | 278 | | // Abort on any end group tag. |
| | | 279 | | return; |
| | | 280 | | } |
| | | 281 | | switch(tag) { |
| | | 282 | | default: |
| | | 283 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | | 284 | | break; |
| | | 285 | | case 8: { |
| | | 286 | | Type = (global::Simulation.SensorType) input.ReadEnum(); |
| | | 287 | | break; |
| | | 288 | | } |
| | | 289 | | case 21: { |
| | | 290 | | Frequency = input.ReadFloat(); |
| | | 291 | | break; |
| | | 292 | | } |
| | | 293 | | } |
| | | 294 | | } |
| | | 295 | | } |
| | | 296 | | #endif |
| | | 297 | | |
| | | 298 | | } |
| | | 299 | | |
| | | 300 | | /// <summary> |
| | | 301 | | /// Sensor output. |
| | | 302 | | /// </summary> |
| | | 303 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | | 304 | | public sealed partial class SensorOutput : pb::IMessage<SensorOutput> |
| | | 305 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 306 | | , pb::IBufferMessage |
| | | 307 | | #endif |
| | | 308 | | { |
| | | 309 | | private static readonly pb::MessageParser<SensorOutput> _parser = new pb::MessageParser<SensorOutput>(() => new Sens |
| | | 310 | | private pb::UnknownFieldSet _unknownFields; |
| | | 311 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 312 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 313 | | public static pb::MessageParser<SensorOutput> Parser { get { return _parser; } } |
| | | 314 | | |
| | | 315 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 316 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 317 | | public static pbr::MessageDescriptor Descriptor { |
| | | 318 | | get { return global::Simulation.SensorReflection.Descriptor.MessageTypes[1]; } |
| | | 319 | | } |
| | | 320 | | |
| | | 321 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 322 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 323 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | | 324 | | get { return Descriptor; } |
| | | 325 | | } |
| | | 326 | | |
| | | 327 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 328 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 329 | | public SensorOutput() { |
| | | 330 | | OnConstruction(); |
| | | 331 | | } |
| | | 332 | | |
| | | 333 | | partial void OnConstruction(); |
| | | 334 | | |
| | | 335 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 336 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 337 | | public SensorOutput(SensorOutput other) : this() { |
| | | 338 | | position_ = other.position_ != null ? other.position_.Clone() : null; |
| | | 339 | | velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null; |
| | | 340 | | positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null; |
| | | 341 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | | 342 | | } |
| | | 343 | | |
| | | 344 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 345 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 346 | | public SensorOutput Clone() { |
| | | 347 | | return new SensorOutput(this); |
| | | 348 | | } |
| | | 349 | | |
| | | 350 | | /// <summary>Field number for the "position" field.</summary> |
| | | 351 | | public const int PositionFieldNumber = 1; |
| | | 352 | | private global::Simulation.SphericalCoordinates position_; |
| | | 353 | | /// <summary> |
| | | 354 | | /// Range in m, azimuth and elevation in rad. |
| | | 355 | | /// </summary> |
| | | 356 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 357 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 358 | | public global::Simulation.SphericalCoordinates Position { |
| | | 359 | | get { return position_; } |
| | | 360 | | set { |
| | | 361 | | position_ = value; |
| | | 362 | | } |
| | | 363 | | } |
| | | 364 | | |
| | | 365 | | /// <summary>Field number for the "velocity" field.</summary> |
| | | 366 | | public const int VelocityFieldNumber = 2; |
| | | 367 | | private global::Simulation.SphericalCoordinates velocity_; |
| | | 368 | | /// <summary> |
| | | 369 | | /// Range rate in m/s, azimuth and elevation rate in rad/s. |
| | | 370 | | /// </summary> |
| | | 371 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 372 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 373 | | public global::Simulation.SphericalCoordinates Velocity { |
| | | 374 | | get { return velocity_; } |
| | | 375 | | set { |
| | | 376 | | velocity_ = value; |
| | | 377 | | } |
| | | 378 | | } |
| | | 379 | | |
| | | 380 | | /// <summary>Field number for the "position_cartesian" field.</summary> |
| | | 381 | | public const int PositionCartesianFieldNumber = 3; |
| | | 382 | | private global::Simulation.CartesianCoordinates positionCartesian_; |
| | | 383 | | /// <summary> |
| | | 384 | | /// Range in m. |
| | | 385 | | /// </summary> |
| | | 386 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 387 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 388 | | public global::Simulation.CartesianCoordinates PositionCartesian { |
| | | 389 | | get { return positionCartesian_; } |
| | | 390 | | set { |
| | | 391 | | positionCartesian_ = value; |
| | | 392 | | } |
| | | 393 | | } |
| | | 394 | | |
| | | 395 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 396 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 397 | | public override bool Equals(object other) { |
| | | 398 | | return Equals(other as SensorOutput); |
| | | 399 | | } |
| | | 400 | | |
| | | 401 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 402 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 403 | | public bool Equals(SensorOutput other) { |
| | | 404 | | if (ReferenceEquals(other, null)) { |
| | | 405 | | return false; |
| | | 406 | | } |
| | | 407 | | if (ReferenceEquals(other, this)) { |
| | | 408 | | return true; |
| | | 409 | | } |
| | | 410 | | if (!object.Equals(Position, other.Position)) return false; |
| | | 411 | | if (!object.Equals(Velocity, other.Velocity)) return false; |
| | | 412 | | if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false; |
| | | 413 | | return Equals(_unknownFields, other._unknownFields); |
| | | 414 | | } |
| | | 415 | | |
| | | 416 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 417 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 418 | | public override int GetHashCode() { |
| | | 419 | | int hash = 1; |
| | | 420 | | if (position_ != null) hash ^= Position.GetHashCode(); |
| | | 421 | | if (velocity_ != null) hash ^= Velocity.GetHashCode(); |
| | | 422 | | if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode(); |
| | | 423 | | if (_unknownFields != null) { |
| | | 424 | | hash ^= _unknownFields.GetHashCode(); |
| | | 425 | | } |
| | | 426 | | return hash; |
| | | 427 | | } |
| | | 428 | | |
| | | 429 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 430 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 431 | | public override string ToString() { |
| | | 432 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | | 433 | | } |
| | | 434 | | |
| | | 435 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 436 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 437 | | public void WriteTo(pb::CodedOutputStream output) { |
| | | 438 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 439 | | output.WriteRawMessage(this); |
| | | 440 | | #else |
| | | 441 | | if (position_ != null) { |
| | | 442 | | output.WriteRawTag(10); |
| | | 443 | | output.WriteMessage(Position); |
| | | 444 | | } |
| | | 445 | | if (velocity_ != null) { |
| | | 446 | | output.WriteRawTag(18); |
| | | 447 | | output.WriteMessage(Velocity); |
| | | 448 | | } |
| | | 449 | | if (positionCartesian_ != null) { |
| | | 450 | | output.WriteRawTag(26); |
| | | 451 | | output.WriteMessage(PositionCartesian); |
| | | 452 | | } |
| | | 453 | | if (_unknownFields != null) { |
| | | 454 | | _unknownFields.WriteTo(output); |
| | | 455 | | } |
| | | 456 | | #endif |
| | | 457 | | } |
| | | 458 | | |
| | | 459 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 460 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 461 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 462 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | | 463 | | if (position_ != null) { |
| | | 464 | | output.WriteRawTag(10); |
| | | 465 | | output.WriteMessage(Position); |
| | | 466 | | } |
| | | 467 | | if (velocity_ != null) { |
| | | 468 | | output.WriteRawTag(18); |
| | | 469 | | output.WriteMessage(Velocity); |
| | | 470 | | } |
| | | 471 | | if (positionCartesian_ != null) { |
| | | 472 | | output.WriteRawTag(26); |
| | | 473 | | output.WriteMessage(PositionCartesian); |
| | | 474 | | } |
| | | 475 | | if (_unknownFields != null) { |
| | | 476 | | _unknownFields.WriteTo(ref output); |
| | | 477 | | } |
| | | 478 | | } |
| | | 479 | | #endif |
| | | 480 | | |
| | | 481 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 482 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 483 | | public int CalculateSize() { |
| | | 484 | | int size = 0; |
| | | 485 | | if (position_ != null) { |
| | | 486 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); |
| | | 487 | | } |
| | | 488 | | if (velocity_ != null) { |
| | | 489 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity); |
| | | 490 | | } |
| | | 491 | | if (positionCartesian_ != null) { |
| | | 492 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian); |
| | | 493 | | } |
| | | 494 | | if (_unknownFields != null) { |
| | | 495 | | size += _unknownFields.CalculateSize(); |
| | | 496 | | } |
| | | 497 | | return size; |
| | | 498 | | } |
| | | 499 | | |
| | | 500 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 501 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 502 | | public void MergeFrom(SensorOutput other) { |
| | | 503 | | if (other == null) { |
| | | 504 | | return; |
| | | 505 | | } |
| | | 506 | | if (other.position_ != null) { |
| | | 507 | | if (position_ == null) { |
| | | 508 | | Position = new global::Simulation.SphericalCoordinates(); |
| | | 509 | | } |
| | | 510 | | Position.MergeFrom(other.Position); |
| | | 511 | | } |
| | | 512 | | if (other.velocity_ != null) { |
| | | 513 | | if (velocity_ == null) { |
| | | 514 | | Velocity = new global::Simulation.SphericalCoordinates(); |
| | | 515 | | } |
| | | 516 | | Velocity.MergeFrom(other.Velocity); |
| | | 517 | | } |
| | | 518 | | if (other.positionCartesian_ != null) { |
| | | 519 | | if (positionCartesian_ == null) { |
| | | 520 | | PositionCartesian = new global::Simulation.CartesianCoordinates(); |
| | | 521 | | } |
| | | 522 | | PositionCartesian.MergeFrom(other.PositionCartesian); |
| | | 523 | | } |
| | | 524 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | | 525 | | } |
| | | 526 | | |
| | | 527 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 528 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 529 | | public void MergeFrom(pb::CodedInputStream input) { |
| | | 530 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 531 | | input.ReadRawMessage(this); |
| | | 532 | | #else |
| | | 533 | | uint tag; |
| | | 534 | | while ((tag = input.ReadTag()) != 0) { |
| | | 535 | | if ((tag & 7) == 4) { |
| | | 536 | | // Abort on any end group tag. |
| | | 537 | | return; |
| | | 538 | | } |
| | | 539 | | switch(tag) { |
| | | 540 | | default: |
| | | 541 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | | 542 | | break; |
| | | 543 | | case 10: { |
| | | 544 | | if (position_ == null) { |
| | | 545 | | Position = new global::Simulation.SphericalCoordinates(); |
| | | 546 | | } |
| | | 547 | | input.ReadMessage(Position); |
| | | 548 | | break; |
| | | 549 | | } |
| | | 550 | | case 18: { |
| | | 551 | | if (velocity_ == null) { |
| | | 552 | | Velocity = new global::Simulation.SphericalCoordinates(); |
| | | 553 | | } |
| | | 554 | | input.ReadMessage(Velocity); |
| | | 555 | | break; |
| | | 556 | | } |
| | | 557 | | case 26: { |
| | | 558 | | if (positionCartesian_ == null) { |
| | | 559 | | PositionCartesian = new global::Simulation.CartesianCoordinates(); |
| | | 560 | | } |
| | | 561 | | input.ReadMessage(PositionCartesian); |
| | | 562 | | break; |
| | | 563 | | } |
| | | 564 | | } |
| | | 565 | | } |
| | | 566 | | #endif |
| | | 567 | | } |
| | | 568 | | |
| | | 569 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 570 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 571 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 572 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | | 573 | | uint tag; |
| | | 574 | | while ((tag = input.ReadTag()) != 0) { |
| | | 575 | | if ((tag & 7) == 4) { |
| | | 576 | | // Abort on any end group tag. |
| | | 577 | | return; |
| | | 578 | | } |
| | | 579 | | switch(tag) { |
| | | 580 | | default: |
| | | 581 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | | 582 | | break; |
| | | 583 | | case 10: { |
| | | 584 | | if (position_ == null) { |
| | | 585 | | Position = new global::Simulation.SphericalCoordinates(); |
| | | 586 | | } |
| | | 587 | | input.ReadMessage(Position); |
| | | 588 | | break; |
| | | 589 | | } |
| | | 590 | | case 18: { |
| | | 591 | | if (velocity_ == null) { |
| | | 592 | | Velocity = new global::Simulation.SphericalCoordinates(); |
| | | 593 | | } |
| | | 594 | | input.ReadMessage(Velocity); |
| | | 595 | | break; |
| | | 596 | | } |
| | | 597 | | case 26: { |
| | | 598 | | if (positionCartesian_ == null) { |
| | | 599 | | PositionCartesian = new global::Simulation.CartesianCoordinates(); |
| | | 600 | | } |
| | | 601 | | input.ReadMessage(PositionCartesian); |
| | | 602 | | break; |
| | | 603 | | } |
| | | 604 | | } |
| | | 605 | | } |
| | | 606 | | } |
| | | 607 | | #endif |
| | | 608 | | |
| | | 609 | | } |
| | | 610 | | |
| | | 611 | | #endregion |
| | | 612 | | |
| | | 613 | | } |
| | | 614 | | |
| | | 615 | | #endregion Designer generated code |