| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: Simulation/coordinates.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/coordinates.proto</summary> |
| | 15 | | public static partial class CoordinatesReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for Simulation/coordinates.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| 0 | 24 | | static CoordinatesReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChxTaW11bGF0aW9uL2Nvb3JkaW5hdGVzLnByb3RvEgpzaW11bGF0aW9uImEK", |
| | 28 | | "FENhcnRlc2lhbkNvb3JkaW5hdGVzEgkKAXgYASABKAISCQoBeRgCIAEoAhIJ", |
| | 29 | | "CgF6GAMgASgCEgwKBHJvbGwYBCABKAISDQoFcGl0Y2gYBSABKAISCwoDeWF3", |
| | 30 | | "GAYgASgCIkkKFFNwaGVyaWNhbENvb3JkaW5hdGVzEg0KBXJhbmdlGAEgASgC", |
| | 31 | | "Eg8KB2F6aW11dGgYAiABKAISEQoJZWxldmF0aW9uGAMgASgCYgZwcm90bzM=")); |
| 0 | 32 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 33 | | new pbr::FileDescriptor[] { }, |
| | 34 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 35 | | new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.CartesianCoordinates), global::Simulation.CartesianC |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.SphericalCoordinates), global::Simulation.SphericalC |
| | 37 | | })); |
| 0 | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | /// <summary> |
| | 44 | | /// Cartesian coordinates. |
| | 45 | | /// </summary> |
| | 46 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 47 | | public sealed partial class CartesianCoordinates : pb::IMessage<CartesianCoordinates> |
| | 48 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 49 | | , pb::IBufferMessage |
| | 50 | | #endif |
| | 51 | | { |
| | 52 | | private static readonly pb::MessageParser<CartesianCoordinates> _parser = new pb::MessageParser<CartesianCoordinates |
| | 53 | | private pb::UnknownFieldSet _unknownFields; |
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 56 | | public static pb::MessageParser<CartesianCoordinates> Parser { get { return _parser; } } |
| | 57 | |
|
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 59 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 60 | | public static pbr::MessageDescriptor Descriptor { |
| | 61 | | get { return global::Simulation.CoordinatesReflection.Descriptor.MessageTypes[0]; } |
| | 62 | | } |
| | 63 | |
|
| | 64 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 65 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 66 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 67 | | get { return Descriptor; } |
| | 68 | | } |
| | 69 | |
|
| | 70 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 71 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 72 | | public CartesianCoordinates() { |
| | 73 | | OnConstruction(); |
| | 74 | | } |
| | 75 | |
|
| | 76 | | partial void OnConstruction(); |
| | 77 | |
|
| | 78 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 79 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 80 | | public CartesianCoordinates(CartesianCoordinates other) : this() { |
| | 81 | | x_ = other.x_; |
| | 82 | | y_ = other.y_; |
| | 83 | | z_ = other.z_; |
| | 84 | | roll_ = other.roll_; |
| | 85 | | pitch_ = other.pitch_; |
| | 86 | | yaw_ = other.yaw_; |
| | 87 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 88 | | } |
| | 89 | |
|
| | 90 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 91 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 92 | | public CartesianCoordinates Clone() { |
| | 93 | | return new CartesianCoordinates(this); |
| | 94 | | } |
| | 95 | |
|
| | 96 | | /// <summary>Field number for the "x" field.</summary> |
| | 97 | | public const int XFieldNumber = 1; |
| | 98 | | private float x_; |
| | 99 | | /// <summary> |
| | 100 | | /// x-coordinate. |
| | 101 | | /// </summary> |
| | 102 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 103 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 104 | | public float X { |
| | 105 | | get { return x_; } |
| | 106 | | set { |
| | 107 | | x_ = value; |
| | 108 | | } |
| | 109 | | } |
| | 110 | |
|
| | 111 | | /// <summary>Field number for the "y" field.</summary> |
| | 112 | | public const int YFieldNumber = 2; |
| | 113 | | private float y_; |
| | 114 | | /// <summary> |
| | 115 | | /// y-coordinate. |
| | 116 | | /// </summary> |
| | 117 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 118 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 119 | | public float Y { |
| | 120 | | get { return y_; } |
| | 121 | | set { |
| | 122 | | y_ = value; |
| | 123 | | } |
| | 124 | | } |
| | 125 | |
|
| | 126 | | /// <summary>Field number for the "z" field.</summary> |
| | 127 | | public const int ZFieldNumber = 3; |
| | 128 | | private float z_; |
| | 129 | | /// <summary> |
| | 130 | | /// z-coordinate. |
| | 131 | | /// </summary> |
| | 132 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 133 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 134 | | public float Z { |
| | 135 | | get { return z_; } |
| | 136 | | set { |
| | 137 | | z_ = value; |
| | 138 | | } |
| | 139 | | } |
| | 140 | |
|
| | 141 | | /// <summary>Field number for the "roll" field.</summary> |
| | 142 | | public const int RollFieldNumber = 4; |
| | 143 | | private float roll_; |
| | 144 | | /// <summary> |
| | 145 | | /// Roll. |
| | 146 | | /// </summary> |
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 149 | | public float Roll { |
| | 150 | | get { return roll_; } |
| | 151 | | set { |
| | 152 | | roll_ = value; |
| | 153 | | } |
| | 154 | | } |
| | 155 | |
|
| | 156 | | /// <summary>Field number for the "pitch" field.</summary> |
| | 157 | | public const int PitchFieldNumber = 5; |
| | 158 | | private float pitch_; |
| | 159 | | /// <summary> |
| | 160 | | /// Pitch. |
| | 161 | | /// </summary> |
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public float Pitch { |
| | 165 | | get { return pitch_; } |
| | 166 | | set { |
| | 167 | | pitch_ = value; |
| | 168 | | } |
| | 169 | | } |
| | 170 | |
|
| | 171 | | /// <summary>Field number for the "yaw" field.</summary> |
| | 172 | | public const int YawFieldNumber = 6; |
| | 173 | | private float yaw_; |
| | 174 | | /// <summary> |
| | 175 | | /// Yaw. |
| | 176 | | /// </summary> |
| | 177 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 178 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 179 | | public float Yaw { |
| | 180 | | get { return yaw_; } |
| | 181 | | set { |
| | 182 | | yaw_ = value; |
| | 183 | | } |
| | 184 | | } |
| | 185 | |
|
| | 186 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 187 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 188 | | public override bool Equals(object other) { |
| | 189 | | return Equals(other as CartesianCoordinates); |
| | 190 | | } |
| | 191 | |
|
| | 192 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 193 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 194 | | public bool Equals(CartesianCoordinates other) { |
| | 195 | | if (ReferenceEquals(other, null)) { |
| | 196 | | return false; |
| | 197 | | } |
| | 198 | | if (ReferenceEquals(other, this)) { |
| | 199 | | return true; |
| | 200 | | } |
| | 201 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| | 202 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| | 203 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| | 204 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roll, other.Roll)) return false; |
| | 205 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Pitch, other.Pitch)) return false; |
| | 206 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Yaw, other.Yaw)) return false; |
| | 207 | | return Equals(_unknownFields, other._unknownFields); |
| | 208 | | } |
| | 209 | |
|
| | 210 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 211 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 212 | | public override int GetHashCode() { |
| | 213 | | int hash = 1; |
| | 214 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| | 215 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| | 216 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| | 217 | | if (Roll != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roll); |
| | 218 | | if (Pitch != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Pitch); |
| | 219 | | if (Yaw != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Yaw); |
| | 220 | | if (_unknownFields != null) { |
| | 221 | | hash ^= _unknownFields.GetHashCode(); |
| | 222 | | } |
| | 223 | | return hash; |
| | 224 | | } |
| | 225 | |
|
| | 226 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 227 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 228 | | public override string ToString() { |
| | 229 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 230 | | } |
| | 231 | |
|
| | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 233 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 234 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 235 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 236 | | output.WriteRawMessage(this); |
| | 237 | | #else |
| | 238 | | if (X != 0F) { |
| | 239 | | output.WriteRawTag(13); |
| | 240 | | output.WriteFloat(X); |
| | 241 | | } |
| | 242 | | if (Y != 0F) { |
| | 243 | | output.WriteRawTag(21); |
| | 244 | | output.WriteFloat(Y); |
| | 245 | | } |
| | 246 | | if (Z != 0F) { |
| | 247 | | output.WriteRawTag(29); |
| | 248 | | output.WriteFloat(Z); |
| | 249 | | } |
| | 250 | | if (Roll != 0F) { |
| | 251 | | output.WriteRawTag(37); |
| | 252 | | output.WriteFloat(Roll); |
| | 253 | | } |
| | 254 | | if (Pitch != 0F) { |
| | 255 | | output.WriteRawTag(45); |
| | 256 | | output.WriteFloat(Pitch); |
| | 257 | | } |
| | 258 | | if (Yaw != 0F) { |
| | 259 | | output.WriteRawTag(53); |
| | 260 | | output.WriteFloat(Yaw); |
| | 261 | | } |
| | 262 | | if (_unknownFields != null) { |
| | 263 | | _unknownFields.WriteTo(output); |
| | 264 | | } |
| | 265 | | #endif |
| | 266 | | } |
| | 267 | |
|
| | 268 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 270 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 271 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 272 | | if (X != 0F) { |
| | 273 | | output.WriteRawTag(13); |
| | 274 | | output.WriteFloat(X); |
| | 275 | | } |
| | 276 | | if (Y != 0F) { |
| | 277 | | output.WriteRawTag(21); |
| | 278 | | output.WriteFloat(Y); |
| | 279 | | } |
| | 280 | | if (Z != 0F) { |
| | 281 | | output.WriteRawTag(29); |
| | 282 | | output.WriteFloat(Z); |
| | 283 | | } |
| | 284 | | if (Roll != 0F) { |
| | 285 | | output.WriteRawTag(37); |
| | 286 | | output.WriteFloat(Roll); |
| | 287 | | } |
| | 288 | | if (Pitch != 0F) { |
| | 289 | | output.WriteRawTag(45); |
| | 290 | | output.WriteFloat(Pitch); |
| | 291 | | } |
| | 292 | | if (Yaw != 0F) { |
| | 293 | | output.WriteRawTag(53); |
| | 294 | | output.WriteFloat(Yaw); |
| | 295 | | } |
| | 296 | | if (_unknownFields != null) { |
| | 297 | | _unknownFields.WriteTo(ref output); |
| | 298 | | } |
| | 299 | | } |
| | 300 | | #endif |
| | 301 | |
|
| | 302 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 303 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 304 | | public int CalculateSize() { |
| | 305 | | int size = 0; |
| | 306 | | if (X != 0F) { |
| | 307 | | size += 1 + 4; |
| | 308 | | } |
| | 309 | | if (Y != 0F) { |
| | 310 | | size += 1 + 4; |
| | 311 | | } |
| | 312 | | if (Z != 0F) { |
| | 313 | | size += 1 + 4; |
| | 314 | | } |
| | 315 | | if (Roll != 0F) { |
| | 316 | | size += 1 + 4; |
| | 317 | | } |
| | 318 | | if (Pitch != 0F) { |
| | 319 | | size += 1 + 4; |
| | 320 | | } |
| | 321 | | if (Yaw != 0F) { |
| | 322 | | size += 1 + 4; |
| | 323 | | } |
| | 324 | | if (_unknownFields != null) { |
| | 325 | | size += _unknownFields.CalculateSize(); |
| | 326 | | } |
| | 327 | | return size; |
| | 328 | | } |
| | 329 | |
|
| | 330 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 331 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 332 | | public void MergeFrom(CartesianCoordinates other) { |
| | 333 | | if (other == null) { |
| | 334 | | return; |
| | 335 | | } |
| | 336 | | if (other.X != 0F) { |
| | 337 | | X = other.X; |
| | 338 | | } |
| | 339 | | if (other.Y != 0F) { |
| | 340 | | Y = other.Y; |
| | 341 | | } |
| | 342 | | if (other.Z != 0F) { |
| | 343 | | Z = other.Z; |
| | 344 | | } |
| | 345 | | if (other.Roll != 0F) { |
| | 346 | | Roll = other.Roll; |
| | 347 | | } |
| | 348 | | if (other.Pitch != 0F) { |
| | 349 | | Pitch = other.Pitch; |
| | 350 | | } |
| | 351 | | if (other.Yaw != 0F) { |
| | 352 | | Yaw = other.Yaw; |
| | 353 | | } |
| | 354 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 355 | | } |
| | 356 | |
|
| | 357 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 358 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 359 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 360 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 361 | | input.ReadRawMessage(this); |
| | 362 | | #else |
| | 363 | | uint tag; |
| | 364 | | while ((tag = input.ReadTag()) != 0) { |
| | 365 | | if ((tag & 7) == 4) { |
| | 366 | | // Abort on any end group tag. |
| | 367 | | return; |
| | 368 | | } |
| | 369 | | switch(tag) { |
| | 370 | | default: |
| | 371 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 372 | | break; |
| | 373 | | case 13: { |
| | 374 | | X = input.ReadFloat(); |
| | 375 | | break; |
| | 376 | | } |
| | 377 | | case 21: { |
| | 378 | | Y = input.ReadFloat(); |
| | 379 | | break; |
| | 380 | | } |
| | 381 | | case 29: { |
| | 382 | | Z = input.ReadFloat(); |
| | 383 | | break; |
| | 384 | | } |
| | 385 | | case 37: { |
| | 386 | | Roll = input.ReadFloat(); |
| | 387 | | break; |
| | 388 | | } |
| | 389 | | case 45: { |
| | 390 | | Pitch = input.ReadFloat(); |
| | 391 | | break; |
| | 392 | | } |
| | 393 | | case 53: { |
| | 394 | | Yaw = input.ReadFloat(); |
| | 395 | | break; |
| | 396 | | } |
| | 397 | | } |
| | 398 | | } |
| | 399 | | #endif |
| | 400 | | } |
| | 401 | |
|
| | 402 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 403 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 404 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 405 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 406 | | uint tag; |
| | 407 | | while ((tag = input.ReadTag()) != 0) { |
| | 408 | | if ((tag & 7) == 4) { |
| | 409 | | // Abort on any end group tag. |
| | 410 | | return; |
| | 411 | | } |
| | 412 | | switch(tag) { |
| | 413 | | default: |
| | 414 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 415 | | break; |
| | 416 | | case 13: { |
| | 417 | | X = input.ReadFloat(); |
| | 418 | | break; |
| | 419 | | } |
| | 420 | | case 21: { |
| | 421 | | Y = input.ReadFloat(); |
| | 422 | | break; |
| | 423 | | } |
| | 424 | | case 29: { |
| | 425 | | Z = input.ReadFloat(); |
| | 426 | | break; |
| | 427 | | } |
| | 428 | | case 37: { |
| | 429 | | Roll = input.ReadFloat(); |
| | 430 | | break; |
| | 431 | | } |
| | 432 | | case 45: { |
| | 433 | | Pitch = input.ReadFloat(); |
| | 434 | | break; |
| | 435 | | } |
| | 436 | | case 53: { |
| | 437 | | Yaw = input.ReadFloat(); |
| | 438 | | break; |
| | 439 | | } |
| | 440 | | } |
| | 441 | | } |
| | 442 | | } |
| | 443 | | #endif |
| | 444 | |
|
| | 445 | | } |
| | 446 | |
|
| | 447 | | /// <summary> |
| | 448 | | /// Spherical coordinates. |
| | 449 | | /// </summary> |
| | 450 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 451 | | public sealed partial class SphericalCoordinates : pb::IMessage<SphericalCoordinates> |
| | 452 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 453 | | , pb::IBufferMessage |
| | 454 | | #endif |
| | 455 | | { |
| | 456 | | private static readonly pb::MessageParser<SphericalCoordinates> _parser = new pb::MessageParser<SphericalCoordinates |
| | 457 | | private pb::UnknownFieldSet _unknownFields; |
| | 458 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 459 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 460 | | public static pb::MessageParser<SphericalCoordinates> Parser { get { return _parser; } } |
| | 461 | |
|
| | 462 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 463 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 464 | | public static pbr::MessageDescriptor Descriptor { |
| | 465 | | get { return global::Simulation.CoordinatesReflection.Descriptor.MessageTypes[1]; } |
| | 466 | | } |
| | 467 | |
|
| | 468 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 469 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 470 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 471 | | get { return Descriptor; } |
| | 472 | | } |
| | 473 | |
|
| | 474 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 475 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 476 | | public SphericalCoordinates() { |
| | 477 | | OnConstruction(); |
| | 478 | | } |
| | 479 | |
|
| | 480 | | partial void OnConstruction(); |
| | 481 | |
|
| | 482 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 483 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 484 | | public SphericalCoordinates(SphericalCoordinates other) : this() { |
| | 485 | | range_ = other.range_; |
| | 486 | | azimuth_ = other.azimuth_; |
| | 487 | | elevation_ = other.elevation_; |
| | 488 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 489 | | } |
| | 490 | |
|
| | 491 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 492 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 493 | | public SphericalCoordinates Clone() { |
| | 494 | | return new SphericalCoordinates(this); |
| | 495 | | } |
| | 496 | |
|
| | 497 | | /// <summary>Field number for the "range" field.</summary> |
| | 498 | | public const int RangeFieldNumber = 1; |
| | 499 | | private float range_; |
| | 500 | | /// <summary> |
| | 501 | | /// Range. |
| | 502 | | /// </summary> |
| | 503 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 504 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 505 | | public float Range { |
| | 506 | | get { return range_; } |
| | 507 | | set { |
| | 508 | | range_ = value; |
| | 509 | | } |
| | 510 | | } |
| | 511 | |
|
| | 512 | | /// <summary>Field number for the "azimuth" field.</summary> |
| | 513 | | public const int AzimuthFieldNumber = 2; |
| | 514 | | private float azimuth_; |
| | 515 | | /// <summary> |
| | 516 | | /// Azimuth. |
| | 517 | | /// </summary> |
| | 518 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 519 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 520 | | public float Azimuth { |
| | 521 | | get { return azimuth_; } |
| | 522 | | set { |
| | 523 | | azimuth_ = value; |
| | 524 | | } |
| | 525 | | } |
| | 526 | |
|
| | 527 | | /// <summary>Field number for the "elevation" field.</summary> |
| | 528 | | public const int ElevationFieldNumber = 3; |
| | 529 | | private float elevation_; |
| | 530 | | /// <summary> |
| | 531 | | /// Elevation. |
| | 532 | | /// </summary> |
| | 533 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 534 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 535 | | public float Elevation { |
| | 536 | | get { return elevation_; } |
| | 537 | | set { |
| | 538 | | elevation_ = value; |
| | 539 | | } |
| | 540 | | } |
| | 541 | |
|
| | 542 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 543 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 544 | | public override bool Equals(object other) { |
| | 545 | | return Equals(other as SphericalCoordinates); |
| | 546 | | } |
| | 547 | |
|
| | 548 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 549 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 550 | | public bool Equals(SphericalCoordinates other) { |
| | 551 | | if (ReferenceEquals(other, null)) { |
| | 552 | | return false; |
| | 553 | | } |
| | 554 | | if (ReferenceEquals(other, this)) { |
| | 555 | | return true; |
| | 556 | | } |
| | 557 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Range, other.Range)) return false; |
| | 558 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Azimuth, other.Azimuth)) return false; |
| | 559 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Elevation, other.Elevation)) return false |
| | 560 | | return Equals(_unknownFields, other._unknownFields); |
| | 561 | | } |
| | 562 | |
|
| | 563 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 564 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 565 | | public override int GetHashCode() { |
| | 566 | | int hash = 1; |
| | 567 | | if (Range != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Range); |
| | 568 | | if (Azimuth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Azimuth); |
| | 569 | | if (Elevation != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Elevation); |
| | 570 | | if (_unknownFields != null) { |
| | 571 | | hash ^= _unknownFields.GetHashCode(); |
| | 572 | | } |
| | 573 | | return hash; |
| | 574 | | } |
| | 575 | |
|
| | 576 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 577 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 578 | | public override string ToString() { |
| | 579 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 580 | | } |
| | 581 | |
|
| | 582 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 583 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 584 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 585 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 586 | | output.WriteRawMessage(this); |
| | 587 | | #else |
| | 588 | | if (Range != 0F) { |
| | 589 | | output.WriteRawTag(13); |
| | 590 | | output.WriteFloat(Range); |
| | 591 | | } |
| | 592 | | if (Azimuth != 0F) { |
| | 593 | | output.WriteRawTag(21); |
| | 594 | | output.WriteFloat(Azimuth); |
| | 595 | | } |
| | 596 | | if (Elevation != 0F) { |
| | 597 | | output.WriteRawTag(29); |
| | 598 | | output.WriteFloat(Elevation); |
| | 599 | | } |
| | 600 | | if (_unknownFields != null) { |
| | 601 | | _unknownFields.WriteTo(output); |
| | 602 | | } |
| | 603 | | #endif |
| | 604 | | } |
| | 605 | |
|
| | 606 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 607 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 608 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 609 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 610 | | if (Range != 0F) { |
| | 611 | | output.WriteRawTag(13); |
| | 612 | | output.WriteFloat(Range); |
| | 613 | | } |
| | 614 | | if (Azimuth != 0F) { |
| | 615 | | output.WriteRawTag(21); |
| | 616 | | output.WriteFloat(Azimuth); |
| | 617 | | } |
| | 618 | | if (Elevation != 0F) { |
| | 619 | | output.WriteRawTag(29); |
| | 620 | | output.WriteFloat(Elevation); |
| | 621 | | } |
| | 622 | | if (_unknownFields != null) { |
| | 623 | | _unknownFields.WriteTo(ref output); |
| | 624 | | } |
| | 625 | | } |
| | 626 | | #endif |
| | 627 | |
|
| | 628 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 629 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 630 | | public int CalculateSize() { |
| | 631 | | int size = 0; |
| | 632 | | if (Range != 0F) { |
| | 633 | | size += 1 + 4; |
| | 634 | | } |
| | 635 | | if (Azimuth != 0F) { |
| | 636 | | size += 1 + 4; |
| | 637 | | } |
| | 638 | | if (Elevation != 0F) { |
| | 639 | | size += 1 + 4; |
| | 640 | | } |
| | 641 | | if (_unknownFields != null) { |
| | 642 | | size += _unknownFields.CalculateSize(); |
| | 643 | | } |
| | 644 | | return size; |
| | 645 | | } |
| | 646 | |
|
| | 647 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 648 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 649 | | public void MergeFrom(SphericalCoordinates other) { |
| | 650 | | if (other == null) { |
| | 651 | | return; |
| | 652 | | } |
| | 653 | | if (other.Range != 0F) { |
| | 654 | | Range = other.Range; |
| | 655 | | } |
| | 656 | | if (other.Azimuth != 0F) { |
| | 657 | | Azimuth = other.Azimuth; |
| | 658 | | } |
| | 659 | | if (other.Elevation != 0F) { |
| | 660 | | Elevation = other.Elevation; |
| | 661 | | } |
| | 662 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 663 | | } |
| | 664 | |
|
| | 665 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 666 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 667 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 668 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 669 | | input.ReadRawMessage(this); |
| | 670 | | #else |
| | 671 | | uint tag; |
| | 672 | | while ((tag = input.ReadTag()) != 0) { |
| | 673 | | if ((tag & 7) == 4) { |
| | 674 | | // Abort on any end group tag. |
| | 675 | | return; |
| | 676 | | } |
| | 677 | | switch(tag) { |
| | 678 | | default: |
| | 679 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 680 | | break; |
| | 681 | | case 13: { |
| | 682 | | Range = input.ReadFloat(); |
| | 683 | | break; |
| | 684 | | } |
| | 685 | | case 21: { |
| | 686 | | Azimuth = input.ReadFloat(); |
| | 687 | | break; |
| | 688 | | } |
| | 689 | | case 29: { |
| | 690 | | Elevation = input.ReadFloat(); |
| | 691 | | break; |
| | 692 | | } |
| | 693 | | } |
| | 694 | | } |
| | 695 | | #endif |
| | 696 | | } |
| | 697 | |
|
| | 698 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 699 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 700 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 701 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 702 | | uint tag; |
| | 703 | | while ((tag = input.ReadTag()) != 0) { |
| | 704 | | if ((tag & 7) == 4) { |
| | 705 | | // Abort on any end group tag. |
| | 706 | | return; |
| | 707 | | } |
| | 708 | | switch(tag) { |
| | 709 | | default: |
| | 710 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 711 | | break; |
| | 712 | | case 13: { |
| | 713 | | Range = input.ReadFloat(); |
| | 714 | | break; |
| | 715 | | } |
| | 716 | | case 21: { |
| | 717 | | Azimuth = input.ReadFloat(); |
| | 718 | | break; |
| | 719 | | } |
| | 720 | | case 29: { |
| | 721 | | Elevation = input.ReadFloat(); |
| | 722 | | break; |
| | 723 | | } |
| | 724 | | } |
| | 725 | | } |
| | 726 | | } |
| | 727 | | #endif |
| | 728 | |
|
| | 729 | | } |
| | 730 | |
|
| | 731 | | #endregion |
| | 732 | |
|
| | 733 | | } |
| | 734 | |
|
| | 735 | | #endregion Designer generated code |