< Summary

Class:Configs.DynamicConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/DynamicConfig.cs
Covered lines:10
Uncovered lines:106
Coverable lines:116
Total lines:831
Line coverage:8.6% (10 of 116)
Covered branches:0
Total branches:0
Covered methods:5
Total methods:21
Method coverage:23.8% (5 of 21)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
DynamicConfig()0%110100%
get_Descriptor()0%2100%
DynamicConfig()0%110100%
DynamicConfig(...)0%30500%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%42600%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%56700%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/dynamic_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/dynamic_config.proto</summary>
 15  public static partial class DynamicConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/dynamic_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static DynamicConfigReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChxDb25maWdzL2R5bmFtaWNfY29uZmlnLnByb3RvEgdjb25maWdzGhdTaW11",
 28            "bGF0aW9uL3NlbnNvci5wcm90byK4AQoMRmxpZ2h0Q29uZmlnEjAKD2NvbnRy",
 29            "b2xsZXJfdHlwZRgBIAEoDjIXLmNvbmZpZ3MuQ29udHJvbGxlclR5cGUSOwoO",
 30            "ZXZhc2lvbl9jb25maWcYAiABKAsyIy5jb25maWdzLkZsaWdodENvbmZpZy5F",
 31            "dmFzaW9uQ29uZmlnGjkKDUV2YXNpb25Db25maWcSDwoHZW5hYmxlZBgBIAEo",
 32            "CBIXCg9yYW5nZV90aHJlc2hvbGQYAiABKAIibgoNRHluYW1pY0NvbmZpZxIs",
 33            "Cg1mbGlnaHRfY29uZmlnGAEgASgLMhUuY29uZmlncy5GbGlnaHRDb25maWcS",
 34            "LwoNc2Vuc29yX2NvbmZpZxgCIAEoCzIYLnNpbXVsYXRpb24uU2Vuc29yQ29u",
 35            "ZmlnKlQKDkNvbnRyb2xsZXJUeXBlEhsKF1BST1BPUlRJT05BTF9OQVZJR0FU",
 36            "SU9OEAASJQohQVVHTUVOVEVEX1BST1BPUlRJT05BTF9OQVZJR0FUSU9OEAFi",
 37            "BnByb3RvMw=="));
 38      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 39          new pbr::FileDescriptor[] { global::Simulation.SensorReflection.Descriptor, },
 40          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Configs.ControllerType), }, null, new pbr::GeneratedClrTyp
 41            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.FlightConfig), global::Configs.FlightConfig.Parser, new
 42            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.DynamicConfig), global::Configs.DynamicConfig.Parser, n
 43          }));
 44    }
 45    #endregion
 46
 47  }
 48  #region Enums
 49  /// <summary>
 50  /// Controller type enumeration.
 51  /// </summary>
 52  public enum ControllerType {
 53    [pbr::OriginalName("PROPORTIONAL_NAVIGATION")] ProportionalNavigation = 0,
 54    [pbr::OriginalName("AUGMENTED_PROPORTIONAL_NAVIGATION")] AugmentedProportionalNavigation = 1,
 55  }
 56
 57  #endregion
 58
 59  #region Messages
 60  /// <summary>
 61  /// Flight configuration.
 62  /// </summary>
 63  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 64  public sealed partial class FlightConfig : pb::IMessage<FlightConfig>
 65  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 66      , pb::IBufferMessage
 67  #endif
 68  {
 69    private static readonly pb::MessageParser<FlightConfig> _parser = new pb::MessageParser<FlightConfig>(() => new Flig
 70    private pb::UnknownFieldSet _unknownFields;
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public static pb::MessageParser<FlightConfig> Parser { get { return _parser; } }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public static pbr::MessageDescriptor Descriptor {
 78      get { return global::Configs.DynamicConfigReflection.Descriptor.MessageTypes[0]; }
 79    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    pbr::MessageDescriptor pb::IMessage.Descriptor {
 84      get { return Descriptor; }
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 89    public FlightConfig() {
 90      OnConstruction();
 91    }
 92
 93    partial void OnConstruction();
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public FlightConfig(FlightConfig other) : this() {
 98      controllerType_ = other.controllerType_;
 99      evasionConfig_ = other.evasionConfig_ != null ? other.evasionConfig_.Clone() : null;
 100      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 101    }
 102
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public FlightConfig Clone() {
 106      return new FlightConfig(this);
 107    }
 108
 109    /// <summary>Field number for the "controller_type" field.</summary>
 110    public const int ControllerTypeFieldNumber = 1;
 111    private global::Configs.ControllerType controllerType_ = global::Configs.ControllerType.ProportionalNavigation;
 112    /// <summary>
 113    /// Controller type.
 114    /// </summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public global::Configs.ControllerType ControllerType {
 118      get { return controllerType_; }
 119      set {
 120        controllerType_ = value;
 121      }
 122    }
 123
 124    /// <summary>Field number for the "evasion_config" field.</summary>
 125    public const int EvasionConfigFieldNumber = 2;
 126    private global::Configs.FlightConfig.Types.EvasionConfig evasionConfig_;
 127    /// <summary>
 128    /// Evasion configuration.
 129    /// </summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public global::Configs.FlightConfig.Types.EvasionConfig EvasionConfig {
 133      get { return evasionConfig_; }
 134      set {
 135        evasionConfig_ = value;
 136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 142      return Equals(other as FlightConfig);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public bool Equals(FlightConfig other) {
 148      if (ReferenceEquals(other, null)) {
 149        return false;
 150      }
 151      if (ReferenceEquals(other, this)) {
 152        return true;
 153      }
 154      if (ControllerType != other.ControllerType) return false;
 155      if (!object.Equals(EvasionConfig, other.EvasionConfig)) return false;
 156      return Equals(_unknownFields, other._unknownFields);
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public override int GetHashCode() {
 162      int hash = 1;
 163      if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) hash ^= ControllerType.GetHashCode();
 164      if (evasionConfig_ != null) hash ^= EvasionConfig.GetHashCode();
 165      if (_unknownFields != null) {
 166        hash ^= _unknownFields.GetHashCode();
 167      }
 168      return hash;
 169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public override string ToString() {
 174      return pb::JsonFormatter.ToDiagnosticString(this);
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public void WriteTo(pb::CodedOutputStream output) {
 180    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 181      output.WriteRawMessage(this);
 182    #else
 183      if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) {
 184        output.WriteRawTag(8);
 185        output.WriteEnum((int) ControllerType);
 186      }
 187      if (evasionConfig_ != null) {
 188        output.WriteRawTag(18);
 189        output.WriteMessage(EvasionConfig);
 190      }
 191      if (_unknownFields != null) {
 192        _unknownFields.WriteTo(output);
 193      }
 194    #endif
 195    }
 196
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 201      if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) {
 202        output.WriteRawTag(8);
 203        output.WriteEnum((int) ControllerType);
 204      }
 205      if (evasionConfig_ != null) {
 206        output.WriteRawTag(18);
 207        output.WriteMessage(EvasionConfig);
 208      }
 209      if (_unknownFields != null) {
 210        _unknownFields.WriteTo(ref output);
 211      }
 212    }
 213    #endif
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public int CalculateSize() {
 218      int size = 0;
 219      if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) {
 220        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ControllerType);
 221      }
 222      if (evasionConfig_ != null) {
 223        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EvasionConfig);
 224      }
 225      if (_unknownFields != null) {
 226        size += _unknownFields.CalculateSize();
 227      }
 228      return size;
 229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public void MergeFrom(FlightConfig other) {
 234      if (other == null) {
 235        return;
 236      }
 237      if (other.ControllerType != global::Configs.ControllerType.ProportionalNavigation) {
 238        ControllerType = other.ControllerType;
 239      }
 240      if (other.evasionConfig_ != null) {
 241        if (evasionConfig_ == null) {
 242          EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig();
 243        }
 244        EvasionConfig.MergeFrom(other.EvasionConfig);
 245      }
 246      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    public void MergeFrom(pb::CodedInputStream input) {
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 253      input.ReadRawMessage(this);
 254    #else
 255      uint tag;
 256      while ((tag = input.ReadTag()) != 0) {
 257      if ((tag & 7) == 4) {
 258        // Abort on any end group tag.
 259        return;
 260      }
 261      switch(tag) {
 262          default:
 263            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 264            break;
 265          case 8: {
 266            ControllerType = (global::Configs.ControllerType) input.ReadEnum();
 267            break;
 268          }
 269          case 18: {
 270            if (evasionConfig_ == null) {
 271              EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig();
 272            }
 273            input.ReadMessage(EvasionConfig);
 274            break;
 275          }
 276        }
 277      }
 278    #endif
 279    }
 280
 281    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 284    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 285      uint tag;
 286      while ((tag = input.ReadTag()) != 0) {
 287      if ((tag & 7) == 4) {
 288        // Abort on any end group tag.
 289        return;
 290      }
 291      switch(tag) {
 292          default:
 293            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 294            break;
 295          case 8: {
 296            ControllerType = (global::Configs.ControllerType) input.ReadEnum();
 297            break;
 298          }
 299          case 18: {
 300            if (evasionConfig_ == null) {
 301              EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig();
 302            }
 303            input.ReadMessage(EvasionConfig);
 304            break;
 305          }
 306        }
 307      }
 308    }
 309    #endif
 310
 311    #region Nested types
 312    /// <summary>Container for nested types declared in the FlightConfig message type.</summary>
 313    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 314    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 315    public static partial class Types {
 316      /// <summary>
 317      /// Evasion configuration.
 318      /// </summary>
 319      [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 320      public sealed partial class EvasionConfig : pb::IMessage<EvasionConfig>
 321      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 322          , pb::IBufferMessage
 323      #endif
 324      {
 325        private static readonly pb::MessageParser<EvasionConfig> _parser = new pb::MessageParser<EvasionConfig>(() => ne
 326        private pb::UnknownFieldSet _unknownFields;
 327        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329        public static pb::MessageParser<EvasionConfig> Parser { get { return _parser; } }
 330
 331        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 333        public static pbr::MessageDescriptor Descriptor {
 334          get { return global::Configs.FlightConfig.Descriptor.NestedTypes[0]; }
 335        }
 336
 337        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 338        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 339        pbr::MessageDescriptor pb::IMessage.Descriptor {
 340          get { return Descriptor; }
 341        }
 342
 343        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 345        public EvasionConfig() {
 346          OnConstruction();
 347        }
 348
 349        partial void OnConstruction();
 350
 351        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353        public EvasionConfig(EvasionConfig other) : this() {
 354          enabled_ = other.enabled_;
 355          rangeThreshold_ = other.rangeThreshold_;
 356          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 357        }
 358
 359        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 360        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 361        public EvasionConfig Clone() {
 362          return new EvasionConfig(this);
 363        }
 364
 365        /// <summary>Field number for the "enabled" field.</summary>
 366        public const int EnabledFieldNumber = 1;
 367        private bool enabled_;
 368        /// <summary>
 369        /// If true, evasion is enabled.
 370        /// </summary>
 371        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373        public bool Enabled {
 374          get { return enabled_; }
 375          set {
 376            enabled_ = value;
 377          }
 378        }
 379
 380        /// <summary>Field number for the "range_threshold" field.</summary>
 381        public const int RangeThresholdFieldNumber = 2;
 382        private float rangeThreshold_;
 383        /// <summary>
 384        /// Range threshold in m at which the agent should evade.
 385        /// </summary>
 386        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 387        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 388        public float RangeThreshold {
 389          get { return rangeThreshold_; }
 390          set {
 391            rangeThreshold_ = value;
 392          }
 393        }
 394
 395        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397        public override bool Equals(object other) {
 398          return Equals(other as EvasionConfig);
 399        }
 400
 401        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 403        public bool Equals(EvasionConfig other) {
 404          if (ReferenceEquals(other, null)) {
 405            return false;
 406          }
 407          if (ReferenceEquals(other, this)) {
 408            return true;
 409          }
 410          if (Enabled != other.Enabled) return false;
 411          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RangeThreshold, other.RangeThreshold)
 412          return Equals(_unknownFields, other._unknownFields);
 413        }
 414
 415        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 416        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 417        public override int GetHashCode() {
 418          int hash = 1;
 419          if (Enabled != false) hash ^= Enabled.GetHashCode();
 420          if (RangeThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ran
 421          if (_unknownFields != null) {
 422            hash ^= _unknownFields.GetHashCode();
 423          }
 424          return hash;
 425        }
 426
 427        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 428        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 429        public override string ToString() {
 430          return pb::JsonFormatter.ToDiagnosticString(this);
 431        }
 432
 433        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 434        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 435        public void WriteTo(pb::CodedOutputStream output) {
 436        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 437          output.WriteRawMessage(this);
 438        #else
 439          if (Enabled != false) {
 440            output.WriteRawTag(8);
 441            output.WriteBool(Enabled);
 442          }
 443          if (RangeThreshold != 0F) {
 444            output.WriteRawTag(21);
 445            output.WriteFloat(RangeThreshold);
 446          }
 447          if (_unknownFields != null) {
 448            _unknownFields.WriteTo(output);
 449          }
 450        #endif
 451        }
 452
 453        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 454        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 456        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 457          if (Enabled != false) {
 458            output.WriteRawTag(8);
 459            output.WriteBool(Enabled);
 460          }
 461          if (RangeThreshold != 0F) {
 462            output.WriteRawTag(21);
 463            output.WriteFloat(RangeThreshold);
 464          }
 465          if (_unknownFields != null) {
 466            _unknownFields.WriteTo(ref output);
 467          }
 468        }
 469        #endif
 470
 471        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 472        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 473        public int CalculateSize() {
 474          int size = 0;
 475          if (Enabled != false) {
 476            size += 1 + 1;
 477          }
 478          if (RangeThreshold != 0F) {
 479            size += 1 + 4;
 480          }
 481          if (_unknownFields != null) {
 482            size += _unknownFields.CalculateSize();
 483          }
 484          return size;
 485        }
 486
 487        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 488        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 489        public void MergeFrom(EvasionConfig other) {
 490          if (other == null) {
 491            return;
 492          }
 493          if (other.Enabled != false) {
 494            Enabled = other.Enabled;
 495          }
 496          if (other.RangeThreshold != 0F) {
 497            RangeThreshold = other.RangeThreshold;
 498          }
 499          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 500        }
 501
 502        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 504        public void MergeFrom(pb::CodedInputStream input) {
 505        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 506          input.ReadRawMessage(this);
 507        #else
 508          uint tag;
 509          while ((tag = input.ReadTag()) != 0) {
 510          if ((tag & 7) == 4) {
 511            // Abort on any end group tag.
 512            return;
 513          }
 514          switch(tag) {
 515              default:
 516                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 517                break;
 518              case 8: {
 519                Enabled = input.ReadBool();
 520                break;
 521              }
 522              case 21: {
 523                RangeThreshold = input.ReadFloat();
 524                break;
 525              }
 526            }
 527          }
 528        #endif
 529        }
 530
 531        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 532        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 533        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 534        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 535          uint tag;
 536          while ((tag = input.ReadTag()) != 0) {
 537          if ((tag & 7) == 4) {
 538            // Abort on any end group tag.
 539            return;
 540          }
 541          switch(tag) {
 542              default:
 543                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 544                break;
 545              case 8: {
 546                Enabled = input.ReadBool();
 547                break;
 548              }
 549              case 21: {
 550                RangeThreshold = input.ReadFloat();
 551                break;
 552              }
 553            }
 554          }
 555        }
 556        #endif
 557
 558      }
 559
 560    }
 561    #endregion
 562
 563  }
 564
 565  /// <summary>
 566  /// Dynamic configuration.
 567  /// </summary>
 568  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 569  public sealed partial class DynamicConfig : pb::IMessage<DynamicConfig>
 570  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 571      , pb::IBufferMessage
 572  #endif
 573  {
 1574    private static readonly pb::MessageParser<DynamicConfig> _parser = new pb::MessageParser<DynamicConfig>(() => new Dy
 575    private pb::UnknownFieldSet _unknownFields;
 576    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 577    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0578    public static pb::MessageParser<DynamicConfig> Parser { get { return _parser; } }
 579
 580    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 581    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 582    public static pbr::MessageDescriptor Descriptor {
 0583      get { return global::Configs.DynamicConfigReflection.Descriptor.MessageTypes[1]; }
 584    }
 585
 586    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 587    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 588    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0589      get { return Descriptor; }
 590    }
 591
 592    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 593    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 32594    public DynamicConfig() {
 595      OnConstruction();
 16596    }
 597
 598    partial void OnConstruction();
 599
 600    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 601    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0602    public DynamicConfig(DynamicConfig other) : this() {
 0603      flightConfig_ = other.flightConfig_ != null ? other.flightConfig_.Clone() : null;
 0604      sensorConfig_ = other.sensorConfig_ != null ? other.sensorConfig_.Clone() : null;
 0605      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0606    }
 607
 608    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 609    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0610    public DynamicConfig Clone() {
 0611      return new DynamicConfig(this);
 0612    }
 613
 614    /// <summary>Field number for the "flight_config" field.</summary>
 615    public const int FlightConfigFieldNumber = 1;
 616    private global::Configs.FlightConfig flightConfig_;
 617    /// <summary>
 618    /// Flight configuration.
 619    /// </summary>
 620    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 621    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 622    public global::Configs.FlightConfig FlightConfig {
 0623      get { return flightConfig_; }
 1624      set {
 1625        flightConfig_ = value;
 1626      }
 627    }
 628
 629    /// <summary>Field number for the "sensor_config" field.</summary>
 630    public const int SensorConfigFieldNumber = 2;
 631    private global::Simulation.SensorConfig sensorConfig_;
 632    /// <summary>
 633    /// Sensor configuration.
 634    /// </summary>
 635    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 636    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 637    public global::Simulation.SensorConfig SensorConfig {
 3638      get { return sensorConfig_; }
 16639      set {
 16640        sensorConfig_ = value;
 16641      }
 642    }
 643
 644    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 645    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0646    public override bool Equals(object other) {
 0647      return Equals(other as DynamicConfig);
 0648    }
 649
 650    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 651    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0652    public bool Equals(DynamicConfig other) {
 0653      if (ReferenceEquals(other, null)) {
 0654        return false;
 655      }
 0656      if (ReferenceEquals(other, this)) {
 0657        return true;
 658      }
 0659      if (!object.Equals(FlightConfig, other.FlightConfig)) return false;
 0660      if (!object.Equals(SensorConfig, other.SensorConfig)) return false;
 0661      return Equals(_unknownFields, other._unknownFields);
 0662    }
 663
 664    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 665    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0666    public override int GetHashCode() {
 0667      int hash = 1;
 0668      if (flightConfig_ != null) hash ^= FlightConfig.GetHashCode();
 0669      if (sensorConfig_ != null) hash ^= SensorConfig.GetHashCode();
 0670      if (_unknownFields != null) {
 0671        hash ^= _unknownFields.GetHashCode();
 0672      }
 0673      return hash;
 0674    }
 675
 676    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 677    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0678    public override string ToString() {
 0679      return pb::JsonFormatter.ToDiagnosticString(this);
 0680    }
 681
 682    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 683    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0684    public void WriteTo(pb::CodedOutputStream output) {
 685    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0686      output.WriteRawMessage(this);
 687    #else
 688      if (flightConfig_ != null) {
 689        output.WriteRawTag(10);
 690        output.WriteMessage(FlightConfig);
 691      }
 692      if (sensorConfig_ != null) {
 693        output.WriteRawTag(18);
 694        output.WriteMessage(SensorConfig);
 695      }
 696      if (_unknownFields != null) {
 697        _unknownFields.WriteTo(output);
 698      }
 699    #endif
 0700    }
 701
 702    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 703    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 704    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0705    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0706      if (flightConfig_ != null) {
 0707        output.WriteRawTag(10);
 0708        output.WriteMessage(FlightConfig);
 0709      }
 0710      if (sensorConfig_ != null) {
 0711        output.WriteRawTag(18);
 0712        output.WriteMessage(SensorConfig);
 0713      }
 0714      if (_unknownFields != null) {
 0715        _unknownFields.WriteTo(ref output);
 0716      }
 0717    }
 718    #endif
 719
 720    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 721    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0722    public int CalculateSize() {
 0723      int size = 0;
 0724      if (flightConfig_ != null) {
 0725        size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlightConfig);
 0726      }
 0727      if (sensorConfig_ != null) {
 0728        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorConfig);
 0729      }
 0730      if (_unknownFields != null) {
 0731        size += _unknownFields.CalculateSize();
 0732      }
 0733      return size;
 0734    }
 735
 736    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 737    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0738    public void MergeFrom(DynamicConfig other) {
 0739      if (other == null) {
 0740        return;
 741      }
 0742      if (other.flightConfig_ != null) {
 0743        if (flightConfig_ == null) {
 0744          FlightConfig = new global::Configs.FlightConfig();
 0745        }
 0746        FlightConfig.MergeFrom(other.FlightConfig);
 0747      }
 0748      if (other.sensorConfig_ != null) {
 0749        if (sensorConfig_ == null) {
 0750          SensorConfig = new global::Simulation.SensorConfig();
 0751        }
 0752        SensorConfig.MergeFrom(other.SensorConfig);
 0753      }
 0754      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0755    }
 756
 757    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 758    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0759    public void MergeFrom(pb::CodedInputStream input) {
 760    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0761      input.ReadRawMessage(this);
 762    #else
 763      uint tag;
 764      while ((tag = input.ReadTag()) != 0) {
 765      if ((tag & 7) == 4) {
 766        // Abort on any end group tag.
 767        return;
 768      }
 769      switch(tag) {
 770          default:
 771            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 772            break;
 773          case 10: {
 774            if (flightConfig_ == null) {
 775              FlightConfig = new global::Configs.FlightConfig();
 776            }
 777            input.ReadMessage(FlightConfig);
 778            break;
 779          }
 780          case 18: {
 781            if (sensorConfig_ == null) {
 782              SensorConfig = new global::Simulation.SensorConfig();
 783            }
 784            input.ReadMessage(SensorConfig);
 785            break;
 786          }
 787        }
 788      }
 789    #endif
 0790    }
 791
 792    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 793    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 794    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0795    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 796      uint tag;
 0797      while ((tag = input.ReadTag()) != 0) {
 0798      if ((tag & 7) == 4) {
 799        // Abort on any end group tag.
 0800        return;
 801      }
 0802      switch(tag) {
 803          default:
 0804            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0805            break;
 0806          case 10: {
 0807            if (flightConfig_ == null) {
 0808              FlightConfig = new global::Configs.FlightConfig();
 0809            }
 0810            input.ReadMessage(FlightConfig);
 0811            break;
 812          }
 0813          case 18: {
 0814            if (sensorConfig_ == null) {
 0815              SensorConfig = new global::Simulation.SensorConfig();
 0816            }
 0817            input.ReadMessage(SensorConfig);
 0818            break;
 819          }
 820        }
 0821      }
 0822    }
 823    #endif
 824
 825  }
 826
 827  #endregion
 828
 829}
 830
 831#endregion Designer generated code