| | | 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 { |
| | | 20 | | get { return descriptor; } |
| | | 21 | | } |
| | | 22 | | private static pbr::FileDescriptor descriptor; |
| | | 23 | | |
| | | 24 | | static CoordinatesReflection() { |
| | | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | | 26 | | string.Concat( |
| | | 27 | | "ChxTaW11bGF0aW9uL2Nvb3JkaW5hdGVzLnByb3RvEgpzaW11bGF0aW9uImEK", |
| | | 28 | | "FENhcnRlc2lhbkNvb3JkaW5hdGVzEgkKAXgYASABKAISCQoBeRgCIAEoAhIJ", |
| | | 29 | | "CgF6GAMgASgCEgwKBHJvbGwYBCABKAISDQoFcGl0Y2gYBSABKAISCwoDeWF3", |
| | | 30 | | "GAYgASgCIkkKFFNwaGVyaWNhbENvb3JkaW5hdGVzEg0KBXJhbmdlGAEgASgC", |
| | | 31 | | "Eg8KB2F6aW11dGgYAiABKAISEQoJZWxldmF0aW9uGAMgASgCYgZwcm90bzM=")); |
| | | 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 | | })); |
| | | 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 | | { |
| | 1 | 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)] |
| | 0 | 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 { |
| | 0 | 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 { |
| | 0 | 67 | | get { return Descriptor; } |
| | | 68 | | } |
| | | 69 | | |
| | | 70 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 71 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 3276 | 72 | | public CartesianCoordinates() { |
| | | 73 | | OnConstruction(); |
| | 1638 | 74 | | } |
| | | 75 | | |
| | | 76 | | partial void OnConstruction(); |
| | | 77 | | |
| | | 78 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 79 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 80 | | public CartesianCoordinates(CartesianCoordinates other) : this() { |
| | 0 | 81 | | x_ = other.x_; |
| | 0 | 82 | | y_ = other.y_; |
| | 0 | 83 | | z_ = other.z_; |
| | 0 | 84 | | roll_ = other.roll_; |
| | 0 | 85 | | pitch_ = other.pitch_; |
| | 0 | 86 | | yaw_ = other.yaw_; |
| | 0 | 87 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 0 | 88 | | } |
| | | 89 | | |
| | | 90 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 91 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 92 | | public CartesianCoordinates Clone() { |
| | 0 | 93 | | return new CartesianCoordinates(this); |
| | 0 | 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 { |
| | 15855 | 105 | | get { return x_; } |
| | 1544 | 106 | | set { |
| | 1544 | 107 | | x_ = value; |
| | 1544 | 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 { |
| | 15855 | 120 | | get { return y_; } |
| | 1574 | 121 | | set { |
| | 1574 | 122 | | y_ = value; |
| | 1574 | 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 { |
| | 15855 | 135 | | get { return z_; } |
| | 1638 | 136 | | set { |
| | 1638 | 137 | | z_ = value; |
| | 1638 | 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 { |
| | 0 | 150 | | get { return roll_; } |
| | 0 | 151 | | set { |
| | 0 | 152 | | roll_ = value; |
| | 0 | 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 { |
| | 0 | 165 | | get { return pitch_; } |
| | 0 | 166 | | set { |
| | 0 | 167 | | pitch_ = value; |
| | 0 | 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 { |
| | 0 | 180 | | get { return yaw_; } |
| | 0 | 181 | | set { |
| | 0 | 182 | | yaw_ = value; |
| | 0 | 183 | | } |
| | | 184 | | } |
| | | 185 | | |
| | | 186 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 187 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 188 | | public override bool Equals(object other) { |
| | 0 | 189 | | return Equals(other as CartesianCoordinates); |
| | 0 | 190 | | } |
| | | 191 | | |
| | | 192 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 193 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 194 | | public bool Equals(CartesianCoordinates other) { |
| | 0 | 195 | | if (ReferenceEquals(other, null)) { |
| | 0 | 196 | | return false; |
| | | 197 | | } |
| | 0 | 198 | | if (ReferenceEquals(other, this)) { |
| | 0 | 199 | | return true; |
| | | 200 | | } |
| | 0 | 201 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| | 0 | 202 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| | 0 | 203 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| | 0 | 204 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roll, other.Roll)) return false; |
| | 0 | 205 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Pitch, other.Pitch)) return false; |
| | 0 | 206 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Yaw, other.Yaw)) return false; |
| | 0 | 207 | | return Equals(_unknownFields, other._unknownFields); |
| | 0 | 208 | | } |
| | | 209 | | |
| | | 210 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 211 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 212 | | public override int GetHashCode() { |
| | 0 | 213 | | int hash = 1; |
| | 0 | 214 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| | 0 | 215 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| | 0 | 216 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| | 0 | 217 | | if (Roll != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roll); |
| | 0 | 218 | | if (Pitch != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Pitch); |
| | 0 | 219 | | if (Yaw != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Yaw); |
| | 0 | 220 | | if (_unknownFields != null) { |
| | 0 | 221 | | hash ^= _unknownFields.GetHashCode(); |
| | 0 | 222 | | } |
| | 0 | 223 | | return hash; |
| | 0 | 224 | | } |
| | | 225 | | |
| | | 226 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 227 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 228 | | public override string ToString() { |
| | 0 | 229 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 0 | 230 | | } |
| | | 231 | | |
| | | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 233 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 234 | | public void WriteTo(pb::CodedOutputStream output) { |
| | | 235 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 0 | 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 |
| | 0 | 266 | | } |
| | | 267 | | |
| | | 268 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 270 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 271 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 0 | 272 | | if (X != 0F) { |
| | 0 | 273 | | output.WriteRawTag(13); |
| | 0 | 274 | | output.WriteFloat(X); |
| | 0 | 275 | | } |
| | 0 | 276 | | if (Y != 0F) { |
| | 0 | 277 | | output.WriteRawTag(21); |
| | 0 | 278 | | output.WriteFloat(Y); |
| | 0 | 279 | | } |
| | 0 | 280 | | if (Z != 0F) { |
| | 0 | 281 | | output.WriteRawTag(29); |
| | 0 | 282 | | output.WriteFloat(Z); |
| | 0 | 283 | | } |
| | 0 | 284 | | if (Roll != 0F) { |
| | 0 | 285 | | output.WriteRawTag(37); |
| | 0 | 286 | | output.WriteFloat(Roll); |
| | 0 | 287 | | } |
| | 0 | 288 | | if (Pitch != 0F) { |
| | 0 | 289 | | output.WriteRawTag(45); |
| | 0 | 290 | | output.WriteFloat(Pitch); |
| | 0 | 291 | | } |
| | 0 | 292 | | if (Yaw != 0F) { |
| | 0 | 293 | | output.WriteRawTag(53); |
| | 0 | 294 | | output.WriteFloat(Yaw); |
| | 0 | 295 | | } |
| | 0 | 296 | | if (_unknownFields != null) { |
| | 0 | 297 | | _unknownFields.WriteTo(ref output); |
| | 0 | 298 | | } |
| | 0 | 299 | | } |
| | | 300 | | #endif |
| | | 301 | | |
| | | 302 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 303 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 304 | | public int CalculateSize() { |
| | 0 | 305 | | int size = 0; |
| | 0 | 306 | | if (X != 0F) { |
| | 0 | 307 | | size += 1 + 4; |
| | 0 | 308 | | } |
| | 0 | 309 | | if (Y != 0F) { |
| | 0 | 310 | | size += 1 + 4; |
| | 0 | 311 | | } |
| | 0 | 312 | | if (Z != 0F) { |
| | 0 | 313 | | size += 1 + 4; |
| | 0 | 314 | | } |
| | 0 | 315 | | if (Roll != 0F) { |
| | 0 | 316 | | size += 1 + 4; |
| | 0 | 317 | | } |
| | 0 | 318 | | if (Pitch != 0F) { |
| | 0 | 319 | | size += 1 + 4; |
| | 0 | 320 | | } |
| | 0 | 321 | | if (Yaw != 0F) { |
| | 0 | 322 | | size += 1 + 4; |
| | 0 | 323 | | } |
| | 0 | 324 | | if (_unknownFields != null) { |
| | 0 | 325 | | size += _unknownFields.CalculateSize(); |
| | 0 | 326 | | } |
| | 0 | 327 | | return size; |
| | 0 | 328 | | } |
| | | 329 | | |
| | | 330 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 331 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 332 | | public void MergeFrom(CartesianCoordinates other) { |
| | 0 | 333 | | if (other == null) { |
| | 0 | 334 | | return; |
| | | 335 | | } |
| | 0 | 336 | | if (other.X != 0F) { |
| | 0 | 337 | | X = other.X; |
| | 0 | 338 | | } |
| | 0 | 339 | | if (other.Y != 0F) { |
| | 0 | 340 | | Y = other.Y; |
| | 0 | 341 | | } |
| | 0 | 342 | | if (other.Z != 0F) { |
| | 0 | 343 | | Z = other.Z; |
| | 0 | 344 | | } |
| | 0 | 345 | | if (other.Roll != 0F) { |
| | 0 | 346 | | Roll = other.Roll; |
| | 0 | 347 | | } |
| | 0 | 348 | | if (other.Pitch != 0F) { |
| | 0 | 349 | | Pitch = other.Pitch; |
| | 0 | 350 | | } |
| | 0 | 351 | | if (other.Yaw != 0F) { |
| | 0 | 352 | | Yaw = other.Yaw; |
| | 0 | 353 | | } |
| | 0 | 354 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 0 | 355 | | } |
| | | 356 | | |
| | | 357 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 358 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 0 | 359 | | public void MergeFrom(pb::CodedInputStream input) { |
| | | 360 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 0 | 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 |
| | 0 | 400 | | } |
| | | 401 | | |
| | | 402 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 403 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 404 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 128 | 405 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | | 406 | | uint tag; |
| | 580 | 407 | | while ((tag = input.ReadTag()) != 0) { |
| | 226 | 408 | | if ((tag & 7) == 4) { |
| | | 409 | | // Abort on any end group tag. |
| | 0 | 410 | | return; |
| | | 411 | | } |
| | 226 | 412 | | switch(tag) { |
| | | 413 | | default: |
| | 0 | 414 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 0 | 415 | | break; |
| | 34 | 416 | | case 13: { |
| | 34 | 417 | | X = input.ReadFloat(); |
| | 34 | 418 | | break; |
| | | 419 | | } |
| | 64 | 420 | | case 21: { |
| | 64 | 421 | | Y = input.ReadFloat(); |
| | 64 | 422 | | break; |
| | | 423 | | } |
| | 128 | 424 | | case 29: { |
| | 128 | 425 | | Z = input.ReadFloat(); |
| | 128 | 426 | | break; |
| | | 427 | | } |
| | 0 | 428 | | case 37: { |
| | 0 | 429 | | Roll = input.ReadFloat(); |
| | 0 | 430 | | break; |
| | | 431 | | } |
| | 0 | 432 | | case 45: { |
| | 0 | 433 | | Pitch = input.ReadFloat(); |
| | 0 | 434 | | break; |
| | | 435 | | } |
| | 0 | 436 | | case 53: { |
| | 0 | 437 | | Yaw = input.ReadFloat(); |
| | 0 | 438 | | break; |
| | | 439 | | } |
| | | 440 | | } |
| | 226 | 441 | | } |
| | 128 | 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 |