< Summary

Class:Micromissiles.TransformationReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/Transformation.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:460
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/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 {
 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            "CiJjb25maWdzL3Byb3RvL3RyYW5zZm9ybWF0aW9uLnByb3RvEg1taWNyb21p",
 28            "c3NpbGVzGh9jb25maWdzL3Byb3RvL2Nvb3JkaW5hdGVzLnByb3RvIsUCCg5U",
 29            "cmFuc2Zvcm1hdGlvbhI1Cghwb3NpdGlvbhgBIAEoCzIjLm1pY3JvbWlzc2ls",
 30            "ZXMuU3BoZXJpY2FsQ29vcmRpbmF0ZXMSNQoIdmVsb2NpdHkYAiABKAsyIy5t",
 31            "aWNyb21pc3NpbGVzLlNwaGVyaWNhbENvb3JkaW5hdGVzEj8KEnBvc2l0aW9u",
 32            "X2NhcnRlc2lhbhgDIAEoCzIjLm1pY3JvbWlzc2lsZXMuQ2FydGVzaWFuQ29v",
 33            "cmRpbmF0ZXMSPwoSdmVsb2NpdHlfY2FydGVzaWFuGAQgASgLMiMubWljcm9t",
 34            "aXNzaWxlcy5DYXJ0ZXNpYW5Db29yZGluYXRlcxJDChZhY2NlbGVyYXRpb25f",
 35            "Y2FydGVzaWFuGAUgASgLMiMubWljcm9taXNzaWxlcy5DYXJ0ZXNpYW5Db29y",
 36            "ZGluYXRlc2IGcHJvdG8z"));
 037      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          }));
 042    }
 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  {
 56    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)]
 60    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 {
 65      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 {
 71      get { return Descriptor; }
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public Transformation() {
 77      OnConstruction();
 78    }
 79
 80    partial void OnConstruction();
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public Transformation(Transformation other) : this() {
 85      position_ = other.position_ != null ? other.position_.Clone() : null;
 86      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 87      positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null;
 88      velocityCartesian_ = other.velocityCartesian_ != null ? other.velocityCartesian_.Clone() : null;
 89      accelerationCartesian_ = other.accelerationCartesian_ != null ? other.accelerationCartesian_.Clone() : null;
 90      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 91    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public Transformation Clone() {
 96      return new Transformation(this);
 97    }
 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 {
 108      get { return position_; }
 109      set {
 110        position_ = value;
 111      }
 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 {
 123      get { return velocity_; }
 124      set {
 125        velocity_ = value;
 126      }
 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 {
 138      get { return positionCartesian_; }
 139      set {
 140        positionCartesian_ = value;
 141      }
 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 {
 153      get { return velocityCartesian_; }
 154      set {
 155        velocityCartesian_ = value;
 156      }
 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 {
 168      get { return accelerationCartesian_; }
 169      set {
 170        accelerationCartesian_ = value;
 171      }
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public override bool Equals(object other) {
 177      return Equals(other as Transformation);
 178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public bool Equals(Transformation other) {
 183      if (ReferenceEquals(other, null)) {
 184        return false;
 185      }
 186      if (ReferenceEquals(other, this)) {
 187        return true;
 188      }
 189      if (!object.Equals(Position, other.Position)) return false;
 190      if (!object.Equals(Velocity, other.Velocity)) return false;
 191      if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false;
 192      if (!object.Equals(VelocityCartesian, other.VelocityCartesian)) return false;
 193      if (!object.Equals(AccelerationCartesian, other.AccelerationCartesian)) return false;
 194      return Equals(_unknownFields, other._unknownFields);
 195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    public override int GetHashCode() {
 200      int hash = 1;
 201      if (position_ != null) hash ^= Position.GetHashCode();
 202      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 203      if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode();
 204      if (velocityCartesian_ != null) hash ^= VelocityCartesian.GetHashCode();
 205      if (accelerationCartesian_ != null) hash ^= AccelerationCartesian.GetHashCode();
 206      if (_unknownFields != null) {
 207        hash ^= _unknownFields.GetHashCode();
 208      }
 209      return hash;
 210    }
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public override string ToString() {
 215      return pb::JsonFormatter.ToDiagnosticString(this);
 216    }
 217
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public void WriteTo(pb::CodedOutputStream output) {
 221    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 222      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
 248    }
 249
 250    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 253    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 254      if (position_ != null) {
 255        output.WriteRawTag(10);
 256        output.WriteMessage(Position);
 257      }
 258      if (velocity_ != null) {
 259        output.WriteRawTag(18);
 260        output.WriteMessage(Velocity);
 261      }
 262      if (positionCartesian_ != null) {
 263        output.WriteRawTag(26);
 264        output.WriteMessage(PositionCartesian);
 265      }
 266      if (velocityCartesian_ != null) {
 267        output.WriteRawTag(34);
 268        output.WriteMessage(VelocityCartesian);
 269      }
 270      if (accelerationCartesian_ != null) {
 271        output.WriteRawTag(42);
 272        output.WriteMessage(AccelerationCartesian);
 273      }
 274      if (_unknownFields != null) {
 275        _unknownFields.WriteTo(ref output);
 276      }
 277    }
 278    #endif
 279
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public int CalculateSize() {
 283      int size = 0;
 284      if (position_ != null) {
 285        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 286      }
 287      if (velocity_ != null) {
 288        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 289      }
 290      if (positionCartesian_ != null) {
 291        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian);
 292      }
 293      if (velocityCartesian_ != null) {
 294        size += 1 + pb::CodedOutputStream.ComputeMessageSize(VelocityCartesian);
 295      }
 296      if (accelerationCartesian_ != null) {
 297        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccelerationCartesian);
 298      }
 299      if (_unknownFields != null) {
 300        size += _unknownFields.CalculateSize();
 301      }
 302      return size;
 303    }
 304
 305    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 306    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 307    public void MergeFrom(Transformation other) {
 308      if (other == null) {
 309        return;
 310      }
 311      if (other.position_ != null) {
 312        if (position_ == null) {
 313          Position = new global::Micromissiles.SphericalCoordinates();
 314        }
 315        Position.MergeFrom(other.Position);
 316      }
 317      if (other.velocity_ != null) {
 318        if (velocity_ == null) {
 319          Velocity = new global::Micromissiles.SphericalCoordinates();
 320        }
 321        Velocity.MergeFrom(other.Velocity);
 322      }
 323      if (other.positionCartesian_ != null) {
 324        if (positionCartesian_ == null) {
 325          PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 326        }
 327        PositionCartesian.MergeFrom(other.PositionCartesian);
 328      }
 329      if (other.velocityCartesian_ != null) {
 330        if (velocityCartesian_ == null) {
 331          VelocityCartesian = new global::Micromissiles.CartesianCoordinates();
 332        }
 333        VelocityCartesian.MergeFrom(other.VelocityCartesian);
 334      }
 335      if (other.accelerationCartesian_ != null) {
 336        if (accelerationCartesian_ == null) {
 337          AccelerationCartesian = new global::Micromissiles.CartesianCoordinates();
 338        }
 339        AccelerationCartesian.MergeFrom(other.AccelerationCartesian);
 340      }
 341      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 342    }
 343
 344    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 346    public void MergeFrom(pb::CodedInputStream input) {
 347    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 348      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
 398    }
 399
 400    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 401    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 403    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 404      uint tag;
 405      while ((tag = input.ReadTag()) != 0) {
 406      if ((tag & 7) == 4) {
 407        // Abort on any end group tag.
 408        return;
 409      }
 410      switch(tag) {
 411          default:
 412            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 413            break;
 414          case 10: {
 415            if (position_ == null) {
 416              Position = new global::Micromissiles.SphericalCoordinates();
 417            }
 418            input.ReadMessage(Position);
 419            break;
 420          }
 421          case 18: {
 422            if (velocity_ == null) {
 423              Velocity = new global::Micromissiles.SphericalCoordinates();
 424            }
 425            input.ReadMessage(Velocity);
 426            break;
 427          }
 428          case 26: {
 429            if (positionCartesian_ == null) {
 430              PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 431            }
 432            input.ReadMessage(PositionCartesian);
 433            break;
 434          }
 435          case 34: {
 436            if (velocityCartesian_ == null) {
 437              VelocityCartesian = new global::Micromissiles.CartesianCoordinates();
 438            }
 439            input.ReadMessage(VelocityCartesian);
 440            break;
 441          }
 442          case 42: {
 443            if (accelerationCartesian_ == null) {
 444              AccelerationCartesian = new global::Micromissiles.CartesianCoordinates();
 445            }
 446            input.ReadMessage(AccelerationCartesian);
 447            break;
 448          }
 449        }
 450      }
 451    }
 452    #endif
 453
 454  }
 455
 456  #endregion
 457
 458}
 459
 460#endregion Designer generated code