mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-13 23:56:33 +00:00
chore: Updated to 0.31.0-rc.1
CLI
Aligned CLI build path calculation (arduino/arduino-cli#2031) Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
cf6f83c8a2
commit
01ee045beb
@ -163,7 +163,7 @@
|
|||||||
],
|
],
|
||||||
"arduino": {
|
"arduino": {
|
||||||
"cli": {
|
"cli": {
|
||||||
"version": "0.29.0"
|
"version": "0.31.0-rc.1"
|
||||||
},
|
},
|
||||||
"fwuploader": {
|
"fwuploader": {
|
||||||
"version": "2.2.2"
|
"version": "2.2.2"
|
||||||
|
@ -388,66 +388,6 @@ export namespace ConfigValue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class BoardAttachRequest extends jspb.Message {
|
|
||||||
|
|
||||||
hasInstance(): boolean;
|
|
||||||
clearInstance(): void;
|
|
||||||
getInstance(): cc_arduino_cli_commands_v1_common_pb.Instance | undefined;
|
|
||||||
setInstance(value?: cc_arduino_cli_commands_v1_common_pb.Instance): BoardAttachRequest;
|
|
||||||
|
|
||||||
getBoardUri(): string;
|
|
||||||
setBoardUri(value: string): BoardAttachRequest;
|
|
||||||
|
|
||||||
getSketchPath(): string;
|
|
||||||
setSketchPath(value: string): BoardAttachRequest;
|
|
||||||
|
|
||||||
getSearchTimeout(): string;
|
|
||||||
setSearchTimeout(value: string): BoardAttachRequest;
|
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): BoardAttachRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: BoardAttachRequest): BoardAttachRequest.AsObject;
|
|
||||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
||||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
||||||
static serializeBinaryToWriter(message: BoardAttachRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): BoardAttachRequest;
|
|
||||||
static deserializeBinaryFromReader(message: BoardAttachRequest, reader: jspb.BinaryReader): BoardAttachRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace BoardAttachRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
|
||||||
boardUri: string,
|
|
||||||
sketchPath: string,
|
|
||||||
searchTimeout: string,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class BoardAttachResponse extends jspb.Message {
|
|
||||||
|
|
||||||
hasTaskProgress(): boolean;
|
|
||||||
clearTaskProgress(): void;
|
|
||||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
|
||||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): BoardAttachResponse;
|
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): BoardAttachResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: BoardAttachResponse): BoardAttachResponse.AsObject;
|
|
||||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
||||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
||||||
static serializeBinaryToWriter(message: BoardAttachResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): BoardAttachResponse;
|
|
||||||
static deserializeBinaryFromReader(message: BoardAttachResponse, reader: jspb.BinaryReader): BoardAttachResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace BoardAttachResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class BoardListRequest extends jspb.Message {
|
export class BoardListRequest extends jspb.Message {
|
||||||
|
|
||||||
hasInstance(): boolean;
|
hasInstance(): boolean;
|
||||||
@ -458,6 +398,9 @@ export class BoardListRequest extends jspb.Message {
|
|||||||
getTimeout(): number;
|
getTimeout(): number;
|
||||||
setTimeout(value: number): BoardListRequest;
|
setTimeout(value: number): BoardListRequest;
|
||||||
|
|
||||||
|
getFqbn(): string;
|
||||||
|
setFqbn(value: string): BoardListRequest;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): BoardListRequest.AsObject;
|
toObject(includeInstance?: boolean): BoardListRequest.AsObject;
|
||||||
@ -473,6 +416,7 @@ export namespace BoardListRequest {
|
|||||||
export type AsObject = {
|
export type AsObject = {
|
||||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
||||||
timeout: number,
|
timeout: number,
|
||||||
|
fqbn: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ var cc_arduino_cli_commands_v1_common_pb = require('../../../../../cc/arduino/cl
|
|||||||
goog.object.extend(proto, cc_arduino_cli_commands_v1_common_pb);
|
goog.object.extend(proto, cc_arduino_cli_commands_v1_common_pb);
|
||||||
var cc_arduino_cli_commands_v1_port_pb = require('../../../../../cc/arduino/cli/commands/v1/port_pb.js');
|
var cc_arduino_cli_commands_v1_port_pb = require('../../../../../cc/arduino/cli/commands/v1/port_pb.js');
|
||||||
goog.object.extend(proto, cc_arduino_cli_commands_v1_port_pb);
|
goog.object.extend(proto, cc_arduino_cli_commands_v1_port_pb);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardAttachRequest', null, global);
|
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardAttachResponse', null, global);
|
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardDetailsRequest', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardDetailsRequest', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardDetailsResponse', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardDetailsResponse', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardIdentificationProperties', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.BoardIdentificationProperties', null, global);
|
||||||
@ -251,48 +249,6 @@ if (goog.DEBUG && !COMPILED) {
|
|||||||
*/
|
*/
|
||||||
proto.cc.arduino.cli.commands.v1.ConfigValue.displayName = 'proto.cc.arduino.cli.commands.v1.ConfigValue';
|
proto.cc.arduino.cli.commands.v1.ConfigValue.displayName = 'proto.cc.arduino.cli.commands.v1.ConfigValue';
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.cc.arduino.cli.commands.v1.BoardAttachRequest, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.displayName = 'proto.cc.arduino.cli.commands.v1.BoardAttachRequest';
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.cc.arduino.cli.commands.v1.BoardAttachResponse, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.displayName = 'proto.cc.arduino.cli.commands.v1.BoardAttachResponse';
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Generated by JsPbCodeGenerator.
|
* Generated by JsPbCodeGenerator.
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
@ -3132,398 +3088,6 @@ proto.cc.arduino.cli.commands.v1.ConfigValue.prototype.setSelected = function(va
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.cc.arduino.cli.commands.v1.BoardAttachRequest.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
|
|
||||||
boardUri: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
||||||
sketchPath: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
||||||
searchTimeout: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.cc.arduino.cli.commands.v1.BoardAttachRequest;
|
|
||||||
return proto.cc.arduino.cli.commands.v1.BoardAttachRequest.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = new cc_arduino_cli_commands_v1_common_pb.Instance;
|
|
||||||
reader.readMessage(value,cc_arduino_cli_commands_v1_common_pb.Instance.deserializeBinaryFromReader);
|
|
||||||
msg.setInstance(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setBoardUri(value);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setSketchPath(value);
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setSearchTimeout(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getInstance();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
1,
|
|
||||||
f,
|
|
||||||
cc_arduino_cli_commands_v1_common_pb.Instance.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getBoardUri();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
2,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getSketchPath();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
3,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getSearchTimeout();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
4,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional Instance instance = 1;
|
|
||||||
* @return {?proto.cc.arduino.cli.commands.v1.Instance}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.getInstance = function() {
|
|
||||||
return /** @type{?proto.cc.arduino.cli.commands.v1.Instance} */ (
|
|
||||||
jspb.Message.getWrapperField(this, cc_arduino_cli_commands_v1_common_pb.Instance, 1));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {?proto.cc.arduino.cli.commands.v1.Instance|undefined} value
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.setInstance = function(value) {
|
|
||||||
return jspb.Message.setWrapperField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.clearInstance = function() {
|
|
||||||
return this.setInstance(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.hasInstance = function() {
|
|
||||||
return jspb.Message.getField(this, 1) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string board_uri = 2;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.getBoardUri = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} value
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.setBoardUri = function(value) {
|
|
||||||
return jspb.Message.setProto3StringField(this, 2, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string sketch_path = 3;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.getSketchPath = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} value
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.setSketchPath = function(value) {
|
|
||||||
return jspb.Message.setProto3StringField(this, 3, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string search_timeout = 4;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.getSearchTimeout = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} value
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachRequest} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachRequest.prototype.setSearchTimeout = function(value) {
|
|
||||||
return jspb.Message.setProto3StringField(this, 4, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.cc.arduino.cli.commands.v1.BoardAttachResponse.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
taskProgress: (f = msg.getTaskProgress()) && cc_arduino_cli_commands_v1_common_pb.TaskProgress.toObject(includeInstance, f)
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.cc.arduino.cli.commands.v1.BoardAttachResponse;
|
|
||||||
return proto.cc.arduino.cli.commands.v1.BoardAttachResponse.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = new cc_arduino_cli_commands_v1_common_pb.TaskProgress;
|
|
||||||
reader.readMessage(value,cc_arduino_cli_commands_v1_common_pb.TaskProgress.deserializeBinaryFromReader);
|
|
||||||
msg.setTaskProgress(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getTaskProgress();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
1,
|
|
||||||
f,
|
|
||||||
cc_arduino_cli_commands_v1_common_pb.TaskProgress.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional TaskProgress task_progress = 1;
|
|
||||||
* @return {?proto.cc.arduino.cli.commands.v1.TaskProgress}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.getTaskProgress = function() {
|
|
||||||
return /** @type{?proto.cc.arduino.cli.commands.v1.TaskProgress} */ (
|
|
||||||
jspb.Message.getWrapperField(this, cc_arduino_cli_commands_v1_common_pb.TaskProgress, 1));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {?proto.cc.arduino.cli.commands.v1.TaskProgress|undefined} value
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.setTaskProgress = function(value) {
|
|
||||||
return jspb.Message.setWrapperField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardAttachResponse} returns this
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.clearTaskProgress = function() {
|
|
||||||
return this.setTaskProgress(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.cc.arduino.cli.commands.v1.BoardAttachResponse.prototype.hasTaskProgress = function() {
|
|
||||||
return jspb.Message.getField(this, 1) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
/**
|
/**
|
||||||
* Creates an object representation of this proto.
|
* Creates an object representation of this proto.
|
||||||
@ -3554,7 +3118,8 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.toObject = function(
|
|||||||
proto.cc.arduino.cli.commands.v1.BoardListRequest.toObject = function(includeInstance, msg) {
|
proto.cc.arduino.cli.commands.v1.BoardListRequest.toObject = function(includeInstance, msg) {
|
||||||
var f, obj = {
|
var f, obj = {
|
||||||
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
|
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
|
||||||
timeout: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
timeout: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||||
|
fqbn: jspb.Message.getFieldWithDefault(msg, 3, "")
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -3600,6 +3165,10 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.deserializeBinaryFromReader =
|
|||||||
var value = /** @type {number} */ (reader.readInt64());
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
msg.setTimeout(value);
|
msg.setTimeout(value);
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setFqbn(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -3644,6 +3213,13 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.serializeBinaryToWriter = func
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
f = message.getFqbn();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -3702,6 +3278,24 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.setTimeout = functio
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string fqbn = 3;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.getFqbn = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.BoardListRequest} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.setFqbn = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of repeated fields within this message type.
|
* List of repeated fields within this message type.
|
||||||
|
@ -27,7 +27,6 @@ interface IArduinoCoreServiceService extends grpc.ServiceDefinition<grpc.Untyped
|
|||||||
loadSketch: IArduinoCoreServiceService_ILoadSketch;
|
loadSketch: IArduinoCoreServiceService_ILoadSketch;
|
||||||
archiveSketch: IArduinoCoreServiceService_IArchiveSketch;
|
archiveSketch: IArduinoCoreServiceService_IArchiveSketch;
|
||||||
boardDetails: IArduinoCoreServiceService_IBoardDetails;
|
boardDetails: IArduinoCoreServiceService_IBoardDetails;
|
||||||
boardAttach: IArduinoCoreServiceService_IBoardAttach;
|
|
||||||
boardList: IArduinoCoreServiceService_IBoardList;
|
boardList: IArduinoCoreServiceService_IBoardList;
|
||||||
boardListAll: IArduinoCoreServiceService_IBoardListAll;
|
boardListAll: IArduinoCoreServiceService_IBoardListAll;
|
||||||
boardSearch: IArduinoCoreServiceService_IBoardSearch;
|
boardSearch: IArduinoCoreServiceService_IBoardSearch;
|
||||||
@ -148,15 +147,6 @@ interface IArduinoCoreServiceService_IBoardDetails extends grpc.MethodDefinition
|
|||||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
||||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
||||||
}
|
}
|
||||||
interface IArduinoCoreServiceService_IBoardAttach extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse> {
|
|
||||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardAttach";
|
|
||||||
requestStream: false;
|
|
||||||
responseStream: true;
|
|
||||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest>;
|
|
||||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest>;
|
|
||||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
}
|
|
||||||
interface IArduinoCoreServiceService_IBoardList extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_board_pb.BoardListRequest, cc_arduino_cli_commands_v1_board_pb.BoardListResponse> {
|
interface IArduinoCoreServiceService_IBoardList extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_board_pb.BoardListRequest, cc_arduino_cli_commands_v1_board_pb.BoardListResponse> {
|
||||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList";
|
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList";
|
||||||
requestStream: false;
|
requestStream: false;
|
||||||
@ -423,7 +413,6 @@ export interface IArduinoCoreServiceServer {
|
|||||||
loadSketch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.LoadSketchRequest, cc_arduino_cli_commands_v1_commands_pb.LoadSketchResponse>;
|
loadSketch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.LoadSketchRequest, cc_arduino_cli_commands_v1_commands_pb.LoadSketchResponse>;
|
||||||
archiveSketch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchRequest, cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchResponse>;
|
archiveSketch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchRequest, cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchResponse>;
|
||||||
boardDetails: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
boardDetails: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse>;
|
||||||
boardAttach: grpc.handleServerStreamingCall<cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
boardList: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardListRequest, cc_arduino_cli_commands_v1_board_pb.BoardListResponse>;
|
boardList: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardListRequest, cc_arduino_cli_commands_v1_board_pb.BoardListResponse>;
|
||||||
boardListAll: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardListAllRequest, cc_arduino_cli_commands_v1_board_pb.BoardListAllResponse>;
|
boardListAll: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardListAllRequest, cc_arduino_cli_commands_v1_board_pb.BoardListAllResponse>;
|
||||||
boardSearch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardSearchRequest, cc_arduino_cli_commands_v1_board_pb.BoardSearchResponse>;
|
boardSearch: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_board_pb.BoardSearchRequest, cc_arduino_cli_commands_v1_board_pb.BoardSearchResponse>;
|
||||||
@ -482,8 +471,6 @@ export interface IArduinoCoreServiceClient {
|
|||||||
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
boardAttach(request: cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
boardAttach(request: cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
@ -584,8 +571,6 @@ export class ArduinoCoreServiceClient extends grpc.Client implements IArduinoCor
|
|||||||
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
public boardDetails(request: cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardDetailsResponse) => void): grpc.ClientUnaryCall;
|
||||||
public boardAttach(request: cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
public boardAttach(request: cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse>;
|
|
||||||
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
public boardList(request: cc_arduino_cli_commands_v1_board_pb.BoardListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_board_pb.BoardListResponse) => void): grpc.ClientUnaryCall;
|
||||||
|
@ -49,28 +49,6 @@ function deserialize_cc_arduino_cli_commands_v1_ArchiveSketchResponse(buffer_arg
|
|||||||
return cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
return cc_arduino_cli_commands_v1_commands_pb.ArchiveSketchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
function serialize_cc_arduino_cli_commands_v1_BoardAttachRequest(arg) {
|
|
||||||
if (!(arg instanceof cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest)) {
|
|
||||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.BoardAttachRequest');
|
|
||||||
}
|
|
||||||
return Buffer.from(arg.serializeBinary());
|
|
||||||
}
|
|
||||||
|
|
||||||
function deserialize_cc_arduino_cli_commands_v1_BoardAttachRequest(buffer_arg) {
|
|
||||||
return cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
||||||
}
|
|
||||||
|
|
||||||
function serialize_cc_arduino_cli_commands_v1_BoardAttachResponse(arg) {
|
|
||||||
if (!(arg instanceof cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse)) {
|
|
||||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.BoardAttachResponse');
|
|
||||||
}
|
|
||||||
return Buffer.from(arg.serializeBinary());
|
|
||||||
}
|
|
||||||
|
|
||||||
function deserialize_cc_arduino_cli_commands_v1_BoardAttachResponse(buffer_arg) {
|
|
||||||
return cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
||||||
}
|
|
||||||
|
|
||||||
function serialize_cc_arduino_cli_commands_v1_BoardDetailsRequest(arg) {
|
function serialize_cc_arduino_cli_commands_v1_BoardDetailsRequest(arg) {
|
||||||
if (!(arg instanceof cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest)) {
|
if (!(arg instanceof cc_arduino_cli_commands_v1_board_pb.BoardDetailsRequest)) {
|
||||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.BoardDetailsRequest');
|
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.BoardDetailsRequest');
|
||||||
@ -1012,19 +990,6 @@ boardDetails: {
|
|||||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_BoardDetailsResponse,
|
responseSerialize: serialize_cc_arduino_cli_commands_v1_BoardDetailsResponse,
|
||||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_BoardDetailsResponse,
|
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_BoardDetailsResponse,
|
||||||
},
|
},
|
||||||
// Attach a board to a sketch. When the `fqbn` field of a request is not
|
|
||||||
// provided, the FQBN of the attached board will be used.
|
|
||||||
boardAttach: {
|
|
||||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardAttach',
|
|
||||||
requestStream: false,
|
|
||||||
responseStream: true,
|
|
||||||
requestType: cc_arduino_cli_commands_v1_board_pb.BoardAttachRequest,
|
|
||||||
responseType: cc_arduino_cli_commands_v1_board_pb.BoardAttachResponse,
|
|
||||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_BoardAttachRequest,
|
|
||||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_BoardAttachRequest,
|
|
||||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_BoardAttachResponse,
|
|
||||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_BoardAttachResponse,
|
|
||||||
},
|
|
||||||
// List the boards currently connected to the computer.
|
// List the boards currently connected to the computer.
|
||||||
boardList: {
|
boardList: {
|
||||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList',
|
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList',
|
||||||
|
@ -364,6 +364,9 @@ export class NewSketchRequest extends jspb.Message {
|
|||||||
getSketchDir(): string;
|
getSketchDir(): string;
|
||||||
setSketchDir(value: string): NewSketchRequest;
|
setSketchDir(value: string): NewSketchRequest;
|
||||||
|
|
||||||
|
getOverwrite(): boolean;
|
||||||
|
setOverwrite(value: boolean): NewSketchRequest;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): NewSketchRequest.AsObject;
|
toObject(includeInstance?: boolean): NewSketchRequest.AsObject;
|
||||||
@ -380,6 +383,7 @@ export namespace NewSketchRequest {
|
|||||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
||||||
sketchName: string,
|
sketchName: string,
|
||||||
sketchDir: string,
|
sketchDir: string,
|
||||||
|
overwrite: boolean,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,6 +489,9 @@ export class ArchiveSketchRequest extends jspb.Message {
|
|||||||
getIncludeBuildDir(): boolean;
|
getIncludeBuildDir(): boolean;
|
||||||
setIncludeBuildDir(value: boolean): ArchiveSketchRequest;
|
setIncludeBuildDir(value: boolean): ArchiveSketchRequest;
|
||||||
|
|
||||||
|
getOverwrite(): boolean;
|
||||||
|
setOverwrite(value: boolean): ArchiveSketchRequest;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): ArchiveSketchRequest.AsObject;
|
toObject(includeInstance?: boolean): ArchiveSketchRequest.AsObject;
|
||||||
@ -501,6 +508,7 @@ export namespace ArchiveSketchRequest {
|
|||||||
sketchPath: string,
|
sketchPath: string,
|
||||||
archivePath: string,
|
archivePath: string,
|
||||||
includeBuildDir: boolean,
|
includeBuildDir: boolean,
|
||||||
|
overwrite: boolean,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2546,7 +2546,8 @@ proto.cc.arduino.cli.commands.v1.NewSketchRequest.toObject = function(includeIns
|
|||||||
var f, obj = {
|
var f, obj = {
|
||||||
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
|
instance: (f = msg.getInstance()) && cc_arduino_cli_commands_v1_common_pb.Instance.toObject(includeInstance, f),
|
||||||
sketchName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
sketchName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
sketchDir: jspb.Message.getFieldWithDefault(msg, 3, "")
|
sketchDir: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
|
overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -2596,6 +2597,10 @@ proto.cc.arduino.cli.commands.v1.NewSketchRequest.deserializeBinaryFromReader =
|
|||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setSketchDir(value);
|
msg.setSketchDir(value);
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
|
msg.setOverwrite(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -2647,6 +2652,13 @@ proto.cc.arduino.cli.commands.v1.NewSketchRequest.serializeBinaryToWriter = func
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
f = message.getOverwrite();
|
||||||
|
if (f) {
|
||||||
|
writer.writeBool(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2723,6 +2735,24 @@ proto.cc.arduino.cli.commands.v1.NewSketchRequest.prototype.setSketchDir = funct
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bool overwrite = 4;
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.NewSketchRequest.prototype.getOverwrite = function() {
|
||||||
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {boolean} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.NewSketchRequest} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.NewSketchRequest.prototype.setOverwrite = function(value) {
|
||||||
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3382,7 +3412,8 @@ proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.toObject = function(includ
|
|||||||
var f, obj = {
|
var f, obj = {
|
||||||
sketchPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
sketchPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
archivePath: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
archivePath: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
includeBuildDir: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
includeBuildDir: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||||
|
overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -3431,6 +3462,10 @@ proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.deserializeBinaryFromReade
|
|||||||
var value = /** @type {boolean} */ (reader.readBool());
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
msg.setIncludeBuildDir(value);
|
msg.setIncludeBuildDir(value);
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
|
msg.setOverwrite(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -3481,6 +3516,13 @@ proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.serializeBinaryToWriter =
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
f = message.getOverwrite();
|
||||||
|
if (f) {
|
||||||
|
writer.writeBool(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -3538,6 +3580,24 @@ proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.prototype.setIncludeBuildD
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bool overwrite = 4;
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.prototype.getOverwrite = function() {
|
||||||
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {boolean} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.ArchiveSketchRequest.prototype.setOverwrite = function(value) {
|
||||||
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -255,6 +255,12 @@ export class Platform extends jspb.Message {
|
|||||||
addType(value: string, index?: number): string;
|
addType(value: string, index?: number): string;
|
||||||
|
|
||||||
|
|
||||||
|
hasHelp(): boolean;
|
||||||
|
clearHelp(): void;
|
||||||
|
getHelp(): HelpResources | undefined;
|
||||||
|
setHelp(value?: HelpResources): Platform;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): Platform.AsObject;
|
toObject(includeInstance?: boolean): Platform.AsObject;
|
||||||
static toObject(includeInstance: boolean, msg: Platform): Platform.AsObject;
|
static toObject(includeInstance: boolean, msg: Platform): Platform.AsObject;
|
||||||
@ -278,6 +284,7 @@ export namespace Platform {
|
|||||||
manuallyInstalled: boolean,
|
manuallyInstalled: boolean,
|
||||||
deprecated: boolean,
|
deprecated: boolean,
|
||||||
typeList: Array<string>,
|
typeList: Array<string>,
|
||||||
|
help?: HelpResources.AsObject,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -363,3 +370,24 @@ export namespace Profile {
|
|||||||
fqbn: string,
|
fqbn: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class HelpResources extends jspb.Message {
|
||||||
|
getOnline(): string;
|
||||||
|
setOnline(value: string): HelpResources;
|
||||||
|
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): HelpResources.AsObject;
|
||||||
|
static toObject(includeInstance: boolean, msg: HelpResources): HelpResources.AsObject;
|
||||||
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||||
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||||
|
static serializeBinaryToWriter(message: HelpResources, writer: jspb.BinaryWriter): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): HelpResources;
|
||||||
|
static deserializeBinaryFromReader(message: HelpResources, reader: jspb.BinaryReader): HelpResources;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace HelpResources {
|
||||||
|
export type AsObject = {
|
||||||
|
online: string,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -21,6 +21,7 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgress.MessageCase
|
|||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressEnd', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressEnd', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressStart', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressStart', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressUpdate', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DownloadProgressUpdate', null, global);
|
||||||
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.HelpResources', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.InstalledPlatformReference', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.InstalledPlatformReference', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Instance', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Instance', null, global);
|
||||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Platform', null, global);
|
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Platform', null, global);
|
||||||
@ -258,6 +259,27 @@ if (goog.DEBUG && !COMPILED) {
|
|||||||
*/
|
*/
|
||||||
proto.cc.arduino.cli.commands.v1.Profile.displayName = 'proto.cc.arduino.cli.commands.v1.Profile';
|
proto.cc.arduino.cli.commands.v1.Profile.displayName = 'proto.cc.arduino.cli.commands.v1.Profile';
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.cc.arduino.cli.commands.v1.HelpResources, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.displayName = 'proto.cc.arduino.cli.commands.v1.HelpResources';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1608,7 +1630,8 @@ proto.cc.arduino.cli.commands.v1.Platform.toObject = function(includeInstance, m
|
|||||||
proto.cc.arduino.cli.commands.v1.Board.toObject, includeInstance),
|
proto.cc.arduino.cli.commands.v1.Board.toObject, includeInstance),
|
||||||
manuallyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
manuallyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
||||||
deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
||||||
typeList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
|
typeList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
|
||||||
|
help: (f = msg.getHelp()) && proto.cc.arduino.cli.commands.v1.HelpResources.toObject(includeInstance, f)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -1690,6 +1713,11 @@ proto.cc.arduino.cli.commands.v1.Platform.deserializeBinaryFromReader = function
|
|||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.addType(value);
|
msg.addType(value);
|
||||||
break;
|
break;
|
||||||
|
case 12:
|
||||||
|
var value = new proto.cc.arduino.cli.commands.v1.HelpResources;
|
||||||
|
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.HelpResources.deserializeBinaryFromReader);
|
||||||
|
msg.setHelp(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -1797,6 +1825,14 @@ proto.cc.arduino.cli.commands.v1.Platform.serializeBinaryToWriter = function(mes
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
f = message.getHelp();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
12,
|
||||||
|
f,
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2037,6 +2073,43 @@ proto.cc.arduino.cli.commands.v1.Platform.prototype.clearTypeList = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional HelpResources help = 12;
|
||||||
|
* @return {?proto.cc.arduino.cli.commands.v1.HelpResources}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Platform.prototype.getHelp = function() {
|
||||||
|
return /** @type{?proto.cc.arduino.cli.commands.v1.HelpResources} */ (
|
||||||
|
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.commands.v1.HelpResources, 12));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.cc.arduino.cli.commands.v1.HelpResources|undefined} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.Platform} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Platform.prototype.setHelp = function(value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 12, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.Platform} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Platform.prototype.clearHelp = function() {
|
||||||
|
return this.setHelp(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Platform.prototype.hasHelp = function() {
|
||||||
|
return jspb.Message.getField(this, 12) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2577,4 +2650,134 @@ proto.cc.arduino.cli.commands.v1.Profile.prototype.setFqbn = function(value) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.cc.arduino.cli.commands.v1.HelpResources.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.cc.arduino.cli.commands.v1.HelpResources} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
online: jspb.Message.getFieldWithDefault(msg, 1, "")
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.HelpResources}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.cc.arduino.cli.commands.v1.HelpResources;
|
||||||
|
return proto.cc.arduino.cli.commands.v1.HelpResources.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.cc.arduino.cli.commands.v1.HelpResources} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.HelpResources}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setOnline(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.cc.arduino.cli.commands.v1.HelpResources} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getOnline();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string online = 1;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.prototype.getOnline = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.HelpResources} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.HelpResources.prototype.setOnline = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
||||||
|
@ -182,6 +182,11 @@ export class CompileResponse extends jspb.Message {
|
|||||||
getProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
getProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||||
setProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): CompileResponse;
|
setProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): CompileResponse;
|
||||||
|
|
||||||
|
clearBuildPropertiesList(): void;
|
||||||
|
getBuildPropertiesList(): Array<string>;
|
||||||
|
setBuildPropertiesList(value: Array<string>): CompileResponse;
|
||||||
|
addBuildProperties(value: string, index?: number): string;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): CompileResponse.AsObject;
|
toObject(includeInstance?: boolean): CompileResponse.AsObject;
|
||||||
@ -203,6 +208,7 @@ export namespace CompileResponse {
|
|||||||
boardPlatform?: cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.AsObject,
|
boardPlatform?: cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.AsObject,
|
||||||
buildPlatform?: cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.AsObject,
|
buildPlatform?: cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.AsObject,
|
||||||
progress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
progress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||||
|
buildPropertiesList: Array<string>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1052,7 +1052,7 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setSkipLibrariesDiscov
|
|||||||
* @private {!Array<number>}
|
* @private {!Array<number>}
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
proto.cc.arduino.cli.commands.v1.CompileResponse.repeatedFields_ = [4,5];
|
proto.cc.arduino.cli.commands.v1.CompileResponse.repeatedFields_ = [4,5,9];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1094,7 +1094,8 @@ proto.cc.arduino.cli.commands.v1.CompileResponse.toObject = function(includeInst
|
|||||||
proto.cc.arduino.cli.commands.v1.ExecutableSectionSize.toObject, includeInstance),
|
proto.cc.arduino.cli.commands.v1.ExecutableSectionSize.toObject, includeInstance),
|
||||||
boardPlatform: (f = msg.getBoardPlatform()) && cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.toObject(includeInstance, f),
|
boardPlatform: (f = msg.getBoardPlatform()) && cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.toObject(includeInstance, f),
|
||||||
buildPlatform: (f = msg.getBuildPlatform()) && cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.toObject(includeInstance, f),
|
buildPlatform: (f = msg.getBuildPlatform()) && cc_arduino_cli_commands_v1_common_pb.InstalledPlatformReference.toObject(includeInstance, f),
|
||||||
progress: (f = msg.getProgress()) && cc_arduino_cli_commands_v1_common_pb.TaskProgress.toObject(includeInstance, f)
|
progress: (f = msg.getProgress()) && cc_arduino_cli_commands_v1_common_pb.TaskProgress.toObject(includeInstance, f),
|
||||||
|
buildPropertiesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -1168,6 +1169,10 @@ proto.cc.arduino.cli.commands.v1.CompileResponse.deserializeBinaryFromReader = f
|
|||||||
reader.readMessage(value,cc_arduino_cli_commands_v1_common_pb.TaskProgress.deserializeBinaryFromReader);
|
reader.readMessage(value,cc_arduino_cli_commands_v1_common_pb.TaskProgress.deserializeBinaryFromReader);
|
||||||
msg.setProgress(value);
|
msg.setProgress(value);
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.addBuildProperties(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -1258,6 +1263,13 @@ proto.cc.arduino.cli.commands.v1.CompileResponse.serializeBinaryToWriter = funct
|
|||||||
cc_arduino_cli_commands_v1_common_pb.TaskProgress.serializeBinaryToWriter
|
cc_arduino_cli_commands_v1_common_pb.TaskProgress.serializeBinaryToWriter
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
f = message.getBuildPropertiesList();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeRepeatedString(
|
||||||
|
9,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1550,6 +1562,43 @@ proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.hasProgress = functio
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* repeated string build_properties = 9;
|
||||||
|
* @return {!Array<string>}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.getBuildPropertiesList = function() {
|
||||||
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!Array<string>} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.CompileResponse} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.setBuildPropertiesList = function(value) {
|
||||||
|
return jspb.Message.setField(this, 9, value || []);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @param {number=} opt_index
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.CompileResponse} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.addBuildProperties = function(value, opt_index) {
|
||||||
|
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the list making it empty but non-null.
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.CompileResponse} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.clearBuildPropertiesList = function() {
|
||||||
|
return this.setBuildPropertiesList([]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,9 @@ export class Port extends jspb.Message {
|
|||||||
getPropertiesMap(): jspb.Map<string, string>;
|
getPropertiesMap(): jspb.Map<string, string>;
|
||||||
clearPropertiesMap(): void;
|
clearPropertiesMap(): void;
|
||||||
|
|
||||||
|
getHardwareId(): string;
|
||||||
|
setHardwareId(value: string): Port;
|
||||||
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): Port.AsObject;
|
toObject(includeInstance?: boolean): Port.AsObject;
|
||||||
@ -42,5 +45,6 @@ export namespace Port {
|
|||||||
protocolLabel: string,
|
protocolLabel: string,
|
||||||
|
|
||||||
propertiesMap: Array<[string, string]>,
|
propertiesMap: Array<[string, string]>,
|
||||||
|
hardwareId: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,8 @@ proto.cc.arduino.cli.commands.v1.Port.toObject = function(includeInstance, msg)
|
|||||||
label: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
label: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
protocol: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
protocol: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
protocolLabel: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
protocolLabel: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : []
|
propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [],
|
||||||
|
hardwareId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -132,6 +133,10 @@ proto.cc.arduino.cli.commands.v1.Port.deserializeBinaryFromReader = function(msg
|
|||||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 6:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setHardwareId(value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -193,6 +198,13 @@ proto.cc.arduino.cli.commands.v1.Port.serializeBinaryToWriter = function(message
|
|||||||
if (f && f.getLength() > 0) {
|
if (f && f.getLength() > 0) {
|
||||||
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||||
}
|
}
|
||||||
|
f = message.getHardwareId();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
6,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -290,4 +302,22 @@ proto.cc.arduino.cli.commands.v1.Port.prototype.clearPropertiesMap = function()
|
|||||||
return this;};
|
return this;};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string hardware_id = 6;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Port.prototype.getHardwareId = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.cc.arduino.cli.commands.v1.Port} returns this
|
||||||
|
*/
|
||||||
|
proto.cc.arduino.cli.commands.v1.Port.prototype.setHardwareId = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 6, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
||||||
|
@ -619,17 +619,16 @@ export class SketchesServiceImpl
|
|||||||
}
|
}
|
||||||
|
|
||||||
private tempBuildPathMD5Hash(tempFolderPath: string, path: string): string {
|
private tempBuildPathMD5Hash(tempFolderPath: string, path: string): string {
|
||||||
return join(tempFolderPath, this.tempBuildFolderMD5Hash(path));
|
return join(
|
||||||
|
tempFolderPath,
|
||||||
|
'arduino',
|
||||||
|
'sketches',
|
||||||
|
this.tempBuildFolderMD5Hash(path)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private tempBuildFolderMD5Hash(path: string): string {
|
private tempBuildFolderMD5Hash(path: string): string {
|
||||||
const hash = crypto
|
return crypto.createHash('md5').update(path).digest('hex').toUpperCase();
|
||||||
.createHash('md5')
|
|
||||||
.update(path)
|
|
||||||
.digest('hex')
|
|
||||||
.toUpperCase();
|
|
||||||
const folderName = `arduino-sketch-${hash}`;
|
|
||||||
return folderName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the default.ino from the settings or from default folder.
|
// Returns the default.ino from the settings or from default folder.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user