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