@@ -866,7 +866,9 @@ proto.cc.arduino.cli.commands.v1.InitRequest.prototype.toObject = function(opt_i
866
866
*/
867
867
proto . cc . arduino . cli . commands . v1 . InitRequest . toObject = function ( includeInstance , msg ) {
868
868
var f , obj = {
869
- instance : ( f = msg . getInstance ( ) ) && cc_arduino_cli_commands_v1_common_pb . Instance . toObject ( includeInstance , f )
869
+ instance : ( f = msg . getInstance ( ) ) && cc_arduino_cli_commands_v1_common_pb . Instance . toObject ( includeInstance , f ) ,
870
+ profile : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
871
+ sketchPath : jspb . Message . getFieldWithDefault ( msg , 3 , "" )
870
872
} ;
871
873
872
874
if ( includeInstance ) {
@@ -908,6 +910,14 @@ proto.cc.arduino.cli.commands.v1.InitRequest.deserializeBinaryFromReader = funct
908
910
reader . readMessage ( value , cc_arduino_cli_commands_v1_common_pb . Instance . deserializeBinaryFromReader ) ;
909
911
msg . setInstance ( value ) ;
910
912
break ;
913
+ case 2 :
914
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
915
+ msg . setProfile ( value ) ;
916
+ break ;
917
+ case 3 :
918
+ var value = /** @type {string } */ ( reader . readString ( ) ) ;
919
+ msg . setSketchPath ( value ) ;
920
+ break ;
911
921
default :
912
922
reader . skipField ( ) ;
913
923
break ;
@@ -945,6 +955,20 @@ proto.cc.arduino.cli.commands.v1.InitRequest.serializeBinaryToWriter = function(
945
955
cc_arduino_cli_commands_v1_common_pb . Instance . serializeBinaryToWriter
946
956
) ;
947
957
}
958
+ f = message . getProfile ( ) ;
959
+ if ( f . length > 0 ) {
960
+ writer . writeString (
961
+ 2 ,
962
+ f
963
+ ) ;
964
+ }
965
+ f = message . getSketchPath ( ) ;
966
+ if ( f . length > 0 ) {
967
+ writer . writeString (
968
+ 3 ,
969
+ f
970
+ ) ;
971
+ }
948
972
} ;
949
973
950
974
@@ -985,6 +1009,42 @@ proto.cc.arduino.cli.commands.v1.InitRequest.prototype.hasInstance = function()
985
1009
} ;
986
1010
987
1011
1012
+ /**
1013
+ * optional string profile = 2;
1014
+ * @return {string }
1015
+ */
1016
+ proto . cc . arduino . cli . commands . v1 . InitRequest . prototype . getProfile = function ( ) {
1017
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
1018
+ } ;
1019
+
1020
+
1021
+ /**
1022
+ * @param {string } value
1023
+ * @return {!proto.cc.arduino.cli.commands.v1.InitRequest } returns this
1024
+ */
1025
+ proto . cc . arduino . cli . commands . v1 . InitRequest . prototype . setProfile = function ( value ) {
1026
+ return jspb . Message . setProto3StringField ( this , 2 , value ) ;
1027
+ } ;
1028
+
1029
+
1030
+ /**
1031
+ * optional string sketch_path = 3;
1032
+ * @return {string }
1033
+ */
1034
+ proto . cc . arduino . cli . commands . v1 . InitRequest . prototype . getSketchPath = function ( ) {
1035
+ return /** @type {string } */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
1036
+ } ;
1037
+
1038
+
1039
+ /**
1040
+ * @param {string } value
1041
+ * @return {!proto.cc.arduino.cli.commands.v1.InitRequest } returns this
1042
+ */
1043
+ proto . cc . arduino . cli . commands . v1 . InitRequest . prototype . setSketchPath = function ( value ) {
1044
+ return jspb . Message . setProto3StringField ( this , 3 , value ) ;
1045
+ } ;
1046
+
1047
+
988
1048
989
1049
/**
990
1050
* Oneof group definitions for this message. Each group defines the field
@@ -994,15 +1054,16 @@ proto.cc.arduino.cli.commands.v1.InitRequest.prototype.hasInstance = function()
994
1054
* @private {!Array<!Array<number>>}
995
1055
* @const
996
1056
*/
997
- proto . cc . arduino . cli . commands . v1 . InitResponse . oneofGroups_ = [ [ 1 , 2 ] ] ;
1057
+ proto . cc . arduino . cli . commands . v1 . InitResponse . oneofGroups_ = [ [ 1 , 2 , 3 ] ] ;
998
1058
999
1059
/**
1000
1060
* @enum {number}
1001
1061
*/
1002
1062
proto . cc . arduino . cli . commands . v1 . InitResponse . MessageCase = {
1003
1063
MESSAGE_NOT_SET : 0 ,
1004
1064
INIT_PROGRESS : 1 ,
1005
- ERROR : 2
1065
+ ERROR : 2 ,
1066
+ PROFILE : 3
1006
1067
} ;
1007
1068
1008
1069
/**
@@ -1044,7 +1105,8 @@ proto.cc.arduino.cli.commands.v1.InitResponse.prototype.toObject = function(opt_
1044
1105
proto . cc . arduino . cli . commands . v1 . InitResponse . toObject = function ( includeInstance , msg ) {
1045
1106
var f , obj = {
1046
1107
initProgress : ( f = msg . getInitProgress ( ) ) && proto . cc . arduino . cli . commands . v1 . InitResponse . Progress . toObject ( includeInstance , f ) ,
1047
- error : ( f = msg . getError ( ) ) && google_rpc_status_pb . Status . toObject ( includeInstance , f )
1108
+ error : ( f = msg . getError ( ) ) && google_rpc_status_pb . Status . toObject ( includeInstance , f ) ,
1109
+ profile : ( f = msg . getProfile ( ) ) && cc_arduino_cli_commands_v1_common_pb . Profile . toObject ( includeInstance , f )
1048
1110
} ;
1049
1111
1050
1112
if ( includeInstance ) {
@@ -1091,6 +1153,11 @@ proto.cc.arduino.cli.commands.v1.InitResponse.deserializeBinaryFromReader = func
1091
1153
reader . readMessage ( value , google_rpc_status_pb . Status . deserializeBinaryFromReader ) ;
1092
1154
msg . setError ( value ) ;
1093
1155
break ;
1156
+ case 3 :
1157
+ var value = new cc_arduino_cli_commands_v1_common_pb . Profile ;
1158
+ reader . readMessage ( value , cc_arduino_cli_commands_v1_common_pb . Profile . deserializeBinaryFromReader ) ;
1159
+ msg . setProfile ( value ) ;
1160
+ break ;
1094
1161
default :
1095
1162
reader . skipField ( ) ;
1096
1163
break ;
@@ -1136,6 +1203,14 @@ proto.cc.arduino.cli.commands.v1.InitResponse.serializeBinaryToWriter = function
1136
1203
google_rpc_status_pb . Status . serializeBinaryToWriter
1137
1204
) ;
1138
1205
}
1206
+ f = message . getProfile ( ) ;
1207
+ if ( f != null ) {
1208
+ writer . writeMessage (
1209
+ 3 ,
1210
+ f ,
1211
+ cc_arduino_cli_commands_v1_common_pb . Profile . serializeBinaryToWriter
1212
+ ) ;
1213
+ }
1139
1214
} ;
1140
1215
1141
1216
@@ -1415,6 +1490,43 @@ proto.cc.arduino.cli.commands.v1.InitResponse.prototype.hasError = function() {
1415
1490
} ;
1416
1491
1417
1492
1493
+ /**
1494
+ * optional Profile profile = 3;
1495
+ * @return {?proto.cc.arduino.cli.commands.v1.Profile }
1496
+ */
1497
+ proto . cc . arduino . cli . commands . v1 . InitResponse . prototype . getProfile = function ( ) {
1498
+ return /** @type {?proto.cc.arduino.cli.commands.v1.Profile } */ (
1499
+ jspb . Message . getWrapperField ( this , cc_arduino_cli_commands_v1_common_pb . Profile , 3 ) ) ;
1500
+ } ;
1501
+
1502
+
1503
+ /**
1504
+ * @param {?proto.cc.arduino.cli.commands.v1.Profile|undefined } value
1505
+ * @return {!proto.cc.arduino.cli.commands.v1.InitResponse } returns this
1506
+ */
1507
+ proto . cc . arduino . cli . commands . v1 . InitResponse . prototype . setProfile = function ( value ) {
1508
+ return jspb . Message . setOneofWrapperField ( this , 3 , proto . cc . arduino . cli . commands . v1 . InitResponse . oneofGroups_ [ 0 ] , value ) ;
1509
+ } ;
1510
+
1511
+
1512
+ /**
1513
+ * Clears the message field making it undefined.
1514
+ * @return {!proto.cc.arduino.cli.commands.v1.InitResponse } returns this
1515
+ */
1516
+ proto . cc . arduino . cli . commands . v1 . InitResponse . prototype . clearProfile = function ( ) {
1517
+ return this . setProfile ( undefined ) ;
1518
+ } ;
1519
+
1520
+
1521
+ /**
1522
+ * Returns whether this field is set.
1523
+ * @return {boolean }
1524
+ */
1525
+ proto . cc . arduino . cli . commands . v1 . InitResponse . prototype . hasProfile = function ( ) {
1526
+ return jspb . Message . getField ( this , 3 ) != null ;
1527
+ } ;
1528
+
1529
+
1418
1530
1419
1531
1420
1532
0 commit comments