ATL-750: Handle board name change after install.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-12-02 09:03:04 +01:00
committed by Akos Kitta
parent 7696e2c4c9
commit c024a8d3d1
26 changed files with 674 additions and 79 deletions

View File

@@ -7,6 +7,8 @@
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
@@ -712,7 +714,8 @@ proto.cc.arduino.cli.commands.BoardDetailsResp.toObject = function(includeInstan
identificationPrefList: jspb.Message.toObjectList(msg.getIdentificationPrefList(),
proto.cc.arduino.cli.commands.IdentificationPref.toObject, includeInstance),
programmersList: jspb.Message.toObjectList(msg.getProgrammersList(),
commands_common_pb.Programmer.toObject, includeInstance)
commands_common_pb.Programmer.toObject, includeInstance),
debuggingSupported: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
};
if (includeInstance) {
@@ -807,6 +810,10 @@ proto.cc.arduino.cli.commands.BoardDetailsResp.deserializeBinaryFromReader = fun
reader.readMessage(value,commands_common_pb.Programmer.deserializeBinaryFromReader);
msg.addProgrammers(value);
break;
case 14:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDebuggingSupported(value);
break;
default:
reader.skipField();
break;
@@ -933,6 +940,13 @@ proto.cc.arduino.cli.commands.BoardDetailsResp.serializeBinaryToWriter = functio
commands_common_pb.Programmer.serializeBinaryToWriter
);
}
f = message.getDebuggingSupported();
if (f) {
writer.writeBool(
14,
f
);
}
};
@@ -1288,6 +1302,24 @@ proto.cc.arduino.cli.commands.BoardDetailsResp.prototype.clearProgrammersList =
};
/**
* optional bool debugging_supported = 14;
* @return {boolean}
*/
proto.cc.arduino.cli.commands.BoardDetailsResp.prototype.getDebuggingSupported = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
};
/**
* @param {boolean} value
* @return {!proto.cc.arduino.cli.commands.BoardDetailsResp} returns this
*/
proto.cc.arduino.cli.commands.BoardDetailsResp.prototype.setDebuggingSupported = function(value) {
return jspb.Message.setProto3BooleanField(this, 14, value);
};
@@ -5026,7 +5058,9 @@ proto.cc.arduino.cli.commands.BoardListItem.toObject = function(includeInstance,
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
fqbn: jspb.Message.getFieldWithDefault(msg, 2, ""),
isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
vid: jspb.Message.getFieldWithDefault(msg, 4, ""),
pid: jspb.Message.getFieldWithDefault(msg, 5, "")
};
if (includeInstance) {
@@ -5075,6 +5109,14 @@ proto.cc.arduino.cli.commands.BoardListItem.deserializeBinaryFromReader = functi
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsHidden(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setVid(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setPid(value);
break;
default:
reader.skipField();
break;
@@ -5125,6 +5167,20 @@ proto.cc.arduino.cli.commands.BoardListItem.serializeBinaryToWriter = function(m
f
);
}
f = message.getVid();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getPid();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};
@@ -5182,4 +5238,40 @@ proto.cc.arduino.cli.commands.BoardListItem.prototype.setIsHidden = function(val
};
/**
* optional string VID = 4;
* @return {string}
*/
proto.cc.arduino.cli.commands.BoardListItem.prototype.getVid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.cc.arduino.cli.commands.BoardListItem} returns this
*/
proto.cc.arduino.cli.commands.BoardListItem.prototype.setVid = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string PID = 5;
* @return {string}
*/
proto.cc.arduino.cli.commands.BoardListItem.prototype.getPid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.cc.arduino.cli.commands.BoardListItem} returns this
*/
proto.cc.arduino.cli.commands.BoardListItem.prototype.setPid = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
goog.object.extend(exports, proto.cc.arduino.cli.commands);