mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-19 12:57:17 +00:00
feat: use Arduino CLI 1.0.4 (#2457)
* fix: use `@pingghost/protoc` to compile proto files The npm package previously used (`protoc`) is still lacking apple arm32 support, see https://github.com/YePpHa/node-protoc/pull/10 * feat: use Arduino CLI 1.0.4 * fix: allow use of node16 in github actions * chore: update `arduino-language-server` version for cli-1.0.0 * fix: deprecated platform order test Arduino deprecated platforms should have more priority then other deprecated ones
This commit is contained in:
parent
c3adde5460
commit
1ec0a8cc77
@ -128,7 +128,7 @@
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"grpc-tools": "^1.12.4",
|
||||
"protoc": "^1.0.4"
|
||||
"@pingghost/protoc": "^1.0.2"
|
||||
},
|
||||
"mocha": {
|
||||
"require": [
|
||||
@ -170,7 +170,7 @@
|
||||
],
|
||||
"arduino": {
|
||||
"arduino-cli": {
|
||||
"version": "0.36.0-rc.1"
|
||||
"version": "1.0.4"
|
||||
},
|
||||
"arduino-fwuploader": {
|
||||
"version": "2.4.1"
|
||||
@ -179,7 +179,7 @@
|
||||
"version": {
|
||||
"owner": "arduino",
|
||||
"repo": "arduino-language-server",
|
||||
"commitish": "91c2ba8"
|
||||
"commitish": "05ec308"
|
||||
}
|
||||
},
|
||||
"clangd": {
|
||||
|
@ -7,8 +7,9 @@
|
||||
const { exec } = require('./utils');
|
||||
const glob = require('glob');
|
||||
const { SemVer, gte, valid: validSemVer } = require('semver');
|
||||
const protoc = path.dirname(require('protoc/protoc'));
|
||||
|
||||
// Use a node-protoc fork until apple arm32 is supported
|
||||
// https://github.com/YePpHa/node-protoc/pull/10
|
||||
const protoc = path.dirname(require('@pingghost/protoc/protoc'));
|
||||
const repository = await fs.mkdtemp(path.join(os.tmpdir(), 'arduino-cli-'));
|
||||
|
||||
const { owner, repo, commitish } = (() => {
|
||||
|
@ -585,7 +585,7 @@ function createBoardsPackage(
|
||||
if (!actualRelease) {
|
||||
return undefined;
|
||||
}
|
||||
const { name, typeList, boardsList, deprecated, compatible } = actualRelease;
|
||||
const { name, typesList, boardsList, deprecated, compatible } = actualRelease;
|
||||
if (!compatible) {
|
||||
return undefined; // never show incompatible platforms
|
||||
}
|
||||
@ -602,7 +602,7 @@ function createBoardsPackage(
|
||||
),
|
||||
description: boardsList.map(({ name }) => name).join(', '),
|
||||
boards: boardsList,
|
||||
types: typeList,
|
||||
types: typesList,
|
||||
moreInfoLink: website,
|
||||
author: maintainer,
|
||||
deprecated,
|
||||
|
@ -384,6 +384,10 @@ export class BoardListResponse extends jspb.Message {
|
||||
getPortsList(): Array<DetectedPort>;
|
||||
setPortsList(value: Array<DetectedPort>): BoardListResponse;
|
||||
addPorts(value?: DetectedPort, index?: number): DetectedPort;
|
||||
clearWarningsList(): void;
|
||||
getWarningsList(): Array<string>;
|
||||
setWarningsList(value: Array<string>): BoardListResponse;
|
||||
addWarnings(value: string, index?: number): string;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListResponse.AsObject;
|
||||
@ -398,6 +402,7 @@ export class BoardListResponse extends jspb.Message {
|
||||
export namespace BoardListResponse {
|
||||
export type AsObject = {
|
||||
portsList: Array<DetectedPort.AsObject>,
|
||||
warningsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3387,7 +3387,7 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.setFqbn = function(v
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.repeatedFields_ = [1];
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.repeatedFields_ = [1,2];
|
||||
|
||||
|
||||
|
||||
@ -3421,7 +3421,8 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.toObject = function
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
portsList: jspb.Message.toObjectList(msg.getPortsList(),
|
||||
proto.cc.arduino.cli.commands.v1.DetectedPort.toObject, includeInstance)
|
||||
proto.cc.arduino.cli.commands.v1.DetectedPort.toObject, includeInstance),
|
||||
warningsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -3463,6 +3464,10 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.deserializeBinaryFromReader =
|
||||
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.DetectedPort.deserializeBinaryFromReader);
|
||||
msg.addPorts(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addWarnings(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -3500,6 +3505,13 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.serializeBinaryToWriter = fun
|
||||
proto.cc.arduino.cli.commands.v1.DetectedPort.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getWarningsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -3541,6 +3553,43 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.clearPortsList = fu
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string warnings = 2;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.getWarningsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.setWarningsList = function(value) {
|
||||
return jspb.Message.setField(this, 2, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.addWarnings = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.clearWarningsList = function() {
|
||||
return this.setWarningsList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
|
@ -59,12 +59,14 @@ interface IArduinoCoreServiceService extends grpc.ServiceDefinition<grpc.Untyped
|
||||
debug: IArduinoCoreServiceService_IDebug;
|
||||
isDebugSupported: IArduinoCoreServiceService_IIsDebugSupported;
|
||||
getDebugConfig: IArduinoCoreServiceService_IGetDebugConfig;
|
||||
settingsGetAll: IArduinoCoreServiceService_ISettingsGetAll;
|
||||
settingsMerge: IArduinoCoreServiceService_ISettingsMerge;
|
||||
checkForArduinoCLIUpdates: IArduinoCoreServiceService_ICheckForArduinoCLIUpdates;
|
||||
cleanDownloadCacheDirectory: IArduinoCoreServiceService_ICleanDownloadCacheDirectory;
|
||||
configurationSave: IArduinoCoreServiceService_IConfigurationSave;
|
||||
configurationOpen: IArduinoCoreServiceService_IConfigurationOpen;
|
||||
configurationGet: IArduinoCoreServiceService_IConfigurationGet;
|
||||
settingsEnumerate: IArduinoCoreServiceService_ISettingsEnumerate;
|
||||
settingsGetValue: IArduinoCoreServiceService_ISettingsGetValue;
|
||||
settingsSetValue: IArduinoCoreServiceService_ISettingsSetValue;
|
||||
settingsWrite: IArduinoCoreServiceService_ISettingsWrite;
|
||||
settingsDelete: IArduinoCoreServiceService_ISettingsDelete;
|
||||
}
|
||||
|
||||
interface IArduinoCoreServiceService_ICreate extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_commands_pb.CreateRequest, cc_arduino_cli_commands_v1_commands_pb.CreateResponse> {
|
||||
@ -436,23 +438,59 @@ interface IArduinoCoreServiceService_IGetDebugConfig extends grpc.MethodDefiniti
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsGetAll extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsGetAll";
|
||||
interface IArduinoCoreServiceService_ICheckForArduinoCLIUpdates extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/CheckForArduinoCLIUpdates";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse>;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsMerge extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsMerge";
|
||||
interface IArduinoCoreServiceService_ICleanDownloadCacheDirectory extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/CleanDownloadCacheDirectory";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse>;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_IConfigurationSave extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationSave";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_IConfigurationOpen extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationOpen";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_IConfigurationGet extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationGet";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsEnumerate extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsEnumerate";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsGetValue extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsGetValue";
|
||||
@ -472,24 +510,6 @@ interface IArduinoCoreServiceService_ISettingsSetValue extends grpc.MethodDefini
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsWrite extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsWrite";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse>;
|
||||
}
|
||||
interface IArduinoCoreServiceService_ISettingsDelete extends grpc.MethodDefinition<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse> {
|
||||
path: "/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsDelete";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
requestSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest>;
|
||||
requestDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest>;
|
||||
responseSerialize: grpc.serialize<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse>;
|
||||
responseDeserialize: grpc.deserialize<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse>;
|
||||
}
|
||||
|
||||
export const ArduinoCoreServiceService: IArduinoCoreServiceService;
|
||||
|
||||
@ -535,12 +555,14 @@ export interface IArduinoCoreServiceServer extends grpc.UntypedServiceImplementa
|
||||
debug: grpc.handleBidiStreamingCall<cc_arduino_cli_commands_v1_debug_pb.DebugRequest, cc_arduino_cli_commands_v1_debug_pb.DebugResponse>;
|
||||
isDebugSupported: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_debug_pb.IsDebugSupportedRequest, cc_arduino_cli_commands_v1_debug_pb.IsDebugSupportedResponse>;
|
||||
getDebugConfig: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse>;
|
||||
settingsGetAll: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse>;
|
||||
settingsMerge: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse>;
|
||||
checkForArduinoCLIUpdates: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse>;
|
||||
cleanDownloadCacheDirectory: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse>;
|
||||
configurationSave: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse>;
|
||||
configurationOpen: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse>;
|
||||
configurationGet: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse>;
|
||||
settingsEnumerate: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse>;
|
||||
settingsGetValue: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse>;
|
||||
settingsSetValue: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse>;
|
||||
settingsWrite: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse>;
|
||||
settingsDelete: grpc.handleUnaryCall<cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse>;
|
||||
}
|
||||
|
||||
export interface IArduinoCoreServiceClient {
|
||||
@ -648,24 +670,30 @@ export interface IArduinoCoreServiceClient {
|
||||
getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class ArduinoCoreServiceClient extends grpc.Client implements IArduinoCoreServiceClient {
|
||||
@ -772,22 +800,28 @@ export class ArduinoCoreServiceClient extends grpc.Client implements IArduinoCor
|
||||
public getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
public getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
public getDebugConfig(request: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_debug_pb.GetDebugConfigResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetAll(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsMerge(request: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
public checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
public checkForArduinoCLIUpdates(request: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse) => void): grpc.ClientUnaryCall;
|
||||
public cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
public cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
public cleanDownloadCacheDirectory(request: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationSave(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationOpen(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
public configurationGet(request: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsEnumerate(request: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsGetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsSetValue(request: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsWrite(request: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
public settingsDelete(request: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
@ -3,18 +3,19 @@
|
||||
// Original file comments:
|
||||
// This file is part of arduino-cli.
|
||||
//
|
||||
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
|
||||
// Copyright 2024 ARDUINO SA (https://www.arduino.cc/)
|
||||
//
|
||||
// This software is released under the GNU General Public License version 3,
|
||||
// which covers the main part of arduino-cli.
|
||||
// The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
// a commercial license. Buying such a license is mandatory if you want to
|
||||
// modify or otherwise use the software for commercial activities involving the
|
||||
// Arduino software without disclosing the source code of your own applications.
|
||||
// To purchase a commercial license, send an email to license@arduino.cc.
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
'use strict';
|
||||
var cc_arduino_cli_commands_v1_commands_pb = require('../../../../../cc/arduino/cli/commands/v1/commands_pb.js');
|
||||
@ -183,6 +184,50 @@ function deserialize_cc_arduino_cli_commands_v1_BurnBootloaderResponse(buffer_ar
|
||||
return cc_arduino_cli_commands_v1_upload_pb.BurnBootloaderResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CheckForArduinoCLIUpdatesRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CheckForArduinoCLIUpdatesResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CleanDownloadCacheDirectoryRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CleanDownloadCacheDirectoryResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CompileRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_compile_pb.CompileRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CompileRequest');
|
||||
@ -205,6 +250,72 @@ function deserialize_cc_arduino_cli_commands_v1_CompileResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_compile_pb.CompileResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationGetRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationGetRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationGetRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationGetResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationGetResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationGetResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationOpenRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationOpenRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationOpenRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationOpenResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationOpenResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationOpenResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationSaveRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationSaveRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationSaveRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_ConfigurationSaveResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.ConfigurationSaveResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_ConfigurationSaveResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_CreateRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_commands_pb.CreateRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.CreateRequest');
|
||||
@ -777,48 +888,26 @@ function deserialize_cc_arduino_cli_commands_v1_SetSketchDefaultsResponse(buffer
|
||||
return cc_arduino_cli_commands_v1_commands_pb.SetSketchDefaultsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsDeleteRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsDeleteRequest');
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsEnumerateRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsEnumerateRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsDeleteRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsEnumerateRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsDeleteResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsDeleteResponse');
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsEnumerateResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsEnumerateResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsDeleteResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsGetAllRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsGetAllRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsGetAllRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsGetAllResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsGetAllResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsGetAllResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsEnumerateResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsGetValueRequest(arg) {
|
||||
@ -843,28 +932,6 @@ function deserialize_cc_arduino_cli_commands_v1_SettingsGetValueResponse(buffer_
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsGetValueResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsMergeRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsMergeRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsMergeRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsMergeResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsMergeResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsMergeResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsSetValueRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsSetValueRequest');
|
||||
@ -887,28 +954,6 @@ function deserialize_cc_arduino_cli_commands_v1_SettingsSetValueResponse(buffer_
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsSetValueResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsWriteRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsWriteRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsWriteRequest(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SettingsWriteResponse(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SettingsWriteResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_v1_SettingsWriteResponse(buffer_arg) {
|
||||
return cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_v1_SupportedUserFieldsRequest(arg) {
|
||||
if (!(arg instanceof cc_arduino_cli_commands_v1_upload_pb.SupportedUserFieldsRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.v1.SupportedUserFieldsRequest');
|
||||
@ -1569,31 +1614,78 @@ getDebugConfig: {
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_GetDebugConfigResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_GetDebugConfigResponse,
|
||||
},
|
||||
// List all the settings.
|
||||
settingsGetAll: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsGetAll',
|
||||
// Check for updates to the Arduino CLI.
|
||||
checkForArduinoCLIUpdates: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/CheckForArduinoCLIUpdates',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.SettingsGetAllResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_SettingsGetAllRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsGetAllRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsGetAllResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsGetAllResponse,
|
||||
requestType: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_commands_pb.CheckForArduinoCLIUpdatesResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_CheckForArduinoCLIUpdatesResponse,
|
||||
},
|
||||
// Set multiple settings values at once.
|
||||
settingsMerge: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsMerge',
|
||||
// Clean the download cache directory (where archives are downloaded).
|
||||
cleanDownloadCacheDirectory: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/CleanDownloadCacheDirectory',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.SettingsMergeResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_SettingsMergeRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsMergeRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsMergeResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsMergeResponse,
|
||||
requestType: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_commands_pb.CleanDownloadCacheDirectoryResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_CleanDownloadCacheDirectoryResponse,
|
||||
},
|
||||
// Get the value of a specific setting.
|
||||
// Writes the settings currently stored in memory in a YAML file
|
||||
configurationSave: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationSave',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationSaveResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationSaveRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationSaveRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationSaveResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationSaveResponse,
|
||||
},
|
||||
// Read the settings from a YAML file
|
||||
configurationOpen: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationOpen',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationOpenResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationOpenRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationOpenRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationOpenResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationOpenResponse,
|
||||
},
|
||||
configurationGet: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/ConfigurationGet',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.ConfigurationGetResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationGetRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationGetRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_ConfigurationGetResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_ConfigurationGetResponse,
|
||||
},
|
||||
// Enumerate all the keys/values pairs available in the configuration
|
||||
settingsEnumerate: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsEnumerate',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.SettingsEnumerateResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_SettingsEnumerateRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsEnumerateRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsEnumerateResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsEnumerateResponse,
|
||||
},
|
||||
// Get a single configuration value
|
||||
settingsGetValue: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsGetValue',
|
||||
requestStream: false,
|
||||
@ -1605,7 +1697,7 @@ settingsGetValue: {
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsGetValueResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsGetValueResponse,
|
||||
},
|
||||
// Set the value of a specific setting.
|
||||
// Set a single configuration value
|
||||
settingsSetValue: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsSetValue',
|
||||
requestStream: false,
|
||||
@ -1617,29 +1709,5 @@ settingsSetValue: {
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsSetValueResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsSetValueResponse,
|
||||
},
|
||||
// Writes to file settings currently stored in memory
|
||||
settingsWrite: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsWrite',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.SettingsWriteResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_SettingsWriteRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsWriteRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsWriteResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsWriteResponse,
|
||||
},
|
||||
// Deletes an entry and rewrites the file settings
|
||||
settingsDelete: {
|
||||
path: '/cc.arduino.cli.commands.v1.ArduinoCoreService/SettingsDelete',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteRequest,
|
||||
responseType: cc_arduino_cli_commands_v1_settings_pb.SettingsDeleteResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_v1_SettingsDeleteRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsDeleteRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_v1_SettingsDeleteResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_v1_SettingsDeleteResponse,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -99,8 +99,8 @@ export class InitResponse extends jspb.Message {
|
||||
|
||||
hasProfile(): boolean;
|
||||
clearProfile(): void;
|
||||
getProfile(): cc_arduino_cli_commands_v1_common_pb.Profile | undefined;
|
||||
setProfile(value?: cc_arduino_cli_commands_v1_common_pb.Profile): InitResponse;
|
||||
getProfile(): cc_arduino_cli_commands_v1_common_pb.SketchProfile | undefined;
|
||||
setProfile(value?: cc_arduino_cli_commands_v1_common_pb.SketchProfile): InitResponse;
|
||||
|
||||
getMessageCase(): InitResponse.MessageCase;
|
||||
|
||||
@ -118,7 +118,7 @@ export namespace InitResponse {
|
||||
export type AsObject = {
|
||||
initProgress?: InitResponse.Progress.AsObject,
|
||||
error?: google_rpc_status_pb.Status.AsObject,
|
||||
profile?: cc_arduino_cli_commands_v1_common_pb.Profile.AsObject,
|
||||
profile?: cc_arduino_cli_commands_v1_common_pb.SketchProfile.AsObject,
|
||||
}
|
||||
|
||||
|
||||
@ -232,6 +232,8 @@ export class UpdateIndexRequest extends jspb.Message {
|
||||
setInstance(value?: cc_arduino_cli_commands_v1_common_pb.Instance): UpdateIndexRequest;
|
||||
getIgnoreCustomPackageIndexes(): boolean;
|
||||
setIgnoreCustomPackageIndexes(value: boolean): UpdateIndexRequest;
|
||||
getUpdateIfOlderThanSecs(): number;
|
||||
setUpdateIfOlderThanSecs(value: number): UpdateIndexRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateIndexRequest.AsObject;
|
||||
@ -247,6 +249,7 @@ export namespace UpdateIndexRequest {
|
||||
export type AsObject = {
|
||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
||||
ignoreCustomPackageIndexes: boolean,
|
||||
updateIfOlderThanSecs: number,
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,6 +260,13 @@ export class UpdateIndexResponse extends jspb.Message {
|
||||
getDownloadProgress(): cc_arduino_cli_commands_v1_common_pb.DownloadProgress | undefined;
|
||||
setDownloadProgress(value?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress): UpdateIndexResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): UpdateIndexResponse.Result | undefined;
|
||||
setResult(value?: UpdateIndexResponse.Result): UpdateIndexResponse;
|
||||
|
||||
getMessageCase(): UpdateIndexResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateIndexResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateIndexResponse): UpdateIndexResponse.AsObject;
|
||||
@ -270,7 +280,39 @@ export class UpdateIndexResponse extends jspb.Message {
|
||||
export namespace UpdateIndexResponse {
|
||||
export type AsObject = {
|
||||
downloadProgress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
result?: UpdateIndexResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
clearUpdatedIndexesList(): void;
|
||||
getUpdatedIndexesList(): Array<IndexUpdateReport>;
|
||||
setUpdatedIndexesList(value: Array<IndexUpdateReport>): Result;
|
||||
addUpdatedIndexes(value?: IndexUpdateReport, index?: number): IndexUpdateReport;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
updatedIndexesList: Array<IndexUpdateReport.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
DOWNLOAD_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class UpdateLibrariesIndexRequest extends jspb.Message {
|
||||
@ -279,6 +321,8 @@ export class UpdateLibrariesIndexRequest extends jspb.Message {
|
||||
clearInstance(): void;
|
||||
getInstance(): cc_arduino_cli_commands_v1_common_pb.Instance | undefined;
|
||||
setInstance(value?: cc_arduino_cli_commands_v1_common_pb.Instance): UpdateLibrariesIndexRequest;
|
||||
getUpdateIfOlderThanSecs(): number;
|
||||
setUpdateIfOlderThanSecs(value: number): UpdateLibrariesIndexRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateLibrariesIndexRequest.AsObject;
|
||||
@ -293,6 +337,7 @@ export class UpdateLibrariesIndexRequest extends jspb.Message {
|
||||
export namespace UpdateLibrariesIndexRequest {
|
||||
export type AsObject = {
|
||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
||||
updateIfOlderThanSecs: number,
|
||||
}
|
||||
}
|
||||
|
||||
@ -303,6 +348,13 @@ export class UpdateLibrariesIndexResponse extends jspb.Message {
|
||||
getDownloadProgress(): cc_arduino_cli_commands_v1_common_pb.DownloadProgress | undefined;
|
||||
setDownloadProgress(value?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress): UpdateLibrariesIndexResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): UpdateLibrariesIndexResponse.Result | undefined;
|
||||
setResult(value?: UpdateLibrariesIndexResponse.Result): UpdateLibrariesIndexResponse;
|
||||
|
||||
getMessageCase(): UpdateLibrariesIndexResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateLibrariesIndexResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateLibrariesIndexResponse): UpdateLibrariesIndexResponse.AsObject;
|
||||
@ -316,7 +368,72 @@ export class UpdateLibrariesIndexResponse extends jspb.Message {
|
||||
export namespace UpdateLibrariesIndexResponse {
|
||||
export type AsObject = {
|
||||
downloadProgress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
result?: UpdateLibrariesIndexResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
hasLibrariesIndex(): boolean;
|
||||
clearLibrariesIndex(): void;
|
||||
getLibrariesIndex(): IndexUpdateReport | undefined;
|
||||
setLibrariesIndex(value?: IndexUpdateReport): Result;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
librariesIndex?: IndexUpdateReport.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
DOWNLOAD_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class IndexUpdateReport extends jspb.Message {
|
||||
getIndexUrl(): string;
|
||||
setIndexUrl(value: string): IndexUpdateReport;
|
||||
getStatus(): IndexUpdateReport.Status;
|
||||
setStatus(value: IndexUpdateReport.Status): IndexUpdateReport;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): IndexUpdateReport.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: IndexUpdateReport): IndexUpdateReport.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: IndexUpdateReport, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): IndexUpdateReport;
|
||||
static deserializeBinaryFromReader(message: IndexUpdateReport, reader: jspb.BinaryReader): IndexUpdateReport;
|
||||
}
|
||||
|
||||
export namespace IndexUpdateReport {
|
||||
export type AsObject = {
|
||||
indexUrl: string,
|
||||
status: IndexUpdateReport.Status,
|
||||
}
|
||||
|
||||
export enum Status {
|
||||
STATUS_UNSPECIFIED = 0,
|
||||
STATUS_UPDATED = 1,
|
||||
STATUS_ALREADY_UP_TO_DATE = 2,
|
||||
STATUS_FAILED = 3,
|
||||
STATUS_SKIPPED = 4,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class VersionRequest extends jspb.Message {
|
||||
@ -500,6 +617,8 @@ export class SetSketchDefaultsRequest extends jspb.Message {
|
||||
setDefaultPortAddress(value: string): SetSketchDefaultsRequest;
|
||||
getDefaultPortProtocol(): string;
|
||||
setDefaultPortProtocol(value: string): SetSketchDefaultsRequest;
|
||||
getDefaultProgrammer(): string;
|
||||
setDefaultProgrammer(value: string): SetSketchDefaultsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SetSketchDefaultsRequest.AsObject;
|
||||
@ -517,6 +636,7 @@ export namespace SetSketchDefaultsRequest {
|
||||
defaultFqbn: string,
|
||||
defaultPortAddress: string,
|
||||
defaultPortProtocol: string,
|
||||
defaultProgrammer: string,
|
||||
}
|
||||
}
|
||||
|
||||
@ -527,6 +647,8 @@ export class SetSketchDefaultsResponse extends jspb.Message {
|
||||
setDefaultPortAddress(value: string): SetSketchDefaultsResponse;
|
||||
getDefaultPortProtocol(): string;
|
||||
setDefaultPortProtocol(value: string): SetSketchDefaultsResponse;
|
||||
getDefaultProgrammer(): string;
|
||||
setDefaultProgrammer(value: string): SetSketchDefaultsResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SetSketchDefaultsResponse.AsObject;
|
||||
@ -543,6 +665,87 @@ export namespace SetSketchDefaultsResponse {
|
||||
defaultFqbn: string,
|
||||
defaultPortAddress: string,
|
||||
defaultPortProtocol: string,
|
||||
defaultProgrammer: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class CheckForArduinoCLIUpdatesRequest extends jspb.Message {
|
||||
getForceCheck(): boolean;
|
||||
setForceCheck(value: boolean): CheckForArduinoCLIUpdatesRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CheckForArduinoCLIUpdatesRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CheckForArduinoCLIUpdatesRequest): CheckForArduinoCLIUpdatesRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CheckForArduinoCLIUpdatesRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CheckForArduinoCLIUpdatesRequest;
|
||||
static deserializeBinaryFromReader(message: CheckForArduinoCLIUpdatesRequest, reader: jspb.BinaryReader): CheckForArduinoCLIUpdatesRequest;
|
||||
}
|
||||
|
||||
export namespace CheckForArduinoCLIUpdatesRequest {
|
||||
export type AsObject = {
|
||||
forceCheck: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class CheckForArduinoCLIUpdatesResponse extends jspb.Message {
|
||||
getNewestVersion(): string;
|
||||
setNewestVersion(value: string): CheckForArduinoCLIUpdatesResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CheckForArduinoCLIUpdatesResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CheckForArduinoCLIUpdatesResponse): CheckForArduinoCLIUpdatesResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CheckForArduinoCLIUpdatesResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CheckForArduinoCLIUpdatesResponse;
|
||||
static deserializeBinaryFromReader(message: CheckForArduinoCLIUpdatesResponse, reader: jspb.BinaryReader): CheckForArduinoCLIUpdatesResponse;
|
||||
}
|
||||
|
||||
export namespace CheckForArduinoCLIUpdatesResponse {
|
||||
export type AsObject = {
|
||||
newestVersion: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class CleanDownloadCacheDirectoryRequest 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): CleanDownloadCacheDirectoryRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CleanDownloadCacheDirectoryRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CleanDownloadCacheDirectoryRequest): CleanDownloadCacheDirectoryRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CleanDownloadCacheDirectoryRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CleanDownloadCacheDirectoryRequest;
|
||||
static deserializeBinaryFromReader(message: CleanDownloadCacheDirectoryRequest, reader: jspb.BinaryReader): CleanDownloadCacheDirectoryRequest;
|
||||
}
|
||||
|
||||
export namespace CleanDownloadCacheDirectoryRequest {
|
||||
export type AsObject = {
|
||||
instance?: cc_arduino_cli_commands_v1_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class CleanDownloadCacheDirectoryResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CleanDownloadCacheDirectoryResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CleanDownloadCacheDirectoryResponse): CleanDownloadCacheDirectoryResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CleanDownloadCacheDirectoryResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CleanDownloadCacheDirectoryResponse;
|
||||
static deserializeBinaryFromReader(message: CleanDownloadCacheDirectoryResponse, reader: jspb.BinaryReader): CleanDownloadCacheDirectoryResponse;
|
||||
}
|
||||
|
||||
export namespace CleanDownloadCacheDirectoryResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -318,10 +318,10 @@ export class PlatformRelease extends jspb.Message {
|
||||
setName(value: string): PlatformRelease;
|
||||
getVersion(): string;
|
||||
setVersion(value: string): PlatformRelease;
|
||||
clearTypeList(): void;
|
||||
getTypeList(): Array<string>;
|
||||
setTypeList(value: Array<string>): PlatformRelease;
|
||||
addType(value: string, index?: number): string;
|
||||
clearTypesList(): void;
|
||||
getTypesList(): Array<string>;
|
||||
setTypesList(value: Array<string>): PlatformRelease;
|
||||
addTypes(value: string, index?: number): string;
|
||||
getInstalled(): boolean;
|
||||
setInstalled(value: boolean): PlatformRelease;
|
||||
clearBoardsList(): void;
|
||||
@ -354,7 +354,7 @@ export namespace PlatformRelease {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
version: string,
|
||||
typeList: Array<string>,
|
||||
typesList: Array<string>,
|
||||
installed: boolean,
|
||||
boardsList: Array<Board.AsObject>,
|
||||
help?: HelpResources.AsObject,
|
||||
@ -416,29 +416,6 @@ export namespace Board {
|
||||
}
|
||||
}
|
||||
|
||||
export class Profile extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): Profile;
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): Profile;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Profile.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Profile): Profile.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Profile, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Profile;
|
||||
static deserializeBinaryFromReader(message: Profile, reader: jspb.BinaryReader): Profile;
|
||||
}
|
||||
|
||||
export namespace Profile {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
fqbn: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class HelpResources extends jspb.Message {
|
||||
getOnline(): string;
|
||||
setOnline(value: string): HelpResources;
|
||||
@ -491,6 +468,8 @@ export class Sketch extends jspb.Message {
|
||||
clearDefaultProfile(): void;
|
||||
getDefaultProfile(): SketchProfile | undefined;
|
||||
setDefaultProfile(value?: SketchProfile): Sketch;
|
||||
getDefaultProgrammer(): string;
|
||||
setDefaultProgrammer(value: string): Sketch;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Sketch.AsObject;
|
||||
@ -514,6 +493,7 @@ export namespace Sketch {
|
||||
defaultProtocol: string,
|
||||
profilesList: Array<SketchProfile.AsObject>,
|
||||
defaultProfile?: SketchProfile.AsObject,
|
||||
defaultProgrammer: string,
|
||||
}
|
||||
}
|
||||
|
||||
@ -522,6 +502,8 @@ export class SketchProfile extends jspb.Message {
|
||||
setName(value: string): SketchProfile;
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): SketchProfile;
|
||||
getProgrammer(): string;
|
||||
setProgrammer(value: string): SketchProfile;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SketchProfile.AsObject;
|
||||
@ -537,5 +519,6 @@ export namespace SketchProfile {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
fqbn: string,
|
||||
programmer: string,
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Platform', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.PlatformMetadata', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.PlatformRelease', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.PlatformSummary', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Profile', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Programmer', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.Sketch', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.SketchProfile', null, global);
|
||||
@ -334,27 +333,6 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Board.displayName = 'proto.cc.arduino.cli.commands.v1.Board';
|
||||
}
|
||||
/**
|
||||
* 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.Profile = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.v1.Profile, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
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
|
||||
@ -2616,7 +2594,7 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.toObject = function(includeInst
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
typeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
||||
typesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
||||
installed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
||||
boardsList: jspb.Message.toObjectList(msg.getBoardsList(),
|
||||
proto.cc.arduino.cli.commands.v1.Board.toObject, includeInstance),
|
||||
@ -2670,7 +2648,7 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.deserializeBinaryFromReader = f
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addType(value);
|
||||
msg.addTypes(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
@ -2741,7 +2719,7 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.serializeBinaryToWriter = funct
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTypeList();
|
||||
f = message.getTypesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
3,
|
||||
@ -2832,10 +2810,10 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.setVersion = function
|
||||
|
||||
|
||||
/**
|
||||
* repeated string type = 3;
|
||||
* repeated string types = 3;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.getTypeList = function() {
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.getTypesList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
||||
};
|
||||
|
||||
@ -2844,7 +2822,7 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.getTypeList = functio
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.PlatformRelease} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.setTypeList = function(value) {
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.setTypesList = function(value) {
|
||||
return jspb.Message.setField(this, 3, value || []);
|
||||
};
|
||||
|
||||
@ -2854,7 +2832,7 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.setTypeList = functio
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.PlatformRelease} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.addType = function(value, opt_index) {
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.addTypes = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
||||
};
|
||||
|
||||
@ -2863,8 +2841,8 @@ proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.addType = function(va
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.PlatformRelease} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.clearTypeList = function() {
|
||||
return this.setTypeList([]);
|
||||
proto.cc.arduino.cli.commands.v1.PlatformRelease.prototype.clearTypesList = function() {
|
||||
return this.setTypesList([]);
|
||||
};
|
||||
|
||||
|
||||
@ -3398,166 +3376,6 @@ proto.cc.arduino.cli.commands.v1.Board.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.Profile.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.v1.Profile.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.Profile} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, "")
|
||||
};
|
||||
|
||||
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.Profile}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.v1.Profile;
|
||||
return proto.cc.arduino.cli.commands.v1.Profile.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.Profile} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.Profile}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.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.setName(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFqbn(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.Profile.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.v1.Profile.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.Profile} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getFqbn();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string name = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.prototype.getName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.Profile} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.prototype.setName = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string fqbn = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.prototype.getFqbn = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.Profile} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Profile.prototype.setFqbn = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
@ -3734,7 +3552,8 @@ proto.cc.arduino.cli.commands.v1.Sketch.toObject = function(includeInstance, msg
|
||||
defaultProtocol: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
profilesList: jspb.Message.toObjectList(msg.getProfilesList(),
|
||||
proto.cc.arduino.cli.commands.v1.SketchProfile.toObject, includeInstance),
|
||||
defaultProfile: (f = msg.getDefaultProfile()) && proto.cc.arduino.cli.commands.v1.SketchProfile.toObject(includeInstance, f)
|
||||
defaultProfile: (f = msg.getDefaultProfile()) && proto.cc.arduino.cli.commands.v1.SketchProfile.toObject(includeInstance, f),
|
||||
defaultProgrammer: jspb.Message.getFieldWithDefault(msg, 11, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -3813,6 +3632,10 @@ proto.cc.arduino.cli.commands.v1.Sketch.deserializeBinaryFromReader = function(m
|
||||
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.SketchProfile.deserializeBinaryFromReader);
|
||||
msg.setDefaultProfile(value);
|
||||
break;
|
||||
case 11:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setDefaultProgrammer(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -3914,6 +3737,13 @@ proto.cc.arduino.cli.commands.v1.Sketch.serializeBinaryToWriter = function(messa
|
||||
proto.cc.arduino.cli.commands.v1.SketchProfile.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getDefaultProgrammer();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
11,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -4193,6 +4023,24 @@ proto.cc.arduino.cli.commands.v1.Sketch.prototype.hasDefaultProfile = function()
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string default_programmer = 11;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Sketch.prototype.getDefaultProgrammer = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.Sketch} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.Sketch.prototype.setDefaultProgrammer = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 11, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -4226,7 +4074,8 @@ proto.cc.arduino.cli.commands.v1.SketchProfile.prototype.toObject = function(opt
|
||||
proto.cc.arduino.cli.commands.v1.SketchProfile.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, "")
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
programmer: jspb.Message.getFieldWithDefault(msg, 3, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -4271,6 +4120,10 @@ proto.cc.arduino.cli.commands.v1.SketchProfile.deserializeBinaryFromReader = fun
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFqbn(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setProgrammer(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -4314,6 +4167,13 @@ proto.cc.arduino.cli.commands.v1.SketchProfile.serializeBinaryToWriter = functio
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getProgrammer();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -4353,4 +4213,22 @@ proto.cc.arduino.cli.commands.v1.SketchProfile.prototype.setFqbn = function(valu
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string programmer = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.SketchProfile.prototype.getProgrammer = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.SketchProfile} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.SketchProfile.prototype.setProgrammer = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
||||
|
@ -5,7 +5,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
||||
import * as cc_arduino_cli_commands_v1_common_pb from "../../../../../cc/arduino/cli/commands/v1/common_pb";
|
||||
import * as cc_arduino_cli_commands_v1_lib_pb from "../../../../../cc/arduino/cli/commands/v1/lib_pb";
|
||||
|
||||
@ -57,8 +56,8 @@ export class CompileRequest extends jspb.Message {
|
||||
|
||||
hasExportBinaries(): boolean;
|
||||
clearExportBinaries(): void;
|
||||
getExportBinaries(): google_protobuf_wrappers_pb.BoolValue | undefined;
|
||||
setExportBinaries(value?: google_protobuf_wrappers_pb.BoolValue): CompileRequest;
|
||||
getExportBinaries(): boolean | undefined;
|
||||
setExportBinaries(value: boolean): CompileRequest;
|
||||
clearLibraryList(): void;
|
||||
getLibraryList(): Array<string>;
|
||||
setLibraryList(value: Array<string>): CompileRequest;
|
||||
@ -73,6 +72,10 @@ export class CompileRequest extends jspb.Message {
|
||||
setSkipLibrariesDiscovery(value: boolean): CompileRequest;
|
||||
getDoNotExpandBuildProperties(): boolean;
|
||||
setDoNotExpandBuildProperties(value: boolean): CompileRequest;
|
||||
clearBuildCacheExtraPathsList(): void;
|
||||
getBuildCacheExtraPathsList(): Array<string>;
|
||||
setBuildCacheExtraPathsList(value: Array<string>): CompileRequest;
|
||||
addBuildCacheExtraPaths(value: string, index?: number): string;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CompileRequest.AsObject;
|
||||
@ -105,13 +108,14 @@ export namespace CompileRequest {
|
||||
createCompilationDatabaseOnly: boolean,
|
||||
|
||||
sourceOverrideMap: Array<[string, string]>,
|
||||
exportBinaries?: google_protobuf_wrappers_pb.BoolValue.AsObject,
|
||||
exportBinaries?: boolean,
|
||||
libraryList: Array<string>,
|
||||
keysKeychain: string,
|
||||
signKey: string,
|
||||
encryptKey: string,
|
||||
skipLibrariesDiscovery: boolean,
|
||||
doNotExpandBuildProperties: boolean,
|
||||
buildCacheExtraPathsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,6 +175,23 @@ export namespace CompileResponse {
|
||||
|
||||
}
|
||||
|
||||
export class InstanceNeedsReinitializationError extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InstanceNeedsReinitializationError.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InstanceNeedsReinitializationError): InstanceNeedsReinitializationError.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InstanceNeedsReinitializationError, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InstanceNeedsReinitializationError;
|
||||
static deserializeBinaryFromReader(message: InstanceNeedsReinitializationError, reader: jspb.BinaryReader): InstanceNeedsReinitializationError;
|
||||
}
|
||||
|
||||
export namespace InstanceNeedsReinitializationError {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class BuilderResult extends jspb.Message {
|
||||
getBuildPath(): string;
|
||||
setBuildPath(value: string): BuilderResult;
|
||||
|
@ -21,8 +21,6 @@ var global = (function() {
|
||||
return Function('return this')();
|
||||
}.call(null));
|
||||
|
||||
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
||||
var cc_arduino_cli_commands_v1_common_pb = require('../../../../../cc/arduino/cli/commands/v1/common_pb.js');
|
||||
goog.object.extend(proto, cc_arduino_cli_commands_v1_common_pb);
|
||||
var cc_arduino_cli_commands_v1_lib_pb = require('../../../../../cc/arduino/cli/commands/v1/lib_pb.js');
|
||||
@ -35,6 +33,7 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.CompileRequest', null, globa
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.CompileResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.CompileResponse.MessageCase', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.ExecutableSectionSize', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -77,6 +76,27 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileResponse.displayName = 'proto.cc.arduino.cli.commands.v1.CompileResponse';
|
||||
}
|
||||
/**
|
||||
* 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.InstanceNeedsReinitializationError = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.displayName = 'proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -188,7 +208,7 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.repeatedFields_ = [8,15,24];
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.repeatedFields_ = [8,15,24,30];
|
||||
|
||||
|
||||
|
||||
@ -239,13 +259,14 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.toObject = function(includeInsta
|
||||
clean: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
|
||||
createCompilationDatabaseOnly: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
|
||||
sourceOverrideMap: (f = msg.getSourceOverrideMap()) ? f.toObject(includeInstance, undefined) : [],
|
||||
exportBinaries: (f = msg.getExportBinaries()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
||||
exportBinaries: jspb.Message.getBooleanFieldWithDefault(msg, 23, false),
|
||||
libraryList: (f = jspb.Message.getRepeatedField(msg, 24)) == null ? undefined : f,
|
||||
keysKeychain: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
||||
signKey: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
||||
encryptKey: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
||||
skipLibrariesDiscovery: jspb.Message.getBooleanFieldWithDefault(msg, 28, false),
|
||||
doNotExpandBuildProperties: jspb.Message.getBooleanFieldWithDefault(msg, 29, false)
|
||||
doNotExpandBuildProperties: jspb.Message.getBooleanFieldWithDefault(msg, 29, false),
|
||||
buildCacheExtraPathsList: (f = jspb.Message.getRepeatedField(msg, 30)) == null ? undefined : f
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -358,8 +379,7 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.deserializeBinaryFromReader = fu
|
||||
});
|
||||
break;
|
||||
case 23:
|
||||
var value = new google_protobuf_wrappers_pb.BoolValue;
|
||||
reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setExportBinaries(value);
|
||||
break;
|
||||
case 24:
|
||||
@ -386,6 +406,10 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.deserializeBinaryFromReader = fu
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setDoNotExpandBuildProperties(value);
|
||||
break;
|
||||
case 30:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addBuildCacheExtraPaths(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -539,12 +563,11 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.serializeBinaryToWriter = functi
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(22, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||
}
|
||||
f = message.getExportBinaries();
|
||||
f = /** @type {boolean} */ (jspb.Message.getField(message, 23));
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
writer.writeBool(
|
||||
23,
|
||||
f,
|
||||
google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getLibraryList();
|
||||
@ -589,6 +612,13 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.serializeBinaryToWriter = functi
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBuildCacheExtraPathsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
30,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -978,30 +1008,29 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.clearSourceOverrideMap
|
||||
|
||||
|
||||
/**
|
||||
* optional google.protobuf.BoolValue export_binaries = 23;
|
||||
* @return {?proto.google.protobuf.BoolValue}
|
||||
* optional bool export_binaries = 23;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.getExportBinaries = function() {
|
||||
return /** @type{?proto.google.protobuf.BoolValue} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 23));
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.google.protobuf.BoolValue|undefined} value
|
||||
* @param {boolean} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
|
||||
*/
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setExportBinaries = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 23, value);
|
||||
return jspb.Message.setField(this, 23, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.clearExportBinaries = function() {
|
||||
return this.setExportBinaries(undefined);
|
||||
return jspb.Message.setField(this, 23, undefined);
|
||||
};
|
||||
|
||||
|
||||
@ -1141,6 +1170,43 @@ proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setDoNotExpandBuildPro
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string build_cache_extra_paths = 30;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.getBuildCacheExtraPathsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 30));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.setBuildCacheExtraPathsList = function(value) {
|
||||
return jspb.Message.setField(this, 30, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.addBuildCacheExtraPaths = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 30, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.CompileRequest} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.CompileRequest.prototype.clearBuildCacheExtraPathsList = function() {
|
||||
return this.setBuildCacheExtraPathsList([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
@ -1516,6 +1582,107 @@ proto.cc.arduino.cli.commands.v1.CompileResponse.prototype.hasResult = function(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.InstanceNeedsReinitializationError.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.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.InstanceNeedsReinitializationError} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
|
||||
};
|
||||
|
||||
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.InstanceNeedsReinitializationError}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError;
|
||||
return proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.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.InstanceNeedsReinitializationError} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.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.InstanceNeedsReinitializationError} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.InstanceNeedsReinitializationError.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
|
@ -60,6 +60,13 @@ export class PlatformInstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): PlatformInstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): PlatformInstallResponse.Result | undefined;
|
||||
setResult(value?: PlatformInstallResponse.Result): PlatformInstallResponse;
|
||||
|
||||
getMessageCase(): PlatformInstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformInstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformInstallResponse): PlatformInstallResponse.AsObject;
|
||||
@ -74,7 +81,35 @@ export namespace PlatformInstallResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: PlatformInstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
TASK_PROGRESS = 2,
|
||||
RESULT = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class PlatformLoadingError extends jspb.Message {
|
||||
@ -133,6 +168,13 @@ export class PlatformDownloadResponse extends jspb.Message {
|
||||
getProgress(): cc_arduino_cli_commands_v1_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress): PlatformDownloadResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): PlatformDownloadResponse.Result | undefined;
|
||||
setResult(value?: PlatformDownloadResponse.Result): PlatformDownloadResponse;
|
||||
|
||||
getMessageCase(): PlatformDownloadResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformDownloadResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformDownloadResponse): PlatformDownloadResponse.AsObject;
|
||||
@ -146,7 +188,34 @@ export class PlatformDownloadResponse extends jspb.Message {
|
||||
export namespace PlatformDownloadResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
result?: PlatformDownloadResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class PlatformUninstallRequest extends jspb.Message {
|
||||
@ -188,6 +257,13 @@ export class PlatformUninstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): PlatformUninstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): PlatformUninstallResponse.Result | undefined;
|
||||
setResult(value?: PlatformUninstallResponse.Result): PlatformUninstallResponse;
|
||||
|
||||
getMessageCase(): PlatformUninstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUninstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformUninstallResponse): PlatformUninstallResponse.AsObject;
|
||||
@ -201,7 +277,34 @@ export class PlatformUninstallResponse extends jspb.Message {
|
||||
export namespace PlatformUninstallResponse {
|
||||
export type AsObject = {
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: PlatformUninstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
TASK_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class AlreadyAtLatestVersionError extends jspb.Message {
|
||||
@ -268,10 +371,12 @@ export class PlatformUpgradeResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): PlatformUpgradeResponse;
|
||||
|
||||
hasPlatform(): boolean;
|
||||
clearPlatform(): void;
|
||||
getPlatform(): cc_arduino_cli_commands_v1_common_pb.Platform | undefined;
|
||||
setPlatform(value?: cc_arduino_cli_commands_v1_common_pb.Platform): PlatformUpgradeResponse;
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): PlatformUpgradeResponse.Result | undefined;
|
||||
setResult(value?: PlatformUpgradeResponse.Result): PlatformUpgradeResponse;
|
||||
|
||||
getMessageCase(): PlatformUpgradeResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUpgradeResponse.AsObject;
|
||||
@ -287,8 +392,41 @@ export namespace PlatformUpgradeResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
platform?: cc_arduino_cli_commands_v1_common_pb.Platform.AsObject,
|
||||
result?: PlatformUpgradeResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
hasPlatform(): boolean;
|
||||
clearPlatform(): void;
|
||||
getPlatform(): cc_arduino_cli_commands_v1_common_pb.Platform | undefined;
|
||||
setPlatform(value?: cc_arduino_cli_commands_v1_common_pb.Platform): Result;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
platform?: cc_arduino_cli_commands_v1_common_pb.Platform.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
TASK_PROGRESS = 2,
|
||||
RESULT = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class PlatformSearchRequest extends jspb.Message {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -41,12 +41,20 @@ export namespace DebugRequest {
|
||||
}
|
||||
|
||||
export class DebugResponse extends jspb.Message {
|
||||
|
||||
hasData(): boolean;
|
||||
clearData(): void;
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): DebugResponse;
|
||||
getError(): string;
|
||||
setError(value: string): DebugResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): DebugResponse.Result | undefined;
|
||||
setResult(value?: DebugResponse.Result): DebugResponse;
|
||||
|
||||
getMessageCase(): DebugResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DebugResponse.AsObject;
|
||||
@ -61,8 +69,37 @@ export class DebugResponse extends jspb.Message {
|
||||
export namespace DebugResponse {
|
||||
export type AsObject = {
|
||||
data: Uint8Array | string,
|
||||
error: string,
|
||||
result?: DebugResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
getError(): string;
|
||||
setError(value: string): Result;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
error: string,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
DATA = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class IsDebugSupportedRequest extends jspb.Message {
|
||||
|
@ -31,6 +31,8 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugGCCToolchainConfigurati
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugOpenOCDServerConfiguration', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugRequest', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugResponse.MessageCase', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.DebugResponse.Result', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.GetDebugConfigRequest', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.GetDebugConfigResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.IsDebugSupportedRequest', null, global);
|
||||
@ -67,7 +69,7 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @constructor
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.v1.DebugResponse, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
@ -77,6 +79,27 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.displayName = 'proto.cc.arduino.cli.commands.v1.DebugResponse';
|
||||
}
|
||||
/**
|
||||
* 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.DebugResponse.Result = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.v1.DebugResponse.Result, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.displayName = 'proto.cc.arduino.cli.commands.v1.DebugResponse.Result';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -439,6 +462,32 @@ proto.cc.arduino.cli.commands.v1.DebugRequest.prototype.setSendInterrupt = funct
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
* numbers belonging to that group. When of these fields' value is set, all
|
||||
* other fields in the group are cleared. During deserialization, if multiple
|
||||
* fields are encountered for a group, only the last value seen will be kept.
|
||||
* @private {!Array<!Array<number>>}
|
||||
* @const
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_ = [[1,2]];
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.MessageCase = {
|
||||
MESSAGE_NOT_SET: 0,
|
||||
DATA: 1,
|
||||
RESULT: 2
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {proto.cc.arduino.cli.commands.v1.DebugResponse.MessageCase}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.getMessageCase = function() {
|
||||
return /** @type {proto.cc.arduino.cli.commands.v1.DebugResponse.MessageCase} */(jspb.Message.computeOneofCase(this, proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_[0]));
|
||||
};
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
@ -471,7 +520,7 @@ proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.toObject = function(opt
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
data: msg.getData_asB64(),
|
||||
error: jspb.Message.getFieldWithDefault(msg, 2, "")
|
||||
result: (f = msg.getResult()) && proto.cc.arduino.cli.commands.v1.DebugResponse.Result.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -513,8 +562,9 @@ proto.cc.arduino.cli.commands.v1.DebugResponse.deserializeBinaryFromReader = fun
|
||||
msg.setData(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setError(value);
|
||||
var value = new proto.cc.arduino.cli.commands.v1.DebugResponse.Result;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.DebugResponse.Result.deserializeBinaryFromReader);
|
||||
msg.setResult(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
@ -545,23 +595,154 @@ proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.serializeBinary = funct
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getData_asU8();
|
||||
if (f.length > 0) {
|
||||
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getResult();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
2,
|
||||
f,
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.DebugResponse.Result.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.v1.DebugResponse.Result.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.DebugResponse.Result} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
error: 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.DebugResponse.Result}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.v1.DebugResponse.Result;
|
||||
return proto.cc.arduino.cli.commands.v1.DebugResponse.Result.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.DebugResponse.Result} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse.Result}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.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.setError(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.DebugResponse.Result.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.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.DebugResponse.Result} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getError();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string error = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.prototype.getError = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse.Result} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.Result.prototype.setError = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
@ -600,25 +781,62 @@ proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.getData_asU8 = function
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.setData = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 1, value);
|
||||
return jspb.Message.setOneofField(this, 1, proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string error = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.getError = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.setError = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.clearData = function() {
|
||||
return jspb.Message.setOneofField(this, 1, proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.hasData = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Result result = 2;
|
||||
* @return {?proto.cc.arduino.cli.commands.v1.DebugResponse.Result}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.getResult = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.commands.v1.DebugResponse.Result} */ (
|
||||
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.commands.v1.DebugResponse.Result, 2));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.cc.arduino.cli.commands.v1.DebugResponse.Result|undefined} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.setResult = function(value) {
|
||||
return jspb.Message.setOneofWrapperField(this, 2, proto.cc.arduino.cli.commands.v1.DebugResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.DebugResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.clearResult = function() {
|
||||
return this.setResult(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.DebugResponse.prototype.hasResult = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
|
@ -43,6 +43,13 @@ export class LibraryDownloadResponse extends jspb.Message {
|
||||
getProgress(): cc_arduino_cli_commands_v1_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress): LibraryDownloadResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): LibraryDownloadResponse.Result | undefined;
|
||||
setResult(value?: LibraryDownloadResponse.Result): LibraryDownloadResponse;
|
||||
|
||||
getMessageCase(): LibraryDownloadResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryDownloadResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryDownloadResponse): LibraryDownloadResponse.AsObject;
|
||||
@ -56,7 +63,34 @@ export class LibraryDownloadResponse extends jspb.Message {
|
||||
export namespace LibraryDownloadResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
result?: LibraryDownloadResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class LibraryInstallRequest extends jspb.Message {
|
||||
@ -109,6 +143,13 @@ export class LibraryInstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): LibraryInstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): LibraryInstallResponse.Result | undefined;
|
||||
setResult(value?: LibraryInstallResponse.Result): LibraryInstallResponse;
|
||||
|
||||
getMessageCase(): LibraryInstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryInstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryInstallResponse): LibraryInstallResponse.AsObject;
|
||||
@ -123,7 +164,35 @@ export namespace LibraryInstallResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: LibraryInstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
TASK_PROGRESS = 2,
|
||||
RESULT = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class LibraryUpgradeRequest extends jspb.Message {
|
||||
@ -167,6 +236,13 @@ export class LibraryUpgradeResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): LibraryUpgradeResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): LibraryUpgradeResponse.Result | undefined;
|
||||
setResult(value?: LibraryUpgradeResponse.Result): LibraryUpgradeResponse;
|
||||
|
||||
getMessageCase(): LibraryUpgradeResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUpgradeResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUpgradeResponse): LibraryUpgradeResponse.AsObject;
|
||||
@ -181,7 +257,35 @@ export namespace LibraryUpgradeResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: LibraryUpgradeResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
TASK_PROGRESS = 2,
|
||||
RESULT = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class LibraryUninstallRequest extends jspb.Message {
|
||||
@ -220,6 +324,13 @@ export class LibraryUninstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): LibraryUninstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): LibraryUninstallResponse.Result | undefined;
|
||||
setResult(value?: LibraryUninstallResponse.Result): LibraryUninstallResponse;
|
||||
|
||||
getMessageCase(): LibraryUninstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUninstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUninstallResponse): LibraryUninstallResponse.AsObject;
|
||||
@ -233,7 +344,34 @@ export class LibraryUninstallResponse extends jspb.Message {
|
||||
export namespace LibraryUninstallResponse {
|
||||
export type AsObject = {
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: LibraryUninstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
TASK_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class LibraryUpgradeAllRequest extends jspb.Message {
|
||||
@ -271,6 +409,13 @@ export class LibraryUpgradeAllResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): LibraryUpgradeAllResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): LibraryUpgradeAllResponse.Result | undefined;
|
||||
setResult(value?: LibraryUpgradeAllResponse.Result): LibraryUpgradeAllResponse;
|
||||
|
||||
getMessageCase(): LibraryUpgradeAllResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUpgradeAllResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUpgradeAllResponse): LibraryUpgradeAllResponse.AsObject;
|
||||
@ -285,7 +430,35 @@ export namespace LibraryUpgradeAllResponse {
|
||||
export type AsObject = {
|
||||
progress?: cc_arduino_cli_commands_v1_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: LibraryUpgradeAllResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
PROGRESS = 1,
|
||||
TASK_PROGRESS = 2,
|
||||
RESULT = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class LibraryResolveDependenciesRequest extends jspb.Message {
|
||||
@ -809,6 +982,13 @@ export class ZipLibraryInstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): ZipLibraryInstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): ZipLibraryInstallResponse.Result | undefined;
|
||||
setResult(value?: ZipLibraryInstallResponse.Result): ZipLibraryInstallResponse;
|
||||
|
||||
getMessageCase(): ZipLibraryInstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ZipLibraryInstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ZipLibraryInstallResponse): ZipLibraryInstallResponse.AsObject;
|
||||
@ -822,7 +1002,34 @@ export class ZipLibraryInstallResponse extends jspb.Message {
|
||||
export namespace ZipLibraryInstallResponse {
|
||||
export type AsObject = {
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: ZipLibraryInstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
TASK_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class GitLibraryInstallRequest extends jspb.Message {
|
||||
@ -861,6 +1068,13 @@ export class GitLibraryInstallResponse extends jspb.Message {
|
||||
getTaskProgress(): cc_arduino_cli_commands_v1_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: cc_arduino_cli_commands_v1_common_pb.TaskProgress): GitLibraryInstallResponse;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): GitLibraryInstallResponse.Result | undefined;
|
||||
setResult(value?: GitLibraryInstallResponse.Result): GitLibraryInstallResponse;
|
||||
|
||||
getMessageCase(): GitLibraryInstallResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GitLibraryInstallResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GitLibraryInstallResponse): GitLibraryInstallResponse.AsObject;
|
||||
@ -874,7 +1088,34 @@ export class GitLibraryInstallResponse extends jspb.Message {
|
||||
export namespace GitLibraryInstallResponse {
|
||||
export type AsObject = {
|
||||
taskProgress?: cc_arduino_cli_commands_v1_common_pb.TaskProgress.AsObject,
|
||||
result?: GitLibraryInstallResponse.Result.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
TASK_PROGRESS = 1,
|
||||
RESULT = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export enum LibraryInstallLocation {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -123,19 +123,31 @@ export namespace MonitorPortConfiguration {
|
||||
}
|
||||
|
||||
export class MonitorResponse extends jspb.Message {
|
||||
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): string;
|
||||
setError(value: string): MonitorResponse;
|
||||
|
||||
hasRxData(): boolean;
|
||||
clearRxData(): void;
|
||||
getRxData(): Uint8Array | string;
|
||||
getRxData_asU8(): Uint8Array;
|
||||
getRxData_asB64(): string;
|
||||
setRxData(value: Uint8Array | string): MonitorResponse;
|
||||
clearAppliedSettingsList(): void;
|
||||
getAppliedSettingsList(): Array<MonitorPortSetting>;
|
||||
setAppliedSettingsList(value: Array<MonitorPortSetting>): MonitorResponse;
|
||||
addAppliedSettings(value?: MonitorPortSetting, index?: number): MonitorPortSetting;
|
||||
|
||||
hasAppliedSettings(): boolean;
|
||||
clearAppliedSettings(): void;
|
||||
getAppliedSettings(): MonitorPortConfiguration | undefined;
|
||||
setAppliedSettings(value?: MonitorPortConfiguration): MonitorResponse;
|
||||
|
||||
hasSuccess(): boolean;
|
||||
clearSuccess(): void;
|
||||
getSuccess(): boolean;
|
||||
setSuccess(value: boolean): MonitorResponse;
|
||||
|
||||
getMessageCase(): MonitorResponse.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MonitorResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MonitorResponse): MonitorResponse.AsObject;
|
||||
@ -150,9 +162,18 @@ export namespace MonitorResponse {
|
||||
export type AsObject = {
|
||||
error: string,
|
||||
rxData: Uint8Array | string,
|
||||
appliedSettingsList: Array<MonitorPortSetting.AsObject>,
|
||||
appliedSettings?: MonitorPortConfiguration.AsObject,
|
||||
success: boolean,
|
||||
}
|
||||
|
||||
export enum MessageCase {
|
||||
MESSAGE_NOT_SET = 0,
|
||||
ERROR = 1,
|
||||
RX_DATA = 2,
|
||||
APPLIED_SETTINGS = 3,
|
||||
SUCCESS = 4,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class MonitorPortSetting extends jspb.Message {
|
||||
|
@ -34,6 +34,7 @@ goog.exportSymbol('proto.cc.arduino.cli.commands.v1.MonitorPortSettingDescriptor
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.MonitorRequest', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.MonitorRequest.MessageCase', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.MonitorResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.v1.MonitorResponse.MessageCase', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -108,7 +109,7 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @constructor
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.cc.arduino.cli.commands.v1.MonitorResponse.repeatedFields_, null);
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.v1.MonitorResponse, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
@ -997,11 +998,32 @@ proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration.prototype.clearSetting
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
* numbers belonging to that group. When of these fields' value is set, all
|
||||
* other fields in the group are cleared. During deserialization, if multiple
|
||||
* fields are encountered for a group, only the last value seen will be kept.
|
||||
* @private {!Array<!Array<number>>}
|
||||
* @const
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.repeatedFields_ = [3];
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_ = [[1,2,3,4]];
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.MessageCase = {
|
||||
MESSAGE_NOT_SET: 0,
|
||||
ERROR: 1,
|
||||
RX_DATA: 2,
|
||||
APPLIED_SETTINGS: 3,
|
||||
SUCCESS: 4
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {proto.cc.arduino.cli.commands.v1.MonitorResponse.MessageCase}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getMessageCase = function() {
|
||||
return /** @type {proto.cc.arduino.cli.commands.v1.MonitorResponse.MessageCase} */(jspb.Message.computeOneofCase(this, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0]));
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -1036,8 +1058,7 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.toObject = function(includeInst
|
||||
var f, obj = {
|
||||
error: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
rxData: msg.getRxData_asB64(),
|
||||
appliedSettingsList: jspb.Message.toObjectList(msg.getAppliedSettingsList(),
|
||||
proto.cc.arduino.cli.commands.v1.MonitorPortSetting.toObject, includeInstance),
|
||||
appliedSettings: (f = msg.getAppliedSettings()) && proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration.toObject(includeInstance, f),
|
||||
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
||||
};
|
||||
|
||||
@ -1084,9 +1105,9 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.deserializeBinaryFromReader = f
|
||||
msg.setRxData(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = new proto.cc.arduino.cli.commands.v1.MonitorPortSetting;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.MonitorPortSetting.deserializeBinaryFromReader);
|
||||
msg.addAppliedSettings(value);
|
||||
var value = new proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration.deserializeBinaryFromReader);
|
||||
msg.setAppliedSettings(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
@ -1121,30 +1142,30 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.serializeBinary = fun
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getError();
|
||||
if (f.length > 0) {
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRxData_asU8();
|
||||
if (f.length > 0) {
|
||||
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAppliedSettingsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedMessage(
|
||||
f = message.getAppliedSettings();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
3,
|
||||
f,
|
||||
proto.cc.arduino.cli.commands.v1.MonitorPortSetting.serializeBinaryToWriter
|
||||
proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getSuccess();
|
||||
if (f) {
|
||||
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
||||
if (f != null) {
|
||||
writer.writeBool(
|
||||
4,
|
||||
f
|
||||
@ -1167,7 +1188,25 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getError = function()
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.setError = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
return jspb.Message.setOneofField(this, 1, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.clearError = function() {
|
||||
return jspb.Message.setOneofField(this, 1, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.hasError = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
@ -1209,45 +1248,62 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getRxData_asU8 = func
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.setRxData = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 2, value);
|
||||
return jspb.Message.setOneofField(this, 2, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated MonitorPortSetting applied_settings = 3;
|
||||
* @return {!Array<!proto.cc.arduino.cli.commands.v1.MonitorPortSetting>}
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getAppliedSettingsList = function() {
|
||||
return /** @type{!Array<!proto.cc.arduino.cli.commands.v1.MonitorPortSetting>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, proto.cc.arduino.cli.commands.v1.MonitorPortSetting, 3));
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.clearRxData = function() {
|
||||
return jspb.Message.setOneofField(this, 2, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<!proto.cc.arduino.cli.commands.v1.MonitorPortSetting>} value
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.hasRxData = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional MonitorPortConfiguration applied_settings = 3;
|
||||
* @return {?proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getAppliedSettings = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration} */ (
|
||||
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration, 3));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.cc.arduino.cli.commands.v1.MonitorPortConfiguration|undefined} value
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.setAppliedSettingsList = function(value) {
|
||||
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.setAppliedSettings = function(value) {
|
||||
return jspb.Message.setOneofWrapperField(this, 3, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.cc.arduino.cli.commands.v1.MonitorPortSetting=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorPortSetting}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.addAppliedSettings = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cc.arduino.cli.commands.v1.MonitorPortSetting, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.clearAppliedSettingsList = function() {
|
||||
return this.setAppliedSettingsList([]);
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.clearAppliedSettings = function() {
|
||||
return this.setAppliedSettings(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.hasAppliedSettings = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
@ -1265,7 +1321,25 @@ proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.getSuccess = function
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.setSuccess = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||
return jspb.Message.setOneofField(this, 4, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.cc.arduino.cli.commands.v1.MonitorResponse} returns this
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.clearSuccess = function() {
|
||||
return jspb.Message.setOneofField(this, 4, proto.cc.arduino.cli.commands.v1.MonitorResponse.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.v1.MonitorResponse.prototype.hasSuccess = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
||||
|
@ -6,112 +6,481 @@
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
|
||||
export class SettingsGetAllResponse extends jspb.Message {
|
||||
getJsonData(): string;
|
||||
setJsonData(value: string): SettingsGetAllResponse;
|
||||
export class Configuration extends jspb.Message {
|
||||
|
||||
hasDirectories(): boolean;
|
||||
clearDirectories(): void;
|
||||
getDirectories(): Configuration.Directories | undefined;
|
||||
setDirectories(value?: Configuration.Directories): Configuration;
|
||||
|
||||
hasNetwork(): boolean;
|
||||
clearNetwork(): void;
|
||||
getNetwork(): Configuration.Network | undefined;
|
||||
setNetwork(value?: Configuration.Network): Configuration;
|
||||
|
||||
hasSketch(): boolean;
|
||||
clearSketch(): void;
|
||||
getSketch(): Configuration.Sketch | undefined;
|
||||
setSketch(value?: Configuration.Sketch): Configuration;
|
||||
|
||||
hasBuildCache(): boolean;
|
||||
clearBuildCache(): void;
|
||||
getBuildCache(): Configuration.BuildCache | undefined;
|
||||
setBuildCache(value?: Configuration.BuildCache): Configuration;
|
||||
|
||||
hasBoardManager(): boolean;
|
||||
clearBoardManager(): void;
|
||||
getBoardManager(): Configuration.BoardManager | undefined;
|
||||
setBoardManager(value?: Configuration.BoardManager): Configuration;
|
||||
|
||||
hasDaemon(): boolean;
|
||||
clearDaemon(): void;
|
||||
getDaemon(): Configuration.Daemon | undefined;
|
||||
setDaemon(value?: Configuration.Daemon): Configuration;
|
||||
|
||||
hasOutput(): boolean;
|
||||
clearOutput(): void;
|
||||
getOutput(): Configuration.Output | undefined;
|
||||
setOutput(value?: Configuration.Output): Configuration;
|
||||
|
||||
hasLogging(): boolean;
|
||||
clearLogging(): void;
|
||||
getLogging(): Configuration.Logging | undefined;
|
||||
setLogging(value?: Configuration.Logging): Configuration;
|
||||
|
||||
hasLibrary(): boolean;
|
||||
clearLibrary(): void;
|
||||
getLibrary(): Configuration.Library | undefined;
|
||||
setLibrary(value?: Configuration.Library): Configuration;
|
||||
|
||||
hasUpdater(): boolean;
|
||||
clearUpdater(): void;
|
||||
getUpdater(): Configuration.Updater | undefined;
|
||||
setUpdater(value?: Configuration.Updater): Configuration;
|
||||
|
||||
hasLocale(): boolean;
|
||||
clearLocale(): void;
|
||||
getLocale(): string | undefined;
|
||||
setLocale(value: string): Configuration;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsGetAllResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsGetAllResponse): SettingsGetAllResponse.AsObject;
|
||||
toObject(includeInstance?: boolean): Configuration.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Configuration): Configuration.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsGetAllResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsGetAllResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsGetAllResponse, reader: jspb.BinaryReader): SettingsGetAllResponse;
|
||||
static serializeBinaryToWriter(message: Configuration, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Configuration;
|
||||
static deserializeBinaryFromReader(message: Configuration, reader: jspb.BinaryReader): Configuration;
|
||||
}
|
||||
|
||||
export namespace SettingsGetAllResponse {
|
||||
export namespace Configuration {
|
||||
export type AsObject = {
|
||||
directories?: Configuration.Directories.AsObject,
|
||||
network?: Configuration.Network.AsObject,
|
||||
sketch?: Configuration.Sketch.AsObject,
|
||||
buildCache?: Configuration.BuildCache.AsObject,
|
||||
boardManager?: Configuration.BoardManager.AsObject,
|
||||
daemon?: Configuration.Daemon.AsObject,
|
||||
output?: Configuration.Output.AsObject,
|
||||
logging?: Configuration.Logging.AsObject,
|
||||
library?: Configuration.Library.AsObject,
|
||||
updater?: Configuration.Updater.AsObject,
|
||||
locale?: string,
|
||||
}
|
||||
|
||||
|
||||
export class Directories extends jspb.Message {
|
||||
getData(): string;
|
||||
setData(value: string): Directories;
|
||||
getUser(): string;
|
||||
setUser(value: string): Directories;
|
||||
getDownloads(): string;
|
||||
setDownloads(value: string): Directories;
|
||||
|
||||
hasBuiltin(): boolean;
|
||||
clearBuiltin(): void;
|
||||
getBuiltin(): Configuration.Directories.Builtin | undefined;
|
||||
setBuiltin(value?: Configuration.Directories.Builtin): Directories;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Directories.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Directories): Directories.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Directories, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Directories;
|
||||
static deserializeBinaryFromReader(message: Directories, reader: jspb.BinaryReader): Directories;
|
||||
}
|
||||
|
||||
export namespace Directories {
|
||||
export type AsObject = {
|
||||
data: string,
|
||||
user: string,
|
||||
downloads: string,
|
||||
builtin?: Configuration.Directories.Builtin.AsObject,
|
||||
}
|
||||
|
||||
|
||||
export class Builtin extends jspb.Message {
|
||||
|
||||
hasLibraries(): boolean;
|
||||
clearLibraries(): void;
|
||||
getLibraries(): string | undefined;
|
||||
setLibraries(value: string): Builtin;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Builtin.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Builtin): Builtin.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Builtin, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Builtin;
|
||||
static deserializeBinaryFromReader(message: Builtin, reader: jspb.BinaryReader): Builtin;
|
||||
}
|
||||
|
||||
export namespace Builtin {
|
||||
export type AsObject = {
|
||||
libraries?: string,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class Network extends jspb.Message {
|
||||
|
||||
hasExtraUserAgent(): boolean;
|
||||
clearExtraUserAgent(): void;
|
||||
getExtraUserAgent(): string | undefined;
|
||||
setExtraUserAgent(value: string): Network;
|
||||
|
||||
hasProxy(): boolean;
|
||||
clearProxy(): void;
|
||||
getProxy(): string | undefined;
|
||||
setProxy(value: string): Network;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Network.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Network): Network.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Network, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Network;
|
||||
static deserializeBinaryFromReader(message: Network, reader: jspb.BinaryReader): Network;
|
||||
}
|
||||
|
||||
export namespace Network {
|
||||
export type AsObject = {
|
||||
extraUserAgent?: string,
|
||||
proxy?: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class Sketch extends jspb.Message {
|
||||
getAlwaysExportBinaries(): boolean;
|
||||
setAlwaysExportBinaries(value: boolean): Sketch;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Sketch.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Sketch): Sketch.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Sketch, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Sketch;
|
||||
static deserializeBinaryFromReader(message: Sketch, reader: jspb.BinaryReader): Sketch;
|
||||
}
|
||||
|
||||
export namespace Sketch {
|
||||
export type AsObject = {
|
||||
alwaysExportBinaries: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class BuildCache extends jspb.Message {
|
||||
getCompilationsBeforePurge(): number;
|
||||
setCompilationsBeforePurge(value: number): BuildCache;
|
||||
getTtlSecs(): number;
|
||||
setTtlSecs(value: number): BuildCache;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BuildCache.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BuildCache): BuildCache.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BuildCache, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BuildCache;
|
||||
static deserializeBinaryFromReader(message: BuildCache, reader: jspb.BinaryReader): BuildCache;
|
||||
}
|
||||
|
||||
export namespace BuildCache {
|
||||
export type AsObject = {
|
||||
compilationsBeforePurge: number,
|
||||
ttlSecs: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardManager extends jspb.Message {
|
||||
clearAdditionalUrlsList(): void;
|
||||
getAdditionalUrlsList(): Array<string>;
|
||||
setAdditionalUrlsList(value: Array<string>): BoardManager;
|
||||
addAdditionalUrls(value: string, index?: number): string;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardManager.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardManager): BoardManager.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardManager, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardManager;
|
||||
static deserializeBinaryFromReader(message: BoardManager, reader: jspb.BinaryReader): BoardManager;
|
||||
}
|
||||
|
||||
export namespace BoardManager {
|
||||
export type AsObject = {
|
||||
additionalUrlsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Daemon extends jspb.Message {
|
||||
getPort(): string;
|
||||
setPort(value: string): Daemon;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Daemon.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Daemon): Daemon.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Daemon, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Daemon;
|
||||
static deserializeBinaryFromReader(message: Daemon, reader: jspb.BinaryReader): Daemon;
|
||||
}
|
||||
|
||||
export namespace Daemon {
|
||||
export type AsObject = {
|
||||
port: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class Output extends jspb.Message {
|
||||
getNoColor(): boolean;
|
||||
setNoColor(value: boolean): Output;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Output.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Output): Output.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Output, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Output;
|
||||
static deserializeBinaryFromReader(message: Output, reader: jspb.BinaryReader): Output;
|
||||
}
|
||||
|
||||
export namespace Output {
|
||||
export type AsObject = {
|
||||
noColor: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class Logging extends jspb.Message {
|
||||
getLevel(): string;
|
||||
setLevel(value: string): Logging;
|
||||
getFormat(): string;
|
||||
setFormat(value: string): Logging;
|
||||
|
||||
hasFile(): boolean;
|
||||
clearFile(): void;
|
||||
getFile(): string | undefined;
|
||||
setFile(value: string): Logging;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Logging.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Logging): Logging.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Logging, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Logging;
|
||||
static deserializeBinaryFromReader(message: Logging, reader: jspb.BinaryReader): Logging;
|
||||
}
|
||||
|
||||
export namespace Logging {
|
||||
export type AsObject = {
|
||||
level: string,
|
||||
format: string,
|
||||
file?: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class Library extends jspb.Message {
|
||||
getEnableUnsafeInstall(): boolean;
|
||||
setEnableUnsafeInstall(value: boolean): Library;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Library.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Library): Library.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Library, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Library;
|
||||
static deserializeBinaryFromReader(message: Library, reader: jspb.BinaryReader): Library;
|
||||
}
|
||||
|
||||
export namespace Library {
|
||||
export type AsObject = {
|
||||
enableUnsafeInstall: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class Updater extends jspb.Message {
|
||||
getEnableNotification(): boolean;
|
||||
setEnableNotification(value: boolean): Updater;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Updater.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Updater): Updater.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Updater, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Updater;
|
||||
static deserializeBinaryFromReader(message: Updater, reader: jspb.BinaryReader): Updater;
|
||||
}
|
||||
|
||||
export namespace Updater {
|
||||
export type AsObject = {
|
||||
enableNotification: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class ConfigurationGetRequest extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ConfigurationGetRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationGetRequest): ConfigurationGetRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: ConfigurationGetRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationGetRequest;
|
||||
static deserializeBinaryFromReader(message: ConfigurationGetRequest, reader: jspb.BinaryReader): ConfigurationGetRequest;
|
||||
}
|
||||
|
||||
export namespace ConfigurationGetRequest {
|
||||
export type AsObject = {
|
||||
jsonData: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsMergeRequest extends jspb.Message {
|
||||
getJsonData(): string;
|
||||
setJsonData(value: string): SettingsMergeRequest;
|
||||
export class ConfigurationGetResponse extends jspb.Message {
|
||||
|
||||
hasConfiguration(): boolean;
|
||||
clearConfiguration(): void;
|
||||
getConfiguration(): Configuration | undefined;
|
||||
setConfiguration(value?: Configuration): ConfigurationGetResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsMergeRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsMergeRequest): SettingsMergeRequest.AsObject;
|
||||
toObject(includeInstance?: boolean): ConfigurationGetResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationGetResponse): ConfigurationGetResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsMergeRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsMergeRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsMergeRequest, reader: jspb.BinaryReader): SettingsMergeRequest;
|
||||
static serializeBinaryToWriter(message: ConfigurationGetResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationGetResponse;
|
||||
static deserializeBinaryFromReader(message: ConfigurationGetResponse, reader: jspb.BinaryReader): ConfigurationGetResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsMergeRequest {
|
||||
export namespace ConfigurationGetResponse {
|
||||
export type AsObject = {
|
||||
jsonData: string,
|
||||
configuration?: Configuration.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsGetValueResponse extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): SettingsGetValueResponse;
|
||||
getJsonData(): string;
|
||||
setJsonData(value: string): SettingsGetValueResponse;
|
||||
export class ConfigurationSaveRequest extends jspb.Message {
|
||||
getSettingsFormat(): string;
|
||||
setSettingsFormat(value: string): ConfigurationSaveRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsGetValueResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsGetValueResponse): SettingsGetValueResponse.AsObject;
|
||||
toObject(includeInstance?: boolean): ConfigurationSaveRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationSaveRequest): ConfigurationSaveRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsGetValueResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsGetValueResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsGetValueResponse, reader: jspb.BinaryReader): SettingsGetValueResponse;
|
||||
static serializeBinaryToWriter(message: ConfigurationSaveRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationSaveRequest;
|
||||
static deserializeBinaryFromReader(message: ConfigurationSaveRequest, reader: jspb.BinaryReader): ConfigurationSaveRequest;
|
||||
}
|
||||
|
||||
export namespace SettingsGetValueResponse {
|
||||
export namespace ConfigurationSaveRequest {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
jsonData: string,
|
||||
settingsFormat: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsSetValueRequest extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): SettingsSetValueRequest;
|
||||
getJsonData(): string;
|
||||
setJsonData(value: string): SettingsSetValueRequest;
|
||||
export class ConfigurationSaveResponse extends jspb.Message {
|
||||
getEncodedSettings(): string;
|
||||
setEncodedSettings(value: string): ConfigurationSaveResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsSetValueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsSetValueRequest): SettingsSetValueRequest.AsObject;
|
||||
toObject(includeInstance?: boolean): ConfigurationSaveResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationSaveResponse): ConfigurationSaveResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsSetValueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsSetValueRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsSetValueRequest, reader: jspb.BinaryReader): SettingsSetValueRequest;
|
||||
static serializeBinaryToWriter(message: ConfigurationSaveResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationSaveResponse;
|
||||
static deserializeBinaryFromReader(message: ConfigurationSaveResponse, reader: jspb.BinaryReader): ConfigurationSaveResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsSetValueRequest {
|
||||
export namespace ConfigurationSaveResponse {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
jsonData: string,
|
||||
encodedSettings: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsGetAllRequest extends jspb.Message {
|
||||
export class ConfigurationOpenRequest extends jspb.Message {
|
||||
getEncodedSettings(): string;
|
||||
setEncodedSettings(value: string): ConfigurationOpenRequest;
|
||||
getSettingsFormat(): string;
|
||||
setSettingsFormat(value: string): ConfigurationOpenRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsGetAllRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsGetAllRequest): SettingsGetAllRequest.AsObject;
|
||||
toObject(includeInstance?: boolean): ConfigurationOpenRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationOpenRequest): ConfigurationOpenRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsGetAllRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsGetAllRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsGetAllRequest, reader: jspb.BinaryReader): SettingsGetAllRequest;
|
||||
static serializeBinaryToWriter(message: ConfigurationOpenRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationOpenRequest;
|
||||
static deserializeBinaryFromReader(message: ConfigurationOpenRequest, reader: jspb.BinaryReader): ConfigurationOpenRequest;
|
||||
}
|
||||
|
||||
export namespace SettingsGetAllRequest {
|
||||
export namespace ConfigurationOpenRequest {
|
||||
export type AsObject = {
|
||||
encodedSettings: string,
|
||||
settingsFormat: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class ConfigurationOpenResponse extends jspb.Message {
|
||||
clearWarningsList(): void;
|
||||
getWarningsList(): Array<string>;
|
||||
setWarningsList(value: Array<string>): ConfigurationOpenResponse;
|
||||
addWarnings(value: string, index?: number): string;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ConfigurationOpenResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigurationOpenResponse): ConfigurationOpenResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: ConfigurationOpenResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigurationOpenResponse;
|
||||
static deserializeBinaryFromReader(message: ConfigurationOpenResponse, reader: jspb.BinaryReader): ConfigurationOpenResponse;
|
||||
}
|
||||
|
||||
export namespace ConfigurationOpenResponse {
|
||||
export type AsObject = {
|
||||
warningsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsGetValueRequest extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): SettingsGetValueRequest;
|
||||
getValueFormat(): string;
|
||||
setValueFormat(value: string): SettingsGetValueRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsGetValueRequest.AsObject;
|
||||
@ -126,23 +495,53 @@ export class SettingsGetValueRequest extends jspb.Message {
|
||||
export namespace SettingsGetValueRequest {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
valueFormat: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsMergeResponse extends jspb.Message {
|
||||
export class SettingsGetValueResponse extends jspb.Message {
|
||||
getEncodedValue(): string;
|
||||
setEncodedValue(value: string): SettingsGetValueResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsMergeResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsMergeResponse): SettingsMergeResponse.AsObject;
|
||||
toObject(includeInstance?: boolean): SettingsGetValueResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsGetValueResponse): SettingsGetValueResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsMergeResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsMergeResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsMergeResponse, reader: jspb.BinaryReader): SettingsMergeResponse;
|
||||
static serializeBinaryToWriter(message: SettingsGetValueResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsGetValueResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsGetValueResponse, reader: jspb.BinaryReader): SettingsGetValueResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsMergeResponse {
|
||||
export namespace SettingsGetValueResponse {
|
||||
export type AsObject = {
|
||||
encodedValue: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsSetValueRequest extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): SettingsSetValueRequest;
|
||||
getEncodedValue(): string;
|
||||
setEncodedValue(value: string): SettingsSetValueRequest;
|
||||
getValueFormat(): string;
|
||||
setValueFormat(value: string): SettingsSetValueRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsSetValueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsSetValueRequest): SettingsSetValueRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsSetValueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsSetValueRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsSetValueRequest, reader: jspb.BinaryReader): SettingsSetValueRequest;
|
||||
}
|
||||
|
||||
export namespace SettingsSetValueRequest {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
encodedValue: string,
|
||||
valueFormat: string,
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,76 +562,66 @@ export namespace SettingsSetValueResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsWriteRequest extends jspb.Message {
|
||||
getFilePath(): string;
|
||||
setFilePath(value: string): SettingsWriteRequest;
|
||||
export class SettingsEnumerateRequest extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsWriteRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsWriteRequest): SettingsWriteRequest.AsObject;
|
||||
toObject(includeInstance?: boolean): SettingsEnumerateRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsEnumerateRequest): SettingsEnumerateRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsWriteRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsWriteRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsWriteRequest, reader: jspb.BinaryReader): SettingsWriteRequest;
|
||||
static serializeBinaryToWriter(message: SettingsEnumerateRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsEnumerateRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsEnumerateRequest, reader: jspb.BinaryReader): SettingsEnumerateRequest;
|
||||
}
|
||||
|
||||
export namespace SettingsWriteRequest {
|
||||
export type AsObject = {
|
||||
filePath: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsWriteResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsWriteResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsWriteResponse): SettingsWriteResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsWriteResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsWriteResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsWriteResponse, reader: jspb.BinaryReader): SettingsWriteResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsWriteResponse {
|
||||
export namespace SettingsEnumerateRequest {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsDeleteRequest extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): SettingsDeleteRequest;
|
||||
export class SettingsEnumerateResponse extends jspb.Message {
|
||||
clearEntriesList(): void;
|
||||
getEntriesList(): Array<SettingsEnumerateResponse.Entry>;
|
||||
setEntriesList(value: Array<SettingsEnumerateResponse.Entry>): SettingsEnumerateResponse;
|
||||
addEntries(value?: SettingsEnumerateResponse.Entry, index?: number): SettingsEnumerateResponse.Entry;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsDeleteRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsDeleteRequest): SettingsDeleteRequest.AsObject;
|
||||
toObject(includeInstance?: boolean): SettingsEnumerateResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsEnumerateResponse): SettingsEnumerateResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsDeleteRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsDeleteRequest;
|
||||
static deserializeBinaryFromReader(message: SettingsDeleteRequest, reader: jspb.BinaryReader): SettingsDeleteRequest;
|
||||
static serializeBinaryToWriter(message: SettingsEnumerateResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsEnumerateResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsEnumerateResponse, reader: jspb.BinaryReader): SettingsEnumerateResponse;
|
||||
}
|
||||
|
||||
export namespace SettingsDeleteRequest {
|
||||
export namespace SettingsEnumerateResponse {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
entriesList: Array<SettingsEnumerateResponse.Entry.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class SettingsDeleteResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SettingsDeleteResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SettingsDeleteResponse): SettingsDeleteResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SettingsDeleteResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SettingsDeleteResponse;
|
||||
static deserializeBinaryFromReader(message: SettingsDeleteResponse, reader: jspb.BinaryReader): SettingsDeleteResponse;
|
||||
}
|
||||
export class Entry extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): Entry;
|
||||
getType(): string;
|
||||
setType(value: string): Entry;
|
||||
|
||||
export namespace SettingsDeleteResponse {
|
||||
export type AsObject = {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Entry.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Entry): Entry.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Entry, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Entry;
|
||||
static deserializeBinaryFromReader(message: Entry, reader: jspb.BinaryReader): Entry;
|
||||
}
|
||||
|
||||
export namespace Entry {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
type: string,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -16,16 +16,16 @@ import {
|
||||
} from '../common/protocol';
|
||||
import { spawnCommand } from './exec-util';
|
||||
import { ArduinoDaemonImpl } from './arduino-daemon-impl';
|
||||
import { DefaultCliConfig, CLI_CONFIG } from './cli-config';
|
||||
import { DefaultCliConfig, CLI_CONFIG, CliConfig } from './cli-config';
|
||||
import { Deferred } from '@theia/core/lib/common/promise-util';
|
||||
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
||||
import { deepClone, nls } from '@theia/core';
|
||||
import { ErrnoException } from './utils/errors';
|
||||
import {
|
||||
SettingsMergeRequest,
|
||||
SettingsWriteRequest,
|
||||
} from './cli-protocol/cc/arduino/cli/commands/v1/settings_pb';
|
||||
import { createArduinoCoreServiceClient } from './arduino-core-service-client';
|
||||
import {
|
||||
ConfigurationSaveRequest,
|
||||
SettingsSetValueRequest,
|
||||
} from './cli-protocol/cc/arduino/cli/commands/v1/settings_pb';
|
||||
|
||||
const deepmerge = require('deepmerge');
|
||||
|
||||
@ -180,13 +180,13 @@ export class ConfigServiceImpl
|
||||
const content = await fs.readFile(cliConfigPath, {
|
||||
encoding: 'utf8',
|
||||
});
|
||||
const model = (yaml.safeLoad(content) || {}) as DefaultCliConfig;
|
||||
const model = (yaml.safeLoad(content) || {}) as CliConfig;
|
||||
this.logger.info(`Loaded CLI configuration: ${JSON.stringify(model)}`);
|
||||
if (model.directories.data && model.directories.user) {
|
||||
if (model.directories?.data && model.directories?.user) {
|
||||
this.logger.info(
|
||||
"'directories.data' and 'directories.user' are set in the CLI configuration model."
|
||||
);
|
||||
return model;
|
||||
return model as DefaultCliConfig;
|
||||
}
|
||||
// The CLI can run with partial (missing `port`, `directories`), the IDE2 cannot.
|
||||
// We merge the default CLI config with the partial user's config.
|
||||
@ -217,13 +217,17 @@ export class ConfigServiceImpl
|
||||
|
||||
private async getFallbackCliConfig(): Promise<DefaultCliConfig> {
|
||||
const cliPath = this.daemon.getExecPath();
|
||||
const rawJson = await spawnCommand(cliPath, [
|
||||
'config',
|
||||
'dump',
|
||||
'format',
|
||||
'--json',
|
||||
const [configRaw, directoriesRaw] = await Promise.all([
|
||||
spawnCommand(cliPath, ['config', 'dump', '--json']),
|
||||
// Since CLI 1.0, the command `config dump` only returns user-modified values and not default ones.
|
||||
// directories.user and directories.data are required by IDE2 so we get the default value explicitly.
|
||||
spawnCommand(cliPath, ['config', 'get', 'directories', '--json']),
|
||||
]);
|
||||
return JSON.parse(rawJson);
|
||||
|
||||
const config = JSON.parse(configRaw);
|
||||
const { user, data } = JSON.parse(directoriesRaw);
|
||||
|
||||
return { ...config.config, directories: { user, data } };
|
||||
}
|
||||
|
||||
private async initCliConfigTo(fsPathToDir: string): Promise<void> {
|
||||
@ -291,48 +295,65 @@ export class ConfigServiceImpl
|
||||
}
|
||||
|
||||
private async updateDaemon(
|
||||
port: number | number,
|
||||
port: number,
|
||||
config: DefaultCliConfig
|
||||
): Promise<void> {
|
||||
const client = createArduinoCoreServiceClient({ port });
|
||||
const req = new SettingsMergeRequest();
|
||||
const json = JSON.stringify(config, null, 2);
|
||||
req.setJsonData(json);
|
||||
this.logger.info(`Updating daemon with 'data': ${json}`);
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
client.settingsMerge(req, (error) => {
|
||||
try {
|
||||
|
||||
const updatableConfig = {
|
||||
locale: config.locale,
|
||||
'directories.user': config.directories.user,
|
||||
'directories.data': config.directories.data,
|
||||
'network.proxy': config.network?.proxy,
|
||||
'board_manager.additional_urls':
|
||||
config.board_manager?.additional_urls || [],
|
||||
};
|
||||
|
||||
const client = createArduinoCoreServiceClient({ port });
|
||||
|
||||
for (const [key, value] of Object.entries(updatableConfig)) {
|
||||
const req = new SettingsSetValueRequest();
|
||||
req.setKey(key);
|
||||
req.setEncodedValue(JSON.stringify(value));
|
||||
await new Promise<void>((resolve) => {
|
||||
client.settingsSetValue(req, (error) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
return;
|
||||
this.logger.error(
|
||||
`Could not update config with key: ${key} and value: ${value}`,
|
||||
error
|
||||
);
|
||||
}
|
||||
resolve();
|
||||
} finally {
|
||||
client.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
client.close();
|
||||
}
|
||||
|
||||
private async writeDaemonState(port: number | number): Promise<void> {
|
||||
private async writeDaemonState(port: number): Promise<void> {
|
||||
const client = createArduinoCoreServiceClient({ port });
|
||||
const req = new SettingsWriteRequest();
|
||||
const cliConfigUri = await this.getCliConfigFileUri();
|
||||
const cliConfigPath = FileUri.fsPath(cliConfigUri);
|
||||
req.setFilePath(cliConfigPath);
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
client.settingsWrite(req, (error) => {
|
||||
const req = new ConfigurationSaveRequest();
|
||||
req.setSettingsFormat('yaml');
|
||||
|
||||
const configRaw = await new Promise<string>((resolve, reject) => {
|
||||
client.configurationSave(req, (error, resp) => {
|
||||
try {
|
||||
if (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
resolve();
|
||||
resolve(resp.getEncodedSettings());
|
||||
} finally {
|
||||
client.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const cliConfigUri = await this.getCliConfigFileUri();
|
||||
const cliConfigPath = FileUri.fsPath(cliConfigUri);
|
||||
await fs.writeFile(cliConfigPath, configRaw, { encoding: 'utf-8' });
|
||||
}
|
||||
|
||||
// #1445
|
||||
|
@ -11,7 +11,6 @@ import type { Mutable } from '@theia/core/lib/common/types';
|
||||
import { FileUri } from '@theia/core/lib/node/file-uri';
|
||||
import { inject, injectable } from '@theia/core/shared/inversify';
|
||||
import * as jspb from 'google-protobuf';
|
||||
import { BoolValue } from 'google-protobuf/google/protobuf/wrappers_pb';
|
||||
import path from 'node:path';
|
||||
import {
|
||||
UploadResponse as ApiUploadResponse,
|
||||
@ -195,9 +194,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
|
||||
request.setVerbose(options.verbose);
|
||||
request.setQuiet(false);
|
||||
if (typeof options.exportBinaries === 'boolean') {
|
||||
const exportBinaries = new BoolValue();
|
||||
exportBinaries.setValue(options.exportBinaries);
|
||||
request.setExportBinaries(exportBinaries);
|
||||
request.setExportBinaries(options.exportBinaries);
|
||||
}
|
||||
this.mergeSourceOverrides(request, options);
|
||||
return request;
|
||||
|
@ -37,7 +37,7 @@ describe('exec-utils', () => {
|
||||
expect(fs.accessSync(cliCopyPath, fs.constants.X_OK)).to.be.undefined;
|
||||
expect(cliCopyPath.includes(segment)).to.be.true;
|
||||
const stdout = await spawnCommand(cliCopyPath, ['version']);
|
||||
expect(stdout.includes(filename)).to.be.true;
|
||||
expect(stdout.includes(path.parse(filename).name)).to.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -289,7 +289,6 @@ export async function createCliConfig(
|
||||
const directories = {
|
||||
data: join(configDirPath, 'data', 'Arduino15'),
|
||||
downloads: join(configDirPath, 'data', 'Arduino15', 'staging'),
|
||||
builtin: join(configDirPath, 'data', 'Arduino15', 'libraries'),
|
||||
user: join(configDirPath, 'user', 'Arduino'),
|
||||
};
|
||||
for (const directoryPath of Object.values(directories)) {
|
||||
|
26
yarn.lock
26
yarn.lock
@ -1899,6 +1899,19 @@
|
||||
"@phosphor/signaling" "^1.3.1"
|
||||
"@phosphor/virtualdom" "^1.2.0"
|
||||
|
||||
"@pingghost/protoc@^1.0.2":
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/@pingghost/protoc/-/protoc-1.0.2.tgz#68436fe6df7b700149dfb2b9a6a9db3b66fe758a"
|
||||
integrity sha512-7ndq6JmrfcRfr6wIxdrjBqAipsrWwldFL5TQRmJXgpGrRi1yU6vKWID6Z4cs96iK+3yLIoUON11fE5CThNBrXA==
|
||||
dependencies:
|
||||
glob "^7.2.3"
|
||||
mkdirp "^0.5.6"
|
||||
node-fetch "^3.2.10"
|
||||
rimraf "^3.0.2"
|
||||
unzipper "^0.10.11"
|
||||
uuid "^9.0.0"
|
||||
vinyl "^2.2.1"
|
||||
|
||||
"@pkgjs/parseargs@^0.11.0":
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
|
||||
@ -11100,19 +11113,6 @@ protobufjs@^7.2.3, protobufjs@^7.2.4:
|
||||
"@types/node" ">=13.7.0"
|
||||
long "^5.0.0"
|
||||
|
||||
protoc@^1.0.4:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/protoc/-/protoc-1.1.3.tgz#d9857ec2a43a683af8263032d519ce7ba0b7d99e"
|
||||
integrity sha512-Vy4OBxCcF0W38YrZZRFix659gFu8ujIxVDP1SUBK9ELzyeMSBe8m8tYyYlX1PI5j9gse9hWu4c4nzQaHesAf8Q==
|
||||
dependencies:
|
||||
glob "^7.2.3"
|
||||
mkdirp "^0.5.6"
|
||||
node-fetch "^3.2.10"
|
||||
rimraf "^3.0.2"
|
||||
unzipper "^0.10.11"
|
||||
uuid "^9.0.0"
|
||||
vinyl "^2.2.1"
|
||||
|
||||
protocols@^2.0.0, protocols@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86"
|
||||
|
Loading…
x
Reference in New Issue
Block a user