| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: Configs/dynamic_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/dynamic_config.proto</summary> |
| | 15 | | public static partial class DynamicConfigReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for Configs/dynamic_config.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static DynamicConfigReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChxDb25maWdzL2R5bmFtaWNfY29uZmlnLnByb3RvEgdjb25maWdzGhdTaW11", |
| | 28 | | "bGF0aW9uL3NlbnNvci5wcm90byK4AQoMRmxpZ2h0Q29uZmlnEjAKD2NvbnRy", |
| | 29 | | "b2xsZXJfdHlwZRgBIAEoDjIXLmNvbmZpZ3MuQ29udHJvbGxlclR5cGUSOwoO", |
| | 30 | | "ZXZhc2lvbl9jb25maWcYAiABKAsyIy5jb25maWdzLkZsaWdodENvbmZpZy5F", |
| | 31 | | "dmFzaW9uQ29uZmlnGjkKDUV2YXNpb25Db25maWcSDwoHZW5hYmxlZBgBIAEo", |
| | 32 | | "CBIXCg9yYW5nZV90aHJlc2hvbGQYAiABKAIibgoNRHluYW1pY0NvbmZpZxIs", |
| | 33 | | "Cg1mbGlnaHRfY29uZmlnGAEgASgLMhUuY29uZmlncy5GbGlnaHRDb25maWcS", |
| | 34 | | "LwoNc2Vuc29yX2NvbmZpZxgCIAEoCzIYLnNpbXVsYXRpb24uU2Vuc29yQ29u", |
| | 35 | | "ZmlnKlQKDkNvbnRyb2xsZXJUeXBlEhsKF1BST1BPUlRJT05BTF9OQVZJR0FU", |
| | 36 | | "SU9OEAASJQohQVVHTUVOVEVEX1BST1BPUlRJT05BTF9OQVZJR0FUSU9OEAFi", |
| | 37 | | "BnByb3RvMw==")); |
| | 38 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 39 | | new pbr::FileDescriptor[] { global::Simulation.SensorReflection.Descriptor, }, |
| | 40 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Configs.ControllerType), }, null, new pbr::GeneratedClrTyp |
| | 41 | | new pbr::GeneratedClrTypeInfo(typeof(global::Configs.FlightConfig), global::Configs.FlightConfig.Parser, new |
| | 42 | | new pbr::GeneratedClrTypeInfo(typeof(global::Configs.DynamicConfig), global::Configs.DynamicConfig.Parser, n |
| | 43 | | })); |
| | 44 | | } |
| | 45 | | #endregion |
| | 46 | |
|
| | 47 | | } |
| | 48 | | #region Enums |
| | 49 | | /// <summary> |
| | 50 | | /// Controller type enumeration. |
| | 51 | | /// </summary> |
| | 52 | | public enum ControllerType { |
| | 53 | | [pbr::OriginalName("PROPORTIONAL_NAVIGATION")] ProportionalNavigation = 0, |
| | 54 | | [pbr::OriginalName("AUGMENTED_PROPORTIONAL_NAVIGATION")] AugmentedProportionalNavigation = 1, |
| | 55 | | } |
| | 56 | |
|
| | 57 | | #endregion |
| | 58 | |
|
| | 59 | | #region Messages |
| | 60 | | /// <summary> |
| | 61 | | /// Flight configuration. |
| | 62 | | /// </summary> |
| | 63 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 64 | | public sealed partial class FlightConfig : pb::IMessage<FlightConfig> |
| | 65 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 66 | | , pb::IBufferMessage |
| | 67 | | #endif |
| | 68 | | { |
| | 69 | | private static readonly pb::MessageParser<FlightConfig> _parser = new pb::MessageParser<FlightConfig>(() => new Flig |
| | 70 | | private pb::UnknownFieldSet _unknownFields; |
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 73 | | public static pb::MessageParser<FlightConfig> Parser { get { return _parser; } } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 77 | | public static pbr::MessageDescriptor Descriptor { |
| | 78 | | get { return global::Configs.DynamicConfigReflection.Descriptor.MessageTypes[0]; } |
| | 79 | | } |
| | 80 | |
|
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 83 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 84 | | get { return Descriptor; } |
| | 85 | | } |
| | 86 | |
|
| | 87 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 88 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 89 | | public FlightConfig() { |
| | 90 | | OnConstruction(); |
| | 91 | | } |
| | 92 | |
|
| | 93 | | partial void OnConstruction(); |
| | 94 | |
|
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | public FlightConfig(FlightConfig other) : this() { |
| | 98 | | controllerType_ = other.controllerType_; |
| | 99 | | evasionConfig_ = other.evasionConfig_ != null ? other.evasionConfig_.Clone() : null; |
| | 100 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 101 | | } |
| | 102 | |
|
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public FlightConfig Clone() { |
| | 106 | | return new FlightConfig(this); |
| | 107 | | } |
| | 108 | |
|
| | 109 | | /// <summary>Field number for the "controller_type" field.</summary> |
| | 110 | | public const int ControllerTypeFieldNumber = 1; |
| | 111 | | private global::Configs.ControllerType controllerType_ = global::Configs.ControllerType.ProportionalNavigation; |
| | 112 | | /// <summary> |
| | 113 | | /// Controller type. |
| | 114 | | /// </summary> |
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 117 | | public global::Configs.ControllerType ControllerType { |
| | 118 | | get { return controllerType_; } |
| | 119 | | set { |
| | 120 | | controllerType_ = value; |
| | 121 | | } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | /// <summary>Field number for the "evasion_config" field.</summary> |
| | 125 | | public const int EvasionConfigFieldNumber = 2; |
| | 126 | | private global::Configs.FlightConfig.Types.EvasionConfig evasionConfig_; |
| | 127 | | /// <summary> |
| | 128 | | /// Evasion configuration. |
| | 129 | | /// </summary> |
| | 130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 131 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 132 | | public global::Configs.FlightConfig.Types.EvasionConfig EvasionConfig { |
| | 133 | | get { return evasionConfig_; } |
| | 134 | | set { |
| | 135 | | evasionConfig_ = value; |
| | 136 | | } |
| | 137 | | } |
| | 138 | |
|
| | 139 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 140 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 141 | | public override bool Equals(object other) { |
| | 142 | | return Equals(other as FlightConfig); |
| | 143 | | } |
| | 144 | |
|
| | 145 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 146 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 147 | | public bool Equals(FlightConfig other) { |
| | 148 | | if (ReferenceEquals(other, null)) { |
| | 149 | | return false; |
| | 150 | | } |
| | 151 | | if (ReferenceEquals(other, this)) { |
| | 152 | | return true; |
| | 153 | | } |
| | 154 | | if (ControllerType != other.ControllerType) return false; |
| | 155 | | if (!object.Equals(EvasionConfig, other.EvasionConfig)) return false; |
| | 156 | | return Equals(_unknownFields, other._unknownFields); |
| | 157 | | } |
| | 158 | |
|
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 161 | | public override int GetHashCode() { |
| | 162 | | int hash = 1; |
| | 163 | | if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) hash ^= ControllerType.GetHashCode(); |
| | 164 | | if (evasionConfig_ != null) hash ^= EvasionConfig.GetHashCode(); |
| | 165 | | if (_unknownFields != null) { |
| | 166 | | hash ^= _unknownFields.GetHashCode(); |
| | 167 | | } |
| | 168 | | return hash; |
| | 169 | | } |
| | 170 | |
|
| | 171 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 172 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 173 | | public override string ToString() { |
| | 174 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 175 | | } |
| | 176 | |
|
| | 177 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 178 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 179 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 180 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 181 | | output.WriteRawMessage(this); |
| | 182 | | #else |
| | 183 | | if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) { |
| | 184 | | output.WriteRawTag(8); |
| | 185 | | output.WriteEnum((int) ControllerType); |
| | 186 | | } |
| | 187 | | if (evasionConfig_ != null) { |
| | 188 | | output.WriteRawTag(18); |
| | 189 | | output.WriteMessage(EvasionConfig); |
| | 190 | | } |
| | 191 | | if (_unknownFields != null) { |
| | 192 | | _unknownFields.WriteTo(output); |
| | 193 | | } |
| | 194 | | #endif |
| | 195 | | } |
| | 196 | |
|
| | 197 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 200 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 201 | | if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) { |
| | 202 | | output.WriteRawTag(8); |
| | 203 | | output.WriteEnum((int) ControllerType); |
| | 204 | | } |
| | 205 | | if (evasionConfig_ != null) { |
| | 206 | | output.WriteRawTag(18); |
| | 207 | | output.WriteMessage(EvasionConfig); |
| | 208 | | } |
| | 209 | | if (_unknownFields != null) { |
| | 210 | | _unknownFields.WriteTo(ref output); |
| | 211 | | } |
| | 212 | | } |
| | 213 | | #endif |
| | 214 | |
|
| | 215 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 216 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 217 | | public int CalculateSize() { |
| | 218 | | int size = 0; |
| | 219 | | if (ControllerType != global::Configs.ControllerType.ProportionalNavigation) { |
| | 220 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ControllerType); |
| | 221 | | } |
| | 222 | | if (evasionConfig_ != null) { |
| | 223 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EvasionConfig); |
| | 224 | | } |
| | 225 | | if (_unknownFields != null) { |
| | 226 | | size += _unknownFields.CalculateSize(); |
| | 227 | | } |
| | 228 | | return size; |
| | 229 | | } |
| | 230 | |
|
| | 231 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 232 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 233 | | public void MergeFrom(FlightConfig other) { |
| | 234 | | if (other == null) { |
| | 235 | | return; |
| | 236 | | } |
| | 237 | | if (other.ControllerType != global::Configs.ControllerType.ProportionalNavigation) { |
| | 238 | | ControllerType = other.ControllerType; |
| | 239 | | } |
| | 240 | | if (other.evasionConfig_ != null) { |
| | 241 | | if (evasionConfig_ == null) { |
| | 242 | | EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig(); |
| | 243 | | } |
| | 244 | | EvasionConfig.MergeFrom(other.EvasionConfig); |
| | 245 | | } |
| | 246 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 247 | | } |
| | 248 | |
|
| | 249 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 250 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 251 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 252 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 253 | | input.ReadRawMessage(this); |
| | 254 | | #else |
| | 255 | | uint tag; |
| | 256 | | while ((tag = input.ReadTag()) != 0) { |
| | 257 | | if ((tag & 7) == 4) { |
| | 258 | | // Abort on any end group tag. |
| | 259 | | return; |
| | 260 | | } |
| | 261 | | switch(tag) { |
| | 262 | | default: |
| | 263 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 264 | | break; |
| | 265 | | case 8: { |
| | 266 | | ControllerType = (global::Configs.ControllerType) input.ReadEnum(); |
| | 267 | | break; |
| | 268 | | } |
| | 269 | | case 18: { |
| | 270 | | if (evasionConfig_ == null) { |
| | 271 | | EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig(); |
| | 272 | | } |
| | 273 | | input.ReadMessage(EvasionConfig); |
| | 274 | | break; |
| | 275 | | } |
| | 276 | | } |
| | 277 | | } |
| | 278 | | #endif |
| | 279 | | } |
| | 280 | |
|
| | 281 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 282 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 283 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 284 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 285 | | uint tag; |
| | 286 | | while ((tag = input.ReadTag()) != 0) { |
| | 287 | | if ((tag & 7) == 4) { |
| | 288 | | // Abort on any end group tag. |
| | 289 | | return; |
| | 290 | | } |
| | 291 | | switch(tag) { |
| | 292 | | default: |
| | 293 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 294 | | break; |
| | 295 | | case 8: { |
| | 296 | | ControllerType = (global::Configs.ControllerType) input.ReadEnum(); |
| | 297 | | break; |
| | 298 | | } |
| | 299 | | case 18: { |
| | 300 | | if (evasionConfig_ == null) { |
| | 301 | | EvasionConfig = new global::Configs.FlightConfig.Types.EvasionConfig(); |
| | 302 | | } |
| | 303 | | input.ReadMessage(EvasionConfig); |
| | 304 | | break; |
| | 305 | | } |
| | 306 | | } |
| | 307 | | } |
| | 308 | | } |
| | 309 | | #endif |
| | 310 | |
|
| | 311 | | #region Nested types |
| | 312 | | /// <summary>Container for nested types declared in the FlightConfig message type.</summary> |
| | 313 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 314 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 315 | | public static partial class Types { |
| | 316 | | /// <summary> |
| | 317 | | /// Evasion configuration. |
| | 318 | | /// </summary> |
| | 319 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 320 | | public sealed partial class EvasionConfig : pb::IMessage<EvasionConfig> |
| | 321 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 322 | | , pb::IBufferMessage |
| | 323 | | #endif |
| | 324 | | { |
| | 325 | | private static readonly pb::MessageParser<EvasionConfig> _parser = new pb::MessageParser<EvasionConfig>(() => ne |
| | 326 | | private pb::UnknownFieldSet _unknownFields; |
| | 327 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 328 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 329 | | public static pb::MessageParser<EvasionConfig> Parser { get { return _parser; } } |
| | 330 | |
|
| | 331 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 332 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 333 | | public static pbr::MessageDescriptor Descriptor { |
| | 334 | | get { return global::Configs.FlightConfig.Descriptor.NestedTypes[0]; } |
| | 335 | | } |
| | 336 | |
|
| | 337 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 338 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 339 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 340 | | get { return Descriptor; } |
| | 341 | | } |
| | 342 | |
|
| | 343 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 344 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 345 | | public EvasionConfig() { |
| | 346 | | OnConstruction(); |
| | 347 | | } |
| | 348 | |
|
| | 349 | | partial void OnConstruction(); |
| | 350 | |
|
| | 351 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 352 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 353 | | public EvasionConfig(EvasionConfig other) : this() { |
| | 354 | | enabled_ = other.enabled_; |
| | 355 | | rangeThreshold_ = other.rangeThreshold_; |
| | 356 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 357 | | } |
| | 358 | |
|
| | 359 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 360 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 361 | | public EvasionConfig Clone() { |
| | 362 | | return new EvasionConfig(this); |
| | 363 | | } |
| | 364 | |
|
| | 365 | | /// <summary>Field number for the "enabled" field.</summary> |
| | 366 | | public const int EnabledFieldNumber = 1; |
| | 367 | | private bool enabled_; |
| | 368 | | /// <summary> |
| | 369 | | /// If true, evasion is enabled. |
| | 370 | | /// </summary> |
| | 371 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 372 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 373 | | public bool Enabled { |
| | 374 | | get { return enabled_; } |
| | 375 | | set { |
| | 376 | | enabled_ = value; |
| | 377 | | } |
| | 378 | | } |
| | 379 | |
|
| | 380 | | /// <summary>Field number for the "range_threshold" field.</summary> |
| | 381 | | public const int RangeThresholdFieldNumber = 2; |
| | 382 | | private float rangeThreshold_; |
| | 383 | | /// <summary> |
| | 384 | | /// Range threshold in m at which the agent should evade. |
| | 385 | | /// </summary> |
| | 386 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 387 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 388 | | public float RangeThreshold { |
| | 389 | | get { return rangeThreshold_; } |
| | 390 | | set { |
| | 391 | | rangeThreshold_ = value; |
| | 392 | | } |
| | 393 | | } |
| | 394 | |
|
| | 395 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 396 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 397 | | public override bool Equals(object other) { |
| | 398 | | return Equals(other as EvasionConfig); |
| | 399 | | } |
| | 400 | |
|
| | 401 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 402 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 403 | | public bool Equals(EvasionConfig other) { |
| | 404 | | if (ReferenceEquals(other, null)) { |
| | 405 | | return false; |
| | 406 | | } |
| | 407 | | if (ReferenceEquals(other, this)) { |
| | 408 | | return true; |
| | 409 | | } |
| | 410 | | if (Enabled != other.Enabled) return false; |
| | 411 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RangeThreshold, other.RangeThreshold) |
| | 412 | | return Equals(_unknownFields, other._unknownFields); |
| | 413 | | } |
| | 414 | |
|
| | 415 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 416 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 417 | | public override int GetHashCode() { |
| | 418 | | int hash = 1; |
| | 419 | | if (Enabled != false) hash ^= Enabled.GetHashCode(); |
| | 420 | | if (RangeThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ran |
| | 421 | | if (_unknownFields != null) { |
| | 422 | | hash ^= _unknownFields.GetHashCode(); |
| | 423 | | } |
| | 424 | | return hash; |
| | 425 | | } |
| | 426 | |
|
| | 427 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 428 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 429 | | public override string ToString() { |
| | 430 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 431 | | } |
| | 432 | |
|
| | 433 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 434 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 435 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 436 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 437 | | output.WriteRawMessage(this); |
| | 438 | | #else |
| | 439 | | if (Enabled != false) { |
| | 440 | | output.WriteRawTag(8); |
| | 441 | | output.WriteBool(Enabled); |
| | 442 | | } |
| | 443 | | if (RangeThreshold != 0F) { |
| | 444 | | output.WriteRawTag(21); |
| | 445 | | output.WriteFloat(RangeThreshold); |
| | 446 | | } |
| | 447 | | if (_unknownFields != null) { |
| | 448 | | _unknownFields.WriteTo(output); |
| | 449 | | } |
| | 450 | | #endif |
| | 451 | | } |
| | 452 | |
|
| | 453 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 454 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 455 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 456 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 457 | | if (Enabled != false) { |
| | 458 | | output.WriteRawTag(8); |
| | 459 | | output.WriteBool(Enabled); |
| | 460 | | } |
| | 461 | | if (RangeThreshold != 0F) { |
| | 462 | | output.WriteRawTag(21); |
| | 463 | | output.WriteFloat(RangeThreshold); |
| | 464 | | } |
| | 465 | | if (_unknownFields != null) { |
| | 466 | | _unknownFields.WriteTo(ref output); |
| | 467 | | } |
| | 468 | | } |
| | 469 | | #endif |
| | 470 | |
|
| | 471 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 472 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 473 | | public int CalculateSize() { |
| | 474 | | int size = 0; |
| | 475 | | if (Enabled != false) { |
| | 476 | | size += 1 + 1; |
| | 477 | | } |
| | 478 | | if (RangeThreshold != 0F) { |
| | 479 | | size += 1 + 4; |
| | 480 | | } |
| | 481 | | if (_unknownFields != null) { |
| | 482 | | size += _unknownFields.CalculateSize(); |
| | 483 | | } |
| | 484 | | return size; |
| | 485 | | } |
| | 486 | |
|
| | 487 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 488 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 489 | | public void MergeFrom(EvasionConfig other) { |
| | 490 | | if (other == null) { |
| | 491 | | return; |
| | 492 | | } |
| | 493 | | if (other.Enabled != false) { |
| | 494 | | Enabled = other.Enabled; |
| | 495 | | } |
| | 496 | | if (other.RangeThreshold != 0F) { |
| | 497 | | RangeThreshold = other.RangeThreshold; |
| | 498 | | } |
| | 499 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 500 | | } |
| | 501 | |
|
| | 502 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 503 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 504 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 505 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 506 | | input.ReadRawMessage(this); |
| | 507 | | #else |
| | 508 | | uint tag; |
| | 509 | | while ((tag = input.ReadTag()) != 0) { |
| | 510 | | if ((tag & 7) == 4) { |
| | 511 | | // Abort on any end group tag. |
| | 512 | | return; |
| | 513 | | } |
| | 514 | | switch(tag) { |
| | 515 | | default: |
| | 516 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 517 | | break; |
| | 518 | | case 8: { |
| | 519 | | Enabled = input.ReadBool(); |
| | 520 | | break; |
| | 521 | | } |
| | 522 | | case 21: { |
| | 523 | | RangeThreshold = input.ReadFloat(); |
| | 524 | | break; |
| | 525 | | } |
| | 526 | | } |
| | 527 | | } |
| | 528 | | #endif |
| | 529 | | } |
| | 530 | |
|
| | 531 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 532 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 533 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 534 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 535 | | uint tag; |
| | 536 | | while ((tag = input.ReadTag()) != 0) { |
| | 537 | | if ((tag & 7) == 4) { |
| | 538 | | // Abort on any end group tag. |
| | 539 | | return; |
| | 540 | | } |
| | 541 | | switch(tag) { |
| | 542 | | default: |
| | 543 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 544 | | break; |
| | 545 | | case 8: { |
| | 546 | | Enabled = input.ReadBool(); |
| | 547 | | break; |
| | 548 | | } |
| | 549 | | case 21: { |
| | 550 | | RangeThreshold = input.ReadFloat(); |
| | 551 | | break; |
| | 552 | | } |
| | 553 | | } |
| | 554 | | } |
| | 555 | | } |
| | 556 | | #endif |
| | 557 | |
|
| | 558 | | } |
| | 559 | |
|
| | 560 | | } |
| | 561 | | #endregion |
| | 562 | |
|
| | 563 | | } |
| | 564 | |
|
| | 565 | | /// <summary> |
| | 566 | | /// Dynamic configuration. |
| | 567 | | /// </summary> |
| | 568 | | [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| | 569 | | public sealed partial class DynamicConfig : pb::IMessage<DynamicConfig> |
| | 570 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 571 | | , pb::IBufferMessage |
| | 572 | | #endif |
| | 573 | | { |
| 1 | 574 | | private static readonly pb::MessageParser<DynamicConfig> _parser = new pb::MessageParser<DynamicConfig>(() => new Dy |
| | 575 | | private pb::UnknownFieldSet _unknownFields; |
| | 576 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 577 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 578 | | public static pb::MessageParser<DynamicConfig> Parser { get { return _parser; } } |
| | 579 | |
|
| | 580 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 581 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 582 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 583 | | get { return global::Configs.DynamicConfigReflection.Descriptor.MessageTypes[1]; } |
| | 584 | | } |
| | 585 | |
|
| | 586 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 587 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 588 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 589 | | get { return Descriptor; } |
| | 590 | | } |
| | 591 | |
|
| | 592 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 593 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 104 | 594 | | public DynamicConfig() { |
| | 595 | | OnConstruction(); |
| 52 | 596 | | } |
| | 597 | |
|
| | 598 | | partial void OnConstruction(); |
| | 599 | |
|
| | 600 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 601 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 602 | | public DynamicConfig(DynamicConfig other) : this() { |
| 0 | 603 | | flightConfig_ = other.flightConfig_ != null ? other.flightConfig_.Clone() : null; |
| 0 | 604 | | sensorConfig_ = other.sensorConfig_ != null ? other.sensorConfig_.Clone() : null; |
| 0 | 605 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 606 | | } |
| | 607 | |
|
| | 608 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 609 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 610 | | public DynamicConfig Clone() { |
| 0 | 611 | | return new DynamicConfig(this); |
| 0 | 612 | | } |
| | 613 | |
|
| | 614 | | /// <summary>Field number for the "flight_config" field.</summary> |
| | 615 | | public const int FlightConfigFieldNumber = 1; |
| | 616 | | private global::Configs.FlightConfig flightConfig_; |
| | 617 | | /// <summary> |
| | 618 | | /// Flight configuration. |
| | 619 | | /// </summary> |
| | 620 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 621 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 622 | | public global::Configs.FlightConfig FlightConfig { |
| 15813 | 623 | | get { return flightConfig_; } |
| 52 | 624 | | set { |
| 52 | 625 | | flightConfig_ = value; |
| 52 | 626 | | } |
| | 627 | | } |
| | 628 | |
|
| | 629 | | /// <summary>Field number for the "sensor_config" field.</summary> |
| | 630 | | public const int SensorConfigFieldNumber = 2; |
| | 631 | | private global::Simulation.SensorConfig sensorConfig_; |
| | 632 | | /// <summary> |
| | 633 | | /// Sensor configuration. |
| | 634 | | /// </summary> |
| | 635 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 636 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 637 | | public global::Simulation.SensorConfig SensorConfig { |
| 14700 | 638 | | get { return sensorConfig_; } |
| 52 | 639 | | set { |
| 52 | 640 | | sensorConfig_ = value; |
| 52 | 641 | | } |
| | 642 | | } |
| | 643 | |
|
| | 644 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 645 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 646 | | public override bool Equals(object other) { |
| 0 | 647 | | return Equals(other as DynamicConfig); |
| 0 | 648 | | } |
| | 649 | |
|
| | 650 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 651 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 652 | | public bool Equals(DynamicConfig other) { |
| 0 | 653 | | if (ReferenceEquals(other, null)) { |
| 0 | 654 | | return false; |
| | 655 | | } |
| 0 | 656 | | if (ReferenceEquals(other, this)) { |
| 0 | 657 | | return true; |
| | 658 | | } |
| 0 | 659 | | if (!object.Equals(FlightConfig, other.FlightConfig)) return false; |
| 0 | 660 | | if (!object.Equals(SensorConfig, other.SensorConfig)) return false; |
| 0 | 661 | | return Equals(_unknownFields, other._unknownFields); |
| 0 | 662 | | } |
| | 663 | |
|
| | 664 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 665 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 666 | | public override int GetHashCode() { |
| 0 | 667 | | int hash = 1; |
| 0 | 668 | | if (flightConfig_ != null) hash ^= FlightConfig.GetHashCode(); |
| 0 | 669 | | if (sensorConfig_ != null) hash ^= SensorConfig.GetHashCode(); |
| 0 | 670 | | if (_unknownFields != null) { |
| 0 | 671 | | hash ^= _unknownFields.GetHashCode(); |
| 0 | 672 | | } |
| 0 | 673 | | return hash; |
| 0 | 674 | | } |
| | 675 | |
|
| | 676 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 677 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 678 | | public override string ToString() { |
| 0 | 679 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| 0 | 680 | | } |
| | 681 | |
|
| | 682 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 683 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 684 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 685 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 0 | 686 | | output.WriteRawMessage(this); |
| | 687 | | #else |
| | 688 | | if (flightConfig_ != null) { |
| | 689 | | output.WriteRawTag(10); |
| | 690 | | output.WriteMessage(FlightConfig); |
| | 691 | | } |
| | 692 | | if (sensorConfig_ != null) { |
| | 693 | | output.WriteRawTag(18); |
| | 694 | | output.WriteMessage(SensorConfig); |
| | 695 | | } |
| | 696 | | if (_unknownFields != null) { |
| | 697 | | _unknownFields.WriteTo(output); |
| | 698 | | } |
| | 699 | | #endif |
| 0 | 700 | | } |
| | 701 | |
|
| | 702 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 703 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 704 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 705 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| 0 | 706 | | if (flightConfig_ != null) { |
| 0 | 707 | | output.WriteRawTag(10); |
| 0 | 708 | | output.WriteMessage(FlightConfig); |
| 0 | 709 | | } |
| 0 | 710 | | if (sensorConfig_ != null) { |
| 0 | 711 | | output.WriteRawTag(18); |
| 0 | 712 | | output.WriteMessage(SensorConfig); |
| 0 | 713 | | } |
| 0 | 714 | | if (_unknownFields != null) { |
| 0 | 715 | | _unknownFields.WriteTo(ref output); |
| 0 | 716 | | } |
| 0 | 717 | | } |
| | 718 | | #endif |
| | 719 | |
|
| | 720 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 721 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 722 | | public int CalculateSize() { |
| 0 | 723 | | int size = 0; |
| 0 | 724 | | if (flightConfig_ != null) { |
| 0 | 725 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlightConfig); |
| 0 | 726 | | } |
| 0 | 727 | | if (sensorConfig_ != null) { |
| 0 | 728 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorConfig); |
| 0 | 729 | | } |
| 0 | 730 | | if (_unknownFields != null) { |
| 0 | 731 | | size += _unknownFields.CalculateSize(); |
| 0 | 732 | | } |
| 0 | 733 | | return size; |
| 0 | 734 | | } |
| | 735 | |
|
| | 736 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 737 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 738 | | public void MergeFrom(DynamicConfig other) { |
| 0 | 739 | | if (other == null) { |
| 0 | 740 | | return; |
| | 741 | | } |
| 0 | 742 | | if (other.flightConfig_ != null) { |
| 0 | 743 | | if (flightConfig_ == null) { |
| 0 | 744 | | FlightConfig = new global::Configs.FlightConfig(); |
| 0 | 745 | | } |
| 0 | 746 | | FlightConfig.MergeFrom(other.FlightConfig); |
| 0 | 747 | | } |
| 0 | 748 | | if (other.sensorConfig_ != null) { |
| 0 | 749 | | if (sensorConfig_ == null) { |
| 0 | 750 | | SensorConfig = new global::Simulation.SensorConfig(); |
| 0 | 751 | | } |
| 0 | 752 | | SensorConfig.MergeFrom(other.SensorConfig); |
| 0 | 753 | | } |
| 0 | 754 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 755 | | } |
| | 756 | |
|
| | 757 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 758 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 759 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 760 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 0 | 761 | | input.ReadRawMessage(this); |
| | 762 | | #else |
| | 763 | | uint tag; |
| | 764 | | while ((tag = input.ReadTag()) != 0) { |
| | 765 | | if ((tag & 7) == 4) { |
| | 766 | | // Abort on any end group tag. |
| | 767 | | return; |
| | 768 | | } |
| | 769 | | switch(tag) { |
| | 770 | | default: |
| | 771 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 772 | | break; |
| | 773 | | case 10: { |
| | 774 | | if (flightConfig_ == null) { |
| | 775 | | FlightConfig = new global::Configs.FlightConfig(); |
| | 776 | | } |
| | 777 | | input.ReadMessage(FlightConfig); |
| | 778 | | break; |
| | 779 | | } |
| | 780 | | case 18: { |
| | 781 | | if (sensorConfig_ == null) { |
| | 782 | | SensorConfig = new global::Simulation.SensorConfig(); |
| | 783 | | } |
| | 784 | | input.ReadMessage(SensorConfig); |
| | 785 | | break; |
| | 786 | | } |
| | 787 | | } |
| | 788 | | } |
| | 789 | | #endif |
| 0 | 790 | | } |
| | 791 | |
|
| | 792 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 793 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 794 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 52 | 795 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 796 | | uint tag; |
| 260 | 797 | | while ((tag = input.ReadTag()) != 0) { |
| 104 | 798 | | if ((tag & 7) == 4) { |
| | 799 | | // Abort on any end group tag. |
| 0 | 800 | | return; |
| | 801 | | } |
| 104 | 802 | | switch(tag) { |
| | 803 | | default: |
| 0 | 804 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| 0 | 805 | | break; |
| 52 | 806 | | case 10: { |
| 104 | 807 | | if (flightConfig_ == null) { |
| 52 | 808 | | FlightConfig = new global::Configs.FlightConfig(); |
| 52 | 809 | | } |
| 52 | 810 | | input.ReadMessage(FlightConfig); |
| 52 | 811 | | break; |
| | 812 | | } |
| 52 | 813 | | case 18: { |
| 104 | 814 | | if (sensorConfig_ == null) { |
| 52 | 815 | | SensorConfig = new global::Simulation.SensorConfig(); |
| 52 | 816 | | } |
| 52 | 817 | | input.ReadMessage(SensorConfig); |
| 52 | 818 | | break; |
| | 819 | | } |
| | 820 | | } |
| 104 | 821 | | } |
| 52 | 822 | | } |
| | 823 | | #endif |
| | 824 | |
|
| | 825 | | } |
| | 826 | |
|
| | 827 | | #endregion |
| | 828 | |
|
| | 829 | | } |
| | 830 | |
|
| | 831 | | #endregion Designer generated code |