< Summary

Class:Micromissiles.Transformation
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/Transformation.cs
Covered lines:0
Uncovered lines:194
Coverable lines:194
Total lines:460
Line coverage:0% (0 of 194)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:27
Method coverage:0% (0 of 27)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Transformation()0%2100%
get_Descriptor()0%2100%
Transformation()0%2100%
Transformation(...)0%1321100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%1561200%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%2101400%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/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 Micromissiles {
 13
 14  /// <summary>Holder for reflection information generated from configs/proto/transformation.proto</summary>
 15  public static partial class TransformationReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/transformation.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TransformationReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiJjb25maWdzL3Byb3RvL3RyYW5zZm9ybWF0aW9uLnByb3RvEg1taWNyb21p",
 28            "c3NpbGVzGh9jb25maWdzL3Byb3RvL2Nvb3JkaW5hdGVzLnByb3RvIsUCCg5U",
 29            "cmFuc2Zvcm1hdGlvbhI1Cghwb3NpdGlvbhgBIAEoCzIjLm1pY3JvbWlzc2ls",
 30            "ZXMuU3BoZXJpY2FsQ29vcmRpbmF0ZXMSNQoIdmVsb2NpdHkYAiABKAsyIy5t",
 31            "aWNyb21pc3NpbGVzLlNwaGVyaWNhbENvb3JkaW5hdGVzEj8KEnBvc2l0aW9u",
 32            "X2NhcnRlc2lhbhgDIAEoCzIjLm1pY3JvbWlzc2lsZXMuQ2FydGVzaWFuQ29v",
 33            "cmRpbmF0ZXMSPwoSdmVsb2NpdHlfY2FydGVzaWFuGAQgASgLMiMubWljcm9t",
 34            "aXNzaWxlcy5DYXJ0ZXNpYW5Db29yZGluYXRlcxJDChZhY2NlbGVyYXRpb25f",
 35            "Y2FydGVzaWFuGAUgASgLMiMubWljcm9taXNzaWxlcy5DYXJ0ZXNpYW5Db29y",
 36            "ZGluYXRlc2IGcHJvdG8z"));
 37      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 38          new pbr::FileDescriptor[] { global::Micromissiles.CoordinatesReflection.Descriptor, },
 39          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 40            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.Transformation), global::Micromissiles.Transforma
 41          }));
 42    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  /// <summary>
 48  /// Relative transformation between two agents.
 49  /// </summary>
 50  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 51  public sealed partial class Transformation : pb::IMessage<Transformation>
 52  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 53      , pb::IBufferMessage
 54  #endif
 55  {
 056    private static readonly pb::MessageParser<Transformation> _parser = new pb::MessageParser<Transformation>(() => new 
 57    private pb::UnknownFieldSet _unknownFields;
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 060    public static pb::MessageParser<Transformation> Parser { get { return _parser; } }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pbr::MessageDescriptor Descriptor {
 065      get { return global::Micromissiles.TransformationReflection.Descriptor.MessageTypes[0]; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    pbr::MessageDescriptor pb::IMessage.Descriptor {
 071      get { return Descriptor; }
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public Transformation() {
 77      OnConstruction();
 078    }
 79
 80    partial void OnConstruction();
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 084    public Transformation(Transformation other) : this() {
 085      position_ = other.position_ != null ? other.position_.Clone() : null;
 086      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 087      positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null;
 088      velocityCartesian_ = other.velocityCartesian_ != null ? other.velocityCartesian_.Clone() : null;
 089      accelerationCartesian_ = other.accelerationCartesian_ != null ? other.accelerationCartesian_.Clone() : null;
 090      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 091    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 095    public Transformation Clone() {
 096      return new Transformation(this);
 097    }
 98
 99    /// <summary>Field number for the "position" field.</summary>
 100    public const int PositionFieldNumber = 1;
 101    private global::Micromissiles.SphericalCoordinates position_;
 102    /// <summary>
 103    /// Range in m, azimuth and elevation in rad.
 104    /// </summary>
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public global::Micromissiles.SphericalCoordinates Position {
 0108      get { return position_; }
 0109      set {
 0110        position_ = value;
 0111      }
 112    }
 113
 114    /// <summary>Field number for the "velocity" field.</summary>
 115    public const int VelocityFieldNumber = 2;
 116    private global::Micromissiles.SphericalCoordinates velocity_;
 117    /// <summary>
 118    /// Range rate in m/s, azimuth and elevation rate in rad/s.
 119    /// </summary>
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public global::Micromissiles.SphericalCoordinates Velocity {
 0123      get { return velocity_; }
 0124      set {
 0125        velocity_ = value;
 0126      }
 127    }
 128
 129    /// <summary>Field number for the "position_cartesian" field.</summary>
 130    public const int PositionCartesianFieldNumber = 3;
 131    private global::Micromissiles.CartesianCoordinates positionCartesian_;
 132    /// <summary>
 133    /// Range in m.
 134    /// </summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public global::Micromissiles.CartesianCoordinates PositionCartesian {
 0138      get { return positionCartesian_; }
 0139      set {
 0140        positionCartesian_ = value;
 0141      }
 142    }
 143
 144    /// <summary>Field number for the "velocity_cartesian" field.</summary>
 145    public const int VelocityCartesianFieldNumber = 4;
 146    private global::Micromissiles.CartesianCoordinates velocityCartesian_;
 147    /// <summary>
 148    /// Velocity in m/s.
 149    /// </summary>
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public global::Micromissiles.CartesianCoordinates VelocityCartesian {
 0153      get { return velocityCartesian_; }
 0154      set {
 0155        velocityCartesian_ = value;
 0156      }
 157    }
 158
 159    /// <summary>Field number for the "acceleration_cartesian" field.</summary>
 160    public const int AccelerationCartesianFieldNumber = 5;
 161    private global::Micromissiles.CartesianCoordinates accelerationCartesian_;
 162    /// <summary>
 163    /// Acceleration in m/s^2.
 164    /// </summary>
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public global::Micromissiles.CartesianCoordinates AccelerationCartesian {
 0168      get { return accelerationCartesian_; }
 0169      set {
 0170        accelerationCartesian_ = value;
 0171      }
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0176    public override bool Equals(object other) {
 0177      return Equals(other as Transformation);
 0178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0182    public bool Equals(Transformation other) {
 0183      if (ReferenceEquals(other, null)) {
 0184        return false;
 185      }
 0186      if (ReferenceEquals(other, this)) {
 0187        return true;
 188      }
 0189      if (!object.Equals(Position, other.Position)) return false;
 0190      if (!object.Equals(Velocity, other.Velocity)) return false;
 0191      if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false;
 0192      if (!object.Equals(VelocityCartesian, other.VelocityCartesian)) return false;
 0193      if (!object.Equals(AccelerationCartesian, other.AccelerationCartesian)) return false;
 0194      return Equals(_unknownFields, other._unknownFields);
 0195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0199    public override int GetHashCode() {
 0200      int hash = 1;
 0201      if (position_ != null) hash ^= Position.GetHashCode();
 0202      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 0203      if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode();
 0204      if (velocityCartesian_ != null) hash ^= VelocityCartesian.GetHashCode();
 0205      if (accelerationCartesian_ != null) hash ^= AccelerationCartesian.GetHashCode();
 0206      if (_unknownFields != null) {
 0207        hash ^= _unknownFields.GetHashCode();
 0208      }
 0209      return hash;
 0210    }
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0214    public override string ToString() {
 0215      return pb::JsonFormatter.ToDiagnosticString(this);
 0216    }
 217
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0220    public void WriteTo(pb::CodedOutputStream output) {
 221    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0222      output.WriteRawMessage(this);
 223    #else
 224      if (position_ != null) {
 225        output.WriteRawTag(10);
 226        output.WriteMessage(Position);
 227      }
 228      if (velocity_ != null) {
 229        output.WriteRawTag(18);
 230        output.WriteMessage(Velocity);
 231      }
 232      if (positionCartesian_ != null) {
 233        output.WriteRawTag(26);
 234        output.WriteMessage(PositionCartesian);
 235      }
 236      if (velocityCartesian_ != null) {
 237        output.WriteRawTag(34);
 238        output.WriteMessage(VelocityCartesian);
 239      }
 240      if (accelerationCartesian_ != null) {
 241        output.WriteRawTag(42);
 242        output.WriteMessage(AccelerationCartesian);
 243      }
 244      if (_unknownFields != null) {
 245        _unknownFields.WriteTo(output);
 246      }
 247    #endif
 0248    }
 249
 250    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0253    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0254      if (position_ != null) {
 0255        output.WriteRawTag(10);
 0256        output.WriteMessage(Position);
 0257      }
 0258      if (velocity_ != null) {
 0259        output.WriteRawTag(18);
 0260        output.WriteMessage(Velocity);
 0261      }
 0262      if (positionCartesian_ != null) {
 0263        output.WriteRawTag(26);
 0264        output.WriteMessage(PositionCartesian);
 0265      }
 0266      if (velocityCartesian_ != null) {
 0267        output.WriteRawTag(34);
 0268        output.WriteMessage(VelocityCartesian);
 0269      }
 0270      if (accelerationCartesian_ != null) {
 0271        output.WriteRawTag(42);
 0272        output.WriteMessage(AccelerationCartesian);
 0273      }
 0274      if (_unknownFields != null) {
 0275        _unknownFields.WriteTo(ref output);
 0276      }
 0277    }
 278    #endif
 279
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0282    public int CalculateSize() {
 0283      int size = 0;
 0284      if (position_ != null) {
 0285        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 0286      }
 0287      if (velocity_ != null) {
 0288        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 0289      }
 0290      if (positionCartesian_ != null) {
 0291        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian);
 0292      }
 0293      if (velocityCartesian_ != null) {
 0294        size += 1 + pb::CodedOutputStream.ComputeMessageSize(VelocityCartesian);
 0295      }
 0296      if (accelerationCartesian_ != null) {
 0297        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccelerationCartesian);
 0298      }
 0299      if (_unknownFields != null) {
 0300        size += _unknownFields.CalculateSize();
 0301      }
 0302      return size;
 0303    }
 304
 305    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 306    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0307    public void MergeFrom(Transformation other) {
 0308      if (other == null) {
 0309        return;
 310      }
 0311      if (other.position_ != null) {
 0312        if (position_ == null) {
 0313          Position = new global::Micromissiles.SphericalCoordinates();
 0314        }
 0315        Position.MergeFrom(other.Position);
 0316      }
 0317      if (other.velocity_ != null) {
 0318        if (velocity_ == null) {
 0319          Velocity = new global::Micromissiles.SphericalCoordinates();
 0320        }
 0321        Velocity.MergeFrom(other.Velocity);
 0322      }
 0323      if (other.positionCartesian_ != null) {
 0324        if (positionCartesian_ == null) {
 0325          PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 0326        }
 0327        PositionCartesian.MergeFrom(other.PositionCartesian);
 0328      }
 0329      if (other.velocityCartesian_ != null) {
 0330        if (velocityCartesian_ == null) {
 0331          VelocityCartesian = new global::Micromissiles.CartesianCoordinates();
 0332        }
 0333        VelocityCartesian.MergeFrom(other.VelocityCartesian);
 0334      }
 0335      if (other.accelerationCartesian_ != null) {
 0336        if (accelerationCartesian_ == null) {
 0337          AccelerationCartesian = new global::Micromissiles.CartesianCoordinates();
 0338        }
 0339        AccelerationCartesian.MergeFrom(other.AccelerationCartesian);
 0340      }
 0341      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0342    }
 343
 344    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0346    public void MergeFrom(pb::CodedInputStream input) {
 347    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0348      input.ReadRawMessage(this);
 349    #else
 350      uint tag;
 351      while ((tag = input.ReadTag()) != 0) {
 352      if ((tag & 7) == 4) {
 353        // Abort on any end group tag.
 354        return;
 355      }
 356      switch(tag) {
 357          default:
 358            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 359            break;
 360          case 10: {
 361            if (position_ == null) {
 362              Position = new global::Micromissiles.SphericalCoordinates();
 363            }
 364            input.ReadMessage(Position);
 365            break;
 366          }
 367          case 18: {
 368            if (velocity_ == null) {
 369              Velocity = new global::Micromissiles.SphericalCoordinates();
 370            }
 371            input.ReadMessage(Velocity);
 372            break;
 373          }
 374          case 26: {
 375            if (positionCartesian_ == null) {
 376              PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 377            }
 378            input.ReadMessage(PositionCartesian);
 379            break;
 380          }
 381          case 34: {
 382            if (velocityCartesian_ == null) {
 383              VelocityCartesian = new global::Micromissiles.CartesianCoordinates();
 384            }
 385            input.ReadMessage(VelocityCartesian);
 386            break;
 387          }
 388          case 42: {
 389            if (accelerationCartesian_ == null) {
 390              AccelerationCartesian = new global::Micromissiles.CartesianCoordinates();
 391            }
 392            input.ReadMessage(AccelerationCartesian);
 393            break;
 394          }
 395        }
 396      }
 397    #endif
 0398    }
 399
 400    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 401    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0403    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 404      uint tag;
 0405      while ((tag = input.ReadTag()) != 0) {
 0406      if ((tag & 7) == 4) {
 407        // Abort on any end group tag.
 0408        return;
 409      }
 0410      switch(tag) {
 411          default:
 0412            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0413            break;
 0414          case 10: {
 0415            if (position_ == null) {
 0416              Position = new global::Micromissiles.SphericalCoordinates();
 0417            }
 0418            input.ReadMessage(Position);
 0419            break;
 420          }
 0421          case 18: {
 0422            if (velocity_ == null) {
 0423              Velocity = new global::Micromissiles.SphericalCoordinates();
 0424            }
 0425            input.ReadMessage(Velocity);
 0426            break;
 427          }
 0428          case 26: {
 0429            if (positionCartesian_ == null) {
 0430              PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 0431            }
 0432            input.ReadMessage(PositionCartesian);
 0433            break;
 434          }
 0435          case 34: {
 0436            if (velocityCartesian_ == null) {
 0437              VelocityCartesian = new global::Micromissiles.CartesianCoordinates();
 0438            }
 0439            input.ReadMessage(VelocityCartesian);
 0440            break;
 441          }
 0442          case 42: {
 0443            if (accelerationCartesian_ == null) {
 0444              AccelerationCartesian = new global::Micromissiles.CartesianCoordinates();
 0445            }
 0446            input.ReadMessage(AccelerationCartesian);
 0447            break;
 448          }
 449        }
 0450      }
 0451    }
 452    #endif
 453
 454  }
 455
 456  #endregion
 457
 458}
 459
 460#endregion Designer generated code