@@ -374,7 +374,7 @@ if (goog.DEBUG && !COMPILED) {
374
374
* @constructor
375
375
*/
376
376
proto . cc . arduino . cli . commands . v1 . SearchedLibrary = function ( opt_data ) {
377
- jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
377
+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , proto . cc . arduino . cli . commands . v1 . SearchedLibrary . repeatedFields_ , null ) ;
378
378
} ;
379
379
goog . inherits ( proto . cc . arduino . cli . commands . v1 . SearchedLibrary , jspb . Message ) ;
380
380
if ( goog . DEBUG && ! COMPILED ) {
@@ -3202,7 +3202,8 @@ proto.cc.arduino.cli.commands.v1.LibrarySearchRequest.prototype.toObject = funct
3202
3202
proto . cc . arduino . cli . commands . v1 . LibrarySearchRequest . toObject = function ( includeInstance , msg ) {
3203
3203
var f , obj = {
3204
3204
instance : ( f = msg . getInstance ( ) ) && cc_arduino_cli_commands_v1_common_pb . Instance . toObject ( includeInstance , f ) ,
3205
- query : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
3205
+ query : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
3206
+ omitReleasesDetails : jspb . Message . getBooleanFieldWithDefault ( msg , 3 , false )
3206
3207
} ;
3207
3208
3208
3209
if ( includeInstance ) {
@@ -3248,6 +3249,10 @@ proto.cc.arduino.cli.commands.v1.LibrarySearchRequest.deserializeBinaryFromReade
3248
3249
var value = /** @type {string } */ ( reader . readString ( ) ) ;
3249
3250
msg . setQuery ( value ) ;
3250
3251
break ;
3252
+ case 3 :
3253
+ var value = /** @type {boolean } */ ( reader . readBool ( ) ) ;
3254
+ msg . setOmitReleasesDetails ( value ) ;
3255
+ break ;
3251
3256
default :
3252
3257
reader . skipField ( ) ;
3253
3258
break ;
@@ -3292,6 +3297,13 @@ proto.cc.arduino.cli.commands.v1.LibrarySearchRequest.serializeBinaryToWriter =
3292
3297
f
3293
3298
) ;
3294
3299
}
3300
+ f = message . getOmitReleasesDetails ( ) ;
3301
+ if ( f ) {
3302
+ writer . writeBool (
3303
+ 3 ,
3304
+ f
3305
+ ) ;
3306
+ }
3295
3307
} ;
3296
3308
3297
3309
@@ -3350,6 +3362,24 @@ proto.cc.arduino.cli.commands.v1.LibrarySearchRequest.prototype.setQuery = funct
3350
3362
} ;
3351
3363
3352
3364
3365
+ /**
3366
+ * optional bool omit_releases_details = 3;
3367
+ * @return {boolean }
3368
+ */
3369
+ proto . cc . arduino . cli . commands . v1 . LibrarySearchRequest . prototype . getOmitReleasesDetails = function ( ) {
3370
+ return /** @type {boolean } */ ( jspb . Message . getBooleanFieldWithDefault ( this , 3 , false ) ) ;
3371
+ } ;
3372
+
3373
+
3374
+ /**
3375
+ * @param {boolean } value
3376
+ * @return {!proto.cc.arduino.cli.commands.v1.LibrarySearchRequest } returns this
3377
+ */
3378
+ proto . cc . arduino . cli . commands . v1 . LibrarySearchRequest . prototype . setOmitReleasesDetails = function ( value ) {
3379
+ return jspb . Message . setProto3BooleanField ( this , 3 , value ) ;
3380
+ } ;
3381
+
3382
+
3353
3383
3354
3384
/**
3355
3385
* List of repeated fields within this message type.
@@ -3541,6 +3571,13 @@ proto.cc.arduino.cli.commands.v1.LibrarySearchResponse.prototype.setStatus = fun
3541
3571
3542
3572
3543
3573
3574
+ /**
3575
+ * List of repeated fields within this message type.
3576
+ * @private {!Array<number>}
3577
+ * @const
3578
+ */
3579
+ proto . cc . arduino . cli . commands . v1 . SearchedLibrary . repeatedFields_ = [ 4 ] ;
3580
+
3544
3581
3545
3582
3546
3583
if ( jspb . Message . GENERATE_TO_OBJECT ) {
@@ -3574,7 +3611,8 @@ proto.cc.arduino.cli.commands.v1.SearchedLibrary.toObject = function(includeInst
3574
3611
var f , obj = {
3575
3612
name : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
3576
3613
releasesMap : ( f = msg . getReleasesMap ( ) ) ? f . toObject ( includeInstance , proto . cc . arduino . cli . commands . v1 . LibraryRelease . toObject ) : [ ] ,
3577
- latest : ( f = msg . getLatest ( ) ) && proto . cc . arduino . cli . commands . v1 . LibraryRelease . toObject ( includeInstance , f )
3614
+ latest : ( f = msg . getLatest ( ) ) && proto . cc . arduino . cli . commands . v1 . LibraryRelease . toObject ( includeInstance , f ) ,
3615
+ availableVersionsList : ( f = jspb . Message . getRepeatedField ( msg , 4 ) ) == null ? undefined : f
3578
3616
} ;
3579
3617
3580
3618
if ( includeInstance ) {
@@ -3626,6 +3664,10 @@ proto.cc.arduino.cli.commands.v1.SearchedLibrary.deserializeBinaryFromReader = f
3626
3664
reader . readMessage ( value , proto . cc . arduino . cli . commands . v1 . LibraryRelease . deserializeBinaryFromReader ) ;
3627
3665
msg . setLatest ( value ) ;
3628
3666
break ;
3667
+ case 4 :
3668
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
3669
+ msg . addAvailableVersions ( value ) ;
3670
+ break ;
3629
3671
default :
3630
3672
reader . skipField ( ) ;
3631
3673
break ;
@@ -3674,6 +3716,13 @@ proto.cc.arduino.cli.commands.v1.SearchedLibrary.serializeBinaryToWriter = funct
3674
3716
proto . cc . arduino . cli . commands . v1 . LibraryRelease . serializeBinaryToWriter
3675
3717
) ;
3676
3718
}
3719
+ f = message . getAvailableVersionsList ( ) ;
3720
+ if ( f . length > 0 ) {
3721
+ writer . writeRepeatedString (
3722
+ 4 ,
3723
+ f
3724
+ ) ;
3725
+ }
3677
3726
} ;
3678
3727
3679
3728
@@ -3754,6 +3803,43 @@ proto.cc.arduino.cli.commands.v1.SearchedLibrary.prototype.hasLatest = function(
3754
3803
} ;
3755
3804
3756
3805
3806
+ /**
3807
+ * repeated string available_versions = 4;
3808
+ * @return {!Array<string> }
3809
+ */
3810
+ proto . cc . arduino . cli . commands . v1 . SearchedLibrary . prototype . getAvailableVersionsList = function ( ) {
3811
+ return /** @type {!Array<string> } */ ( jspb . Message . getRepeatedField ( this , 4 ) ) ;
3812
+ } ;
3813
+
3814
+
3815
+ /**
3816
+ * @param {!Array<string> } value
3817
+ * @return {!proto.cc.arduino.cli.commands.v1.SearchedLibrary } returns this
3818
+ */
3819
+ proto . cc . arduino . cli . commands . v1 . SearchedLibrary . prototype . setAvailableVersionsList = function ( value ) {
3820
+ return jspb . Message . setField ( this , 4 , value || [ ] ) ;
3821
+ } ;
3822
+
3823
+
3824
+ /**
3825
+ * @param {string } value
3826
+ * @param {number= } opt_index
3827
+ * @return {!proto.cc.arduino.cli.commands.v1.SearchedLibrary } returns this
3828
+ */
3829
+ proto . cc . arduino . cli . commands . v1 . SearchedLibrary . prototype . addAvailableVersions = function ( value , opt_index ) {
3830
+ return jspb . Message . addToRepeatedField ( this , 4 , value , opt_index ) ;
3831
+ } ;
3832
+
3833
+
3834
+ /**
3835
+ * Clears the list making it empty but non-null.
3836
+ * @return {!proto.cc.arduino.cli.commands.v1.SearchedLibrary } returns this
3837
+ */
3838
+ proto . cc . arduino . cli . commands . v1 . SearchedLibrary . prototype . clearAvailableVersionsList = function ( ) {
3839
+ return this . setAvailableVersionsList ( [ ] ) ;
3840
+ } ;
3841
+
3842
+
3757
3843
3758
3844
/**
3759
3845
* List of repeated fields within this message type.
0 commit comments