@@ -28,7 +28,7 @@ static MqttReflection() {
28
28
"aWMvY29uZmlnLnByb3RvGhVtZXNodGFzdGljL21lc2gucHJvdG8iYQoPU2Vy" ,
29
29
"dmljZUVudmVsb3BlEiYKBnBhY2tldBgBIAEoCzIWLm1lc2h0YXN0aWMuTWVz" ,
30
30
"aFBhY2tldBISCgpjaGFubmVsX2lkGAIgASgJEhIKCmdhdGV3YXlfaWQYAyAB" ,
31
- "KAkivAMKCU1hcFJlcG9ydBIRCglsb25nX25hbWUYASABKAkSEgoKc2hvcnRf " ,
31
+ "KAki3wMKCU1hcFJlcG9ydBIRCglsb25nX25hbWUYASABKAkSEgoKc2hvcnRf " ,
32
32
"bmFtZRgCIAEoCRIyCgRyb2xlGAMgASgOMiQubWVzaHRhc3RpYy5Db25maWcu" ,
33
33
"RGV2aWNlQ29uZmlnLlJvbGUSKwoIaHdfbW9kZWwYBCABKA4yGS5tZXNodGFz" ,
34
34
"dGljLkhhcmR3YXJlTW9kZWwSGAoQZmlybXdhcmVfdmVyc2lvbhgFIAEoCRI4" ,
@@ -37,15 +37,16 @@ static MqttReflection() {
37
37
"Yy5Db25maWcuTG9SYUNvbmZpZy5Nb2RlbVByZXNldBIbChNoYXNfZGVmYXVs" ,
38
38
"dF9jaGFubmVsGAggASgIEhIKCmxhdGl0dWRlX2kYCSABKA8SEwoLbG9uZ2l0" ,
39
39
"dWRlX2kYCiABKA8SEAoIYWx0aXR1ZGUYCyABKAUSGgoScG9zaXRpb25fcHJl" ,
40
- "Y2lzaW9uGAwgASgNEh4KFm51bV9vbmxpbmVfbG9jYWxfbm9kZXMYDSABKA1C" ,
41
- "XwoTY29tLmdlZWtzdmlsbGUubWVzaEIKTVFUVFByb3Rvc1oiZ2l0aHViLmNv" ,
42
- "bS9tZXNodGFzdGljL2dvL2dlbmVyYXRlZKoCFE1lc2h0YXN0aWMuUHJvdG9i" ,
43
- "dWZzugIAYgZwcm90bzM=" ) ) ;
40
+ "Y2lzaW9uGAwgASgNEh4KFm51bV9vbmxpbmVfbG9jYWxfbm9kZXMYDSABKA0S" ,
41
+ "IQoZaGFzX29wdGVkX3JlcG9ydF9sb2NhdGlvbhgOIAEoCEJfChNjb20uZ2Vl" ,
42
+ "a3N2aWxsZS5tZXNoQgpNUVRUUHJvdG9zWiJnaXRodWIuY29tL21lc2h0YXN0" ,
43
+ "aWMvZ28vZ2VuZXJhdGVkqgIUTWVzaHRhc3RpYy5Qcm90b2J1ZnO6AgBiBnBy" ,
44
+ "b3RvMw==" ) ) ;
44
45
descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
45
46
new pbr ::FileDescriptor [ ] { global ::Meshtastic . Protobufs . ConfigReflection . Descriptor , global ::Meshtastic . Protobufs . MeshReflection . Descriptor , } ,
46
47
new pbr ::GeneratedClrTypeInfo ( null , null , new pbr ::GeneratedClrTypeInfo [ ] {
47
48
new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Meshtastic . Protobufs . ServiceEnvelope ) , global ::Meshtastic . Protobufs . ServiceEnvelope . Parser , new [ ] { "Packet" , "ChannelId" , "GatewayId" } , null , null , null , null ) ,
48
- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Meshtastic . Protobufs . MapReport ) , global ::Meshtastic . Protobufs . MapReport . Parser , new [ ] { "LongName" , "ShortName" , "Role" , "HwModel" , "FirmwareVersion" , "Region" , "ModemPreset" , "HasDefaultChannel" , "LatitudeI" , "LongitudeI" , "Altitude" , "PositionPrecision" , "NumOnlineLocalNodes" } , null , null , null , null )
49
+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Meshtastic . Protobufs . MapReport ) , global ::Meshtastic . Protobufs . MapReport . Parser , new [ ] { "LongName" , "ShortName" , "Role" , "HwModel" , "FirmwareVersion" , "Region" , "ModemPreset" , "HasDefaultChannel" , "LatitudeI" , "LongitudeI" , "Altitude" , "PositionPrecision" , "NumOnlineLocalNodes" , "HasOptedReportLocation" } , null , null , null , null )
49
50
} ) ) ;
50
51
}
51
52
#endregion
@@ -403,6 +404,7 @@ public MapReport(MapReport other) : this() {
403
404
altitude_ = other . altitude_ ;
404
405
positionPrecision_ = other . positionPrecision_ ;
405
406
numOnlineLocalNodes_ = other . numOnlineLocalNodes_ ;
407
+ hasOptedReportLocation_ = other . hasOptedReportLocation_ ;
406
408
_unknownFields = pb ::UnknownFieldSet . Clone ( other . _unknownFields ) ;
407
409
}
408
410
@@ -622,6 +624,23 @@ public uint NumOnlineLocalNodes {
622
624
}
623
625
}
624
626
627
+ /// <summary>Field number for the "has_opted_report_location" field.</summary>
628
+ public const int HasOptedReportLocationFieldNumber = 14 ;
629
+ private bool hasOptedReportLocation_ ;
630
+ /// <summary>
631
+ ///
632
+ /// User has opted in to share their location (map report) with the mqtt server
633
+ /// Controlled by map_report.should_report_location
634
+ /// </summary>
635
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
636
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
637
+ public bool HasOptedReportLocation {
638
+ get { return hasOptedReportLocation_ ; }
639
+ set {
640
+ hasOptedReportLocation_ = value ;
641
+ }
642
+ }
643
+
625
644
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
626
645
[ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
627
646
public override bool Equals ( object other ) {
@@ -650,6 +669,7 @@ public bool Equals(MapReport other) {
650
669
if ( Altitude != other . Altitude ) return false ;
651
670
if ( PositionPrecision != other . PositionPrecision ) return false ;
652
671
if ( NumOnlineLocalNodes != other . NumOnlineLocalNodes ) return false ;
672
+ if ( HasOptedReportLocation != other . HasOptedReportLocation ) return false ;
653
673
return Equals ( _unknownFields , other . _unknownFields ) ;
654
674
}
655
675
@@ -670,6 +690,7 @@ public override int GetHashCode() {
670
690
if ( Altitude != 0 ) hash ^= Altitude . GetHashCode ( ) ;
671
691
if ( PositionPrecision != 0 ) hash ^= PositionPrecision . GetHashCode ( ) ;
672
692
if ( NumOnlineLocalNodes != 0 ) hash ^= NumOnlineLocalNodes . GetHashCode ( ) ;
693
+ if ( HasOptedReportLocation != false ) hash ^= HasOptedReportLocation . GetHashCode ( ) ;
673
694
if ( _unknownFields != null ) {
674
695
hash ^= _unknownFields . GetHashCode ( ) ;
675
696
}
@@ -740,6 +761,10 @@ public void WriteTo(pb::CodedOutputStream output) {
740
761
output . WriteRawTag ( 104 ) ;
741
762
output . WriteUInt32 ( NumOnlineLocalNodes ) ;
742
763
}
764
+ if ( HasOptedReportLocation != false ) {
765
+ output . WriteRawTag ( 112 ) ;
766
+ output . WriteBool ( HasOptedReportLocation ) ;
767
+ }
743
768
if ( _unknownFields != null ) {
744
769
_unknownFields . WriteTo ( output ) ;
745
770
}
@@ -802,6 +827,10 @@ public void WriteTo(pb::CodedOutputStream output) {
802
827
output . WriteRawTag ( 104 ) ;
803
828
output . WriteUInt32 ( NumOnlineLocalNodes ) ;
804
829
}
830
+ if ( HasOptedReportLocation != false ) {
831
+ output . WriteRawTag ( 112 ) ;
832
+ output . WriteBool ( HasOptedReportLocation ) ;
833
+ }
805
834
if ( _unknownFields != null ) {
806
835
_unknownFields . WriteTo ( ref output ) ;
807
836
}
@@ -851,6 +880,9 @@ public int CalculateSize() {
851
880
if ( NumOnlineLocalNodes != 0 ) {
852
881
size += 1 + pb ::CodedOutputStream . ComputeUInt32Size ( NumOnlineLocalNodes ) ;
853
882
}
883
+ if ( HasOptedReportLocation != false ) {
884
+ size += 1 + 1 ;
885
+ }
854
886
if ( _unknownFields != null ) {
855
887
size += _unknownFields . CalculateSize ( ) ;
856
888
}
@@ -902,6 +934,9 @@ public void MergeFrom(MapReport other) {
902
934
if ( other . NumOnlineLocalNodes != 0 ) {
903
935
NumOnlineLocalNodes = other . NumOnlineLocalNodes ;
904
936
}
937
+ if ( other . HasOptedReportLocation != false ) {
938
+ HasOptedReportLocation = other . HasOptedReportLocation ;
939
+ }
905
940
_unknownFields = pb ::UnknownFieldSet . MergeFrom ( _unknownFields , other . _unknownFields ) ;
906
941
}
907
942
@@ -973,6 +1008,10 @@ public void MergeFrom(pb::CodedInputStream input) {
973
1008
NumOnlineLocalNodes = input . ReadUInt32 ( ) ;
974
1009
break ;
975
1010
}
1011
+ case 112 : {
1012
+ HasOptedReportLocation = input . ReadBool ( ) ;
1013
+ break ;
1014
+ }
976
1015
}
977
1016
}
978
1017
#endif
@@ -1044,6 +1083,10 @@ public void MergeFrom(pb::CodedInputStream input) {
1044
1083
NumOnlineLocalNodes = input . ReadUInt32 ( ) ;
1045
1084
break ;
1046
1085
}
1086
+ case 112 : {
1087
+ HasOptedReportLocation = input . ReadBool ( ) ;
1088
+ break ;
1089
+ }
1047
1090
}
1048
1091
}
1049
1092
}
0 commit comments