Skip to content

Commit 4e4ed97

Browse files
author
Alberto Iannaccone
committed
update arduino-cli version to 0.23.0-rc1 and regenerate grpc protocol
1 parent 1baefdf commit 4e4ed97

File tree

11 files changed

+607
-101
lines changed

11 files changed

+607
-101
lines changed

Diff for: arduino-ide-extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
],
158158
"arduino": {
159159
"cli": {
160-
"version": "0.22.0"
160+
"version": "0.23.0-rc1"
161161
},
162162
"fwuploader": {
163163
"version": "2.0.0"

Diff for: arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/commands_pb.d.ts

+17
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export class InitRequest extends jspb.Message {
6262
getInstance(): cc_arduino_cli_commands_v1_common_pb.Instance | undefined;
6363
setInstance(value?: cc_arduino_cli_commands_v1_common_pb.Instance): InitRequest;
6464

65+
getProfile(): string;
66+
setProfile(value: string): InitRequest;
67+
68+
getSketchPath(): string;
69+
setSketchPath(value: string): InitRequest;
70+
6571

6672
serializeBinary(): Uint8Array;
6773
toObject(includeInstance?: boolean): InitRequest.AsObject;
@@ -76,6 +82,8 @@ export class InitRequest extends jspb.Message {
7682
export namespace InitRequest {
7783
export type AsObject = {
7884
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
85+
profile: string,
86+
sketchPath: string,
7987
}
8088
}
8189

@@ -93,6 +101,12 @@ export class InitResponse extends jspb.Message {
93101
setError(value?: google_rpc_status_pb.Status): InitResponse;
94102

95103

104+
hasProfile(): boolean;
105+
clearProfile(): void;
106+
getProfile(): cc_arduino_cli_commands_v1_common_pb.Profile | undefined;
107+
setProfile(value?: cc_arduino_cli_commands_v1_common_pb.Profile): InitResponse;
108+
109+
96110
getMessageCase(): InitResponse.MessageCase;
97111

98112
serializeBinary(): Uint8Array;
@@ -109,6 +123,7 @@ export namespace InitResponse {
109123
export type AsObject = {
110124
initProgress?: InitResponse.Progress.AsObject,
111125
error?: google_rpc_status_pb.Status.AsObject,
126+
profile?: cc_arduino_cli_commands_v1_common_pb.Profile.AsObject,
112127
}
113128

114129

@@ -151,6 +166,8 @@ export namespace InitResponse {
151166

152167
ERROR = 2,
153168

169+
PROFILE = 3,
170+
154171
}
155172

156173
}

Diff for: arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/commands_pb.js

+116-4
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,9 @@ proto.cc.arduino.cli.commands.v1.InitRequest.prototype.toObject = function(opt_i
866866
*/
867867
proto.cc.arduino.cli.commands.v1.InitRequest.toObject = function(includeInstance, msg) {
868868
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, "")
870872
};
871873

872874
if (includeInstance) {
@@ -908,6 +910,14 @@ proto.cc.arduino.cli.commands.v1.InitRequest.deserializeBinaryFromReader = funct
908910
reader.readMessage(value,cc_arduino_cli_commands_v1_common_pb.Instance.deserializeBinaryFromReader);
909911
msg.setInstance(value);
910912
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;
911921
default:
912922
reader.skipField();
913923
break;
@@ -945,6 +955,20 @@ proto.cc.arduino.cli.commands.v1.InitRequest.serializeBinaryToWriter = function(
945955
cc_arduino_cli_commands_v1_common_pb.Instance.serializeBinaryToWriter
946956
);
947957
}
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+
}
948972
};
949973

950974

@@ -985,6 +1009,42 @@ proto.cc.arduino.cli.commands.v1.InitRequest.prototype.hasInstance = function()
9851009
};
9861010

9871011

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+
9881048

9891049
/**
9901050
* 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()
9941054
* @private {!Array<!Array<number>>}
9951055
* @const
9961056
*/
997-
proto.cc.arduino.cli.commands.v1.InitResponse.oneofGroups_ = [[1,2]];
1057+
proto.cc.arduino.cli.commands.v1.InitResponse.oneofGroups_ = [[1,2,3]];
9981058

9991059
/**
10001060
* @enum {number}
10011061
*/
10021062
proto.cc.arduino.cli.commands.v1.InitResponse.MessageCase = {
10031063
MESSAGE_NOT_SET: 0,
10041064
INIT_PROGRESS: 1,
1005-
ERROR: 2
1065+
ERROR: 2,
1066+
PROFILE: 3
10061067
};
10071068

10081069
/**
@@ -1044,7 +1105,8 @@ proto.cc.arduino.cli.commands.v1.InitResponse.prototype.toObject = function(opt_
10441105
proto.cc.arduino.cli.commands.v1.InitResponse.toObject = function(includeInstance, msg) {
10451106
var f, obj = {
10461107
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)
10481110
};
10491111

10501112
if (includeInstance) {
@@ -1091,6 +1153,11 @@ proto.cc.arduino.cli.commands.v1.InitResponse.deserializeBinaryFromReader = func
10911153
reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader);
10921154
msg.setError(value);
10931155
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;
10941161
default:
10951162
reader.skipField();
10961163
break;
@@ -1136,6 +1203,14 @@ proto.cc.arduino.cli.commands.v1.InitResponse.serializeBinaryToWriter = function
11361203
google_rpc_status_pb.Status.serializeBinaryToWriter
11371204
);
11381205
}
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+
}
11391214
};
11401215

11411216

@@ -1415,6 +1490,43 @@ proto.cc.arduino.cli.commands.v1.InitResponse.prototype.hasError = function() {
14151490
};
14161491

14171492

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+
14181530

14191531

14201532

Diff for: arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/common_pb.d.ts

+42-9
Original file line numberDiff line numberDiff line change
@@ -185,28 +185,36 @@ export namespace Platform {
185185
}
186186
}
187187

188-
export class PlatformReference extends jspb.Message {
188+
export class InstalledPlatformReference extends jspb.Message {
189189
getId(): string;
190-
setId(value: string): PlatformReference;
190+
setId(value: string): InstalledPlatformReference;
191191

192192
getVersion(): string;
193-
setVersion(value: string): PlatformReference;
193+
setVersion(value: string): InstalledPlatformReference;
194+
195+
getInstallDir(): string;
196+
setInstallDir(value: string): InstalledPlatformReference;
197+
198+
getPackageUrl(): string;
199+
setPackageUrl(value: string): InstalledPlatformReference;
194200

195201

196202
serializeBinary(): Uint8Array;
197-
toObject(includeInstance?: boolean): PlatformReference.AsObject;
198-
static toObject(includeInstance: boolean, msg: PlatformReference): PlatformReference.AsObject;
203+
toObject(includeInstance?: boolean): InstalledPlatformReference.AsObject;
204+
static toObject(includeInstance: boolean, msg: InstalledPlatformReference): InstalledPlatformReference.AsObject;
199205
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
200206
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
201-
static serializeBinaryToWriter(message: PlatformReference, writer: jspb.BinaryWriter): void;
202-
static deserializeBinary(bytes: Uint8Array): PlatformReference;
203-
static deserializeBinaryFromReader(message: PlatformReference, reader: jspb.BinaryReader): PlatformReference;
207+
static serializeBinaryToWriter(message: InstalledPlatformReference, writer: jspb.BinaryWriter): void;
208+
static deserializeBinary(bytes: Uint8Array): InstalledPlatformReference;
209+
static deserializeBinaryFromReader(message: InstalledPlatformReference, reader: jspb.BinaryReader): InstalledPlatformReference;
204210
}
205211

206-
export namespace PlatformReference {
212+
export namespace InstalledPlatformReference {
207213
export type AsObject = {
208214
id: string,
209215
version: string,
216+
installDir: string,
217+
packageUrl: string,
210218
}
211219
}
212220

@@ -234,3 +242,28 @@ export namespace Board {
234242
fqbn: string,
235243
}
236244
}
245+
246+
export class Profile extends jspb.Message {
247+
getName(): string;
248+
setName(value: string): Profile;
249+
250+
getFqbn(): string;
251+
setFqbn(value: string): Profile;
252+
253+
254+
serializeBinary(): Uint8Array;
255+
toObject(includeInstance?: boolean): Profile.AsObject;
256+
static toObject(includeInstance: boolean, msg: Profile): Profile.AsObject;
257+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
258+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
259+
static serializeBinaryToWriter(message: Profile, writer: jspb.BinaryWriter): void;
260+
static deserializeBinary(bytes: Uint8Array): Profile;
261+
static deserializeBinaryFromReader(message: Profile, reader: jspb.BinaryReader): Profile;
262+
}
263+
264+
export namespace Profile {
265+
export type AsObject = {
266+
name: string,
267+
fqbn: string,
268+
}
269+
}

0 commit comments

Comments
 (0)