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