@@ -37,6 +37,8 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.CreateRequest', null, global
37
37
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.CreateResponse' , null , global ) ;
38
38
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.DestroyRequest' , null , global ) ;
39
39
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.DestroyResponse' , null , global ) ;
40
+ goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.FailedInstanceInitError' , null , global ) ;
41
+ goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.FailedInstanceInitReason' , null , global ) ;
40
42
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.InitRequest' , null , global ) ;
41
43
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.InitResponse' , null , global ) ;
42
44
goog . exportSymbol ( 'proto.cc.arduino.cli.commands.v1.InitResponse.MessageCase' , null , global ) ;
@@ -156,6 +158,27 @@ if (goog.DEBUG && !COMPILED) {
156
158
*/
157
159
proto . cc . arduino . cli . commands . v1 . InitResponse . Progress . displayName = 'proto.cc.arduino.cli.commands.v1.InitResponse.Progress' ;
158
160
}
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array= } opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message }
169
+ * @constructor
170
+ */
171
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError = function ( opt_data ) {
172
+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
173
+ } ;
174
+ goog . inherits ( proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError , jspb . Message ) ;
175
+ if ( goog . DEBUG && ! COMPILED ) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . displayName = 'proto.cc.arduino.cli.commands.v1.FailedInstanceInitError' ;
181
+ }
159
182
/**
160
183
* Generated by JsPbCodeGenerator.
161
184
* @param {Array= } opt_data Optional initial data array, typically from a
@@ -1398,6 +1421,166 @@ proto.cc.arduino.cli.commands.v1.InitResponse.prototype.hasProfile = function()
1398
1421
1399
1422
1400
1423
1424
+ if ( jspb . Message . GENERATE_TO_OBJECT ) {
1425
+ /**
1426
+ * Creates an object representation of this proto.
1427
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1428
+ * Optional fields that are not set will be set to undefined.
1429
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1430
+ * For the list of reserved names please see:
1431
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1432
+ * @param {boolean= } opt_includeInstance Deprecated. whether to include the
1433
+ * JSPB instance for transitional soy proto support:
1434
+ * http://goto/soy-param-migration
1435
+ * @return {!Object }
1436
+ */
1437
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . toObject = function ( opt_includeInstance ) {
1438
+ return proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . toObject ( opt_includeInstance , this ) ;
1439
+ } ;
1440
+
1441
+
1442
+ /**
1443
+ * Static version of the {@see toObject} method.
1444
+ * @param {boolean|undefined } includeInstance Deprecated. Whether to include
1445
+ * the JSPB instance for transitional soy proto support:
1446
+ * http://goto/soy-param-migration
1447
+ * @param {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError } msg The msg instance to transform.
1448
+ * @return {!Object }
1449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1450
+ */
1451
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . toObject = function ( includeInstance , msg ) {
1452
+ var f , obj = {
1453
+ reason : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
1454
+ message : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
1455
+ } ;
1456
+
1457
+ if ( includeInstance ) {
1458
+ obj . $jspbMessageInstance = msg ;
1459
+ }
1460
+ return obj ;
1461
+ } ;
1462
+ }
1463
+
1464
+
1465
+ /**
1466
+ * Deserializes binary data (in protobuf wire format).
1467
+ * @param {jspb.ByteSource } bytes The bytes to deserialize.
1468
+ * @return {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError }
1469
+ */
1470
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . deserializeBinary = function ( bytes ) {
1471
+ var reader = new jspb . BinaryReader ( bytes ) ;
1472
+ var msg = new proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError ;
1473
+ return proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . deserializeBinaryFromReader ( msg , reader ) ;
1474
+ } ;
1475
+
1476
+
1477
+ /**
1478
+ * Deserializes binary data (in protobuf wire format) from the
1479
+ * given reader into the given message object.
1480
+ * @param {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError } msg The message object to deserialize into.
1481
+ * @param {!jspb.BinaryReader } reader The BinaryReader to use.
1482
+ * @return {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError }
1483
+ */
1484
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . deserializeBinaryFromReader = function ( msg , reader ) {
1485
+ while ( reader . nextField ( ) ) {
1486
+ if ( reader . isEndGroup ( ) ) {
1487
+ break ;
1488
+ }
1489
+ var field = reader . getFieldNumber ( ) ;
1490
+ switch ( field ) {
1491
+ case 1 :
1492
+ var value = /** @type {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitReason } */ ( reader . readEnum ( ) ) ;
1493
+ msg . setReason ( value ) ;
1494
+ break ;
1495
+ case 2 :
1496
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
1497
+ msg . setMessage ( value ) ;
1498
+ break ;
1499
+ default :
1500
+ reader . skipField ( ) ;
1501
+ break ;
1502
+ }
1503
+ }
1504
+ return msg ;
1505
+ } ;
1506
+
1507
+
1508
+ /**
1509
+ * Serializes the message to binary data (in protobuf wire format).
1510
+ * @return {!Uint8Array }
1511
+ */
1512
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . serializeBinary = function ( ) {
1513
+ var writer = new jspb . BinaryWriter ( ) ;
1514
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . serializeBinaryToWriter ( this , writer ) ;
1515
+ return writer . getResultBuffer ( ) ;
1516
+ } ;
1517
+
1518
+
1519
+ /**
1520
+ * Serializes the given message to binary data (in protobuf wire
1521
+ * format), writing to the given BinaryWriter.
1522
+ * @param {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError } message
1523
+ * @param {!jspb.BinaryWriter } writer
1524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1525
+ */
1526
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . serializeBinaryToWriter = function ( message , writer ) {
1527
+ var f = undefined ;
1528
+ f = message . getReason ( ) ;
1529
+ if ( f !== 0.0 ) {
1530
+ writer . writeEnum (
1531
+ 1 ,
1532
+ f
1533
+ ) ;
1534
+ }
1535
+ f = message . getMessage ( ) ;
1536
+ if ( f . length > 0 ) {
1537
+ writer . writeString (
1538
+ 2 ,
1539
+ f
1540
+ ) ;
1541
+ }
1542
+ } ;
1543
+
1544
+
1545
+ /**
1546
+ * optional FailedInstanceInitReason reason = 1;
1547
+ * @return {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitReason }
1548
+ */
1549
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . getReason = function ( ) {
1550
+ return /** @type {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitReason } */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
1551
+ } ;
1552
+
1553
+
1554
+ /**
1555
+ * @param {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitReason } value
1556
+ * @return {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError } returns this
1557
+ */
1558
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . setReason = function ( value ) {
1559
+ return jspb . Message . setProto3EnumField ( this , 1 , value ) ;
1560
+ } ;
1561
+
1562
+
1563
+ /**
1564
+ * optional string message = 2;
1565
+ * @return {string }
1566
+ */
1567
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . getMessage = function ( ) {
1568
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
1569
+ } ;
1570
+
1571
+
1572
+ /**
1573
+ * @param {string } value
1574
+ * @return {!proto.cc.arduino.cli.commands.v1.FailedInstanceInitError } returns this
1575
+ */
1576
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitError . prototype . setMessage = function ( value ) {
1577
+ return jspb . Message . setProto3StringField ( this , 2 , value ) ;
1578
+ } ;
1579
+
1580
+
1581
+
1582
+
1583
+
1401
1584
if ( jspb . Message . GENERATE_TO_OBJECT ) {
1402
1585
/**
1403
1586
* Creates an object representation of this proto.
@@ -3699,4 +3882,14 @@ proto.cc.arduino.cli.commands.v1.ArchiveSketchResponse.serializeBinaryToWriter =
3699
3882
} ;
3700
3883
3701
3884
3885
+ /**
3886
+ * @enum {number}
3887
+ */
3888
+ proto . cc . arduino . cli . commands . v1 . FailedInstanceInitReason = {
3889
+ FAILED_INSTANCE_INIT_REASON_UNSPECIFIED : 0 ,
3890
+ FAILED_INSTANCE_INIT_REASON_INVALID_INDEX_URL : 1 ,
3891
+ FAILED_INSTANCE_INIT_REASON_INDEX_LOAD_ERROR : 2 ,
3892
+ FAILED_INSTANCE_INIT_REASON_TOOL_LOAD_ERROR : 3
3893
+ } ;
3894
+
3702
3895
goog . object . extend ( exports , proto . cc . arduino . cli . commands . v1 ) ;
0 commit comments