< Summary

Class:Micromissiles.FlightConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/DynamicConfig.cs
Covered lines:0
Uncovered lines:215
Coverable lines:215
Total lines:831
Line coverage:0% (0 of 215)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:42
Method coverage:0% (0 of 42)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
FlightConfig()0%2100%
get_Descriptor()0%2100%
FlightConfig(...)0%12300%
Clone()0%2100%
FlightConfig()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%30500%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%42600%
EvasionConfig()0%2100%
get_Descriptor()0%2100%
EvasionConfig()0%2100%
EvasionConfig(...)0%2100%
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%20400%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%30500%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/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 Micromissiles {
 13
 14  /// <summary>Holder for reflection information generated from configs/proto/dynamic_config.proto</summary>
 15  public static partial class DynamicConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/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            "CiJjb25maWdzL3Byb3RvL2R5bmFtaWNfY29uZmlnLnByb3RvEg1taWNyb21p",
 28            "c3NpbGVzGhpjb25maWdzL3Byb3RvL3NlbnNvci5wcm90byK4AQoMRmxpZ2h0",
 29            "Q29uZmlnEjEKCmNvbnRyb2xsZXIYASABKA4yHS5taWNyb21pc3NpbGVzLkNv",
 30            "bnRyb2xsZXJUeXBlEjoKB2V2YXNpb24YAiABKAsyKS5taWNyb21pc3NpbGVz",
 31            "LkZsaWdodENvbmZpZy5FdmFzaW9uQ29uZmlnGjkKDUV2YXNpb25Db25maWcS",
 32            "DwoHZW5hYmxlZBgBIAEoCBIXCg9yYW5nZV90aHJlc2hvbGQYAiABKAIidwoN",
 33            "RHluYW1pY0NvbmZpZxIyCg1mbGlnaHRfY29uZmlnGAEgASgLMhsubWljcm9t",
 34            "aXNzaWxlcy5GbGlnaHRDb25maWcSMgoNc2Vuc29yX2NvbmZpZxgCIAEoCzIb",
 35            "Lm1pY3JvbWlzc2lsZXMuU2Vuc29yQ29uZmlnKlQKDkNvbnRyb2xsZXJUeXBl",
 36            "EhsKF1BST1BPUlRJT05BTF9OQVZJR0FUSU9OEAASJQohQVVHTUVOVEVEX1BS",
 37            "T1BPUlRJT05BTF9OQVZJR0FUSU9OEAFiBnByb3RvMw=="));
 38      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 39          new pbr::FileDescriptor[] { global::Micromissiles.SensorReflection.Descriptor, },
 40          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Micromissiles.ControllerType), }, null, new pbr::Generated
 41            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.FlightConfig), global::Micromissiles.FlightConfig
 42            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.DynamicConfig), global::Micromissiles.DynamicConf
 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  {
 069    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)]
 073    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 {
 078      get { return global::Micromissiles.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 {
 084      get { return Descriptor; }
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 089    public FlightConfig() {
 90      OnConstruction();
 091    }
 92
 93    partial void OnConstruction();
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 097    public FlightConfig(FlightConfig other) : this() {
 098      controller_ = other.controller_;
 099      evasion_ = other.evasion_ != null ? other.evasion_.Clone() : null;
 0100      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0101    }
 102
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0105    public FlightConfig Clone() {
 0106      return new FlightConfig(this);
 0107    }
 108
 109    /// <summary>Field number for the "controller" field.</summary>
 110    public const int ControllerFieldNumber = 1;
 0111    private global::Micromissiles.ControllerType controller_ = global::Micromissiles.ControllerType.ProportionalNavigati
 112    /// <summary>
 113    /// Controller type.
 114    /// </summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public global::Micromissiles.ControllerType Controller {
 0118      get { return controller_; }
 0119      set {
 0120        controller_ = value;
 0121      }
 122    }
 123
 124    /// <summary>Field number for the "evasion" field.</summary>
 125    public const int EvasionFieldNumber = 2;
 126    private global::Micromissiles.FlightConfig.Types.EvasionConfig evasion_;
 127    /// <summary>
 128    /// Evasion configuration.
 129    /// </summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public global::Micromissiles.FlightConfig.Types.EvasionConfig Evasion {
 0133      get { return evasion_; }
 0134      set {
 0135        evasion_ = value;
 0136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0141    public override bool Equals(object other) {
 0142      return Equals(other as FlightConfig);
 0143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0147    public bool Equals(FlightConfig other) {
 0148      if (ReferenceEquals(other, null)) {
 0149        return false;
 150      }
 0151      if (ReferenceEquals(other, this)) {
 0152        return true;
 153      }
 0154      if (Controller != other.Controller) return false;
 0155      if (!object.Equals(Evasion, other.Evasion)) return false;
 0156      return Equals(_unknownFields, other._unknownFields);
 0157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0161    public override int GetHashCode() {
 0162      int hash = 1;
 0163      if (Controller != global::Micromissiles.ControllerType.ProportionalNavigation) hash ^= Controller.GetHashCode();
 0164      if (evasion_ != null) hash ^= Evasion.GetHashCode();
 0165      if (_unknownFields != null) {
 0166        hash ^= _unknownFields.GetHashCode();
 0167      }
 0168      return hash;
 0169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0173    public override string ToString() {
 0174      return pb::JsonFormatter.ToDiagnosticString(this);
 0175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0179    public void WriteTo(pb::CodedOutputStream output) {
 180    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0181      output.WriteRawMessage(this);
 182    #else
 183      if (Controller != global::Micromissiles.ControllerType.ProportionalNavigation) {
 184        output.WriteRawTag(8);
 185        output.WriteEnum((int) Controller);
 186      }
 187      if (evasion_ != null) {
 188        output.WriteRawTag(18);
 189        output.WriteMessage(Evasion);
 190      }
 191      if (_unknownFields != null) {
 192        _unknownFields.WriteTo(output);
 193      }
 194    #endif
 0195    }
 196
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0200    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0201      if (Controller != global::Micromissiles.ControllerType.ProportionalNavigation) {
 0202        output.WriteRawTag(8);
 0203        output.WriteEnum((int) Controller);
 0204      }
 0205      if (evasion_ != null) {
 0206        output.WriteRawTag(18);
 0207        output.WriteMessage(Evasion);
 0208      }
 0209      if (_unknownFields != null) {
 0210        _unknownFields.WriteTo(ref output);
 0211      }
 0212    }
 213    #endif
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0217    public int CalculateSize() {
 0218      int size = 0;
 0219      if (Controller != global::Micromissiles.ControllerType.ProportionalNavigation) {
 0220        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Controller);
 0221      }
 0222      if (evasion_ != null) {
 0223        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Evasion);
 0224      }
 0225      if (_unknownFields != null) {
 0226        size += _unknownFields.CalculateSize();
 0227      }
 0228      return size;
 0229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0233    public void MergeFrom(FlightConfig other) {
 0234      if (other == null) {
 0235        return;
 236      }
 0237      if (other.Controller != global::Micromissiles.ControllerType.ProportionalNavigation) {
 0238        Controller = other.Controller;
 0239      }
 0240      if (other.evasion_ != null) {
 0241        if (evasion_ == null) {
 0242          Evasion = new global::Micromissiles.FlightConfig.Types.EvasionConfig();
 0243        }
 0244        Evasion.MergeFrom(other.Evasion);
 0245      }
 0246      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0251    public void MergeFrom(pb::CodedInputStream input) {
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0253      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            Controller = (global::Micromissiles.ControllerType) input.ReadEnum();
 267            break;
 268          }
 269          case 18: {
 270            if (evasion_ == null) {
 271              Evasion = new global::Micromissiles.FlightConfig.Types.EvasionConfig();
 272            }
 273            input.ReadMessage(Evasion);
 274            break;
 275          }
 276        }
 277      }
 278    #endif
 0279    }
 280
 281    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0284    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 285      uint tag;
 0286      while ((tag = input.ReadTag()) != 0) {
 0287      if ((tag & 7) == 4) {
 288        // Abort on any end group tag.
 0289        return;
 290      }
 0291      switch(tag) {
 292          default:
 0293            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0294            break;
 0295          case 8: {
 0296            Controller = (global::Micromissiles.ControllerType) input.ReadEnum();
 0297            break;
 298          }
 0299          case 18: {
 0300            if (evasion_ == null) {
 0301              Evasion = new global::Micromissiles.FlightConfig.Types.EvasionConfig();
 0302            }
 0303            input.ReadMessage(Evasion);
 0304            break;
 305          }
 306        }
 0307      }
 0308    }
 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      {
 0325        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)]
 0329        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 {
 0334          get { return global::Micromissiles.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 {
 0340          get { return Descriptor; }
 341        }
 342
 343        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0345        public EvasionConfig() {
 346          OnConstruction();
 0347        }
 348
 349        partial void OnConstruction();
 350
 351        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0353        public EvasionConfig(EvasionConfig other) : this() {
 0354          enabled_ = other.enabled_;
 0355          rangeThreshold_ = other.rangeThreshold_;
 0356          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0357        }
 358
 359        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 360        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0361        public EvasionConfig Clone() {
 0362          return new EvasionConfig(this);
 0363        }
 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 {
 0374          get { return enabled_; }
 0375          set {
 0376            enabled_ = value;
 0377          }
 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 {
 0389          get { return rangeThreshold_; }
 0390          set {
 0391            rangeThreshold_ = value;
 0392          }
 393        }
 394
 395        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0397        public override bool Equals(object other) {
 0398          return Equals(other as EvasionConfig);
 0399        }
 400
 401        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0403        public bool Equals(EvasionConfig other) {
 0404          if (ReferenceEquals(other, null)) {
 0405            return false;
 406          }
 0407          if (ReferenceEquals(other, this)) {
 0408            return true;
 409          }
 0410          if (Enabled != other.Enabled) return false;
 0411          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RangeThreshold, other.RangeThreshold)
 0412          return Equals(_unknownFields, other._unknownFields);
 0413        }
 414
 415        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 416        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0417        public override int GetHashCode() {
 0418          int hash = 1;
 0419          if (Enabled != false) hash ^= Enabled.GetHashCode();
 0420          if (RangeThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ran
 0421          if (_unknownFields != null) {
 0422            hash ^= _unknownFields.GetHashCode();
 0423          }
 0424          return hash;
 0425        }
 426
 427        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 428        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0429        public override string ToString() {
 0430          return pb::JsonFormatter.ToDiagnosticString(this);
 0431        }
 432
 433        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 434        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0435        public void WriteTo(pb::CodedOutputStream output) {
 436        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0437          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
 0451        }
 452
 453        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 454        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0456        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0457          if (Enabled != false) {
 0458            output.WriteRawTag(8);
 0459            output.WriteBool(Enabled);
 0460          }
 0461          if (RangeThreshold != 0F) {
 0462            output.WriteRawTag(21);
 0463            output.WriteFloat(RangeThreshold);
 0464          }
 0465          if (_unknownFields != null) {
 0466            _unknownFields.WriteTo(ref output);
 0467          }
 0468        }
 469        #endif
 470
 471        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 472        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0473        public int CalculateSize() {
 0474          int size = 0;
 0475          if (Enabled != false) {
 0476            size += 1 + 1;
 0477          }
 0478          if (RangeThreshold != 0F) {
 0479            size += 1 + 4;
 0480          }
 0481          if (_unknownFields != null) {
 0482            size += _unknownFields.CalculateSize();
 0483          }
 0484          return size;
 0485        }
 486
 487        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 488        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0489        public void MergeFrom(EvasionConfig other) {
 0490          if (other == null) {
 0491            return;
 492          }
 0493          if (other.Enabled != false) {
 0494            Enabled = other.Enabled;
 0495          }
 0496          if (other.RangeThreshold != 0F) {
 0497            RangeThreshold = other.RangeThreshold;
 0498          }
 0499          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0500        }
 501
 502        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0504        public void MergeFrom(pb::CodedInputStream input) {
 505        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0506          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
 0529        }
 530
 531        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 532        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 533        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0534        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 535          uint tag;
 0536          while ((tag = input.ReadTag()) != 0) {
 0537          if ((tag & 7) == 4) {
 538            // Abort on any end group tag.
 0539            return;
 540          }
 0541          switch(tag) {
 542              default:
 0543                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0544                break;
 0545              case 8: {
 0546                Enabled = input.ReadBool();
 0547                break;
 548              }
 0549              case 21: {
 0550                RangeThreshold = input.ReadFloat();
 0551                break;
 552              }
 553            }
 0554          }
 0555        }
 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  {
 574    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)]
 578    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 {
 583      get { return global::Micromissiles.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 {
 589      get { return Descriptor; }
 590    }
 591
 592    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 593    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 594    public DynamicConfig() {
 595      OnConstruction();
 596    }
 597
 598    partial void OnConstruction();
 599
 600    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 601    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 602    public DynamicConfig(DynamicConfig other) : this() {
 603      flightConfig_ = other.flightConfig_ != null ? other.flightConfig_.Clone() : null;
 604      sensorConfig_ = other.sensorConfig_ != null ? other.sensorConfig_.Clone() : null;
 605      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 606    }
 607
 608    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 609    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 610    public DynamicConfig Clone() {
 611      return new DynamicConfig(this);
 612    }
 613
 614    /// <summary>Field number for the "flight_config" field.</summary>
 615    public const int FlightConfigFieldNumber = 1;
 616    private global::Micromissiles.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::Micromissiles.FlightConfig FlightConfig {
 623      get { return flightConfig_; }
 624      set {
 625        flightConfig_ = value;
 626      }
 627    }
 628
 629    /// <summary>Field number for the "sensor_config" field.</summary>
 630    public const int SensorConfigFieldNumber = 2;
 631    private global::Micromissiles.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::Micromissiles.SensorConfig SensorConfig {
 638      get { return sensorConfig_; }
 639      set {
 640        sensorConfig_ = value;
 641      }
 642    }
 643
 644    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 645    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 646    public override bool Equals(object other) {
 647      return Equals(other as DynamicConfig);
 648    }
 649
 650    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 651    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 652    public bool Equals(DynamicConfig other) {
 653      if (ReferenceEquals(other, null)) {
 654        return false;
 655      }
 656      if (ReferenceEquals(other, this)) {
 657        return true;
 658      }
 659      if (!object.Equals(FlightConfig, other.FlightConfig)) return false;
 660      if (!object.Equals(SensorConfig, other.SensorConfig)) return false;
 661      return Equals(_unknownFields, other._unknownFields);
 662    }
 663
 664    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 665    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 666    public override int GetHashCode() {
 667      int hash = 1;
 668      if (flightConfig_ != null) hash ^= FlightConfig.GetHashCode();
 669      if (sensorConfig_ != null) hash ^= SensorConfig.GetHashCode();
 670      if (_unknownFields != null) {
 671        hash ^= _unknownFields.GetHashCode();
 672      }
 673      return hash;
 674    }
 675
 676    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 677    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 678    public override string ToString() {
 679      return pb::JsonFormatter.ToDiagnosticString(this);
 680    }
 681
 682    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 683    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 684    public void WriteTo(pb::CodedOutputStream output) {
 685    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 686      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
 700    }
 701
 702    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 703    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 704    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 705    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 706      if (flightConfig_ != null) {
 707        output.WriteRawTag(10);
 708        output.WriteMessage(FlightConfig);
 709      }
 710      if (sensorConfig_ != null) {
 711        output.WriteRawTag(18);
 712        output.WriteMessage(SensorConfig);
 713      }
 714      if (_unknownFields != null) {
 715        _unknownFields.WriteTo(ref output);
 716      }
 717    }
 718    #endif
 719
 720    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 721    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 722    public int CalculateSize() {
 723      int size = 0;
 724      if (flightConfig_ != null) {
 725        size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlightConfig);
 726      }
 727      if (sensorConfig_ != null) {
 728        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorConfig);
 729      }
 730      if (_unknownFields != null) {
 731        size += _unknownFields.CalculateSize();
 732      }
 733      return size;
 734    }
 735
 736    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 737    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 738    public void MergeFrom(DynamicConfig other) {
 739      if (other == null) {
 740        return;
 741      }
 742      if (other.flightConfig_ != null) {
 743        if (flightConfig_ == null) {
 744          FlightConfig = new global::Micromissiles.FlightConfig();
 745        }
 746        FlightConfig.MergeFrom(other.FlightConfig);
 747      }
 748      if (other.sensorConfig_ != null) {
 749        if (sensorConfig_ == null) {
 750          SensorConfig = new global::Micromissiles.SensorConfig();
 751        }
 752        SensorConfig.MergeFrom(other.SensorConfig);
 753      }
 754      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 755    }
 756
 757    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 758    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 759    public void MergeFrom(pb::CodedInputStream input) {
 760    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 761      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::Micromissiles.FlightConfig();
 776            }
 777            input.ReadMessage(FlightConfig);
 778            break;
 779          }
 780          case 18: {
 781            if (sensorConfig_ == null) {
 782              SensorConfig = new global::Micromissiles.SensorConfig();
 783            }
 784            input.ReadMessage(SensorConfig);
 785            break;
 786          }
 787        }
 788      }
 789    #endif
 790    }
 791
 792    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 793    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 794    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 795    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 796      uint tag;
 797      while ((tag = input.ReadTag()) != 0) {
 798      if ((tag & 7) == 4) {
 799        // Abort on any end group tag.
 800        return;
 801      }
 802      switch(tag) {
 803          default:
 804            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 805            break;
 806          case 10: {
 807            if (flightConfig_ == null) {
 808              FlightConfig = new global::Micromissiles.FlightConfig();
 809            }
 810            input.ReadMessage(FlightConfig);
 811            break;
 812          }
 813          case 18: {
 814            if (sensorConfig_ == null) {
 815              SensorConfig = new global::Micromissiles.SensorConfig();
 816            }
 817            input.ReadMessage(SensorConfig);
 818            break;
 819          }
 820        }
 821      }
 822    }
 823    #endif
 824
 825  }
 826
 827  #endregion
 828
 829}
 830
 831#endregion Designer generated code