< Summary

Class:Simulation.SphericalCoordinates
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/Coordinates.cs
Covered lines:0
Uncovered lines:124
Coverable lines:124
Total lines:735
Line coverage:0% (0 of 124)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:23
Method coverage:0% (0 of 23)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SphericalCoordinates()0%2100%
get_Descriptor()0%2100%
SphericalCoordinates()0%2100%
SphericalCoordinates(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%42600%

File(s)

/github/workspace/Assets/Scripts/Generated/Proto/Coordinates.cs

#LineLine coverage
 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
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace 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  {
 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  {
 0456    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)]
 0460    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 {
 0465      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 {
 0471      get { return Descriptor; }
 472    }
 473
 474    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 475    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0476    public SphericalCoordinates() {
 477      OnConstruction();
 0478    }
 479
 480    partial void OnConstruction();
 481
 482    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 483    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0484    public SphericalCoordinates(SphericalCoordinates other) : this() {
 0485      range_ = other.range_;
 0486      azimuth_ = other.azimuth_;
 0487      elevation_ = other.elevation_;
 0488      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0489    }
 490
 491    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 492    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0493    public SphericalCoordinates Clone() {
 0494      return new SphericalCoordinates(this);
 0495    }
 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 {
 0506      get { return range_; }
 0507      set {
 0508        range_ = value;
 0509      }
 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 {
 0521      get { return azimuth_; }
 0522      set {
 0523        azimuth_ = value;
 0524      }
 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 {
 0536      get { return elevation_; }
 0537      set {
 0538        elevation_ = value;
 0539      }
 540    }
 541
 542    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 543    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0544    public override bool Equals(object other) {
 0545      return Equals(other as SphericalCoordinates);
 0546    }
 547
 548    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 549    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0550    public bool Equals(SphericalCoordinates other) {
 0551      if (ReferenceEquals(other, null)) {
 0552        return false;
 553      }
 0554      if (ReferenceEquals(other, this)) {
 0555        return true;
 556      }
 0557      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Range, other.Range)) return false;
 0558      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Azimuth, other.Azimuth)) return false;
 0559      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Elevation, other.Elevation)) return false
 0560      return Equals(_unknownFields, other._unknownFields);
 0561    }
 562
 563    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 564    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0565    public override int GetHashCode() {
 0566      int hash = 1;
 0567      if (Range != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Range);
 0568      if (Azimuth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Azimuth);
 0569      if (Elevation != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Elevation);
 0570      if (_unknownFields != null) {
 0571        hash ^= _unknownFields.GetHashCode();
 0572      }
 0573      return hash;
 0574    }
 575
 576    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 577    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0578    public override string ToString() {
 0579      return pb::JsonFormatter.ToDiagnosticString(this);
 0580    }
 581
 582    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 583    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0584    public void WriteTo(pb::CodedOutputStream output) {
 585    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0586      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
 0604    }
 605
 606    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 607    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 608    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0609    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0610      if (Range != 0F) {
 0611        output.WriteRawTag(13);
 0612        output.WriteFloat(Range);
 0613      }
 0614      if (Azimuth != 0F) {
 0615        output.WriteRawTag(21);
 0616        output.WriteFloat(Azimuth);
 0617      }
 0618      if (Elevation != 0F) {
 0619        output.WriteRawTag(29);
 0620        output.WriteFloat(Elevation);
 0621      }
 0622      if (_unknownFields != null) {
 0623        _unknownFields.WriteTo(ref output);
 0624      }
 0625    }
 626    #endif
 627
 628    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 629    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0630    public int CalculateSize() {
 0631      int size = 0;
 0632      if (Range != 0F) {
 0633        size += 1 + 4;
 0634      }
 0635      if (Azimuth != 0F) {
 0636        size += 1 + 4;
 0637      }
 0638      if (Elevation != 0F) {
 0639        size += 1 + 4;
 0640      }
 0641      if (_unknownFields != null) {
 0642        size += _unknownFields.CalculateSize();
 0643      }
 0644      return size;
 0645    }
 646
 647    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 648    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0649    public void MergeFrom(SphericalCoordinates other) {
 0650      if (other == null) {
 0651        return;
 652      }
 0653      if (other.Range != 0F) {
 0654        Range = other.Range;
 0655      }
 0656      if (other.Azimuth != 0F) {
 0657        Azimuth = other.Azimuth;
 0658      }
 0659      if (other.Elevation != 0F) {
 0660        Elevation = other.Elevation;
 0661      }
 0662      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0663    }
 664
 665    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 666    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0667    public void MergeFrom(pb::CodedInputStream input) {
 668    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0669      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
 0696    }
 697
 698    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 699    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 700    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0701    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 702      uint tag;
 0703      while ((tag = input.ReadTag()) != 0) {
 0704      if ((tag & 7) == 4) {
 705        // Abort on any end group tag.
 0706        return;
 707      }
 0708      switch(tag) {
 709          default:
 0710            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0711            break;
 0712          case 13: {
 0713            Range = input.ReadFloat();
 0714            break;
 715          }
 0716          case 21: {
 0717            Azimuth = input.ReadFloat();
 0718            break;
 719          }
 0720          case 29: {
 0721            Elevation = input.ReadFloat();
 0722            break;
 723          }
 724        }
 0725      }
 0726    }
 727    #endif
 728
 729  }
 730
 731  #endregion
 732
 733}
 734
 735#endregion Designer generated code