< Summary

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/simulation_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/simulation_config.proto</summary>
 15  public static partial class SimulationConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/simulation_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 024    static SimulationConfigReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch9Db25maWdzL3NpbXVsYXRpb25fY29uZmlnLnByb3RvEgdjb25maWdzGhpD",
 28            "b25maWdzL3N3YXJtX2NvbmZpZy5wcm90byKlAQoQU2ltdWxhdGlvbkNvbmZp",
 29            "ZxIQCghlbmRfdGltZRgBIAEoAhISCgp0aW1lX3NjYWxlGAIgASgCEjcKGWlu",
 30            "dGVyY2VwdG9yX3N3YXJtX2NvbmZpZ3MYAyADKAsyFC5jb25maWdzLlN3YXJt",
 31            "Q29uZmlnEjIKFHRocmVhdF9zd2FybV9jb25maWdzGAQgAygLMhQuY29uZmln",
 32            "cy5Td2FybUNvbmZpZ2IGcHJvdG8z"));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::Configs.SwarmConfigReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.SimulationConfig), global::Configs.SimulationConfig.Par
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// Simulation configuration.
 45  /// </summary>
 46  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 47  public sealed partial class SimulationConfig : pb::IMessage<SimulationConfig>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 52    private static readonly pb::MessageParser<SimulationConfig> _parser = new pb::MessageParser<SimulationConfig>(() => 
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pb::MessageParser<SimulationConfig> 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.SimulationConfigReflection.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 SimulationConfig() {
 73      OnConstruction();
 74    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public SimulationConfig(SimulationConfig other) : this() {
 81      endTime_ = other.endTime_;
 82      timeScale_ = other.timeScale_;
 83      interceptorSwarmConfigs_ = other.interceptorSwarmConfigs_.Clone();
 84      threatSwarmConfigs_ = other.threatSwarmConfigs_.Clone();
 85      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public SimulationConfig Clone() {
 91      return new SimulationConfig(this);
 92    }
 93
 94    /// <summary>Field number for the "end_time" field.</summary>
 95    public const int EndTimeFieldNumber = 1;
 96    private float endTime_;
 97    /// <summary>
 98    /// End time in seconds.
 99    /// </summary>
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public float EndTime {
 103      get { return endTime_; }
 104      set {
 105        endTime_ = value;
 106      }
 107    }
 108
 109    /// <summary>Field number for the "time_scale" field.</summary>
 110    public const int TimeScaleFieldNumber = 2;
 111    private float timeScale_;
 112    /// <summary>
 113    /// Time scale.
 114    /// </summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public float TimeScale {
 118      get { return timeScale_; }
 119      set {
 120        timeScale_ = value;
 121      }
 122    }
 123
 124    /// <summary>Field number for the "interceptor_swarm_configs" field.</summary>
 125    public const int InterceptorSwarmConfigsFieldNumber = 3;
 126    private static readonly pb::FieldCodec<global::Configs.SwarmConfig> _repeated_interceptorSwarmConfigs_codec
 127        = pb::FieldCodec.ForMessage(26, global::Configs.SwarmConfig.Parser);
 128    private readonly pbc::RepeatedField<global::Configs.SwarmConfig> interceptorSwarmConfigs_ = new pbc::RepeatedField<g
 129    /// <summary>
 130    /// Interceptor swarm configurations.
 131    /// </summary>
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public pbc::RepeatedField<global::Configs.SwarmConfig> InterceptorSwarmConfigs {
 135      get { return interceptorSwarmConfigs_; }
 136    }
 137
 138    /// <summary>Field number for the "threat_swarm_configs" field.</summary>
 139    public const int ThreatSwarmConfigsFieldNumber = 4;
 140    private static readonly pb::FieldCodec<global::Configs.SwarmConfig> _repeated_threatSwarmConfigs_codec
 141        = pb::FieldCodec.ForMessage(34, global::Configs.SwarmConfig.Parser);
 142    private readonly pbc::RepeatedField<global::Configs.SwarmConfig> threatSwarmConfigs_ = new pbc::RepeatedField<global
 143    /// <summary>
 144    /// Threat swarm configurations.
 145    /// </summary>
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public pbc::RepeatedField<global::Configs.SwarmConfig> ThreatSwarmConfigs {
 149      get { return threatSwarmConfigs_; }
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public override bool Equals(object other) {
 155      return Equals(other as SimulationConfig);
 156    }
 157
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public bool Equals(SimulationConfig other) {
 161      if (ReferenceEquals(other, null)) {
 162        return false;
 163      }
 164      if (ReferenceEquals(other, this)) {
 165        return true;
 166      }
 167      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EndTime, other.EndTime)) return false;
 168      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeScale, other.TimeScale)) return false
 169      if(!interceptorSwarmConfigs_.Equals(other.interceptorSwarmConfigs_)) return false;
 170      if(!threatSwarmConfigs_.Equals(other.threatSwarmConfigs_)) return false;
 171      return Equals(_unknownFields, other._unknownFields);
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public override int GetHashCode() {
 177      int hash = 1;
 178      if (EndTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EndTime);
 179      if (TimeScale != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeScale);
 180      hash ^= interceptorSwarmConfigs_.GetHashCode();
 181      hash ^= threatSwarmConfigs_.GetHashCode();
 182      if (_unknownFields != null) {
 183        hash ^= _unknownFields.GetHashCode();
 184      }
 185      return hash;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override string ToString() {
 191      return pb::JsonFormatter.ToDiagnosticString(this);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void WriteTo(pb::CodedOutputStream output) {
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198      output.WriteRawMessage(this);
 199    #else
 200      if (EndTime != 0F) {
 201        output.WriteRawTag(13);
 202        output.WriteFloat(EndTime);
 203      }
 204      if (TimeScale != 0F) {
 205        output.WriteRawTag(21);
 206        output.WriteFloat(TimeScale);
 207      }
 208      interceptorSwarmConfigs_.WriteTo(output, _repeated_interceptorSwarmConfigs_codec);
 209      threatSwarmConfigs_.WriteTo(output, _repeated_threatSwarmConfigs_codec);
 210      if (_unknownFields != null) {
 211        _unknownFields.WriteTo(output);
 212      }
 213    #endif
 214    }
 215
 216    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 220      if (EndTime != 0F) {
 221        output.WriteRawTag(13);
 222        output.WriteFloat(EndTime);
 223      }
 224      if (TimeScale != 0F) {
 225        output.WriteRawTag(21);
 226        output.WriteFloat(TimeScale);
 227      }
 228      interceptorSwarmConfigs_.WriteTo(ref output, _repeated_interceptorSwarmConfigs_codec);
 229      threatSwarmConfigs_.WriteTo(ref output, _repeated_threatSwarmConfigs_codec);
 230      if (_unknownFields != null) {
 231        _unknownFields.WriteTo(ref output);
 232      }
 233    }
 234    #endif
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public int CalculateSize() {
 239      int size = 0;
 240      if (EndTime != 0F) {
 241        size += 1 + 4;
 242      }
 243      if (TimeScale != 0F) {
 244        size += 1 + 4;
 245      }
 246      size += interceptorSwarmConfigs_.CalculateSize(_repeated_interceptorSwarmConfigs_codec);
 247      size += threatSwarmConfigs_.CalculateSize(_repeated_threatSwarmConfigs_codec);
 248      if (_unknownFields != null) {
 249        size += _unknownFields.CalculateSize();
 250      }
 251      return size;
 252    }
 253
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public void MergeFrom(SimulationConfig other) {
 257      if (other == null) {
 258        return;
 259      }
 260      if (other.EndTime != 0F) {
 261        EndTime = other.EndTime;
 262      }
 263      if (other.TimeScale != 0F) {
 264        TimeScale = other.TimeScale;
 265      }
 266      interceptorSwarmConfigs_.Add(other.interceptorSwarmConfigs_);
 267      threatSwarmConfigs_.Add(other.threatSwarmConfigs_);
 268      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 269    }
 270
 271    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 272    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 273    public void MergeFrom(pb::CodedInputStream input) {
 274    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 275      input.ReadRawMessage(this);
 276    #else
 277      uint tag;
 278      while ((tag = input.ReadTag()) != 0) {
 279      if ((tag & 7) == 4) {
 280        // Abort on any end group tag.
 281        return;
 282      }
 283      switch(tag) {
 284          default:
 285            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 286            break;
 287          case 13: {
 288            EndTime = input.ReadFloat();
 289            break;
 290          }
 291          case 21: {
 292            TimeScale = input.ReadFloat();
 293            break;
 294          }
 295          case 26: {
 296            interceptorSwarmConfigs_.AddEntriesFrom(input, _repeated_interceptorSwarmConfigs_codec);
 297            break;
 298          }
 299          case 34: {
 300            threatSwarmConfigs_.AddEntriesFrom(input, _repeated_threatSwarmConfigs_codec);
 301            break;
 302          }
 303        }
 304      }
 305    #endif
 306    }
 307
 308    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 309    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 310    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 311    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 312      uint tag;
 313      while ((tag = input.ReadTag()) != 0) {
 314      if ((tag & 7) == 4) {
 315        // Abort on any end group tag.
 316        return;
 317      }
 318      switch(tag) {
 319          default:
 320            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 321            break;
 322          case 13: {
 323            EndTime = input.ReadFloat();
 324            break;
 325          }
 326          case 21: {
 327            TimeScale = input.ReadFloat();
 328            break;
 329          }
 330          case 26: {
 331            interceptorSwarmConfigs_.AddEntriesFrom(ref input, _repeated_interceptorSwarmConfigs_codec);
 332            break;
 333          }
 334          case 34: {
 335            threatSwarmConfigs_.AddEntriesFrom(ref input, _repeated_threatSwarmConfigs_codec);
 336            break;
 337          }
 338        }
 339      }
 340    }
 341    #endif
 342
 343  }
 344
 345  #endregion
 346
 347}
 348
 349#endregion Designer generated code