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