@@ -26,6 +26,7 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.LibraryDependency', null, gl
26
26
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryDependencyStatus' , null , global ) ;
27
27
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryDownloadRequest' , null , global ) ;
28
28
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryDownloadResponse' , null , global ) ;
29
+ goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryInstallLocation' , null , global ) ;
29
30
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryInstallRequest' , null , global ) ;
30
31
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryInstallResponse' , null , global ) ;
31
32
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.LibraryLayout' , null , global ) ;
@@ -1012,7 +1013,8 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.toObject = function(inclu
1012
1013
name : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
1013
1014
version : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
1014
1015
noDeps : jspb . Message . getBooleanFieldWithDefault ( msg , 4 , false ) ,
1015
- noOverwrite : jspb . Message . getBooleanFieldWithDefault ( msg , 5 , false )
1016
+ noOverwrite : jspb . Message . getBooleanFieldWithDefault ( msg , 5 , false ) ,
1017
+ installLocation : jspb . Message . getFieldWithDefault ( msg , 6 , 0 )
1016
1018
} ;
1017
1019
1018
1020
if ( includeInstance ) {
@@ -1070,6 +1072,10 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.deserializeBinaryFromRead
1070
1072
var value = /** @type {boolean } */ ( reader . readBool ( ) ) ;
1071
1073
msg . setNoOverwrite ( value ) ;
1072
1074
break ;
1075
+ case 6 :
1076
+ var value = /** @type {!proto.cc.arduino.cli.commands.v1.LibraryInstallLocation } */ ( reader . readEnum ( ) ) ;
1077
+ msg . setInstallLocation ( value ) ;
1078
+ break ;
1073
1079
default :
1074
1080
reader . skipField ( ) ;
1075
1081
break ;
@@ -1135,6 +1141,13 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.serializeBinaryToWriter =
1135
1141
f
1136
1142
) ;
1137
1143
}
1144
+ f = message . getInstallLocation ( ) ;
1145
+ if ( f !== 0.0 ) {
1146
+ writer . writeEnum (
1147
+ 6 ,
1148
+ f
1149
+ ) ;
1150
+ }
1138
1151
} ;
1139
1152
1140
1153
@@ -1247,6 +1260,24 @@ proto.cc.arduino.cli.commands.v1.LibraryInstallRequest.prototype.setNoOverwrite
1247
1260
} ;
1248
1261
1249
1262
1263
+ /**
1264
+ * optional LibraryInstallLocation install_location = 6;
1265
+ * @return {!proto.cc.arduino.cli.commands.v1.LibraryInstallLocation }
1266
+ */
1267
+ proto . cc . arduino . cli . commands . v1 . LibraryInstallRequest . prototype . getInstallLocation = function ( ) {
1268
+ return /** @type {!proto.cc.arduino.cli.commands.v1.LibraryInstallLocation } */ ( jspb . Message . getFieldWithDefault ( this , 6 , 0 ) ) ;
1269
+ } ;
1270
+
1271
+
1272
+ /**
1273
+ * @param {!proto.cc.arduino.cli.commands.v1.LibraryInstallLocation } value
1274
+ * @return {!proto.cc.arduino.cli.commands.v1.LibraryInstallRequest } returns this
1275
+ */
1276
+ proto . cc . arduino . cli . commands . v1 . LibraryInstallRequest . prototype . setInstallLocation = function ( value ) {
1277
+ return jspb . Message . setProto3EnumField ( this , 6 , value ) ;
1278
+ } ;
1279
+
1280
+
1250
1281
1251
1282
1252
1283
@@ -7057,6 +7088,14 @@ proto.cc.arduino.cli.commands.v1.GitLibraryInstallResponse.prototype.hasTaskProg
7057
7088
} ;
7058
7089
7059
7090
7091
+ /**
7092
+ * @enum {number}
7093
+ */
7094
+ proto . cc . arduino . cli . commands . v1 . LibraryInstallLocation = {
7095
+ LIBRARY_INSTALL_LOCATION_USER : 0 ,
7096
+ LIBRARY_INSTALL_LOCATION_BUILTIN : 1
7097
+ } ;
7098
+
7060
7099
/**
7061
7100
* @enum {number}
7062
7101
*/
@@ -7077,7 +7116,7 @@ proto.cc.arduino.cli.commands.v1.LibraryLayout = {
7077
7116
* @enum {number}
7078
7117
*/
7079
7118
proto . cc . arduino . cli . commands . v1 . LibraryLocation = {
7080
- LIBRARY_LOCATION_IDE_BUILTIN : 0 ,
7119
+ LIBRARY_LOCATION_BUILTIN : 0 ,
7081
7120
LIBRARY_LOCATION_USER : 1 ,
7082
7121
LIBRARY_LOCATION_PLATFORM_BUILTIN : 2 ,
7083
7122
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN : 3 ,
0 commit comments