< Summary

Class:Simulation.TransformationReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/Transformation.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:459
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TransformationReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Simulation/transformation.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/transformation.proto</summary>
 15  public static partial class TransformationReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Simulation/transformation.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static TransformationReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch9TaW11bGF0aW9uL3RyYW5zZm9ybWF0aW9uLnByb3RvEgpzaW11bGF0aW9u",
 28            "GhxTaW11bGF0aW9uL2Nvb3JkaW5hdGVzLnByb3RvIrYCCg5UcmFuc2Zvcm1h",
 29            "dGlvbhIyCghwb3NpdGlvbhgBIAEoCzIgLnNpbXVsYXRpb24uU3BoZXJpY2Fs",
 30            "Q29vcmRpbmF0ZXMSMgoIdmVsb2NpdHkYAiABKAsyIC5zaW11bGF0aW9uLlNw",
 31            "aGVyaWNhbENvb3JkaW5hdGVzEjwKEnBvc2l0aW9uX2NhcnRlc2lhbhgDIAEo",
 32            "CzIgLnNpbXVsYXRpb24uQ2FydGVzaWFuQ29vcmRpbmF0ZXMSPAoSdmVsb2Np",
 33            "dHlfY2FydGVzaWFuGAQgASgLMiAuc2ltdWxhdGlvbi5DYXJ0ZXNpYW5Db29y",
 34            "ZGluYXRlcxJAChZhY2NlbGVyYXRpb25fY2FydGVzaWFuGAUgASgLMiAuc2lt",
 35            "dWxhdGlvbi5DYXJ0ZXNpYW5Db29yZGluYXRlc2IGcHJvdG8z"));
 036      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Simulation.CoordinatesReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 39            new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.Transformation), global::Simulation.Transformation.P
 40          }));
 041    }
 42    #endregion
 43
 44  }
 45  #region Messages
 46  /// <summary>
 47  /// Relative transformation between two agents.
 48  /// </summary>
 49  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 50  public sealed partial class Transformation : pb::IMessage<Transformation>
 51  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 52      , pb::IBufferMessage
 53  #endif
 54  {
 55    private static readonly pb::MessageParser<Transformation> _parser = new pb::MessageParser<Transformation>(() => new 
 56    private pb::UnknownFieldSet _unknownFields;
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pb::MessageParser<Transformation> Parser { get { return _parser; } }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    public static pbr::MessageDescriptor Descriptor {
 64      get { return global::Simulation.TransformationReflection.Descriptor.MessageTypes[0]; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    pbr::MessageDescriptor pb::IMessage.Descriptor {
 70      get { return Descriptor; }
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    public Transformation() {
 76      OnConstruction();
 77    }
 78
 79    partial void OnConstruction();
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    public Transformation(Transformation other) : this() {
 84      position_ = other.position_ != null ? other.position_.Clone() : null;
 85      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 86      positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null;
 87      velocityCartesian_ = other.velocityCartesian_ != null ? other.velocityCartesian_.Clone() : null;
 88      accelerationCartesian_ = other.accelerationCartesian_ != null ? other.accelerationCartesian_.Clone() : null;
 89      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 90    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public Transformation Clone() {
 95      return new Transformation(this);
 96    }
 97
 98    /// <summary>Field number for the "position" field.</summary>
 99    public const int PositionFieldNumber = 1;
 100    private global::Simulation.SphericalCoordinates position_;
 101    /// <summary>
 102    /// Range in m, azimuth and elevation in rad.
 103    /// </summary>
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public global::Simulation.SphericalCoordinates Position {
 107      get { return position_; }
 108      set {
 109        position_ = value;
 110      }
 111    }
 112
 113    /// <summary>Field number for the "velocity" field.</summary>
 114    public const int VelocityFieldNumber = 2;
 115    private global::Simulation.SphericalCoordinates velocity_;
 116    /// <summary>
 117    /// Range rate in m/s, azimuth and elevation rate in rad/s.
 118    /// </summary>
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public global::Simulation.SphericalCoordinates Velocity {
 122      get { return velocity_; }
 123      set {
 124        velocity_ = value;
 125      }
 126    }
 127
 128    /// <summary>Field number for the "position_cartesian" field.</summary>
 129    public const int PositionCartesianFieldNumber = 3;
 130    private global::Simulation.CartesianCoordinates positionCartesian_;
 131    /// <summary>
 132    /// Range in m.
 133    /// </summary>
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public global::Simulation.CartesianCoordinates PositionCartesian {
 137      get { return positionCartesian_; }
 138      set {
 139        positionCartesian_ = value;
 140      }
 141    }
 142
 143    /// <summary>Field number for the "velocity_cartesian" field.</summary>
 144    public const int VelocityCartesianFieldNumber = 4;
 145    private global::Simulation.CartesianCoordinates velocityCartesian_;
 146    /// <summary>
 147    /// Velocity in m/s.
 148    /// </summary>
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public global::Simulation.CartesianCoordinates VelocityCartesian {
 152      get { return velocityCartesian_; }
 153      set {
 154        velocityCartesian_ = value;
 155      }
 156    }
 157
 158    /// <summary>Field number for the "acceleration_cartesian" field.</summary>
 159    public const int AccelerationCartesianFieldNumber = 5;
 160    private global::Simulation.CartesianCoordinates accelerationCartesian_;
 161    /// <summary>
 162    /// Acceleration in m/s^2.
 163    /// </summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public global::Simulation.CartesianCoordinates AccelerationCartesian {
 167      get { return accelerationCartesian_; }
 168      set {
 169        accelerationCartesian_ = value;
 170      }
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public override bool Equals(object other) {
 176      return Equals(other as Transformation);
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public bool Equals(Transformation other) {
 182      if (ReferenceEquals(other, null)) {
 183        return false;
 184      }
 185      if (ReferenceEquals(other, this)) {
 186        return true;
 187      }
 188      if (!object.Equals(Position, other.Position)) return false;
 189      if (!object.Equals(Velocity, other.Velocity)) return false;
 190      if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false;
 191      if (!object.Equals(VelocityCartesian, other.VelocityCartesian)) return false;
 192      if (!object.Equals(AccelerationCartesian, other.AccelerationCartesian)) return false;
 193      return Equals(_unknownFields, other._unknownFields);
 194    }
 195
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    public override int GetHashCode() {
 199      int hash = 1;
 200      if (position_ != null) hash ^= Position.GetHashCode();
 201      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 202      if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode();
 203      if (velocityCartesian_ != null) hash ^= VelocityCartesian.GetHashCode();
 204      if (accelerationCartesian_ != null) hash ^= AccelerationCartesian.GetHashCode();
 205      if (_unknownFields != null) {
 206        hash ^= _unknownFields.GetHashCode();
 207      }
 208      return hash;
 209    }
 210
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    public override string ToString() {
 214      return pb::JsonFormatter.ToDiagnosticString(this);
 215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public void WriteTo(pb::CodedOutputStream output) {
 220    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 221      output.WriteRawMessage(this);
 222    #else
 223      if (position_ != null) {
 224        output.WriteRawTag(10);
 225        output.WriteMessage(Position);
 226      }
 227      if (velocity_ != null) {
 228        output.WriteRawTag(18);
 229        output.WriteMessage(Velocity);
 230      }
 231      if (positionCartesian_ != null) {
 232        output.WriteRawTag(26);
 233        output.WriteMessage(PositionCartesian);
 234      }
 235      if (velocityCartesian_ != null) {
 236        output.WriteRawTag(34);
 237        output.WriteMessage(VelocityCartesian);
 238      }
 239      if (accelerationCartesian_ != null) {
 240        output.WriteRawTag(42);
 241        output.WriteMessage(AccelerationCartesian);
 242      }
 243      if (_unknownFields != null) {
 244        _unknownFields.WriteTo(output);
 245      }
 246    #endif
 247    }
 248
 249    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 250    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 252    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 253      if (position_ != null) {
 254        output.WriteRawTag(10);
 255        output.WriteMessage(Position);
 256      }
 257      if (velocity_ != null) {
 258        output.WriteRawTag(18);
 259        output.WriteMessage(Velocity);
 260      }
 261      if (positionCartesian_ != null) {
 262        output.WriteRawTag(26);
 263        output.WriteMessage(PositionCartesian);
 264      }
 265      if (velocityCartesian_ != null) {
 266        output.WriteRawTag(34);
 267        output.WriteMessage(VelocityCartesian);
 268      }
 269      if (accelerationCartesian_ != null) {
 270        output.WriteRawTag(42);
 271        output.WriteMessage(AccelerationCartesian);
 272      }
 273      if (_unknownFields != null) {
 274        _unknownFields.WriteTo(ref output);
 275      }
 276    }
 277    #endif
 278
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public int CalculateSize() {
 282      int size = 0;
 283      if (position_ != null) {
 284        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 285      }
 286      if (velocity_ != null) {
 287        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 288      }
 289      if (positionCartesian_ != null) {
 290        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian);
 291      }
 292      if (velocityCartesian_ != null) {
 293        size += 1 + pb::CodedOutputStream.ComputeMessageSize(VelocityCartesian);
 294      }
 295      if (accelerationCartesian_ != null) {
 296        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccelerationCartesian);
 297      }
 298      if (_unknownFields != null) {
 299        size += _unknownFields.CalculateSize();
 300      }
 301      return size;
 302    }
 303
 304    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 305    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 306    public void MergeFrom(Transformation other) {
 307      if (other == null) {
 308        return;
 309      }
 310      if (other.position_ != null) {
 311        if (position_ == null) {
 312          Position = new global::Simulation.SphericalCoordinates();
 313        }
 314        Position.MergeFrom(other.Position);
 315      }
 316      if (other.velocity_ != null) {
 317        if (velocity_ == null) {
 318          Velocity = new global::Simulation.SphericalCoordinates();
 319        }
 320        Velocity.MergeFrom(other.Velocity);
 321      }
 322      if (other.positionCartesian_ != null) {
 323        if (positionCartesian_ == null) {
 324          PositionCartesian = new global::Simulation.CartesianCoordinates();
 325        }
 326        PositionCartesian.MergeFrom(other.PositionCartesian);
 327      }
 328      if (other.velocityCartesian_ != null) {
 329        if (velocityCartesian_ == null) {
 330          VelocityCartesian = new global::Simulation.CartesianCoordinates();
 331        }
 332        VelocityCartesian.MergeFrom(other.VelocityCartesian);
 333      }
 334      if (other.accelerationCartesian_ != null) {
 335        if (accelerationCartesian_ == null) {
 336          AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 337        }
 338        AccelerationCartesian.MergeFrom(other.AccelerationCartesian);
 339      }
 340      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 341    }
 342
 343    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 345    public void MergeFrom(pb::CodedInputStream input) {
 346    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 347      input.ReadRawMessage(this);
 348    #else
 349      uint tag;
 350      while ((tag = input.ReadTag()) != 0) {
 351      if ((tag & 7) == 4) {
 352        // Abort on any end group tag.
 353        return;
 354      }
 355      switch(tag) {
 356          default:
 357            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 358            break;
 359          case 10: {
 360            if (position_ == null) {
 361              Position = new global::Simulation.SphericalCoordinates();
 362            }
 363            input.ReadMessage(Position);
 364            break;
 365          }
 366          case 18: {
 367            if (velocity_ == null) {
 368              Velocity = new global::Simulation.SphericalCoordinates();
 369            }
 370            input.ReadMessage(Velocity);
 371            break;
 372          }
 373          case 26: {
 374            if (positionCartesian_ == null) {
 375              PositionCartesian = new global::Simulation.CartesianCoordinates();
 376            }
 377            input.ReadMessage(PositionCartesian);
 378            break;
 379          }
 380          case 34: {
 381            if (velocityCartesian_ == null) {
 382              VelocityCartesian = new global::Simulation.CartesianCoordinates();
 383            }
 384            input.ReadMessage(VelocityCartesian);
 385            break;
 386          }
 387          case 42: {
 388            if (accelerationCartesian_ == null) {
 389              AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 390            }
 391            input.ReadMessage(AccelerationCartesian);
 392            break;
 393          }
 394        }
 395      }
 396    #endif
 397    }
 398
 399    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 400    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 402    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 403      uint tag;
 404      while ((tag = input.ReadTag()) != 0) {
 405      if ((tag & 7) == 4) {
 406        // Abort on any end group tag.
 407        return;
 408      }
 409      switch(tag) {
 410          default:
 411            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 412            break;
 413          case 10: {
 414            if (position_ == null) {
 415              Position = new global::Simulation.SphericalCoordinates();
 416            }
 417            input.ReadMessage(Position);
 418            break;
 419          }
 420          case 18: {
 421            if (velocity_ == null) {
 422              Velocity = new global::Simulation.SphericalCoordinates();
 423            }
 424            input.ReadMessage(Velocity);
 425            break;
 426          }
 427          case 26: {
 428            if (positionCartesian_ == null) {
 429              PositionCartesian = new global::Simulation.CartesianCoordinates();
 430            }
 431            input.ReadMessage(PositionCartesian);
 432            break;
 433          }
 434          case 34: {
 435            if (velocityCartesian_ == null) {
 436              VelocityCartesian = new global::Simulation.CartesianCoordinates();
 437            }
 438            input.ReadMessage(VelocityCartesian);
 439            break;
 440          }
 441          case 42: {
 442            if (accelerationCartesian_ == null) {
 443              AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 444            }
 445            input.ReadMessage(AccelerationCartesian);
 446            break;
 447          }
 448        }
 449      }
 450    }
 451    #endif
 452
 453  }
 454
 455  #endregion
 456
 457}
 458
 459#endregion Designer generated code