@@ -14,6 +14,8 @@ var jspb = require('google-protobuf');
14
14
var goog = jspb ;
15
15
var global = Function ( 'return this' ) ( ) ;
16
16
17
+ var google_protobuf_wrappers_pb = require ( 'google-protobuf/google/protobuf/wrappers_pb.js' ) ;
18
+ goog . object . extend ( proto , google_protobuf_wrappers_pb ) ;
17
19
var commands_common_pb = require ( '../commands/common_pb.js' ) ;
18
20
goog . object . extend ( proto , commands_common_pb ) ;
19
21
var commands_lib_pb = require ( '../commands/lib_pb.js' ) ;
@@ -140,9 +142,9 @@ proto.cc.arduino.cli.commands.CompileReq.toObject = function(includeInstance, ms
140
142
optimizefordebug : jspb . Message . getBooleanFieldWithDefault ( msg , 16 , false ) ,
141
143
exportDir : jspb . Message . getFieldWithDefault ( msg , 18 , "" ) ,
142
144
clean : jspb . Message . getBooleanFieldWithDefault ( msg , 19 , false ) ,
143
- exportBinaries : jspb . Message . getBooleanFieldWithDefault ( msg , 20 , false ) ,
144
145
createCompilationDatabaseOnly : jspb . Message . getBooleanFieldWithDefault ( msg , 21 , false ) ,
145
- sourceOverrideMap : ( f = msg . getSourceOverrideMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ]
146
+ sourceOverrideMap : ( f = msg . getSourceOverrideMap ( ) ) ? f . toObject ( includeInstance , undefined ) : [ ] ,
147
+ exportBinaries : ( f = msg . getExportBinaries ( ) ) && google_protobuf_wrappers_pb . BoolValue . toObject ( includeInstance , f )
146
148
} ;
147
149
148
150
if ( includeInstance ) {
@@ -248,10 +250,6 @@ proto.cc.arduino.cli.commands.CompileReq.deserializeBinaryFromReader = function(
248
250
var value = /** @type {boolean } */ ( reader . readBool ( ) ) ;
249
251
msg . setClean ( value ) ;
250
252
break ;
251
- case 20 :
252
- var value = /** @type {boolean } */ ( reader . readBool ( ) ) ;
253
- msg . setExportBinaries ( value ) ;
254
- break ;
255
253
case 21 :
256
254
var value = /** @type {boolean } */ ( reader . readBool ( ) ) ;
257
255
msg . setCreateCompilationDatabaseOnly ( value ) ;
@@ -262,6 +260,11 @@ proto.cc.arduino.cli.commands.CompileReq.deserializeBinaryFromReader = function(
262
260
jspb . Map . deserializeBinary ( message , reader , jspb . BinaryReader . prototype . readString , jspb . BinaryReader . prototype . readString , null , "" , "" ) ;
263
261
} ) ;
264
262
break ;
263
+ case 23 :
264
+ var value = new google_protobuf_wrappers_pb . BoolValue ;
265
+ reader . readMessage ( value , google_protobuf_wrappers_pb . BoolValue . deserializeBinaryFromReader ) ;
266
+ msg . setExportBinaries ( value ) ;
267
+ break ;
265
268
default :
266
269
reader . skipField ( ) ;
267
270
break ;
@@ -411,13 +414,6 @@ proto.cc.arduino.cli.commands.CompileReq.serializeBinaryToWriter = function(mess
411
414
f
412
415
) ;
413
416
}
414
- f = message . getExportBinaries ( ) ;
415
- if ( f ) {
416
- writer . writeBool (
417
- 20 ,
418
- f
419
- ) ;
420
- }
421
417
f = message . getCreateCompilationDatabaseOnly ( ) ;
422
418
if ( f ) {
423
419
writer . writeBool (
@@ -429,6 +425,14 @@ proto.cc.arduino.cli.commands.CompileReq.serializeBinaryToWriter = function(mess
429
425
if ( f && f . getLength ( ) > 0 ) {
430
426
f . serializeBinary ( 22 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
431
427
}
428
+ f = message . getExportBinaries ( ) ;
429
+ if ( f != null ) {
430
+ writer . writeMessage (
431
+ 23 ,
432
+ f ,
433
+ google_protobuf_wrappers_pb . BoolValue . serializeBinaryToWriter
434
+ ) ;
435
+ }
432
436
} ;
433
437
434
438
@@ -795,24 +799,6 @@ proto.cc.arduino.cli.commands.CompileReq.prototype.setClean = function(value) {
795
799
} ;
796
800
797
801
798
- /**
799
- * optional bool export_binaries = 20;
800
- * @return {boolean }
801
- */
802
- proto . cc . arduino . cli . commands . CompileReq . prototype . getExportBinaries = function ( ) {
803
- return /** @type {boolean } */ ( jspb . Message . getBooleanFieldWithDefault ( this , 20 , false ) ) ;
804
- } ;
805
-
806
-
807
- /**
808
- * @param {boolean } value
809
- * @return {!proto.cc.arduino.cli.commands.CompileReq } returns this
810
- */
811
- proto . cc . arduino . cli . commands . CompileReq . prototype . setExportBinaries = function ( value ) {
812
- return jspb . Message . setProto3BooleanField ( this , 20 , value ) ;
813
- } ;
814
-
815
-
816
802
/**
817
803
* optional bool create_compilation_database_only = 21;
818
804
* @return {boolean }
@@ -853,6 +839,43 @@ proto.cc.arduino.cli.commands.CompileReq.prototype.clearSourceOverrideMap = func
853
839
return this ; } ;
854
840
855
841
842
+ /**
843
+ * optional google.protobuf.BoolValue export_binaries = 23;
844
+ * @return {?proto.google.protobuf.BoolValue }
845
+ */
846
+ proto . cc . arduino . cli . commands . CompileReq . prototype . getExportBinaries = function ( ) {
847
+ return /** @type {?proto.google.protobuf.BoolValue } */ (
848
+ jspb . Message . getWrapperField ( this , google_protobuf_wrappers_pb . BoolValue , 23 ) ) ;
849
+ } ;
850
+
851
+
852
+ /**
853
+ * @param {?proto.google.protobuf.BoolValue|undefined } value
854
+ * @return {!proto.cc.arduino.cli.commands.CompileReq } returns this
855
+ */
856
+ proto . cc . arduino . cli . commands . CompileReq . prototype . setExportBinaries = function ( value ) {
857
+ return jspb . Message . setWrapperField ( this , 23 , value ) ;
858
+ } ;
859
+
860
+
861
+ /**
862
+ * Clears the message field making it undefined.
863
+ * @return {!proto.cc.arduino.cli.commands.CompileReq } returns this
864
+ */
865
+ proto . cc . arduino . cli . commands . CompileReq . prototype . clearExportBinaries = function ( ) {
866
+ return this . setExportBinaries ( undefined ) ;
867
+ } ;
868
+
869
+
870
+ /**
871
+ * Returns whether this field is set.
872
+ * @return {boolean }
873
+ */
874
+ proto . cc . arduino . cli . commands . CompileReq . prototype . hasExportBinaries = function ( ) {
875
+ return jspb . Message . getField ( this , 23 ) != null ;
876
+ } ;
877
+
878
+
856
879
857
880
/**
858
881
* List of repeated fields within this message type.
0 commit comments