< Summary

Class:Micromissiles.SensorReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/Sensor.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:616
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
SensorReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/sensor.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/sensor.proto</summary>
 15  public static partial class SensorReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/sensor.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static SensorReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Chpjb25maWdzL3Byb3RvL3NlbnNvci5wcm90bxINbWljcm9taXNzaWxlcxof",
 28            "Y29uZmlncy9wcm90by9jb29yZGluYXRlcy5wcm90byJKCgxTZW5zb3JDb25m",
 29            "aWcSJwoEdHlwZRgBIAEoDjIZLm1pY3JvbWlzc2lsZXMuU2Vuc29yVHlwZRIR",
 30            "CglmcmVxdWVuY3kYAiABKAIivQEKDFNlbnNvck91dHB1dBI1Cghwb3NpdGlv",
 31            "bhgBIAEoCzIjLm1pY3JvbWlzc2lsZXMuU3BoZXJpY2FsQ29vcmRpbmF0ZXMS",
 32            "NQoIdmVsb2NpdHkYAiABKAsyIy5taWNyb21pc3NpbGVzLlNwaGVyaWNhbENv",
 33            "b3JkaW5hdGVzEj8KEnBvc2l0aW9uX2NhcnRlc2lhbhgDIAEoCzIjLm1pY3Jv",
 34            "bWlzc2lsZXMuQ2FydGVzaWFuQ29vcmRpbmF0ZXMqFwoKU2Vuc29yVHlwZRIJ",
 35            "CgVJREVBTBAAYgZwcm90bzM="));
 036      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Micromissiles.CoordinatesReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Micromissiles.SensorType), }, null, new pbr::GeneratedClrT
 39            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.SensorConfig), global::Micromissiles.SensorConfig
 40            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.SensorOutput), global::Micromissiles.SensorOutput
 41          }));
 042    }
 43    #endregion
 44
 45  }
 46  #region Enums
 47  /// <summary>
 48  /// Sensor type enumeration.
 49  /// </summary>
 50  public enum SensorType {
 51    [pbr::OriginalName("IDEAL")] Ideal = 0,
 52  }
 53
 54  #endregion
 55
 56  #region Messages
 57  /// <summary>
 58  /// Sensor configuration.
 59  /// </summary>
 60  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 61  public sealed partial class SensorConfig : pb::IMessage<SensorConfig>
 62  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 63      , pb::IBufferMessage
 64  #endif
 65  {
 66    private static readonly pb::MessageParser<SensorConfig> _parser = new pb::MessageParser<SensorConfig>(() => new Sens
 67    private pb::UnknownFieldSet _unknownFields;
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    public static pb::MessageParser<SensorConfig> Parser { get { return _parser; } }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    public static pbr::MessageDescriptor Descriptor {
 75      get { return global::Micromissiles.SensorReflection.Descriptor.MessageTypes[0]; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    pbr::MessageDescriptor pb::IMessage.Descriptor {
 81      get { return Descriptor; }
 82    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public SensorConfig() {
 87      OnConstruction();
 88    }
 89
 90    partial void OnConstruction();
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public SensorConfig(SensorConfig other) : this() {
 95      type_ = other.type_;
 96      frequency_ = other.frequency_;
 97      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 98    }
 99
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public SensorConfig Clone() {
 103      return new SensorConfig(this);
 104    }
 105
 106    /// <summary>Field number for the "type" field.</summary>
 107    public const int TypeFieldNumber = 1;
 108    private global::Micromissiles.SensorType type_ = global::Micromissiles.SensorType.Ideal;
 109    /// <summary>
 110    /// Sensor type.
 111    /// </summary>
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public global::Micromissiles.SensorType Type {
 115      get { return type_; }
 116      set {
 117        type_ = value;
 118      }
 119    }
 120
 121    /// <summary>Field number for the "frequency" field.</summary>
 122    public const int FrequencyFieldNumber = 2;
 123    private float frequency_;
 124    /// <summary>
 125    /// Sensor frequency in Hz.
 126    /// </summary>
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 129    public float Frequency {
 130      get { return frequency_; }
 131      set {
 132        frequency_ = value;
 133      }
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override bool Equals(object other) {
 139      return Equals(other as SensorConfig);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public bool Equals(SensorConfig other) {
 145      if (ReferenceEquals(other, null)) {
 146        return false;
 147      }
 148      if (ReferenceEquals(other, this)) {
 149        return true;
 150      }
 151      if (Type != other.Type) return false;
 152      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Frequency, other.Frequency)) return false
 153      return Equals(_unknownFields, other._unknownFields);
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override int GetHashCode() {
 159      int hash = 1;
 160      if (Type != global::Micromissiles.SensorType.Ideal) hash ^= Type.GetHashCode();
 161      if (Frequency != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Frequency);
 162      if (_unknownFields != null) {
 163        hash ^= _unknownFields.GetHashCode();
 164      }
 165      return hash;
 166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public override string ToString() {
 171      return pb::JsonFormatter.ToDiagnosticString(this);
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public void WriteTo(pb::CodedOutputStream output) {
 177    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 178      output.WriteRawMessage(this);
 179    #else
 180      if (Type != global::Micromissiles.SensorType.Ideal) {
 181        output.WriteRawTag(8);
 182        output.WriteEnum((int) Type);
 183      }
 184      if (Frequency != 0F) {
 185        output.WriteRawTag(21);
 186        output.WriteFloat(Frequency);
 187      }
 188      if (_unknownFields != null) {
 189        _unknownFields.WriteTo(output);
 190      }
 191    #endif
 192    }
 193
 194    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 198      if (Type != global::Micromissiles.SensorType.Ideal) {
 199        output.WriteRawTag(8);
 200        output.WriteEnum((int) Type);
 201      }
 202      if (Frequency != 0F) {
 203        output.WriteRawTag(21);
 204        output.WriteFloat(Frequency);
 205      }
 206      if (_unknownFields != null) {
 207        _unknownFields.WriteTo(ref output);
 208      }
 209    }
 210    #endif
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public int CalculateSize() {
 215      int size = 0;
 216      if (Type != global::Micromissiles.SensorType.Ideal) {
 217        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
 218      }
 219      if (Frequency != 0F) {
 220        size += 1 + 4;
 221      }
 222      if (_unknownFields != null) {
 223        size += _unknownFields.CalculateSize();
 224      }
 225      return size;
 226    }
 227
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    public void MergeFrom(SensorConfig other) {
 231      if (other == null) {
 232        return;
 233      }
 234      if (other.Type != global::Micromissiles.SensorType.Ideal) {
 235        Type = other.Type;
 236      }
 237      if (other.Frequency != 0F) {
 238        Frequency = other.Frequency;
 239      }
 240      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 241    }
 242
 243    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 244    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 245    public void MergeFrom(pb::CodedInputStream input) {
 246    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 247      input.ReadRawMessage(this);
 248    #else
 249      uint tag;
 250      while ((tag = input.ReadTag()) != 0) {
 251      if ((tag & 7) == 4) {
 252        // Abort on any end group tag.
 253        return;
 254      }
 255      switch(tag) {
 256          default:
 257            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 258            break;
 259          case 8: {
 260            Type = (global::Micromissiles.SensorType) input.ReadEnum();
 261            break;
 262          }
 263          case 21: {
 264            Frequency = input.ReadFloat();
 265            break;
 266          }
 267        }
 268      }
 269    #endif
 270    }
 271
 272    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 273    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 274    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 275    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 276      uint tag;
 277      while ((tag = input.ReadTag()) != 0) {
 278      if ((tag & 7) == 4) {
 279        // Abort on any end group tag.
 280        return;
 281      }
 282      switch(tag) {
 283          default:
 284            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 285            break;
 286          case 8: {
 287            Type = (global::Micromissiles.SensorType) input.ReadEnum();
 288            break;
 289          }
 290          case 21: {
 291            Frequency = input.ReadFloat();
 292            break;
 293          }
 294        }
 295      }
 296    }
 297    #endif
 298
 299  }
 300
 301  /// <summary>
 302  /// Sensor output.
 303  /// </summary>
 304  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 305  public sealed partial class SensorOutput : pb::IMessage<SensorOutput>
 306  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 307      , pb::IBufferMessage
 308  #endif
 309  {
 310    private static readonly pb::MessageParser<SensorOutput> _parser = new pb::MessageParser<SensorOutput>(() => new Sens
 311    private pb::UnknownFieldSet _unknownFields;
 312    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 313    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 314    public static pb::MessageParser<SensorOutput> Parser { get { return _parser; } }
 315
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public static pbr::MessageDescriptor Descriptor {
 319      get { return global::Micromissiles.SensorReflection.Descriptor.MessageTypes[1]; }
 320    }
 321
 322    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 324    pbr::MessageDescriptor pb::IMessage.Descriptor {
 325      get { return Descriptor; }
 326    }
 327
 328    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 329    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 330    public SensorOutput() {
 331      OnConstruction();
 332    }
 333
 334    partial void OnConstruction();
 335
 336    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 337    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 338    public SensorOutput(SensorOutput other) : this() {
 339      position_ = other.position_ != null ? other.position_.Clone() : null;
 340      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 341      positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null;
 342      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 343    }
 344
 345    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 346    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 347    public SensorOutput Clone() {
 348      return new SensorOutput(this);
 349    }
 350
 351    /// <summary>Field number for the "position" field.</summary>
 352    public const int PositionFieldNumber = 1;
 353    private global::Micromissiles.SphericalCoordinates position_;
 354    /// <summary>
 355    /// Range in m, azimuth and elevation in rad.
 356    /// </summary>
 357    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 358    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 359    public global::Micromissiles.SphericalCoordinates Position {
 360      get { return position_; }
 361      set {
 362        position_ = value;
 363      }
 364    }
 365
 366    /// <summary>Field number for the "velocity" field.</summary>
 367    public const int VelocityFieldNumber = 2;
 368    private global::Micromissiles.SphericalCoordinates velocity_;
 369    /// <summary>
 370    /// Range rate in m/s, azimuth and elevation rate in rad/s.
 371    /// </summary>
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374    public global::Micromissiles.SphericalCoordinates Velocity {
 375      get { return velocity_; }
 376      set {
 377        velocity_ = value;
 378      }
 379    }
 380
 381    /// <summary>Field number for the "position_cartesian" field.</summary>
 382    public const int PositionCartesianFieldNumber = 3;
 383    private global::Micromissiles.CartesianCoordinates positionCartesian_;
 384    /// <summary>
 385    /// Range in m.
 386    /// </summary>
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389    public global::Micromissiles.CartesianCoordinates PositionCartesian {
 390      get { return positionCartesian_; }
 391      set {
 392        positionCartesian_ = value;
 393      }
 394    }
 395
 396    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 397    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 398    public override bool Equals(object other) {
 399      return Equals(other as SensorOutput);
 400    }
 401
 402    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 403    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 404    public bool Equals(SensorOutput other) {
 405      if (ReferenceEquals(other, null)) {
 406        return false;
 407      }
 408      if (ReferenceEquals(other, this)) {
 409        return true;
 410      }
 411      if (!object.Equals(Position, other.Position)) return false;
 412      if (!object.Equals(Velocity, other.Velocity)) return false;
 413      if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false;
 414      return Equals(_unknownFields, other._unknownFields);
 415    }
 416
 417    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419    public override int GetHashCode() {
 420      int hash = 1;
 421      if (position_ != null) hash ^= Position.GetHashCode();
 422      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 423      if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode();
 424      if (_unknownFields != null) {
 425        hash ^= _unknownFields.GetHashCode();
 426      }
 427      return hash;
 428    }
 429
 430    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 431    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 432    public override string ToString() {
 433      return pb::JsonFormatter.ToDiagnosticString(this);
 434    }
 435
 436    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 437    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 438    public void WriteTo(pb::CodedOutputStream output) {
 439    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 440      output.WriteRawMessage(this);
 441    #else
 442      if (position_ != null) {
 443        output.WriteRawTag(10);
 444        output.WriteMessage(Position);
 445      }
 446      if (velocity_ != null) {
 447        output.WriteRawTag(18);
 448        output.WriteMessage(Velocity);
 449      }
 450      if (positionCartesian_ != null) {
 451        output.WriteRawTag(26);
 452        output.WriteMessage(PositionCartesian);
 453      }
 454      if (_unknownFields != null) {
 455        _unknownFields.WriteTo(output);
 456      }
 457    #endif
 458    }
 459
 460    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 461    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 462    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 463    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 464      if (position_ != null) {
 465        output.WriteRawTag(10);
 466        output.WriteMessage(Position);
 467      }
 468      if (velocity_ != null) {
 469        output.WriteRawTag(18);
 470        output.WriteMessage(Velocity);
 471      }
 472      if (positionCartesian_ != null) {
 473        output.WriteRawTag(26);
 474        output.WriteMessage(PositionCartesian);
 475      }
 476      if (_unknownFields != null) {
 477        _unknownFields.WriteTo(ref output);
 478      }
 479    }
 480    #endif
 481
 482    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 483    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 484    public int CalculateSize() {
 485      int size = 0;
 486      if (position_ != null) {
 487        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 488      }
 489      if (velocity_ != null) {
 490        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 491      }
 492      if (positionCartesian_ != null) {
 493        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian);
 494      }
 495      if (_unknownFields != null) {
 496        size += _unknownFields.CalculateSize();
 497      }
 498      return size;
 499    }
 500
 501    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 502    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 503    public void MergeFrom(SensorOutput other) {
 504      if (other == null) {
 505        return;
 506      }
 507      if (other.position_ != null) {
 508        if (position_ == null) {
 509          Position = new global::Micromissiles.SphericalCoordinates();
 510        }
 511        Position.MergeFrom(other.Position);
 512      }
 513      if (other.velocity_ != null) {
 514        if (velocity_ == null) {
 515          Velocity = new global::Micromissiles.SphericalCoordinates();
 516        }
 517        Velocity.MergeFrom(other.Velocity);
 518      }
 519      if (other.positionCartesian_ != null) {
 520        if (positionCartesian_ == null) {
 521          PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 522        }
 523        PositionCartesian.MergeFrom(other.PositionCartesian);
 524      }
 525      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 526    }
 527
 528    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 529    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 530    public void MergeFrom(pb::CodedInputStream input) {
 531    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 532      input.ReadRawMessage(this);
 533    #else
 534      uint tag;
 535      while ((tag = input.ReadTag()) != 0) {
 536      if ((tag & 7) == 4) {
 537        // Abort on any end group tag.
 538        return;
 539      }
 540      switch(tag) {
 541          default:
 542            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 543            break;
 544          case 10: {
 545            if (position_ == null) {
 546              Position = new global::Micromissiles.SphericalCoordinates();
 547            }
 548            input.ReadMessage(Position);
 549            break;
 550          }
 551          case 18: {
 552            if (velocity_ == null) {
 553              Velocity = new global::Micromissiles.SphericalCoordinates();
 554            }
 555            input.ReadMessage(Velocity);
 556            break;
 557          }
 558          case 26: {
 559            if (positionCartesian_ == null) {
 560              PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 561            }
 562            input.ReadMessage(PositionCartesian);
 563            break;
 564          }
 565        }
 566      }
 567    #endif
 568    }
 569
 570    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 571    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 572    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 573    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 574      uint tag;
 575      while ((tag = input.ReadTag()) != 0) {
 576      if ((tag & 7) == 4) {
 577        // Abort on any end group tag.
 578        return;
 579      }
 580      switch(tag) {
 581          default:
 582            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 583            break;
 584          case 10: {
 585            if (position_ == null) {
 586              Position = new global::Micromissiles.SphericalCoordinates();
 587            }
 588            input.ReadMessage(Position);
 589            break;
 590          }
 591          case 18: {
 592            if (velocity_ == null) {
 593              Velocity = new global::Micromissiles.SphericalCoordinates();
 594            }
 595            input.ReadMessage(Velocity);
 596            break;
 597          }
 598          case 26: {
 599            if (positionCartesian_ == null) {
 600              PositionCartesian = new global::Micromissiles.CartesianCoordinates();
 601            }
 602            input.ReadMessage(PositionCartesian);
 603            break;
 604          }
 605        }
 606      }
 607    }
 608    #endif
 609
 610  }
 611
 612  #endregion
 613
 614}
 615
 616#endregion Designer generated code

Methods/Properties

Descriptor()
SensorReflection()