@@ -200,6 +200,7 @@ public enum MemberRole {
200
200
///
201
201
/// Packets for the official ATAK Plugin
202
202
/// </summary>
203
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
203
204
public sealed partial class TAKPacket : pb ::IMessage < TAKPacket >
204
205
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
205
206
, pb ::IBufferMessage
@@ -365,12 +366,26 @@ public bool IsCompressed {
365
366
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
366
367
[ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
367
368
public pb ::ByteString Detail {
368
- get { return payloadVariantCase_ == PayloadVariantOneofCase . Detail ? ( pb ::ByteString ) payloadVariant_ : pb ::ByteString . Empty ; }
369
+ get { return HasDetail ? ( pb ::ByteString ) payloadVariant_ : pb ::ByteString . Empty ; }
369
370
set {
370
371
payloadVariant_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
371
372
payloadVariantCase_ = PayloadVariantOneofCase . Detail ;
372
373
}
373
374
}
375
+ /// <summary>Gets whether the "detail" field is set</summary>
376
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
377
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
378
+ public bool HasDetail {
379
+ get { return payloadVariantCase_ == PayloadVariantOneofCase . Detail ; }
380
+ }
381
+ /// <summary> Clears the value of the oneof if it's currently set to "detail" </summary>
382
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
383
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
384
+ public void ClearDetail ( ) {
385
+ if ( HasDetail ) {
386
+ ClearPayloadVariant ( ) ;
387
+ }
388
+ }
374
389
375
390
private object payloadVariant_ ;
376
391
/// <summary>Enum of possible cases for the "payload_variant" oneof.</summary>
@@ -430,7 +445,7 @@ public override int GetHashCode() {
430
445
if ( status_ != null ) hash ^= Status . GetHashCode ( ) ;
431
446
if ( payloadVariantCase_ == PayloadVariantOneofCase . Pli ) hash ^= Pli . GetHashCode ( ) ;
432
447
if ( payloadVariantCase_ == PayloadVariantOneofCase . Chat ) hash ^= Chat . GetHashCode ( ) ;
433
- if ( payloadVariantCase_ == PayloadVariantOneofCase . Detail ) hash ^= Detail . GetHashCode ( ) ;
448
+ if ( HasDetail ) hash ^= Detail . GetHashCode ( ) ;
434
449
hash ^= ( int ) payloadVariantCase_ ;
435
450
if ( _unknownFields != null ) {
436
451
hash ^= _unknownFields . GetHashCode ( ) ;
@@ -474,7 +489,7 @@ public void WriteTo(pb::CodedOutputStream output) {
474
489
output . WriteRawTag ( 50 ) ;
475
490
output . WriteMessage ( Chat ) ;
476
491
}
477
- if ( payloadVariantCase_ == PayloadVariantOneofCase . Detail ) {
492
+ if ( HasDetail ) {
478
493
output . WriteRawTag ( 58 ) ;
479
494
output . WriteBytes ( Detail ) ;
480
495
}
@@ -512,7 +527,7 @@ public void WriteTo(pb::CodedOutputStream output) {
512
527
output . WriteRawTag ( 50 ) ;
513
528
output . WriteMessage ( Chat ) ;
514
529
}
515
- if ( payloadVariantCase_ == PayloadVariantOneofCase . Detail ) {
530
+ if ( HasDetail ) {
516
531
output . WriteRawTag ( 58 ) ;
517
532
output . WriteBytes ( Detail ) ;
518
533
}
@@ -544,7 +559,7 @@ public int CalculateSize() {
544
559
if ( payloadVariantCase_ == PayloadVariantOneofCase . Chat ) {
545
560
size += 1 + pb ::CodedOutputStream . ComputeMessageSize ( Chat ) ;
546
561
}
547
- if ( payloadVariantCase_ == PayloadVariantOneofCase . Detail ) {
562
+ if ( HasDetail ) {
548
563
size += 1 + pb ::CodedOutputStream . ComputeBytesSize ( Detail ) ;
549
564
}
550
565
if ( _unknownFields != null ) {
@@ -609,7 +624,11 @@ public void MergeFrom(pb::CodedInputStream input) {
609
624
#else
610
625
uint tag ;
611
626
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
612
- switch ( tag ) {
627
+ if ( ( tag & 7 ) == 4 ) {
628
+ // Abort on any end group tag.
629
+ return ;
630
+ }
631
+ switch ( tag ) {
613
632
default :
614
633
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
615
634
break ;
@@ -671,7 +690,11 @@ public void MergeFrom(pb::CodedInputStream input) {
671
690
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
672
691
uint tag ;
673
692
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
674
- switch ( tag ) {
693
+ if ( ( tag & 7 ) == 4 ) {
694
+ // Abort on any end group tag.
695
+ return ;
696
+ }
697
+ switch ( tag ) {
675
698
default :
676
699
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
677
700
break ;
@@ -733,6 +756,7 @@ public void MergeFrom(pb::CodedInputStream input) {
733
756
///
734
757
/// ATAK GeoChat message
735
758
/// </summary>
759
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
736
760
public sealed partial class GeoChat : pb ::IMessage < GeoChat >
737
761
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
738
762
, pb ::IBufferMessage
@@ -797,6 +821,8 @@ public string Message {
797
821
798
822
/// <summary>Field number for the "to" field.</summary>
799
823
public const int ToFieldNumber = 2 ;
824
+ private readonly static string ToDefaultValue = "" ;
825
+
800
826
private string to_ ;
801
827
/// <summary>
802
828
///
@@ -805,7 +831,7 @@ public string Message {
805
831
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
806
832
[ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
807
833
public string To {
808
- get { return to_ ?? "" ; }
834
+ get { return to_ ?? ToDefaultValue ; }
809
835
set {
810
836
to_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
811
837
}
@@ -825,6 +851,8 @@ public void ClearTo() {
825
851
826
852
/// <summary>Field number for the "to_callsign" field.</summary>
827
853
public const int ToCallsignFieldNumber = 3 ;
854
+ private readonly static string ToCallsignDefaultValue = "" ;
855
+
828
856
private string toCallsign_ ;
829
857
/// <summary>
830
858
///
@@ -833,7 +861,7 @@ public void ClearTo() {
833
861
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
834
862
[ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
835
863
public string ToCallsign {
836
- get { return toCallsign_ ?? "" ; }
864
+ get { return toCallsign_ ?? ToCallsignDefaultValue ; }
837
865
set {
838
866
toCallsign_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
839
867
}
@@ -982,7 +1010,11 @@ public void MergeFrom(pb::CodedInputStream input) {
982
1010
#else
983
1011
uint tag ;
984
1012
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
985
- switch ( tag ) {
1013
+ if ( ( tag & 7 ) == 4 ) {
1014
+ // Abort on any end group tag.
1015
+ return ;
1016
+ }
1017
+ switch ( tag ) {
986
1018
default :
987
1019
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
988
1020
break ;
@@ -1009,7 +1041,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1009
1041
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
1010
1042
uint tag ;
1011
1043
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1012
- switch ( tag ) {
1044
+ if ( ( tag & 7 ) == 4 ) {
1045
+ // Abort on any end group tag.
1046
+ return ;
1047
+ }
1048
+ switch ( tag ) {
1013
1049
default :
1014
1050
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
1015
1051
break ;
@@ -1037,6 +1073,7 @@ public void MergeFrom(pb::CodedInputStream input) {
1037
1073
/// ATAK Group
1038
1074
/// <__group role='Team Member' name='Cyan'/>
1039
1075
/// </summary>
1076
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
1040
1077
public sealed partial class Group : pb ::IMessage < Group >
1041
1078
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1042
1079
, pb ::IBufferMessage
@@ -1230,7 +1267,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1230
1267
#else
1231
1268
uint tag ;
1232
1269
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1233
- switch ( tag ) {
1270
+ if ( ( tag & 7 ) == 4 ) {
1271
+ // Abort on any end group tag.
1272
+ return ;
1273
+ }
1274
+ switch ( tag ) {
1234
1275
default :
1235
1276
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
1236
1277
break ;
@@ -1253,7 +1294,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1253
1294
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
1254
1295
uint tag ;
1255
1296
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1256
- switch ( tag ) {
1297
+ if ( ( tag & 7 ) == 4 ) {
1298
+ // Abort on any end group tag.
1299
+ return ;
1300
+ }
1301
+ switch ( tag ) {
1257
1302
default :
1258
1303
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
1259
1304
break ;
@@ -1277,6 +1322,7 @@ public void MergeFrom(pb::CodedInputStream input) {
1277
1322
/// ATAK EUD Status
1278
1323
/// <status battery='100' />
1279
1324
/// </summary>
1325
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
1280
1326
public sealed partial class Status : pb ::IMessage < Status >
1281
1327
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1282
1328
, pb ::IBufferMessage
@@ -1436,7 +1482,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1436
1482
#else
1437
1483
uint tag ;
1438
1484
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1439
- switch ( tag ) {
1485
+ if ( ( tag & 7 ) == 4 ) {
1486
+ // Abort on any end group tag.
1487
+ return ;
1488
+ }
1489
+ switch ( tag ) {
1440
1490
default :
1441
1491
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
1442
1492
break ;
@@ -1455,7 +1505,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1455
1505
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
1456
1506
uint tag ;
1457
1507
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1458
- switch ( tag ) {
1508
+ if ( ( tag & 7 ) == 4 ) {
1509
+ // Abort on any end group tag.
1510
+ return ;
1511
+ }
1512
+ switch ( tag ) {
1459
1513
default :
1460
1514
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
1461
1515
break ;
@@ -1475,6 +1529,7 @@ public void MergeFrom(pb::CodedInputStream input) {
1475
1529
/// ATAK Contact
1476
1530
/// <contact endpoint='0.0.0.0:4242:tcp' phone='+12345678' callsign='FALKE'/>
1477
1531
/// </summary>
1532
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
1478
1533
public sealed partial class Contact : pb ::IMessage < Contact >
1479
1534
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1480
1535
, pb ::IBufferMessage
@@ -1667,7 +1722,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1667
1722
#else
1668
1723
uint tag ;
1669
1724
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1670
- switch ( tag ) {
1725
+ if ( ( tag & 7 ) == 4 ) {
1726
+ // Abort on any end group tag.
1727
+ return ;
1728
+ }
1729
+ switch ( tag ) {
1671
1730
default :
1672
1731
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
1673
1732
break ;
@@ -1690,7 +1749,11 @@ public void MergeFrom(pb::CodedInputStream input) {
1690
1749
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
1691
1750
uint tag ;
1692
1751
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1693
- switch ( tag ) {
1752
+ if ( ( tag & 7 ) == 4 ) {
1753
+ // Abort on any end group tag.
1754
+ return ;
1755
+ }
1756
+ switch ( tag ) {
1694
1757
default :
1695
1758
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
1696
1759
break ;
@@ -1713,6 +1776,7 @@ public void MergeFrom(pb::CodedInputStream input) {
1713
1776
///
1714
1777
/// Position Location Information from ATAK
1715
1778
/// </summary>
1779
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
1716
1780
public sealed partial class PLI : pb ::IMessage < PLI >
1717
1781
#if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1718
1782
, pb ::IBufferMessage
@@ -2006,7 +2070,11 @@ public void MergeFrom(pb::CodedInputStream input) {
2006
2070
#else
2007
2071
uint tag ;
2008
2072
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
2009
- switch ( tag ) {
2073
+ if ( ( tag & 7 ) == 4 ) {
2074
+ // Abort on any end group tag.
2075
+ return ;
2076
+ }
2077
+ switch ( tag ) {
2010
2078
default :
2011
2079
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
2012
2080
break ;
@@ -2041,7 +2109,11 @@ public void MergeFrom(pb::CodedInputStream input) {
2041
2109
void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
2042
2110
uint tag ;
2043
2111
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
2044
- switch ( tag ) {
2112
+ if ( ( tag & 7 ) == 4 ) {
2113
+ // Abort on any end group tag.
2114
+ return ;
2115
+ }
2116
+ switch ( tag ) {
2045
2117
default :
2046
2118
_unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
2047
2119
break ;
0 commit comments