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