| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: configs/proto/simulation_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 Micromissiles { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from configs/proto/simulation_config.proto</summary> |
| | 15 | | public static partial class SimulationConfigReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for configs/proto/simulation_config.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static SimulationConfigReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiVjb25maWdzL3Byb3RvL3NpbXVsYXRpb25fY29uZmlnLnByb3RvEg1taWNy", |
| | 28 | | "b21pc3NpbGVzGhljb25maWdzL3Byb3RvL2FnZW50LnByb3RvIrsBChBTaW11", |
| | 29 | | "bGF0aW9uQ29uZmlnEhAKCGVuZF90aW1lGAEgASgCEhIKCnRpbWVfc2NhbGUY", |
| | 30 | | "AiABKAISQgoZaW50ZXJjZXB0b3Jfc3dhcm1fY29uZmlncxgDIAMoCzIfLm1p", |
| | 31 | | "Y3JvbWlzc2lsZXMuQWdlbnRTd2FybUNvbmZpZxI9ChR0aHJlYXRfc3dhcm1f", |
| | 32 | | "Y29uZmlncxgEIAMoCzIfLm1pY3JvbWlzc2lsZXMuQWdlbnRTd2FybUNvbmZp", |
| | 33 | | "Z2IGcHJvdG8z")); |
| | 34 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 35 | | new pbr::FileDescriptor[] { global::Micromissiles.AgentReflection.Descriptor, }, |
| | 36 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 37 | | new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.SimulationConfig), global::Micromissiles.Simulati |
| | 38 | | })); |
| | 39 | | } |
| | 40 | | #endregion |
| | 41 | |
|
| | 42 | | } |
| | 43 | | #region Messages |
| | 44 | | /// <summary> |
| | 45 | | /// Simulation configuration. |
| | 46 | | /// </summary> |
| | 47 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 48 | | public sealed partial class SimulationConfig : pb::IMessage<SimulationConfig> |
| | 49 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 50 | | , pb::IBufferMessage |
| | 51 | | #endif |
| | 52 | | { |
| 0 | 53 | | private static readonly pb::MessageParser<SimulationConfig> _parser = new pb::MessageParser<SimulationConfig>(() => |
| | 54 | | private pb::UnknownFieldSet _unknownFields; |
| | 55 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 56 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 57 | | public static pb::MessageParser<SimulationConfig> Parser { get { return _parser; } } |
| | 58 | |
|
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 61 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 62 | | get { return global::Micromissiles.SimulationConfigReflection.Descriptor.MessageTypes[0]; } |
| | 63 | | } |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 66 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 67 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 68 | | get { return Descriptor; } |
| | 69 | | } |
| | 70 | |
|
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 73 | | public SimulationConfig() { |
| | 74 | | OnConstruction(); |
| 0 | 75 | | } |
| | 76 | |
|
| | 77 | | partial void OnConstruction(); |
| | 78 | |
|
| | 79 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 80 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 81 | | public SimulationConfig(SimulationConfig other) : this() { |
| 0 | 82 | | endTime_ = other.endTime_; |
| 0 | 83 | | timeScale_ = other.timeScale_; |
| 0 | 84 | | interceptorSwarmConfigs_ = other.interceptorSwarmConfigs_.Clone(); |
| 0 | 85 | | threatSwarmConfigs_ = other.threatSwarmConfigs_.Clone(); |
| 0 | 86 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 87 | | } |
| | 88 | |
|
| | 89 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 90 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 91 | | public SimulationConfig Clone() { |
| 0 | 92 | | return new SimulationConfig(this); |
| 0 | 93 | | } |
| | 94 | |
|
| | 95 | | /// <summary>Field number for the "end_time" field.</summary> |
| | 96 | | public const int EndTimeFieldNumber = 1; |
| | 97 | | private float endTime_; |
| | 98 | | /// <summary> |
| | 99 | | /// End time in seconds. |
| | 100 | | /// </summary> |
| | 101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 103 | | public float EndTime { |
| 0 | 104 | | get { return endTime_; } |
| 0 | 105 | | set { |
| 0 | 106 | | endTime_ = value; |
| 0 | 107 | | } |
| | 108 | | } |
| | 109 | |
|
| | 110 | | /// <summary>Field number for the "time_scale" field.</summary> |
| | 111 | | public const int TimeScaleFieldNumber = 2; |
| | 112 | | private float timeScale_; |
| | 113 | | /// <summary> |
| | 114 | | /// Time scale. |
| | 115 | | /// </summary> |
| | 116 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 117 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 118 | | public float TimeScale { |
| 0 | 119 | | get { return timeScale_; } |
| 0 | 120 | | set { |
| 0 | 121 | | timeScale_ = value; |
| 0 | 122 | | } |
| | 123 | | } |
| | 124 | |
|
| | 125 | | /// <summary>Field number for the "interceptor_swarm_configs" field.</summary> |
| | 126 | | public const int InterceptorSwarmConfigsFieldNumber = 3; |
| 0 | 127 | | private static readonly pb::FieldCodec<global::Micromissiles.AgentSwarmConfig> _repeated_interceptorSwarmConfigs_cod |
| | 128 | | = pb::FieldCodec.ForMessage(26, global::Micromissiles.AgentSwarmConfig.Parser); |
| 0 | 129 | | private readonly pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> interceptorSwarmConfigs_ = new pbc::Repe |
| | 130 | | /// <summary> |
| | 131 | | /// Interceptor swarm configurations. |
| | 132 | | /// </summary> |
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 135 | | public pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> InterceptorSwarmConfigs { |
| 0 | 136 | | get { return interceptorSwarmConfigs_; } |
| | 137 | | } |
| | 138 | |
|
| | 139 | | /// <summary>Field number for the "threat_swarm_configs" field.</summary> |
| | 140 | | public const int ThreatSwarmConfigsFieldNumber = 4; |
| 0 | 141 | | private static readonly pb::FieldCodec<global::Micromissiles.AgentSwarmConfig> _repeated_threatSwarmConfigs_codec |
| | 142 | | = pb::FieldCodec.ForMessage(34, global::Micromissiles.AgentSwarmConfig.Parser); |
| 0 | 143 | | private readonly pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> threatSwarmConfigs_ = new pbc::RepeatedF |
| | 144 | | /// <summary> |
| | 145 | | /// Threat swarm configurations. |
| | 146 | | /// </summary> |
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 149 | | public pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> ThreatSwarmConfigs { |
| 0 | 150 | | get { return threatSwarmConfigs_; } |
| | 151 | | } |
| | 152 | |
|
| | 153 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 154 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 155 | | public override bool Equals(object other) { |
| 0 | 156 | | return Equals(other as SimulationConfig); |
| 0 | 157 | | } |
| | 158 | |
|
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 161 | | public bool Equals(SimulationConfig other) { |
| 0 | 162 | | if (ReferenceEquals(other, null)) { |
| 0 | 163 | | return false; |
| | 164 | | } |
| 0 | 165 | | if (ReferenceEquals(other, this)) { |
| 0 | 166 | | return true; |
| | 167 | | } |
| 0 | 168 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EndTime, other.EndTime)) return false; |
| 0 | 169 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeScale, other.TimeScale)) return false |
| 0 | 170 | | if(!interceptorSwarmConfigs_.Equals(other.interceptorSwarmConfigs_)) return false; |
| 0 | 171 | | if(!threatSwarmConfigs_.Equals(other.threatSwarmConfigs_)) return false; |
| 0 | 172 | | return Equals(_unknownFields, other._unknownFields); |
| 0 | 173 | | } |
| | 174 | |
|
| | 175 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 176 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 177 | | public override int GetHashCode() { |
| 0 | 178 | | int hash = 1; |
| 0 | 179 | | if (EndTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EndTime); |
| 0 | 180 | | if (TimeScale != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeScale); |
| 0 | 181 | | hash ^= interceptorSwarmConfigs_.GetHashCode(); |
| 0 | 182 | | hash ^= threatSwarmConfigs_.GetHashCode(); |
| 0 | 183 | | if (_unknownFields != null) { |
| 0 | 184 | | hash ^= _unknownFields.GetHashCode(); |
| 0 | 185 | | } |
| 0 | 186 | | return hash; |
| 0 | 187 | | } |
| | 188 | |
|
| | 189 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 190 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 191 | | public override string ToString() { |
| 0 | 192 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| 0 | 193 | | } |
| | 194 | |
|
| | 195 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 196 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 197 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 198 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 0 | 199 | | output.WriteRawMessage(this); |
| | 200 | | #else |
| | 201 | | if (EndTime != 0F) { |
| | 202 | | output.WriteRawTag(13); |
| | 203 | | output.WriteFloat(EndTime); |
| | 204 | | } |
| | 205 | | if (TimeScale != 0F) { |
| | 206 | | output.WriteRawTag(21); |
| | 207 | | output.WriteFloat(TimeScale); |
| | 208 | | } |
| | 209 | | interceptorSwarmConfigs_.WriteTo(output, _repeated_interceptorSwarmConfigs_codec); |
| | 210 | | threatSwarmConfigs_.WriteTo(output, _repeated_threatSwarmConfigs_codec); |
| | 211 | | if (_unknownFields != null) { |
| | 212 | | _unknownFields.WriteTo(output); |
| | 213 | | } |
| | 214 | | #endif |
| 0 | 215 | | } |
| | 216 | |
|
| | 217 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 218 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 219 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 220 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| 0 | 221 | | if (EndTime != 0F) { |
| 0 | 222 | | output.WriteRawTag(13); |
| 0 | 223 | | output.WriteFloat(EndTime); |
| 0 | 224 | | } |
| 0 | 225 | | if (TimeScale != 0F) { |
| 0 | 226 | | output.WriteRawTag(21); |
| 0 | 227 | | output.WriteFloat(TimeScale); |
| 0 | 228 | | } |
| 0 | 229 | | interceptorSwarmConfigs_.WriteTo(ref output, _repeated_interceptorSwarmConfigs_codec); |
| 0 | 230 | | threatSwarmConfigs_.WriteTo(ref output, _repeated_threatSwarmConfigs_codec); |
| 0 | 231 | | if (_unknownFields != null) { |
| 0 | 232 | | _unknownFields.WriteTo(ref output); |
| 0 | 233 | | } |
| 0 | 234 | | } |
| | 235 | | #endif |
| | 236 | |
|
| | 237 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 238 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 239 | | public int CalculateSize() { |
| 0 | 240 | | int size = 0; |
| 0 | 241 | | if (EndTime != 0F) { |
| 0 | 242 | | size += 1 + 4; |
| 0 | 243 | | } |
| 0 | 244 | | if (TimeScale != 0F) { |
| 0 | 245 | | size += 1 + 4; |
| 0 | 246 | | } |
| 0 | 247 | | size += interceptorSwarmConfigs_.CalculateSize(_repeated_interceptorSwarmConfigs_codec); |
| 0 | 248 | | size += threatSwarmConfigs_.CalculateSize(_repeated_threatSwarmConfigs_codec); |
| 0 | 249 | | if (_unknownFields != null) { |
| 0 | 250 | | size += _unknownFields.CalculateSize(); |
| 0 | 251 | | } |
| 0 | 252 | | return size; |
| 0 | 253 | | } |
| | 254 | |
|
| | 255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 257 | | public void MergeFrom(SimulationConfig other) { |
| 0 | 258 | | if (other == null) { |
| 0 | 259 | | return; |
| | 260 | | } |
| 0 | 261 | | if (other.EndTime != 0F) { |
| 0 | 262 | | EndTime = other.EndTime; |
| 0 | 263 | | } |
| 0 | 264 | | if (other.TimeScale != 0F) { |
| 0 | 265 | | TimeScale = other.TimeScale; |
| 0 | 266 | | } |
| 0 | 267 | | interceptorSwarmConfigs_.Add(other.interceptorSwarmConfigs_); |
| 0 | 268 | | threatSwarmConfigs_.Add(other.threatSwarmConfigs_); |
| 0 | 269 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 270 | | } |
| | 271 | |
|
| | 272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 274 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 275 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 0 | 276 | | input.ReadRawMessage(this); |
| | 277 | | #else |
| | 278 | | uint tag; |
| | 279 | | while ((tag = input.ReadTag()) != 0) { |
| | 280 | | if ((tag & 7) == 4) { |
| | 281 | | // Abort on any end group tag. |
| | 282 | | return; |
| | 283 | | } |
| | 284 | | switch(tag) { |
| | 285 | | default: |
| | 286 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 287 | | break; |
| | 288 | | case 13: { |
| | 289 | | EndTime = input.ReadFloat(); |
| | 290 | | break; |
| | 291 | | } |
| | 292 | | case 21: { |
| | 293 | | TimeScale = input.ReadFloat(); |
| | 294 | | break; |
| | 295 | | } |
| | 296 | | case 26: { |
| | 297 | | interceptorSwarmConfigs_.AddEntriesFrom(input, _repeated_interceptorSwarmConfigs_codec); |
| | 298 | | break; |
| | 299 | | } |
| | 300 | | case 34: { |
| | 301 | | threatSwarmConfigs_.AddEntriesFrom(input, _repeated_threatSwarmConfigs_codec); |
| | 302 | | break; |
| | 303 | | } |
| | 304 | | } |
| | 305 | | } |
| | 306 | | #endif |
| 0 | 307 | | } |
| | 308 | |
|
| | 309 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 310 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 311 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 312 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 313 | | uint tag; |
| 0 | 314 | | while ((tag = input.ReadTag()) != 0) { |
| 0 | 315 | | if ((tag & 7) == 4) { |
| | 316 | | // Abort on any end group tag. |
| 0 | 317 | | return; |
| | 318 | | } |
| 0 | 319 | | switch(tag) { |
| | 320 | | default: |
| 0 | 321 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| 0 | 322 | | break; |
| 0 | 323 | | case 13: { |
| 0 | 324 | | EndTime = input.ReadFloat(); |
| 0 | 325 | | break; |
| | 326 | | } |
| 0 | 327 | | case 21: { |
| 0 | 328 | | TimeScale = input.ReadFloat(); |
| 0 | 329 | | break; |
| | 330 | | } |
| 0 | 331 | | case 26: { |
| 0 | 332 | | interceptorSwarmConfigs_.AddEntriesFrom(ref input, _repeated_interceptorSwarmConfigs_codec); |
| 0 | 333 | | break; |
| | 334 | | } |
| 0 | 335 | | case 34: { |
| 0 | 336 | | threatSwarmConfigs_.AddEntriesFrom(ref input, _repeated_threatSwarmConfigs_codec); |
| 0 | 337 | | break; |
| | 338 | | } |
| | 339 | | } |
| 0 | 340 | | } |
| 0 | 341 | | } |
| | 342 | | #endif |
| | 343 | |
|
| | 344 | | } |
| | 345 | |
|
| | 346 | | #endregion |
| | 347 | |
|
| | 348 | | } |
| | 349 | |
|
| | 350 | | #endregion Designer generated code |