< Summary

Class:Configs.AgentConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/AgentConfig.cs
Covered lines:90
Uncovered lines:230
Coverable lines:320
Total lines:753
Line coverage:28.1% (90 of 320)
Covered branches:0
Total branches:0
Covered methods:21
Total methods:50
Method coverage:42% (21 of 50)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AgentConfig()0%110100%
get_Descriptor()0%2100%
AgentConfig(...)0%90900%
Clone()0%2100%
AgentConfig()0%110100%
Equals(...)0%2100%
Equals(...)0%90900%
GetHashCode()0%72800%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%72800%
CalculateSize()0%72800%
MergeFrom(...)0%1561200%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%14.1414091.11%
SubmunitionsConfig()0%110100%
get_Descriptor()0%2100%
SubmunitionsConfig()0%110100%
SubmunitionsConfig(...)0%12300%
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%30500%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%6.256080.95%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/agent_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/agent_config.proto</summary>
 15  public static partial class AgentConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/agent_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AgentConfigReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChpDb25maWdzL2FnZW50X2NvbmZpZy5wcm90bxIHY29uZmlncxocQ29uZmln",
 28            "cy9keW5hbWljX2NvbmZpZy5wcm90bxoWU2ltdWxhdGlvbi9zdGF0ZS5wcm90",
 29            "byLyAgoLQWdlbnRDb25maWcSEwoLY29uZmlnX2ZpbGUYASABKAkSIwobYXR0",
 30            "YWNrX2JlaGF2aW9yX2NvbmZpZ19maWxlGAIgASgJEigKDWluaXRpYWxfc3Rh",
 31            "dGUYAyABKAsyES5zaW11bGF0aW9uLlN0YXRlEi0KEnN0YW5kYXJkX2Rldmlh",
 32            "dGlvbhgEIAEoCzIRLnNpbXVsYXRpb24uU3RhdGUSLgoOZHluYW1pY19jb25m",
 33            "aWcYBSABKAsyFi5jb25maWdzLkR5bmFtaWNDb25maWcSRAoTc3VibXVuaXRp",
 34            "b25zX2NvbmZpZxgGIAEoCzInLmNvbmZpZ3MuQWdlbnRDb25maWcuU3VibXVu",
 35            "aXRpb25zQ29uZmlnGloKElN1Ym11bml0aW9uc0NvbmZpZxIYChBudW1fc3Vi",
 36            "bXVuaXRpb25zGAEgASgNEioKDGFnZW50X2NvbmZpZxgCIAEoCzIULmNvbmZp",
 37            "Z3MuQWdlbnRDb25maWdiBnByb3RvMw=="));
 38      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 39          new pbr::FileDescriptor[] { global::Configs.DynamicConfigReflection.Descriptor, global::Simulation.StateReflec
 40          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 41            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.AgentConfig), global::Configs.AgentConfig.Parser, new[]
 42          }));
 43    }
 44    #endregion
 45
 46  }
 47  #region Messages
 48  /// <summary>
 49  /// Agent configuration.
 50  /// </summary>
 51  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 52  public sealed partial class AgentConfig : pb::IMessage<AgentConfig>
 53  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 54      , pb::IBufferMessage
 55  #endif
 56  {
 157    private static readonly pb::MessageParser<AgentConfig> _parser = new pb::MessageParser<AgentConfig>(() => new AgentC
 58    private pb::UnknownFieldSet _unknownFields;
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 061    public static pb::MessageParser<AgentConfig> Parser { get { return _parser; } }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    public static pbr::MessageDescriptor Descriptor {
 066      get { return global::Configs.AgentConfigReflection.Descriptor.MessageTypes[0]; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    pbr::MessageDescriptor pb::IMessage.Descriptor {
 072      get { return Descriptor; }
 73    }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 10477    public AgentConfig() {
 78      OnConstruction();
 5279    }
 80
 81    partial void OnConstruction();
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 085    public AgentConfig(AgentConfig other) : this() {
 086      configFile_ = other.configFile_;
 087      attackBehaviorConfigFile_ = other.attackBehaviorConfigFile_;
 088      initialState_ = other.initialState_ != null ? other.initialState_.Clone() : null;
 089      standardDeviation_ = other.standardDeviation_ != null ? other.standardDeviation_.Clone() : null;
 090      dynamicConfig_ = other.dynamicConfig_ != null ? other.dynamicConfig_.Clone() : null;
 091      submunitionsConfig_ = other.submunitionsConfig_ != null ? other.submunitionsConfig_.Clone() : null;
 092      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 093    }
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 097    public AgentConfig Clone() {
 098      return new AgentConfig(this);
 099    }
 100
 101    /// <summary>Field number for the "config_file" field.</summary>
 102    public const int ConfigFileFieldNumber = 1;
 52103    private string configFile_ = "";
 104    /// <summary>
 105    /// Configuration file.
 106    /// </summary>
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public string ConfigFile {
 2265110      get { return configFile_; }
 52111      set {
 52112        configFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 52113      }
 114    }
 115
 116    /// <summary>Field number for the "attack_behavior_config_file" field.</summary>
 117    public const int AttackBehaviorConfigFileFieldNumber = 2;
 52118    private string attackBehaviorConfigFile_ = "";
 119    /// <summary>
 120    /// Attack behavior configuration file.
 121    /// </summary>
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public string AttackBehaviorConfigFile {
 2265125      get { return attackBehaviorConfigFile_; }
 32126      set {
 32127        attackBehaviorConfigFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 32128      }
 129    }
 130
 131    /// <summary>Field number for the "initial_state" field.</summary>
 132    public const int InitialStateFieldNumber = 3;
 133    private global::Simulation.State initialState_;
 134    /// <summary>
 135    /// Initial state.
 136    /// </summary>
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public global::Simulation.State InitialState {
 4626140      get { return initialState_; }
 32141      set {
 32142        initialState_ = value;
 32143      }
 144    }
 145
 146    /// <summary>Field number for the "standard_deviation" field.</summary>
 147    public const int StandardDeviationFieldNumber = 4;
 148    private global::Simulation.State standardDeviation_;
 149    /// <summary>
 150    /// Initial state standard deviation to randomize the state variables.
 151    /// </summary>
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public global::Simulation.State StandardDeviation {
 4626155      get { return standardDeviation_; }
 32156      set {
 32157        standardDeviation_ = value;
 32158      }
 159    }
 160
 161    /// <summary>Field number for the "dynamic_config" field.</summary>
 162    public const int DynamicConfigFieldNumber = 5;
 163    private global::Configs.DynamicConfig dynamicConfig_;
 164    /// <summary>
 165    /// Dynamic configuration.
 166    /// </summary>
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public global::Configs.DynamicConfig DynamicConfig {
 30357170      get { return dynamicConfig_; }
 52171      set {
 52172        dynamicConfig_ = value;
 52173      }
 174    }
 175
 176    /// <summary>Field number for the "submunitions_config" field.</summary>
 177    public const int SubmunitionsConfigFieldNumber = 6;
 178    private global::Configs.AgentConfig.Types.SubmunitionsConfig submunitionsConfig_;
 179    /// <summary>
 180    /// Submunitions configuration.
 181    /// </summary>
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public global::Configs.AgentConfig.Types.SubmunitionsConfig SubmunitionsConfig {
 30185      get { return submunitionsConfig_; }
 10186      set {
 10187        submunitionsConfig_ = value;
 10188      }
 189    }
 190
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0193    public override bool Equals(object other) {
 0194      return Equals(other as AgentConfig);
 0195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0199    public bool Equals(AgentConfig other) {
 0200      if (ReferenceEquals(other, null)) {
 0201        return false;
 202      }
 0203      if (ReferenceEquals(other, this)) {
 0204        return true;
 205      }
 0206      if (ConfigFile != other.ConfigFile) return false;
 0207      if (AttackBehaviorConfigFile != other.AttackBehaviorConfigFile) return false;
 0208      if (!object.Equals(InitialState, other.InitialState)) return false;
 0209      if (!object.Equals(StandardDeviation, other.StandardDeviation)) return false;
 0210      if (!object.Equals(DynamicConfig, other.DynamicConfig)) return false;
 0211      if (!object.Equals(SubmunitionsConfig, other.SubmunitionsConfig)) return false;
 0212      return Equals(_unknownFields, other._unknownFields);
 0213    }
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0217    public override int GetHashCode() {
 0218      int hash = 1;
 0219      if (ConfigFile.Length != 0) hash ^= ConfigFile.GetHashCode();
 0220      if (AttackBehaviorConfigFile.Length != 0) hash ^= AttackBehaviorConfigFile.GetHashCode();
 0221      if (initialState_ != null) hash ^= InitialState.GetHashCode();
 0222      if (standardDeviation_ != null) hash ^= StandardDeviation.GetHashCode();
 0223      if (dynamicConfig_ != null) hash ^= DynamicConfig.GetHashCode();
 0224      if (submunitionsConfig_ != null) hash ^= SubmunitionsConfig.GetHashCode();
 0225      if (_unknownFields != null) {
 0226        hash ^= _unknownFields.GetHashCode();
 0227      }
 0228      return hash;
 0229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0233    public override string ToString() {
 0234      return pb::JsonFormatter.ToDiagnosticString(this);
 0235    }
 236
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0239    public void WriteTo(pb::CodedOutputStream output) {
 240    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0241      output.WriteRawMessage(this);
 242    #else
 243      if (ConfigFile.Length != 0) {
 244        output.WriteRawTag(10);
 245        output.WriteString(ConfigFile);
 246      }
 247      if (AttackBehaviorConfigFile.Length != 0) {
 248        output.WriteRawTag(18);
 249        output.WriteString(AttackBehaviorConfigFile);
 250      }
 251      if (initialState_ != null) {
 252        output.WriteRawTag(26);
 253        output.WriteMessage(InitialState);
 254      }
 255      if (standardDeviation_ != null) {
 256        output.WriteRawTag(34);
 257        output.WriteMessage(StandardDeviation);
 258      }
 259      if (dynamicConfig_ != null) {
 260        output.WriteRawTag(42);
 261        output.WriteMessage(DynamicConfig);
 262      }
 263      if (submunitionsConfig_ != null) {
 264        output.WriteRawTag(50);
 265        output.WriteMessage(SubmunitionsConfig);
 266      }
 267      if (_unknownFields != null) {
 268        _unknownFields.WriteTo(output);
 269      }
 270    #endif
 0271    }
 272
 273    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0276    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0277      if (ConfigFile.Length != 0) {
 0278        output.WriteRawTag(10);
 0279        output.WriteString(ConfigFile);
 0280      }
 0281      if (AttackBehaviorConfigFile.Length != 0) {
 0282        output.WriteRawTag(18);
 0283        output.WriteString(AttackBehaviorConfigFile);
 0284      }
 0285      if (initialState_ != null) {
 0286        output.WriteRawTag(26);
 0287        output.WriteMessage(InitialState);
 0288      }
 0289      if (standardDeviation_ != null) {
 0290        output.WriteRawTag(34);
 0291        output.WriteMessage(StandardDeviation);
 0292      }
 0293      if (dynamicConfig_ != null) {
 0294        output.WriteRawTag(42);
 0295        output.WriteMessage(DynamicConfig);
 0296      }
 0297      if (submunitionsConfig_ != null) {
 0298        output.WriteRawTag(50);
 0299        output.WriteMessage(SubmunitionsConfig);
 0300      }
 0301      if (_unknownFields != null) {
 0302        _unknownFields.WriteTo(ref output);
 0303      }
 0304    }
 305    #endif
 306
 307    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 308    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0309    public int CalculateSize() {
 0310      int size = 0;
 0311      if (ConfigFile.Length != 0) {
 0312        size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigFile);
 0313      }
 0314      if (AttackBehaviorConfigFile.Length != 0) {
 0315        size += 1 + pb::CodedOutputStream.ComputeStringSize(AttackBehaviorConfigFile);
 0316      }
 0317      if (initialState_ != null) {
 0318        size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitialState);
 0319      }
 0320      if (standardDeviation_ != null) {
 0321        size += 1 + pb::CodedOutputStream.ComputeMessageSize(StandardDeviation);
 0322      }
 0323      if (dynamicConfig_ != null) {
 0324        size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicConfig);
 0325      }
 0326      if (submunitionsConfig_ != null) {
 0327        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubmunitionsConfig);
 0328      }
 0329      if (_unknownFields != null) {
 0330        size += _unknownFields.CalculateSize();
 0331      }
 0332      return size;
 0333    }
 334
 335    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 336    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0337    public void MergeFrom(AgentConfig other) {
 0338      if (other == null) {
 0339        return;
 340      }
 0341      if (other.ConfigFile.Length != 0) {
 0342        ConfigFile = other.ConfigFile;
 0343      }
 0344      if (other.AttackBehaviorConfigFile.Length != 0) {
 0345        AttackBehaviorConfigFile = other.AttackBehaviorConfigFile;
 0346      }
 0347      if (other.initialState_ != null) {
 0348        if (initialState_ == null) {
 0349          InitialState = new global::Simulation.State();
 0350        }
 0351        InitialState.MergeFrom(other.InitialState);
 0352      }
 0353      if (other.standardDeviation_ != null) {
 0354        if (standardDeviation_ == null) {
 0355          StandardDeviation = new global::Simulation.State();
 0356        }
 0357        StandardDeviation.MergeFrom(other.StandardDeviation);
 0358      }
 0359      if (other.dynamicConfig_ != null) {
 0360        if (dynamicConfig_ == null) {
 0361          DynamicConfig = new global::Configs.DynamicConfig();
 0362        }
 0363        DynamicConfig.MergeFrom(other.DynamicConfig);
 0364      }
 0365      if (other.submunitionsConfig_ != null) {
 0366        if (submunitionsConfig_ == null) {
 0367          SubmunitionsConfig = new global::Configs.AgentConfig.Types.SubmunitionsConfig();
 0368        }
 0369        SubmunitionsConfig.MergeFrom(other.SubmunitionsConfig);
 0370      }
 0371      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0372    }
 373
 374    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 375    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0376    public void MergeFrom(pb::CodedInputStream input) {
 377    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0378      input.ReadRawMessage(this);
 379    #else
 380      uint tag;
 381      while ((tag = input.ReadTag()) != 0) {
 382      if ((tag & 7) == 4) {
 383        // Abort on any end group tag.
 384        return;
 385      }
 386      switch(tag) {
 387          default:
 388            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 389            break;
 390          case 10: {
 391            ConfigFile = input.ReadString();
 392            break;
 393          }
 394          case 18: {
 395            AttackBehaviorConfigFile = input.ReadString();
 396            break;
 397          }
 398          case 26: {
 399            if (initialState_ == null) {
 400              InitialState = new global::Simulation.State();
 401            }
 402            input.ReadMessage(InitialState);
 403            break;
 404          }
 405          case 34: {
 406            if (standardDeviation_ == null) {
 407              StandardDeviation = new global::Simulation.State();
 408            }
 409            input.ReadMessage(StandardDeviation);
 410            break;
 411          }
 412          case 42: {
 413            if (dynamicConfig_ == null) {
 414              DynamicConfig = new global::Configs.DynamicConfig();
 415            }
 416            input.ReadMessage(DynamicConfig);
 417            break;
 418          }
 419          case 50: {
 420            if (submunitionsConfig_ == null) {
 421              SubmunitionsConfig = new global::Configs.AgentConfig.Types.SubmunitionsConfig();
 422            }
 423            input.ReadMessage(SubmunitionsConfig);
 424            break;
 425          }
 426        }
 427      }
 428    #endif
 0429    }
 430
 431    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 432    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 433    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 52434    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 435      uint tag;
 472436      while ((tag = input.ReadTag()) != 0) {
 210437      if ((tag & 7) == 4) {
 438        // Abort on any end group tag.
 0439        return;
 440      }
 210441      switch(tag) {
 442          default:
 0443            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0444            break;
 52445          case 10: {
 52446            ConfigFile = input.ReadString();
 52447            break;
 448          }
 32449          case 18: {
 32450            AttackBehaviorConfigFile = input.ReadString();
 32451            break;
 452          }
 32453          case 26: {
 64454            if (initialState_ == null) {
 32455              InitialState = new global::Simulation.State();
 32456            }
 32457            input.ReadMessage(InitialState);
 32458            break;
 459          }
 32460          case 34: {
 64461            if (standardDeviation_ == null) {
 32462              StandardDeviation = new global::Simulation.State();
 32463            }
 32464            input.ReadMessage(StandardDeviation);
 32465            break;
 466          }
 52467          case 42: {
 104468            if (dynamicConfig_ == null) {
 52469              DynamicConfig = new global::Configs.DynamicConfig();
 52470            }
 52471            input.ReadMessage(DynamicConfig);
 52472            break;
 473          }
 10474          case 50: {
 20475            if (submunitionsConfig_ == null) {
 10476              SubmunitionsConfig = new global::Configs.AgentConfig.Types.SubmunitionsConfig();
 10477            }
 10478            input.ReadMessage(SubmunitionsConfig);
 10479            break;
 480          }
 481        }
 210482      }
 52483    }
 484    #endif
 485
 486    #region Nested types
 487    /// <summary>Container for nested types declared in the AgentConfig message type.</summary>
 488    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 489    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 490    public static partial class Types {
 491      /// <summary>
 492      /// Submunitions configuration.
 493      /// </summary>
 494      [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 495      public sealed partial class SubmunitionsConfig : pb::IMessage<SubmunitionsConfig>
 496      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 497          , pb::IBufferMessage
 498      #endif
 499      {
 1500        private static readonly pb::MessageParser<SubmunitionsConfig> _parser = new pb::MessageParser<SubmunitionsConfig
 501        private pb::UnknownFieldSet _unknownFields;
 502        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0504        public static pb::MessageParser<SubmunitionsConfig> Parser { get { return _parser; } }
 505
 506        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 507        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 508        public static pbr::MessageDescriptor Descriptor {
 0509          get { return global::Configs.AgentConfig.Descriptor.NestedTypes[0]; }
 510        }
 511
 512        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 513        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 514        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0515          get { return Descriptor; }
 516        }
 517
 518        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 519        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 20520        public SubmunitionsConfig() {
 521          OnConstruction();
 10522        }
 523
 524        partial void OnConstruction();
 525
 526        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 527        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0528        public SubmunitionsConfig(SubmunitionsConfig other) : this() {
 0529          numSubmunitions_ = other.numSubmunitions_;
 0530          agentConfig_ = other.agentConfig_ != null ? other.agentConfig_.Clone() : null;
 0531          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0532        }
 533
 534        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 535        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0536        public SubmunitionsConfig Clone() {
 0537          return new SubmunitionsConfig(this);
 0538        }
 539
 540        /// <summary>Field number for the "num_submunitions" field.</summary>
 541        public const int NumSubmunitionsFieldNumber = 1;
 542        private uint numSubmunitions_;
 543        /// <summary>
 544        /// Number of submunitions.
 545        /// </summary>
 546        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 547        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 548        public uint NumSubmunitions {
 0549          get { return numSubmunitions_; }
 10550          set {
 10551            numSubmunitions_ = value;
 10552          }
 553        }
 554
 555        /// <summary>Field number for the "agent_config" field.</summary>
 556        public const int AgentConfigFieldNumber = 2;
 557        private global::Configs.AgentConfig agentConfig_;
 558        /// <summary>
 559        /// Agent configuration.
 560        /// </summary>
 561        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 562        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 563        public global::Configs.AgentConfig AgentConfig {
 30564          get { return agentConfig_; }
 10565          set {
 10566            agentConfig_ = value;
 10567          }
 568        }
 569
 570        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 571        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0572        public override bool Equals(object other) {
 0573          return Equals(other as SubmunitionsConfig);
 0574        }
 575
 576        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 577        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0578        public bool Equals(SubmunitionsConfig other) {
 0579          if (ReferenceEquals(other, null)) {
 0580            return false;
 581          }
 0582          if (ReferenceEquals(other, this)) {
 0583            return true;
 584          }
 0585          if (NumSubmunitions != other.NumSubmunitions) return false;
 0586          if (!object.Equals(AgentConfig, other.AgentConfig)) return false;
 0587          return Equals(_unknownFields, other._unknownFields);
 0588        }
 589
 590        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 591        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0592        public override int GetHashCode() {
 0593          int hash = 1;
 0594          if (NumSubmunitions != 0) hash ^= NumSubmunitions.GetHashCode();
 0595          if (agentConfig_ != null) hash ^= AgentConfig.GetHashCode();
 0596          if (_unknownFields != null) {
 0597            hash ^= _unknownFields.GetHashCode();
 0598          }
 0599          return hash;
 0600        }
 601
 602        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 603        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0604        public override string ToString() {
 0605          return pb::JsonFormatter.ToDiagnosticString(this);
 0606        }
 607
 608        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 609        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0610        public void WriteTo(pb::CodedOutputStream output) {
 611        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0612          output.WriteRawMessage(this);
 613        #else
 614          if (NumSubmunitions != 0) {
 615            output.WriteRawTag(8);
 616            output.WriteUInt32(NumSubmunitions);
 617          }
 618          if (agentConfig_ != null) {
 619            output.WriteRawTag(18);
 620            output.WriteMessage(AgentConfig);
 621          }
 622          if (_unknownFields != null) {
 623            _unknownFields.WriteTo(output);
 624          }
 625        #endif
 0626        }
 627
 628        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 629        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 630        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0631        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0632          if (NumSubmunitions != 0) {
 0633            output.WriteRawTag(8);
 0634            output.WriteUInt32(NumSubmunitions);
 0635          }
 0636          if (agentConfig_ != null) {
 0637            output.WriteRawTag(18);
 0638            output.WriteMessage(AgentConfig);
 0639          }
 0640          if (_unknownFields != null) {
 0641            _unknownFields.WriteTo(ref output);
 0642          }
 0643        }
 644        #endif
 645
 646        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 647        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0648        public int CalculateSize() {
 0649          int size = 0;
 0650          if (NumSubmunitions != 0) {
 0651            size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumSubmunitions);
 0652          }
 0653          if (agentConfig_ != null) {
 0654            size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentConfig);
 0655          }
 0656          if (_unknownFields != null) {
 0657            size += _unknownFields.CalculateSize();
 0658          }
 0659          return size;
 0660        }
 661
 662        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 663        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0664        public void MergeFrom(SubmunitionsConfig other) {
 0665          if (other == null) {
 0666            return;
 667          }
 0668          if (other.NumSubmunitions != 0) {
 0669            NumSubmunitions = other.NumSubmunitions;
 0670          }
 0671          if (other.agentConfig_ != null) {
 0672            if (agentConfig_ == null) {
 0673              AgentConfig = new global::Configs.AgentConfig();
 0674            }
 0675            AgentConfig.MergeFrom(other.AgentConfig);
 0676          }
 0677          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0678        }
 679
 680        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 681        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0682        public void MergeFrom(pb::CodedInputStream input) {
 683        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0684          input.ReadRawMessage(this);
 685        #else
 686          uint tag;
 687          while ((tag = input.ReadTag()) != 0) {
 688          if ((tag & 7) == 4) {
 689            // Abort on any end group tag.
 690            return;
 691          }
 692          switch(tag) {
 693              default:
 694                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 695                break;
 696              case 8: {
 697                NumSubmunitions = input.ReadUInt32();
 698                break;
 699              }
 700              case 18: {
 701                if (agentConfig_ == null) {
 702                  AgentConfig = new global::Configs.AgentConfig();
 703                }
 704                input.ReadMessage(AgentConfig);
 705                break;
 706              }
 707            }
 708          }
 709        #endif
 0710        }
 711
 712        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 713        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 714        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 10715        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 716          uint tag;
 50717          while ((tag = input.ReadTag()) != 0) {
 20718          if ((tag & 7) == 4) {
 719            // Abort on any end group tag.
 0720            return;
 721          }
 20722          switch(tag) {
 723              default:
 0724                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0725                break;
 10726              case 8: {
 10727                NumSubmunitions = input.ReadUInt32();
 10728                break;
 729              }
 10730              case 18: {
 20731                if (agentConfig_ == null) {
 10732                  AgentConfig = new global::Configs.AgentConfig();
 10733                }
 10734                input.ReadMessage(AgentConfig);
 10735                break;
 736              }
 737            }
 20738          }
 10739        }
 740        #endif
 741
 742      }
 743
 744    }
 745    #endregion
 746
 747  }
 748
 749  #endregion
 750
 751}
 752
 753#endregion Designer generated code