| | | 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 | | |
| | | 8 | | using pb = global::Google.Protobuf; |
| | | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | | 11 | | using scg = global::System.Collections.Generic; |
| | | 12 | | namespace 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 { |
| | 0 | 20 | | get { return descriptor; } |
| | | 21 | | } |
| | | 22 | | private static pbr::FileDescriptor descriptor; |
| | | 23 | | |
| | 0 | 24 | | static AgentConfigReflection() { |
| | 0 | 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==")); |
| | 0 | 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 | | })); |
| | 0 | 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 | | { |
| | | 57 | | 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)] |
| | | 61 | | 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 { |
| | | 66 | | 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 { |
| | | 72 | | get { return Descriptor; } |
| | | 73 | | } |
| | | 74 | | |
| | | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 77 | | public AgentConfig() { |
| | | 78 | | OnConstruction(); |
| | | 79 | | } |
| | | 80 | | |
| | | 81 | | partial void OnConstruction(); |
| | | 82 | | |
| | | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 85 | | public AgentConfig(AgentConfig other) : this() { |
| | | 86 | | configFile_ = other.configFile_; |
| | | 87 | | attackBehaviorConfigFile_ = other.attackBehaviorConfigFile_; |
| | | 88 | | initialState_ = other.initialState_ != null ? other.initialState_.Clone() : null; |
| | | 89 | | standardDeviation_ = other.standardDeviation_ != null ? other.standardDeviation_.Clone() : null; |
| | | 90 | | dynamicConfig_ = other.dynamicConfig_ != null ? other.dynamicConfig_.Clone() : null; |
| | | 91 | | submunitionsConfig_ = other.submunitionsConfig_ != null ? other.submunitionsConfig_.Clone() : null; |
| | | 92 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | | 93 | | } |
| | | 94 | | |
| | | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 97 | | public AgentConfig Clone() { |
| | | 98 | | return new AgentConfig(this); |
| | | 99 | | } |
| | | 100 | | |
| | | 101 | | /// <summary>Field number for the "config_file" field.</summary> |
| | | 102 | | public const int ConfigFileFieldNumber = 1; |
| | | 103 | | 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 { |
| | | 110 | | get { return configFile_; } |
| | | 111 | | set { |
| | | 112 | | configFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | | 113 | | } |
| | | 114 | | } |
| | | 115 | | |
| | | 116 | | /// <summary>Field number for the "attack_behavior_config_file" field.</summary> |
| | | 117 | | public const int AttackBehaviorConfigFileFieldNumber = 2; |
| | | 118 | | 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 { |
| | | 125 | | get { return attackBehaviorConfigFile_; } |
| | | 126 | | set { |
| | | 127 | | attackBehaviorConfigFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | | 128 | | } |
| | | 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 { |
| | | 140 | | get { return initialState_; } |
| | | 141 | | set { |
| | | 142 | | initialState_ = value; |
| | | 143 | | } |
| | | 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 { |
| | | 155 | | get { return standardDeviation_; } |
| | | 156 | | set { |
| | | 157 | | standardDeviation_ = value; |
| | | 158 | | } |
| | | 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 { |
| | | 170 | | get { return dynamicConfig_; } |
| | | 171 | | set { |
| | | 172 | | dynamicConfig_ = value; |
| | | 173 | | } |
| | | 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 { |
| | | 185 | | get { return submunitionsConfig_; } |
| | | 186 | | set { |
| | | 187 | | submunitionsConfig_ = value; |
| | | 188 | | } |
| | | 189 | | } |
| | | 190 | | |
| | | 191 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 192 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 193 | | public override bool Equals(object other) { |
| | | 194 | | return Equals(other as AgentConfig); |
| | | 195 | | } |
| | | 196 | | |
| | | 197 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 198 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 199 | | public bool Equals(AgentConfig other) { |
| | | 200 | | if (ReferenceEquals(other, null)) { |
| | | 201 | | return false; |
| | | 202 | | } |
| | | 203 | | if (ReferenceEquals(other, this)) { |
| | | 204 | | return true; |
| | | 205 | | } |
| | | 206 | | if (ConfigFile != other.ConfigFile) return false; |
| | | 207 | | if (AttackBehaviorConfigFile != other.AttackBehaviorConfigFile) return false; |
| | | 208 | | if (!object.Equals(InitialState, other.InitialState)) return false; |
| | | 209 | | if (!object.Equals(StandardDeviation, other.StandardDeviation)) return false; |
| | | 210 | | if (!object.Equals(DynamicConfig, other.DynamicConfig)) return false; |
| | | 211 | | if (!object.Equals(SubmunitionsConfig, other.SubmunitionsConfig)) return false; |
| | | 212 | | return Equals(_unknownFields, other._unknownFields); |
| | | 213 | | } |
| | | 214 | | |
| | | 215 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 216 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 217 | | public override int GetHashCode() { |
| | | 218 | | int hash = 1; |
| | | 219 | | if (ConfigFile.Length != 0) hash ^= ConfigFile.GetHashCode(); |
| | | 220 | | if (AttackBehaviorConfigFile.Length != 0) hash ^= AttackBehaviorConfigFile.GetHashCode(); |
| | | 221 | | if (initialState_ != null) hash ^= InitialState.GetHashCode(); |
| | | 222 | | if (standardDeviation_ != null) hash ^= StandardDeviation.GetHashCode(); |
| | | 223 | | if (dynamicConfig_ != null) hash ^= DynamicConfig.GetHashCode(); |
| | | 224 | | if (submunitionsConfig_ != null) hash ^= SubmunitionsConfig.GetHashCode(); |
| | | 225 | | if (_unknownFields != null) { |
| | | 226 | | hash ^= _unknownFields.GetHashCode(); |
| | | 227 | | } |
| | | 228 | | return hash; |
| | | 229 | | } |
| | | 230 | | |
| | | 231 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 232 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 233 | | public override string ToString() { |
| | | 234 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | | 235 | | } |
| | | 236 | | |
| | | 237 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 238 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 239 | | public void WriteTo(pb::CodedOutputStream output) { |
| | | 240 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 241 | | 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 |
| | | 271 | | } |
| | | 272 | | |
| | | 273 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 274 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 275 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 276 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | | 277 | | if (ConfigFile.Length != 0) { |
| | | 278 | | output.WriteRawTag(10); |
| | | 279 | | output.WriteString(ConfigFile); |
| | | 280 | | } |
| | | 281 | | if (AttackBehaviorConfigFile.Length != 0) { |
| | | 282 | | output.WriteRawTag(18); |
| | | 283 | | output.WriteString(AttackBehaviorConfigFile); |
| | | 284 | | } |
| | | 285 | | if (initialState_ != null) { |
| | | 286 | | output.WriteRawTag(26); |
| | | 287 | | output.WriteMessage(InitialState); |
| | | 288 | | } |
| | | 289 | | if (standardDeviation_ != null) { |
| | | 290 | | output.WriteRawTag(34); |
| | | 291 | | output.WriteMessage(StandardDeviation); |
| | | 292 | | } |
| | | 293 | | if (dynamicConfig_ != null) { |
| | | 294 | | output.WriteRawTag(42); |
| | | 295 | | output.WriteMessage(DynamicConfig); |
| | | 296 | | } |
| | | 297 | | if (submunitionsConfig_ != null) { |
| | | 298 | | output.WriteRawTag(50); |
| | | 299 | | output.WriteMessage(SubmunitionsConfig); |
| | | 300 | | } |
| | | 301 | | if (_unknownFields != null) { |
| | | 302 | | _unknownFields.WriteTo(ref output); |
| | | 303 | | } |
| | | 304 | | } |
| | | 305 | | #endif |
| | | 306 | | |
| | | 307 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 308 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 309 | | public int CalculateSize() { |
| | | 310 | | int size = 0; |
| | | 311 | | if (ConfigFile.Length != 0) { |
| | | 312 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigFile); |
| | | 313 | | } |
| | | 314 | | if (AttackBehaviorConfigFile.Length != 0) { |
| | | 315 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AttackBehaviorConfigFile); |
| | | 316 | | } |
| | | 317 | | if (initialState_ != null) { |
| | | 318 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitialState); |
| | | 319 | | } |
| | | 320 | | if (standardDeviation_ != null) { |
| | | 321 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(StandardDeviation); |
| | | 322 | | } |
| | | 323 | | if (dynamicConfig_ != null) { |
| | | 324 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicConfig); |
| | | 325 | | } |
| | | 326 | | if (submunitionsConfig_ != null) { |
| | | 327 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubmunitionsConfig); |
| | | 328 | | } |
| | | 329 | | if (_unknownFields != null) { |
| | | 330 | | size += _unknownFields.CalculateSize(); |
| | | 331 | | } |
| | | 332 | | return size; |
| | | 333 | | } |
| | | 334 | | |
| | | 335 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 336 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 337 | | public void MergeFrom(AgentConfig other) { |
| | | 338 | | if (other == null) { |
| | | 339 | | return; |
| | | 340 | | } |
| | | 341 | | if (other.ConfigFile.Length != 0) { |
| | | 342 | | ConfigFile = other.ConfigFile; |
| | | 343 | | } |
| | | 344 | | if (other.AttackBehaviorConfigFile.Length != 0) { |
| | | 345 | | AttackBehaviorConfigFile = other.AttackBehaviorConfigFile; |
| | | 346 | | } |
| | | 347 | | if (other.initialState_ != null) { |
| | | 348 | | if (initialState_ == null) { |
| | | 349 | | InitialState = new global::Simulation.State(); |
| | | 350 | | } |
| | | 351 | | InitialState.MergeFrom(other.InitialState); |
| | | 352 | | } |
| | | 353 | | if (other.standardDeviation_ != null) { |
| | | 354 | | if (standardDeviation_ == null) { |
| | | 355 | | StandardDeviation = new global::Simulation.State(); |
| | | 356 | | } |
| | | 357 | | StandardDeviation.MergeFrom(other.StandardDeviation); |
| | | 358 | | } |
| | | 359 | | if (other.dynamicConfig_ != null) { |
| | | 360 | | if (dynamicConfig_ == null) { |
| | | 361 | | DynamicConfig = new global::Configs.DynamicConfig(); |
| | | 362 | | } |
| | | 363 | | DynamicConfig.MergeFrom(other.DynamicConfig); |
| | | 364 | | } |
| | | 365 | | if (other.submunitionsConfig_ != null) { |
| | | 366 | | if (submunitionsConfig_ == null) { |
| | | 367 | | SubmunitionsConfig = new global::Configs.AgentConfig.Types.SubmunitionsConfig(); |
| | | 368 | | } |
| | | 369 | | SubmunitionsConfig.MergeFrom(other.SubmunitionsConfig); |
| | | 370 | | } |
| | | 371 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | | 372 | | } |
| | | 373 | | |
| | | 374 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 375 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 376 | | public void MergeFrom(pb::CodedInputStream input) { |
| | | 377 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 378 | | 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 |
| | | 429 | | } |
| | | 430 | | |
| | | 431 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 432 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 433 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 434 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | | 435 | | uint tag; |
| | | 436 | | while ((tag = input.ReadTag()) != 0) { |
| | | 437 | | if ((tag & 7) == 4) { |
| | | 438 | | // Abort on any end group tag. |
| | | 439 | | return; |
| | | 440 | | } |
| | | 441 | | switch(tag) { |
| | | 442 | | default: |
| | | 443 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | | 444 | | break; |
| | | 445 | | case 10: { |
| | | 446 | | ConfigFile = input.ReadString(); |
| | | 447 | | break; |
| | | 448 | | } |
| | | 449 | | case 18: { |
| | | 450 | | AttackBehaviorConfigFile = input.ReadString(); |
| | | 451 | | break; |
| | | 452 | | } |
| | | 453 | | case 26: { |
| | | 454 | | if (initialState_ == null) { |
| | | 455 | | InitialState = new global::Simulation.State(); |
| | | 456 | | } |
| | | 457 | | input.ReadMessage(InitialState); |
| | | 458 | | break; |
| | | 459 | | } |
| | | 460 | | case 34: { |
| | | 461 | | if (standardDeviation_ == null) { |
| | | 462 | | StandardDeviation = new global::Simulation.State(); |
| | | 463 | | } |
| | | 464 | | input.ReadMessage(StandardDeviation); |
| | | 465 | | break; |
| | | 466 | | } |
| | | 467 | | case 42: { |
| | | 468 | | if (dynamicConfig_ == null) { |
| | | 469 | | DynamicConfig = new global::Configs.DynamicConfig(); |
| | | 470 | | } |
| | | 471 | | input.ReadMessage(DynamicConfig); |
| | | 472 | | break; |
| | | 473 | | } |
| | | 474 | | case 50: { |
| | | 475 | | if (submunitionsConfig_ == null) { |
| | | 476 | | SubmunitionsConfig = new global::Configs.AgentConfig.Types.SubmunitionsConfig(); |
| | | 477 | | } |
| | | 478 | | input.ReadMessage(SubmunitionsConfig); |
| | | 479 | | break; |
| | | 480 | | } |
| | | 481 | | } |
| | | 482 | | } |
| | | 483 | | } |
| | | 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 | | { |
| | | 500 | | 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)] |
| | | 504 | | 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 { |
| | | 509 | | 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 { |
| | | 515 | | get { return Descriptor; } |
| | | 516 | | } |
| | | 517 | | |
| | | 518 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 519 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 520 | | public SubmunitionsConfig() { |
| | | 521 | | OnConstruction(); |
| | | 522 | | } |
| | | 523 | | |
| | | 524 | | partial void OnConstruction(); |
| | | 525 | | |
| | | 526 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 527 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 528 | | public SubmunitionsConfig(SubmunitionsConfig other) : this() { |
| | | 529 | | numSubmunitions_ = other.numSubmunitions_; |
| | | 530 | | agentConfig_ = other.agentConfig_ != null ? other.agentConfig_.Clone() : null; |
| | | 531 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | | 532 | | } |
| | | 533 | | |
| | | 534 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 535 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 536 | | public SubmunitionsConfig Clone() { |
| | | 537 | | return new SubmunitionsConfig(this); |
| | | 538 | | } |
| | | 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 { |
| | | 549 | | get { return numSubmunitions_; } |
| | | 550 | | set { |
| | | 551 | | numSubmunitions_ = value; |
| | | 552 | | } |
| | | 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 { |
| | | 564 | | get { return agentConfig_; } |
| | | 565 | | set { |
| | | 566 | | agentConfig_ = value; |
| | | 567 | | } |
| | | 568 | | } |
| | | 569 | | |
| | | 570 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 571 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 572 | | public override bool Equals(object other) { |
| | | 573 | | return Equals(other as SubmunitionsConfig); |
| | | 574 | | } |
| | | 575 | | |
| | | 576 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 577 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 578 | | public bool Equals(SubmunitionsConfig other) { |
| | | 579 | | if (ReferenceEquals(other, null)) { |
| | | 580 | | return false; |
| | | 581 | | } |
| | | 582 | | if (ReferenceEquals(other, this)) { |
| | | 583 | | return true; |
| | | 584 | | } |
| | | 585 | | if (NumSubmunitions != other.NumSubmunitions) return false; |
| | | 586 | | if (!object.Equals(AgentConfig, other.AgentConfig)) return false; |
| | | 587 | | return Equals(_unknownFields, other._unknownFields); |
| | | 588 | | } |
| | | 589 | | |
| | | 590 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 591 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 592 | | public override int GetHashCode() { |
| | | 593 | | int hash = 1; |
| | | 594 | | if (NumSubmunitions != 0) hash ^= NumSubmunitions.GetHashCode(); |
| | | 595 | | if (agentConfig_ != null) hash ^= AgentConfig.GetHashCode(); |
| | | 596 | | if (_unknownFields != null) { |
| | | 597 | | hash ^= _unknownFields.GetHashCode(); |
| | | 598 | | } |
| | | 599 | | return hash; |
| | | 600 | | } |
| | | 601 | | |
| | | 602 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 603 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 604 | | public override string ToString() { |
| | | 605 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | | 606 | | } |
| | | 607 | | |
| | | 608 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 609 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 610 | | public void WriteTo(pb::CodedOutputStream output) { |
| | | 611 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 612 | | 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 |
| | | 626 | | } |
| | | 627 | | |
| | | 628 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 629 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 630 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 631 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | | 632 | | if (NumSubmunitions != 0) { |
| | | 633 | | output.WriteRawTag(8); |
| | | 634 | | output.WriteUInt32(NumSubmunitions); |
| | | 635 | | } |
| | | 636 | | if (agentConfig_ != null) { |
| | | 637 | | output.WriteRawTag(18); |
| | | 638 | | output.WriteMessage(AgentConfig); |
| | | 639 | | } |
| | | 640 | | if (_unknownFields != null) { |
| | | 641 | | _unknownFields.WriteTo(ref output); |
| | | 642 | | } |
| | | 643 | | } |
| | | 644 | | #endif |
| | | 645 | | |
| | | 646 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 647 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 648 | | public int CalculateSize() { |
| | | 649 | | int size = 0; |
| | | 650 | | if (NumSubmunitions != 0) { |
| | | 651 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumSubmunitions); |
| | | 652 | | } |
| | | 653 | | if (agentConfig_ != null) { |
| | | 654 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentConfig); |
| | | 655 | | } |
| | | 656 | | if (_unknownFields != null) { |
| | | 657 | | size += _unknownFields.CalculateSize(); |
| | | 658 | | } |
| | | 659 | | return size; |
| | | 660 | | } |
| | | 661 | | |
| | | 662 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 663 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 664 | | public void MergeFrom(SubmunitionsConfig other) { |
| | | 665 | | if (other == null) { |
| | | 666 | | return; |
| | | 667 | | } |
| | | 668 | | if (other.NumSubmunitions != 0) { |
| | | 669 | | NumSubmunitions = other.NumSubmunitions; |
| | | 670 | | } |
| | | 671 | | if (other.agentConfig_ != null) { |
| | | 672 | | if (agentConfig_ == null) { |
| | | 673 | | AgentConfig = new global::Configs.AgentConfig(); |
| | | 674 | | } |
| | | 675 | | AgentConfig.MergeFrom(other.AgentConfig); |
| | | 676 | | } |
| | | 677 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | | 678 | | } |
| | | 679 | | |
| | | 680 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 681 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 682 | | public void MergeFrom(pb::CodedInputStream input) { |
| | | 683 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 684 | | 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 |
| | | 710 | | } |
| | | 711 | | |
| | | 712 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | | 713 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | | 714 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | | 715 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | | 716 | | uint tag; |
| | | 717 | | while ((tag = input.ReadTag()) != 0) { |
| | | 718 | | if ((tag & 7) == 4) { |
| | | 719 | | // Abort on any end group tag. |
| | | 720 | | return; |
| | | 721 | | } |
| | | 722 | | switch(tag) { |
| | | 723 | | default: |
| | | 724 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | | 725 | | break; |
| | | 726 | | case 8: { |
| | | 727 | | NumSubmunitions = input.ReadUInt32(); |
| | | 728 | | break; |
| | | 729 | | } |
| | | 730 | | case 18: { |
| | | 731 | | if (agentConfig_ == null) { |
| | | 732 | | AgentConfig = new global::Configs.AgentConfig(); |
| | | 733 | | } |
| | | 734 | | input.ReadMessage(AgentConfig); |
| | | 735 | | break; |
| | | 736 | | } |
| | | 737 | | } |
| | | 738 | | } |
| | | 739 | | } |
| | | 740 | | #endif |
| | | 741 | | |
| | | 742 | | } |
| | | 743 | | |
| | | 744 | | } |
| | | 745 | | #endregion |
| | | 746 | | |
| | | 747 | | } |
| | | 748 | | |
| | | 749 | | #endregion |
| | | 750 | | |
| | | 751 | | } |
| | | 752 | | |
| | | 753 | | #endregion Designer generated code |