< Summary

Class:Configs.SimulatorConfigReflection
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/SimulatorConfig.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:451
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
SimulatorConfigReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/simulator_config.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 Configs {
 13
 14  /// <summary>Holder for reflection information generated from Configs/simulator_config.proto</summary>
 15  public static partial class SimulatorConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/simulator_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static SimulatorConfigReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch5Db25maWdzL3NpbXVsYXRvcl9jb25maWcucHJvdG8SB2NvbmZpZ3Mi1gEK",
 28            "D1NpbXVsYXRvckNvbmZpZxIgChhlbmFibGVfdGVsZW1ldHJ5X2xvZ2dpbmcY",
 29            "ASABKAgSHAoUZW5hYmxlX2V2ZW50X2xvZ2dpbmcYAiABKAgSIwobZW5hYmxl",
 30            "X21pc3NpbGVfdHJhaWxfZWZmZWN0GAMgASgIEh8KF2VuYWJsZV9leHBsb3Np",
 31            "b25fZWZmZWN0GAQgASgIEhsKE3BoeXNpY3NfdXBkYXRlX3JhdGUYBSABKAIS",
 32            "IAoYcGVyc2lzdGVudF9mbGlnaHRfdHJhaWxzGAYgASgIYgZwcm90bzM="));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.SimulatorConfig), global::Configs.SimulatorConfig.Parse
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// Simulator configuration.
 45  /// </summary>
 46  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 47  public sealed partial class SimulatorConfig : pb::IMessage<SimulatorConfig>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 52    private static readonly pb::MessageParser<SimulatorConfig> _parser = new pb::MessageParser<SimulatorConfig>(() => ne
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pb::MessageParser<SimulatorConfig> 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::Configs.SimulatorConfigReflection.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 SimulatorConfig() {
 73      OnConstruction();
 74    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public SimulatorConfig(SimulatorConfig other) : this() {
 81      enableTelemetryLogging_ = other.enableTelemetryLogging_;
 82      enableEventLogging_ = other.enableEventLogging_;
 83      enableMissileTrailEffect_ = other.enableMissileTrailEffect_;
 84      enableExplosionEffect_ = other.enableExplosionEffect_;
 85      physicsUpdateRate_ = other.physicsUpdateRate_;
 86      persistentFlightTrails_ = other.persistentFlightTrails_;
 87      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 88    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public SimulatorConfig Clone() {
 93      return new SimulatorConfig(this);
 94    }
 95
 96    /// <summary>Field number for the "enable_telemetry_logging" field.</summary>
 97    public const int EnableTelemetryLoggingFieldNumber = 1;
 98    private bool enableTelemetryLogging_;
 99    /// <summary>
 100    /// Enable telemetry logging.
 101    /// </summary>
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public bool EnableTelemetryLogging {
 105      get { return enableTelemetryLogging_; }
 106      set {
 107        enableTelemetryLogging_ = value;
 108      }
 109    }
 110
 111    /// <summary>Field number for the "enable_event_logging" field.</summary>
 112    public const int EnableEventLoggingFieldNumber = 2;
 113    private bool enableEventLogging_;
 114    /// <summary>
 115    /// Enable event logging.
 116    /// </summary>
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public bool EnableEventLogging {
 120      get { return enableEventLogging_; }
 121      set {
 122        enableEventLogging_ = value;
 123      }
 124    }
 125
 126    /// <summary>Field number for the "enable_missile_trail_effect" field.</summary>
 127    public const int EnableMissileTrailEffectFieldNumber = 3;
 128    private bool enableMissileTrailEffect_;
 129    /// <summary>
 130    /// Enable missile trail effect.
 131    /// </summary>
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public bool EnableMissileTrailEffect {
 135      get { return enableMissileTrailEffect_; }
 136      set {
 137        enableMissileTrailEffect_ = value;
 138      }
 139    }
 140
 141    /// <summary>Field number for the "enable_explosion_effect" field.</summary>
 142    public const int EnableExplosionEffectFieldNumber = 4;
 143    private bool enableExplosionEffect_;
 144    /// <summary>
 145    /// Enable explosion effect.
 146    /// </summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public bool EnableExplosionEffect {
 150      get { return enableExplosionEffect_; }
 151      set {
 152        enableExplosionEffect_ = value;
 153      }
 154    }
 155
 156    /// <summary>Field number for the "physics_update_rate" field.</summary>
 157    public const int PhysicsUpdateRateFieldNumber = 5;
 158    private float physicsUpdateRate_;
 159    /// <summary>
 160    /// Physics update rate in Hz.
 161    /// </summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public float PhysicsUpdateRate {
 165      get { return physicsUpdateRate_; }
 166      set {
 167        physicsUpdateRate_ = value;
 168      }
 169    }
 170
 171    /// <summary>Field number for the "persistent_flight_trails" field.</summary>
 172    public const int PersistentFlightTrailsFieldNumber = 6;
 173    private bool persistentFlightTrails_;
 174    /// <summary>
 175    /// Persistent flight trails.
 176    /// </summary>
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public bool PersistentFlightTrails {
 180      get { return persistentFlightTrails_; }
 181      set {
 182        persistentFlightTrails_ = 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 SimulatorConfig);
 190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    public bool Equals(SimulatorConfig other) {
 195      if (ReferenceEquals(other, null)) {
 196        return false;
 197      }
 198      if (ReferenceEquals(other, this)) {
 199        return true;
 200      }
 201      if (EnableTelemetryLogging != other.EnableTelemetryLogging) return false;
 202      if (EnableEventLogging != other.EnableEventLogging) return false;
 203      if (EnableMissileTrailEffect != other.EnableMissileTrailEffect) return false;
 204      if (EnableExplosionEffect != other.EnableExplosionEffect) return false;
 205      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PhysicsUpdateRate, other.PhysicsUpdateRat
 206      if (PersistentFlightTrails != other.PersistentFlightTrails) 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 (EnableTelemetryLogging != false) hash ^= EnableTelemetryLogging.GetHashCode();
 215      if (EnableEventLogging != false) hash ^= EnableEventLogging.GetHashCode();
 216      if (EnableMissileTrailEffect != false) hash ^= EnableMissileTrailEffect.GetHashCode();
 217      if (EnableExplosionEffect != false) hash ^= EnableExplosionEffect.GetHashCode();
 218      if (PhysicsUpdateRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Phys
 219      if (PersistentFlightTrails != false) hash ^= PersistentFlightTrails.GetHashCode();
 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 (EnableTelemetryLogging != false) {
 239        output.WriteRawTag(8);
 240        output.WriteBool(EnableTelemetryLogging);
 241      }
 242      if (EnableEventLogging != false) {
 243        output.WriteRawTag(16);
 244        output.WriteBool(EnableEventLogging);
 245      }
 246      if (EnableMissileTrailEffect != false) {
 247        output.WriteRawTag(24);
 248        output.WriteBool(EnableMissileTrailEffect);
 249      }
 250      if (EnableExplosionEffect != false) {
 251        output.WriteRawTag(32);
 252        output.WriteBool(EnableExplosionEffect);
 253      }
 254      if (PhysicsUpdateRate != 0F) {
 255        output.WriteRawTag(45);
 256        output.WriteFloat(PhysicsUpdateRate);
 257      }
 258      if (PersistentFlightTrails != false) {
 259        output.WriteRawTag(48);
 260        output.WriteBool(PersistentFlightTrails);
 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 (EnableTelemetryLogging != false) {
 273        output.WriteRawTag(8);
 274        output.WriteBool(EnableTelemetryLogging);
 275      }
 276      if (EnableEventLogging != false) {
 277        output.WriteRawTag(16);
 278        output.WriteBool(EnableEventLogging);
 279      }
 280      if (EnableMissileTrailEffect != false) {
 281        output.WriteRawTag(24);
 282        output.WriteBool(EnableMissileTrailEffect);
 283      }
 284      if (EnableExplosionEffect != false) {
 285        output.WriteRawTag(32);
 286        output.WriteBool(EnableExplosionEffect);
 287      }
 288      if (PhysicsUpdateRate != 0F) {
 289        output.WriteRawTag(45);
 290        output.WriteFloat(PhysicsUpdateRate);
 291      }
 292      if (PersistentFlightTrails != false) {
 293        output.WriteRawTag(48);
 294        output.WriteBool(PersistentFlightTrails);
 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 (EnableTelemetryLogging != false) {
 307        size += 1 + 1;
 308      }
 309      if (EnableEventLogging != false) {
 310        size += 1 + 1;
 311      }
 312      if (EnableMissileTrailEffect != false) {
 313        size += 1 + 1;
 314      }
 315      if (EnableExplosionEffect != false) {
 316        size += 1 + 1;
 317      }
 318      if (PhysicsUpdateRate != 0F) {
 319        size += 1 + 4;
 320      }
 321      if (PersistentFlightTrails != false) {
 322        size += 1 + 1;
 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(SimulatorConfig other) {
 333      if (other == null) {
 334        return;
 335      }
 336      if (other.EnableTelemetryLogging != false) {
 337        EnableTelemetryLogging = other.EnableTelemetryLogging;
 338      }
 339      if (other.EnableEventLogging != false) {
 340        EnableEventLogging = other.EnableEventLogging;
 341      }
 342      if (other.EnableMissileTrailEffect != false) {
 343        EnableMissileTrailEffect = other.EnableMissileTrailEffect;
 344      }
 345      if (other.EnableExplosionEffect != false) {
 346        EnableExplosionEffect = other.EnableExplosionEffect;
 347      }
 348      if (other.PhysicsUpdateRate != 0F) {
 349        PhysicsUpdateRate = other.PhysicsUpdateRate;
 350      }
 351      if (other.PersistentFlightTrails != false) {
 352        PersistentFlightTrails = other.PersistentFlightTrails;
 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 8: {
 374            EnableTelemetryLogging = input.ReadBool();
 375            break;
 376          }
 377          case 16: {
 378            EnableEventLogging = input.ReadBool();
 379            break;
 380          }
 381          case 24: {
 382            EnableMissileTrailEffect = input.ReadBool();
 383            break;
 384          }
 385          case 32: {
 386            EnableExplosionEffect = input.ReadBool();
 387            break;
 388          }
 389          case 45: {
 390            PhysicsUpdateRate = input.ReadFloat();
 391            break;
 392          }
 393          case 48: {
 394            PersistentFlightTrails = input.ReadBool();
 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 8: {
 417            EnableTelemetryLogging = input.ReadBool();
 418            break;
 419          }
 420          case 16: {
 421            EnableEventLogging = input.ReadBool();
 422            break;
 423          }
 424          case 24: {
 425            EnableMissileTrailEffect = input.ReadBool();
 426            break;
 427          }
 428          case 32: {
 429            EnableExplosionEffect = input.ReadBool();
 430            break;
 431          }
 432          case 45: {
 433            PhysicsUpdateRate = input.ReadFloat();
 434            break;
 435          }
 436          case 48: {
 437            PersistentFlightTrails = input.ReadBool();
 438            break;
 439          }
 440        }
 441      }
 442    }
 443    #endif
 444
 445  }
 446
 447  #endregion
 448
 449}
 450
 451#endregion Designer generated code