< Summary

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

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