mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-22 00:26:09 +00:00
Support of the CLI config.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,378 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/board.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
|
||||
export class BoardDetailsReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardDetailsReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardDetailsReq): BoardDetailsReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardDetailsReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardDetailsReq;
|
||||
static deserializeBinaryFromReader(message: BoardDetailsReq, reader: jspb.BinaryReader): BoardDetailsReq;
|
||||
}
|
||||
|
||||
export namespace BoardDetailsReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
fqbn: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardDetailsResp extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
clearConfigOptionsList(): void;
|
||||
getConfigOptionsList(): Array<ConfigOption>;
|
||||
setConfigOptionsList(value: Array<ConfigOption>): void;
|
||||
addConfigOptions(value?: ConfigOption, index?: number): ConfigOption;
|
||||
|
||||
clearRequiredToolsList(): void;
|
||||
getRequiredToolsList(): Array<RequiredTool>;
|
||||
setRequiredToolsList(value: Array<RequiredTool>): void;
|
||||
addRequiredTools(value?: RequiredTool, index?: number): RequiredTool;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardDetailsResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardDetailsResp): BoardDetailsResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardDetailsResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardDetailsResp;
|
||||
static deserializeBinaryFromReader(message: BoardDetailsResp, reader: jspb.BinaryReader): BoardDetailsResp;
|
||||
}
|
||||
|
||||
export namespace BoardDetailsResp {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
configOptionsList: Array<ConfigOption.AsObject>,
|
||||
requiredToolsList: Array<RequiredTool.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class ConfigOption extends jspb.Message {
|
||||
getOption(): string;
|
||||
setOption(value: string): void;
|
||||
|
||||
getOptionLabel(): string;
|
||||
setOptionLabel(value: string): void;
|
||||
|
||||
clearValuesList(): void;
|
||||
getValuesList(): Array<ConfigValue>;
|
||||
setValuesList(value: Array<ConfigValue>): void;
|
||||
addValues(value?: ConfigValue, index?: number): ConfigValue;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ConfigOption.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigOption): ConfigOption.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: ConfigOption, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigOption;
|
||||
static deserializeBinaryFromReader(message: ConfigOption, reader: jspb.BinaryReader): ConfigOption;
|
||||
}
|
||||
|
||||
export namespace ConfigOption {
|
||||
export type AsObject = {
|
||||
option: string,
|
||||
optionLabel: string,
|
||||
valuesList: Array<ConfigValue.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class ConfigValue extends jspb.Message {
|
||||
getValue(): string;
|
||||
setValue(value: string): void;
|
||||
|
||||
getValueLabel(): string;
|
||||
setValueLabel(value: string): void;
|
||||
|
||||
getSelected(): boolean;
|
||||
setSelected(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ConfigValue.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ConfigValue): ConfigValue.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: ConfigValue, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ConfigValue;
|
||||
static deserializeBinaryFromReader(message: ConfigValue, reader: jspb.BinaryReader): ConfigValue;
|
||||
}
|
||||
|
||||
export namespace ConfigValue {
|
||||
export type AsObject = {
|
||||
value: string,
|
||||
valueLabel: string,
|
||||
selected: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class RequiredTool extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
getPackager(): string;
|
||||
setPackager(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RequiredTool.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RequiredTool): RequiredTool.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: RequiredTool, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): RequiredTool;
|
||||
static deserializeBinaryFromReader(message: RequiredTool, reader: jspb.BinaryReader): RequiredTool;
|
||||
}
|
||||
|
||||
export namespace RequiredTool {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
version: string,
|
||||
packager: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardAttachReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getBoardUri(): string;
|
||||
setBoardUri(value: string): void;
|
||||
|
||||
getSketchPath(): string;
|
||||
setSketchPath(value: string): void;
|
||||
|
||||
getSearchTimeout(): string;
|
||||
setSearchTimeout(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardAttachReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardAttachReq): BoardAttachReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardAttachReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardAttachReq;
|
||||
static deserializeBinaryFromReader(message: BoardAttachReq, reader: jspb.BinaryReader): BoardAttachReq;
|
||||
}
|
||||
|
||||
export namespace BoardAttachReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
boardUri: string,
|
||||
sketchPath: string,
|
||||
searchTimeout: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardAttachResp extends jspb.Message {
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardAttachResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardAttachResp): BoardAttachResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardAttachResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardAttachResp;
|
||||
static deserializeBinaryFromReader(message: BoardAttachResp, reader: jspb.BinaryReader): BoardAttachResp;
|
||||
}
|
||||
|
||||
export namespace BoardAttachResp {
|
||||
export type AsObject = {
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardListReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardListReq): BoardListReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardListReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardListReq;
|
||||
static deserializeBinaryFromReader(message: BoardListReq, reader: jspb.BinaryReader): BoardListReq;
|
||||
}
|
||||
|
||||
export namespace BoardListReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardListResp extends jspb.Message {
|
||||
clearPortsList(): void;
|
||||
getPortsList(): Array<DetectedPort>;
|
||||
setPortsList(value: Array<DetectedPort>): void;
|
||||
addPorts(value?: DetectedPort, index?: number): DetectedPort;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardListResp): BoardListResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardListResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardListResp;
|
||||
static deserializeBinaryFromReader(message: BoardListResp, reader: jspb.BinaryReader): BoardListResp;
|
||||
}
|
||||
|
||||
export namespace BoardListResp {
|
||||
export type AsObject = {
|
||||
portsList: Array<DetectedPort.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class DetectedPort extends jspb.Message {
|
||||
getAddress(): string;
|
||||
setAddress(value: string): void;
|
||||
|
||||
getProtocol(): string;
|
||||
setProtocol(value: string): void;
|
||||
|
||||
getProtocolLabel(): string;
|
||||
setProtocolLabel(value: string): void;
|
||||
|
||||
clearBoardsList(): void;
|
||||
getBoardsList(): Array<BoardListItem>;
|
||||
setBoardsList(value: Array<BoardListItem>): void;
|
||||
addBoards(value?: BoardListItem, index?: number): BoardListItem;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DetectedPort.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DetectedPort): DetectedPort.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DetectedPort, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DetectedPort;
|
||||
static deserializeBinaryFromReader(message: DetectedPort, reader: jspb.BinaryReader): DetectedPort;
|
||||
}
|
||||
|
||||
export namespace DetectedPort {
|
||||
export type AsObject = {
|
||||
address: string,
|
||||
protocol: string,
|
||||
protocolLabel: string,
|
||||
boardsList: Array<BoardListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardListAllReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
clearSearchArgsList(): void;
|
||||
getSearchArgsList(): Array<string>;
|
||||
setSearchArgsList(value: Array<string>): void;
|
||||
addSearchArgs(value: string, index?: number): string;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListAllReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardListAllReq): BoardListAllReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardListAllReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardListAllReq;
|
||||
static deserializeBinaryFromReader(message: BoardListAllReq, reader: jspb.BinaryReader): BoardListAllReq;
|
||||
}
|
||||
|
||||
export namespace BoardListAllReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
searchArgsList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardListAllResp extends jspb.Message {
|
||||
clearBoardsList(): void;
|
||||
getBoardsList(): Array<BoardListItem>;
|
||||
setBoardsList(value: Array<BoardListItem>): void;
|
||||
addBoards(value?: BoardListItem, index?: number): BoardListItem;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListAllResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardListAllResp): BoardListAllResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardListAllResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardListAllResp;
|
||||
static deserializeBinaryFromReader(message: BoardListAllResp, reader: jspb.BinaryReader): BoardListAllResp;
|
||||
}
|
||||
|
||||
export namespace BoardListAllResp {
|
||||
export type AsObject = {
|
||||
boardsList: Array<BoardListItem.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BoardListItem extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BoardListItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BoardListItem): BoardListItem.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BoardListItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BoardListItem;
|
||||
static deserializeBinaryFromReader(message: BoardListItem, reader: jspb.BinaryReader): BoardListItem;
|
||||
}
|
||||
|
||||
export namespace BoardListItem {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
fqbn: string,
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,427 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/commands.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as grpc from "@grpc/grpc-js";
|
||||
import * as commands_commands_pb from "../commands/commands_pb";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
import * as commands_board_pb from "../commands/board_pb";
|
||||
import * as commands_compile_pb from "../commands/compile_pb";
|
||||
import * as commands_core_pb from "../commands/core_pb";
|
||||
import * as commands_upload_pb from "../commands/upload_pb";
|
||||
import * as commands_lib_pb from "../commands/lib_pb";
|
||||
|
||||
interface IArduinoCoreService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
||||
init: IArduinoCoreService_IInit;
|
||||
destroy: IArduinoCoreService_IDestroy;
|
||||
rescan: IArduinoCoreService_IRescan;
|
||||
updateIndex: IArduinoCoreService_IUpdateIndex;
|
||||
updateLibrariesIndex: IArduinoCoreService_IUpdateLibrariesIndex;
|
||||
version: IArduinoCoreService_IVersion;
|
||||
boardDetails: IArduinoCoreService_IBoardDetails;
|
||||
boardAttach: IArduinoCoreService_IBoardAttach;
|
||||
boardList: IArduinoCoreService_IBoardList;
|
||||
boardListAll: IArduinoCoreService_IBoardListAll;
|
||||
compile: IArduinoCoreService_ICompile;
|
||||
platformInstall: IArduinoCoreService_IPlatformInstall;
|
||||
platformDownload: IArduinoCoreService_IPlatformDownload;
|
||||
platformUninstall: IArduinoCoreService_IPlatformUninstall;
|
||||
platformUpgrade: IArduinoCoreService_IPlatformUpgrade;
|
||||
upload: IArduinoCoreService_IUpload;
|
||||
platformSearch: IArduinoCoreService_IPlatformSearch;
|
||||
platformList: IArduinoCoreService_IPlatformList;
|
||||
libraryDownload: IArduinoCoreService_ILibraryDownload;
|
||||
libraryInstall: IArduinoCoreService_ILibraryInstall;
|
||||
libraryUninstall: IArduinoCoreService_ILibraryUninstall;
|
||||
libraryUpgradeAll: IArduinoCoreService_ILibraryUpgradeAll;
|
||||
libraryResolveDependencies: IArduinoCoreService_ILibraryResolveDependencies;
|
||||
librarySearch: IArduinoCoreService_ILibrarySearch;
|
||||
libraryList: IArduinoCoreService_ILibraryList;
|
||||
}
|
||||
|
||||
interface IArduinoCoreService_IInit extends grpc.MethodDefinition<commands_commands_pb.InitReq, commands_commands_pb.InitResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Init"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.InitReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.InitReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.InitResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.InitResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IDestroy extends grpc.MethodDefinition<commands_commands_pb.DestroyReq, commands_commands_pb.DestroyResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Destroy"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.DestroyReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.DestroyReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.DestroyResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.DestroyResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IRescan extends grpc.MethodDefinition<commands_commands_pb.RescanReq, commands_commands_pb.RescanResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Rescan"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.RescanReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.RescanReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.RescanResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.RescanResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IUpdateIndex extends grpc.MethodDefinition<commands_commands_pb.UpdateIndexReq, commands_commands_pb.UpdateIndexResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/UpdateIndex"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.UpdateIndexReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.UpdateIndexReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.UpdateIndexResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.UpdateIndexResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IUpdateLibrariesIndex extends grpc.MethodDefinition<commands_commands_pb.UpdateLibrariesIndexReq, commands_commands_pb.UpdateLibrariesIndexResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/UpdateLibrariesIndex"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.UpdateLibrariesIndexReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.UpdateLibrariesIndexReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IVersion extends grpc.MethodDefinition<commands_commands_pb.VersionReq, commands_commands_pb.VersionResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Version"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_commands_pb.VersionReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_commands_pb.VersionReq>;
|
||||
responseSerialize: grpc.serialize<commands_commands_pb.VersionResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_commands_pb.VersionResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IBoardDetails extends grpc.MethodDefinition<commands_board_pb.BoardDetailsReq, commands_board_pb.BoardDetailsResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/BoardDetails"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_board_pb.BoardDetailsReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_board_pb.BoardDetailsReq>;
|
||||
responseSerialize: grpc.serialize<commands_board_pb.BoardDetailsResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_board_pb.BoardDetailsResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IBoardAttach extends grpc.MethodDefinition<commands_board_pb.BoardAttachReq, commands_board_pb.BoardAttachResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/BoardAttach"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_board_pb.BoardAttachReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_board_pb.BoardAttachReq>;
|
||||
responseSerialize: grpc.serialize<commands_board_pb.BoardAttachResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_board_pb.BoardAttachResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IBoardList extends grpc.MethodDefinition<commands_board_pb.BoardListReq, commands_board_pb.BoardListResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/BoardList"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_board_pb.BoardListReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_board_pb.BoardListReq>;
|
||||
responseSerialize: grpc.serialize<commands_board_pb.BoardListResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_board_pb.BoardListResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IBoardListAll extends grpc.MethodDefinition<commands_board_pb.BoardListAllReq, commands_board_pb.BoardListAllResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/BoardListAll"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_board_pb.BoardListAllReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_board_pb.BoardListAllReq>;
|
||||
responseSerialize: grpc.serialize<commands_board_pb.BoardListAllResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_board_pb.BoardListAllResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ICompile extends grpc.MethodDefinition<commands_compile_pb.CompileReq, commands_compile_pb.CompileResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Compile"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_compile_pb.CompileReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_compile_pb.CompileReq>;
|
||||
responseSerialize: grpc.serialize<commands_compile_pb.CompileResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_compile_pb.CompileResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformInstall extends grpc.MethodDefinition<commands_core_pb.PlatformInstallReq, commands_core_pb.PlatformInstallResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformInstall"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformInstallReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformInstallReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformInstallResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformInstallResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformDownload extends grpc.MethodDefinition<commands_core_pb.PlatformDownloadReq, commands_core_pb.PlatformDownloadResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformDownload"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformDownloadReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformDownloadReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformDownloadResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformDownloadResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformUninstall extends grpc.MethodDefinition<commands_core_pb.PlatformUninstallReq, commands_core_pb.PlatformUninstallResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformUninstall"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformUninstallReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformUninstallReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformUninstallResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformUninstallResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformUpgrade extends grpc.MethodDefinition<commands_core_pb.PlatformUpgradeReq, commands_core_pb.PlatformUpgradeResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformUpgrade"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformUpgradeReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformUpgradeReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformUpgradeResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformUpgradeResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IUpload extends grpc.MethodDefinition<commands_upload_pb.UploadReq, commands_upload_pb.UploadResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/Upload"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_upload_pb.UploadReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_upload_pb.UploadReq>;
|
||||
responseSerialize: grpc.serialize<commands_upload_pb.UploadResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_upload_pb.UploadResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformSearch extends grpc.MethodDefinition<commands_core_pb.PlatformSearchReq, commands_core_pb.PlatformSearchResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformSearch"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformSearchReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformSearchReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformSearchResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformSearchResp>;
|
||||
}
|
||||
interface IArduinoCoreService_IPlatformList extends grpc.MethodDefinition<commands_core_pb.PlatformListReq, commands_core_pb.PlatformListResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/PlatformList"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_core_pb.PlatformListReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_core_pb.PlatformListReq>;
|
||||
responseSerialize: grpc.serialize<commands_core_pb.PlatformListResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_core_pb.PlatformListResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryDownload extends grpc.MethodDefinition<commands_lib_pb.LibraryDownloadReq, commands_lib_pb.LibraryDownloadResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryDownload"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryDownloadReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryDownloadReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryDownloadResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryDownloadResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryInstall extends grpc.MethodDefinition<commands_lib_pb.LibraryInstallReq, commands_lib_pb.LibraryInstallResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryInstall"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryInstallReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryInstallReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryInstallResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryInstallResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryUninstall extends grpc.MethodDefinition<commands_lib_pb.LibraryUninstallReq, commands_lib_pb.LibraryUninstallResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryUninstall"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryUninstallReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryUninstallReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryUninstallResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryUninstallResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryUpgradeAll extends grpc.MethodDefinition<commands_lib_pb.LibraryUpgradeAllReq, commands_lib_pb.LibraryUpgradeAllResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryUpgradeAll"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryUpgradeAllReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryUpgradeAllReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryResolveDependencies extends grpc.MethodDefinition<commands_lib_pb.LibraryResolveDependenciesReq, commands_lib_pb.LibraryResolveDependenciesResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryResolveDependencies"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryResolveDependenciesReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryResolveDependenciesReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryResolveDependenciesResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryResolveDependenciesResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibrarySearch extends grpc.MethodDefinition<commands_lib_pb.LibrarySearchReq, commands_lib_pb.LibrarySearchResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibrarySearch"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibrarySearchReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibrarySearchReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibrarySearchResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibrarySearchResp>;
|
||||
}
|
||||
interface IArduinoCoreService_ILibraryList extends grpc.MethodDefinition<commands_lib_pb.LibraryListReq, commands_lib_pb.LibraryListResp> {
|
||||
path: string; // "/cc.arduino.cli.commands.ArduinoCore/LibraryList"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<commands_lib_pb.LibraryListReq>;
|
||||
requestDeserialize: grpc.deserialize<commands_lib_pb.LibraryListReq>;
|
||||
responseSerialize: grpc.serialize<commands_lib_pb.LibraryListResp>;
|
||||
responseDeserialize: grpc.deserialize<commands_lib_pb.LibraryListResp>;
|
||||
}
|
||||
|
||||
export const ArduinoCoreService: IArduinoCoreService;
|
||||
|
||||
export interface IArduinoCoreServer {
|
||||
init: grpc.handleServerStreamingCall<commands_commands_pb.InitReq, commands_commands_pb.InitResp>;
|
||||
destroy: grpc.handleUnaryCall<commands_commands_pb.DestroyReq, commands_commands_pb.DestroyResp>;
|
||||
rescan: grpc.handleUnaryCall<commands_commands_pb.RescanReq, commands_commands_pb.RescanResp>;
|
||||
updateIndex: grpc.handleServerStreamingCall<commands_commands_pb.UpdateIndexReq, commands_commands_pb.UpdateIndexResp>;
|
||||
updateLibrariesIndex: grpc.handleServerStreamingCall<commands_commands_pb.UpdateLibrariesIndexReq, commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
version: grpc.handleUnaryCall<commands_commands_pb.VersionReq, commands_commands_pb.VersionResp>;
|
||||
boardDetails: grpc.handleUnaryCall<commands_board_pb.BoardDetailsReq, commands_board_pb.BoardDetailsResp>;
|
||||
boardAttach: grpc.handleServerStreamingCall<commands_board_pb.BoardAttachReq, commands_board_pb.BoardAttachResp>;
|
||||
boardList: grpc.handleUnaryCall<commands_board_pb.BoardListReq, commands_board_pb.BoardListResp>;
|
||||
boardListAll: grpc.handleUnaryCall<commands_board_pb.BoardListAllReq, commands_board_pb.BoardListAllResp>;
|
||||
compile: grpc.handleServerStreamingCall<commands_compile_pb.CompileReq, commands_compile_pb.CompileResp>;
|
||||
platformInstall: grpc.handleServerStreamingCall<commands_core_pb.PlatformInstallReq, commands_core_pb.PlatformInstallResp>;
|
||||
platformDownload: grpc.handleServerStreamingCall<commands_core_pb.PlatformDownloadReq, commands_core_pb.PlatformDownloadResp>;
|
||||
platformUninstall: grpc.handleServerStreamingCall<commands_core_pb.PlatformUninstallReq, commands_core_pb.PlatformUninstallResp>;
|
||||
platformUpgrade: grpc.handleServerStreamingCall<commands_core_pb.PlatformUpgradeReq, commands_core_pb.PlatformUpgradeResp>;
|
||||
upload: grpc.handleServerStreamingCall<commands_upload_pb.UploadReq, commands_upload_pb.UploadResp>;
|
||||
platformSearch: grpc.handleUnaryCall<commands_core_pb.PlatformSearchReq, commands_core_pb.PlatformSearchResp>;
|
||||
platformList: grpc.handleUnaryCall<commands_core_pb.PlatformListReq, commands_core_pb.PlatformListResp>;
|
||||
libraryDownload: grpc.handleServerStreamingCall<commands_lib_pb.LibraryDownloadReq, commands_lib_pb.LibraryDownloadResp>;
|
||||
libraryInstall: grpc.handleServerStreamingCall<commands_lib_pb.LibraryInstallReq, commands_lib_pb.LibraryInstallResp>;
|
||||
libraryUninstall: grpc.handleServerStreamingCall<commands_lib_pb.LibraryUninstallReq, commands_lib_pb.LibraryUninstallResp>;
|
||||
libraryUpgradeAll: grpc.handleServerStreamingCall<commands_lib_pb.LibraryUpgradeAllReq, commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
libraryResolveDependencies: grpc.handleUnaryCall<commands_lib_pb.LibraryResolveDependenciesReq, commands_lib_pb.LibraryResolveDependenciesResp>;
|
||||
librarySearch: grpc.handleUnaryCall<commands_lib_pb.LibrarySearchReq, commands_lib_pb.LibrarySearchResp>;
|
||||
libraryList: grpc.handleUnaryCall<commands_lib_pb.LibraryListReq, commands_lib_pb.LibraryListResp>;
|
||||
}
|
||||
|
||||
export interface IArduinoCoreClient {
|
||||
init(request: commands_commands_pb.InitReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.InitResp>;
|
||||
init(request: commands_commands_pb.InitReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.InitResp>;
|
||||
destroy(request: commands_commands_pb.DestroyReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
destroy(request: commands_commands_pb.DestroyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
destroy(request: commands_commands_pb.DestroyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
rescan(request: commands_commands_pb.RescanReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
rescan(request: commands_commands_pb.RescanReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
rescan(request: commands_commands_pb.RescanReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
updateIndex(request: commands_commands_pb.UpdateIndexReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateIndexResp>;
|
||||
updateIndex(request: commands_commands_pb.UpdateIndexReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateIndexResp>;
|
||||
updateLibrariesIndex(request: commands_commands_pb.UpdateLibrariesIndexReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
updateLibrariesIndex(request: commands_commands_pb.UpdateLibrariesIndexReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
version(request: commands_commands_pb.VersionReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
version(request: commands_commands_pb.VersionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
version(request: commands_commands_pb.VersionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
boardDetails(request: commands_board_pb.BoardDetailsReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
boardDetails(request: commands_board_pb.BoardDetailsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
boardDetails(request: commands_board_pb.BoardDetailsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
boardAttach(request: commands_board_pb.BoardAttachReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_board_pb.BoardAttachResp>;
|
||||
boardAttach(request: commands_board_pb.BoardAttachReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_board_pb.BoardAttachResp>;
|
||||
boardList(request: commands_board_pb.BoardListReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
boardList(request: commands_board_pb.BoardListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
boardList(request: commands_board_pb.BoardListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
boardListAll(request: commands_board_pb.BoardListAllReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
boardListAll(request: commands_board_pb.BoardListAllReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
boardListAll(request: commands_board_pb.BoardListAllReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
compile(request: commands_compile_pb.CompileReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_compile_pb.CompileResp>;
|
||||
compile(request: commands_compile_pb.CompileReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_compile_pb.CompileResp>;
|
||||
platformInstall(request: commands_core_pb.PlatformInstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformInstallResp>;
|
||||
platformInstall(request: commands_core_pb.PlatformInstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformInstallResp>;
|
||||
platformDownload(request: commands_core_pb.PlatformDownloadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformDownloadResp>;
|
||||
platformDownload(request: commands_core_pb.PlatformDownloadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformDownloadResp>;
|
||||
platformUninstall(request: commands_core_pb.PlatformUninstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUninstallResp>;
|
||||
platformUninstall(request: commands_core_pb.PlatformUninstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUninstallResp>;
|
||||
platformUpgrade(request: commands_core_pb.PlatformUpgradeReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUpgradeResp>;
|
||||
platformUpgrade(request: commands_core_pb.PlatformUpgradeReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUpgradeResp>;
|
||||
upload(request: commands_upload_pb.UploadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_upload_pb.UploadResp>;
|
||||
upload(request: commands_upload_pb.UploadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_upload_pb.UploadResp>;
|
||||
platformSearch(request: commands_core_pb.PlatformSearchReq, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
platformSearch(request: commands_core_pb.PlatformSearchReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
platformSearch(request: commands_core_pb.PlatformSearchReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
platformList(request: commands_core_pb.PlatformListReq, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
platformList(request: commands_core_pb.PlatformListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
platformList(request: commands_core_pb.PlatformListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
libraryDownload(request: commands_lib_pb.LibraryDownloadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryDownloadResp>;
|
||||
libraryDownload(request: commands_lib_pb.LibraryDownloadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryDownloadResp>;
|
||||
libraryInstall(request: commands_lib_pb.LibraryInstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryInstallResp>;
|
||||
libraryInstall(request: commands_lib_pb.LibraryInstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryInstallResp>;
|
||||
libraryUninstall(request: commands_lib_pb.LibraryUninstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUninstallResp>;
|
||||
libraryUninstall(request: commands_lib_pb.LibraryUninstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUninstallResp>;
|
||||
libraryUpgradeAll(request: commands_lib_pb.LibraryUpgradeAllReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
libraryUpgradeAll(request: commands_lib_pb.LibraryUpgradeAllReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
librarySearch(request: commands_lib_pb.LibrarySearchReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
librarySearch(request: commands_lib_pb.LibrarySearchReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
librarySearch(request: commands_lib_pb.LibrarySearchReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
libraryList(request: commands_lib_pb.LibraryListReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
libraryList(request: commands_lib_pb.LibraryListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
libraryList(request: commands_lib_pb.LibraryListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class ArduinoCoreClient extends grpc.Client implements IArduinoCoreClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
||||
public init(request: commands_commands_pb.InitReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.InitResp>;
|
||||
public init(request: commands_commands_pb.InitReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.InitResp>;
|
||||
public destroy(request: commands_commands_pb.DestroyReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
public destroy(request: commands_commands_pb.DestroyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
public destroy(request: commands_commands_pb.DestroyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.DestroyResp) => void): grpc.ClientUnaryCall;
|
||||
public rescan(request: commands_commands_pb.RescanReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
public rescan(request: commands_commands_pb.RescanReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
public rescan(request: commands_commands_pb.RescanReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.RescanResp) => void): grpc.ClientUnaryCall;
|
||||
public updateIndex(request: commands_commands_pb.UpdateIndexReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateIndexResp>;
|
||||
public updateIndex(request: commands_commands_pb.UpdateIndexReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateIndexResp>;
|
||||
public updateLibrariesIndex(request: commands_commands_pb.UpdateLibrariesIndexReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
public updateLibrariesIndex(request: commands_commands_pb.UpdateLibrariesIndexReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_commands_pb.UpdateLibrariesIndexResp>;
|
||||
public version(request: commands_commands_pb.VersionReq, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
public version(request: commands_commands_pb.VersionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
public version(request: commands_commands_pb.VersionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_commands_pb.VersionResp) => void): grpc.ClientUnaryCall;
|
||||
public boardDetails(request: commands_board_pb.BoardDetailsReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
public boardDetails(request: commands_board_pb.BoardDetailsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
public boardDetails(request: commands_board_pb.BoardDetailsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardDetailsResp) => void): grpc.ClientUnaryCall;
|
||||
public boardAttach(request: commands_board_pb.BoardAttachReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_board_pb.BoardAttachResp>;
|
||||
public boardAttach(request: commands_board_pb.BoardAttachReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_board_pb.BoardAttachResp>;
|
||||
public boardList(request: commands_board_pb.BoardListReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
public boardList(request: commands_board_pb.BoardListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
public boardList(request: commands_board_pb.BoardListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListResp) => void): grpc.ClientUnaryCall;
|
||||
public boardListAll(request: commands_board_pb.BoardListAllReq, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
public boardListAll(request: commands_board_pb.BoardListAllReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
public boardListAll(request: commands_board_pb.BoardListAllReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_board_pb.BoardListAllResp) => void): grpc.ClientUnaryCall;
|
||||
public compile(request: commands_compile_pb.CompileReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_compile_pb.CompileResp>;
|
||||
public compile(request: commands_compile_pb.CompileReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_compile_pb.CompileResp>;
|
||||
public platformInstall(request: commands_core_pb.PlatformInstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformInstallResp>;
|
||||
public platformInstall(request: commands_core_pb.PlatformInstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformInstallResp>;
|
||||
public platformDownload(request: commands_core_pb.PlatformDownloadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformDownloadResp>;
|
||||
public platformDownload(request: commands_core_pb.PlatformDownloadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformDownloadResp>;
|
||||
public platformUninstall(request: commands_core_pb.PlatformUninstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUninstallResp>;
|
||||
public platformUninstall(request: commands_core_pb.PlatformUninstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUninstallResp>;
|
||||
public platformUpgrade(request: commands_core_pb.PlatformUpgradeReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUpgradeResp>;
|
||||
public platformUpgrade(request: commands_core_pb.PlatformUpgradeReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_core_pb.PlatformUpgradeResp>;
|
||||
public upload(request: commands_upload_pb.UploadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_upload_pb.UploadResp>;
|
||||
public upload(request: commands_upload_pb.UploadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_upload_pb.UploadResp>;
|
||||
public platformSearch(request: commands_core_pb.PlatformSearchReq, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
public platformSearch(request: commands_core_pb.PlatformSearchReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
public platformSearch(request: commands_core_pb.PlatformSearchReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformSearchResp) => void): grpc.ClientUnaryCall;
|
||||
public platformList(request: commands_core_pb.PlatformListReq, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
public platformList(request: commands_core_pb.PlatformListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
public platformList(request: commands_core_pb.PlatformListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_core_pb.PlatformListResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryDownload(request: commands_lib_pb.LibraryDownloadReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryDownloadResp>;
|
||||
public libraryDownload(request: commands_lib_pb.LibraryDownloadReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryDownloadResp>;
|
||||
public libraryInstall(request: commands_lib_pb.LibraryInstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryInstallResp>;
|
||||
public libraryInstall(request: commands_lib_pb.LibraryInstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryInstallResp>;
|
||||
public libraryUninstall(request: commands_lib_pb.LibraryUninstallReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUninstallResp>;
|
||||
public libraryUninstall(request: commands_lib_pb.LibraryUninstallReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUninstallResp>;
|
||||
public libraryUpgradeAll(request: commands_lib_pb.LibraryUpgradeAllReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
public libraryUpgradeAll(request: commands_lib_pb.LibraryUpgradeAllReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<commands_lib_pb.LibraryUpgradeAllResp>;
|
||||
public libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryResolveDependencies(request: commands_lib_pb.LibraryResolveDependenciesReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryResolveDependenciesResp) => void): grpc.ClientUnaryCall;
|
||||
public librarySearch(request: commands_lib_pb.LibrarySearchReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
public librarySearch(request: commands_lib_pb.LibrarySearchReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
public librarySearch(request: commands_lib_pb.LibrarySearchReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibrarySearchResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryList(request: commands_lib_pb.LibraryListReq, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryList(request: commands_lib_pb.LibraryListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
public libraryList(request: commands_lib_pb.LibraryListReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: commands_lib_pb.LibraryListResp) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
@@ -1,870 +0,0 @@
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
// Original file comments:
|
||||
// This file is part of arduino-cli.
|
||||
//
|
||||
// Copyright 2020 ARDUINO SA (http://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
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var commands_commands_pb = require('../commands/commands_pb.js');
|
||||
var commands_common_pb = require('../commands/common_pb.js');
|
||||
var commands_board_pb = require('../commands/board_pb.js');
|
||||
var commands_compile_pb = require('../commands/compile_pb.js');
|
||||
var commands_core_pb = require('../commands/core_pb.js');
|
||||
var commands_upload_pb = require('../commands/upload_pb.js');
|
||||
var commands_lib_pb = require('../commands/lib_pb.js');
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardAttachReq(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardAttachReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardAttachReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardAttachReq(buffer_arg) {
|
||||
return commands_board_pb.BoardAttachReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardAttachResp(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardAttachResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardAttachResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardAttachResp(buffer_arg) {
|
||||
return commands_board_pb.BoardAttachResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardDetailsReq(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardDetailsReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardDetailsReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardDetailsReq(buffer_arg) {
|
||||
return commands_board_pb.BoardDetailsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardDetailsResp(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardDetailsResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardDetailsResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardDetailsResp(buffer_arg) {
|
||||
return commands_board_pb.BoardDetailsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardListAllReq(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardListAllReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardListAllReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardListAllReq(buffer_arg) {
|
||||
return commands_board_pb.BoardListAllReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardListAllResp(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardListAllResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardListAllResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardListAllResp(buffer_arg) {
|
||||
return commands_board_pb.BoardListAllResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardListReq(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardListReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardListReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardListReq(buffer_arg) {
|
||||
return commands_board_pb.BoardListReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_BoardListResp(arg) {
|
||||
if (!(arg instanceof commands_board_pb.BoardListResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.BoardListResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_BoardListResp(buffer_arg) {
|
||||
return commands_board_pb.BoardListResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_CompileReq(arg) {
|
||||
if (!(arg instanceof commands_compile_pb.CompileReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.CompileReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_CompileReq(buffer_arg) {
|
||||
return commands_compile_pb.CompileReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_CompileResp(arg) {
|
||||
if (!(arg instanceof commands_compile_pb.CompileResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.CompileResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_CompileResp(buffer_arg) {
|
||||
return commands_compile_pb.CompileResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_DestroyReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.DestroyReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.DestroyReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_DestroyReq(buffer_arg) {
|
||||
return commands_commands_pb.DestroyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_DestroyResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.DestroyResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.DestroyResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_DestroyResp(buffer_arg) {
|
||||
return commands_commands_pb.DestroyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_InitReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.InitReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.InitReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_InitReq(buffer_arg) {
|
||||
return commands_commands_pb.InitReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_InitResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.InitResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.InitResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_InitResp(buffer_arg) {
|
||||
return commands_commands_pb.InitResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryDownloadReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryDownloadReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryDownloadReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryDownloadReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryDownloadReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryDownloadResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryDownloadResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryDownloadResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryDownloadResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryDownloadResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryInstallReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryInstallReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryInstallReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryInstallReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryInstallReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryInstallResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryInstallResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryInstallResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryInstallResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryInstallResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryListReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryListReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryListReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryListReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryListReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryListResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryListResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryListResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryListResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryListResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryResolveDependenciesReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryResolveDependenciesReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryResolveDependenciesReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryResolveDependenciesReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryResolveDependenciesReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryResolveDependenciesResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryResolveDependenciesResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryResolveDependenciesResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryResolveDependenciesResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryResolveDependenciesResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibrarySearchReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibrarySearchReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibrarySearchReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibrarySearchReq(buffer_arg) {
|
||||
return commands_lib_pb.LibrarySearchReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibrarySearchResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibrarySearchResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibrarySearchResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibrarySearchResp(buffer_arg) {
|
||||
return commands_lib_pb.LibrarySearchResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryUninstallReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryUninstallReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryUninstallReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryUninstallReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryUninstallReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryUninstallResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryUninstallResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryUninstallResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryUninstallResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryUninstallResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryUpgradeAllReq(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryUpgradeAllReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryUpgradeAllReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryUpgradeAllReq(buffer_arg) {
|
||||
return commands_lib_pb.LibraryUpgradeAllReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_LibraryUpgradeAllResp(arg) {
|
||||
if (!(arg instanceof commands_lib_pb.LibraryUpgradeAllResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.LibraryUpgradeAllResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_LibraryUpgradeAllResp(buffer_arg) {
|
||||
return commands_lib_pb.LibraryUpgradeAllResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformDownloadReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformDownloadReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformDownloadReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformDownloadReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformDownloadReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformDownloadResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformDownloadResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformDownloadResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformDownloadResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformDownloadResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformInstallReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformInstallReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformInstallReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformInstallReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformInstallReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformInstallResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformInstallResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformInstallResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformInstallResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformInstallResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformListReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformListReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformListReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformListReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformListReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformListResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformListResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformListResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformListResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformListResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformSearchReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformSearchReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformSearchReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformSearchReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformSearchReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformSearchResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformSearchResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformSearchResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformSearchResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformSearchResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformUninstallReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformUninstallReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformUninstallReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformUninstallReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformUninstallReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformUninstallResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformUninstallResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformUninstallResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformUninstallResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformUninstallResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformUpgradeReq(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformUpgradeReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformUpgradeReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformUpgradeReq(buffer_arg) {
|
||||
return commands_core_pb.PlatformUpgradeReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_PlatformUpgradeResp(arg) {
|
||||
if (!(arg instanceof commands_core_pb.PlatformUpgradeResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.PlatformUpgradeResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_PlatformUpgradeResp(buffer_arg) {
|
||||
return commands_core_pb.PlatformUpgradeResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_RescanReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.RescanReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.RescanReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_RescanReq(buffer_arg) {
|
||||
return commands_commands_pb.RescanReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_RescanResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.RescanResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.RescanResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_RescanResp(buffer_arg) {
|
||||
return commands_commands_pb.RescanResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UpdateIndexReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.UpdateIndexReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UpdateIndexReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UpdateIndexReq(buffer_arg) {
|
||||
return commands_commands_pb.UpdateIndexReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UpdateIndexResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.UpdateIndexResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UpdateIndexResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UpdateIndexResp(buffer_arg) {
|
||||
return commands_commands_pb.UpdateIndexResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UpdateLibrariesIndexReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.UpdateLibrariesIndexReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UpdateLibrariesIndexReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UpdateLibrariesIndexReq(buffer_arg) {
|
||||
return commands_commands_pb.UpdateLibrariesIndexReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UpdateLibrariesIndexResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.UpdateLibrariesIndexResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UpdateLibrariesIndexResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UpdateLibrariesIndexResp(buffer_arg) {
|
||||
return commands_commands_pb.UpdateLibrariesIndexResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UploadReq(arg) {
|
||||
if (!(arg instanceof commands_upload_pb.UploadReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UploadReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UploadReq(buffer_arg) {
|
||||
return commands_upload_pb.UploadReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_UploadResp(arg) {
|
||||
if (!(arg instanceof commands_upload_pb.UploadResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.UploadResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_UploadResp(buffer_arg) {
|
||||
return commands_upload_pb.UploadResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_VersionReq(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.VersionReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.VersionReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_VersionReq(buffer_arg) {
|
||||
return commands_commands_pb.VersionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_commands_VersionResp(arg) {
|
||||
if (!(arg instanceof commands_commands_pb.VersionResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.commands.VersionResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_commands_VersionResp(buffer_arg) {
|
||||
return commands_commands_pb.VersionResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
// The main Arduino Platform Service
|
||||
var ArduinoCoreService = exports.ArduinoCoreService = {
|
||||
// Start a new instance of the Arduino Core Service
|
||||
init: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Init',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_commands_pb.InitReq,
|
||||
responseType: commands_commands_pb.InitResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_InitReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_InitReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_InitResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_InitResp,
|
||||
},
|
||||
// Destroy an instance of the Arduino Core Service
|
||||
destroy: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Destroy',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_commands_pb.DestroyReq,
|
||||
responseType: commands_commands_pb.DestroyResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_DestroyReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_DestroyReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_DestroyResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_DestroyResp,
|
||||
},
|
||||
// Rescan instance of the Arduino Core Service
|
||||
rescan: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Rescan',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_commands_pb.RescanReq,
|
||||
responseType: commands_commands_pb.RescanResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_RescanReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_RescanReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_RescanResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_RescanResp,
|
||||
},
|
||||
// Update package index of the Arduino Core Service
|
||||
updateIndex: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/UpdateIndex',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_commands_pb.UpdateIndexReq,
|
||||
responseType: commands_commands_pb.UpdateIndexResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_UpdateIndexReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_UpdateIndexReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_UpdateIndexResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_UpdateIndexResp,
|
||||
},
|
||||
// Update libraries index
|
||||
updateLibrariesIndex: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/UpdateLibrariesIndex',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_commands_pb.UpdateLibrariesIndexReq,
|
||||
responseType: commands_commands_pb.UpdateLibrariesIndexResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_UpdateLibrariesIndexReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_UpdateLibrariesIndexReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_UpdateLibrariesIndexResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_UpdateLibrariesIndexResp,
|
||||
},
|
||||
version: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Version',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_commands_pb.VersionReq,
|
||||
responseType: commands_commands_pb.VersionResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_VersionReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_VersionReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_VersionResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_VersionResp,
|
||||
},
|
||||
// BOARD COMMANDS
|
||||
// --------------
|
||||
//
|
||||
// Requests details about a board
|
||||
boardDetails: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/BoardDetails',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_board_pb.BoardDetailsReq,
|
||||
responseType: commands_board_pb.BoardDetailsResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_BoardDetailsReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_BoardDetailsReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_BoardDetailsResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_BoardDetailsResp,
|
||||
},
|
||||
boardAttach: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/BoardAttach',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_board_pb.BoardAttachReq,
|
||||
responseType: commands_board_pb.BoardAttachResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_BoardAttachReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_BoardAttachReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_BoardAttachResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_BoardAttachResp,
|
||||
},
|
||||
boardList: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/BoardList',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_board_pb.BoardListReq,
|
||||
responseType: commands_board_pb.BoardListResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_BoardListReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_BoardListReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_BoardListResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_BoardListResp,
|
||||
},
|
||||
boardListAll: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/BoardListAll',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_board_pb.BoardListAllReq,
|
||||
responseType: commands_board_pb.BoardListAllResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_BoardListAllReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_BoardListAllReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_BoardListAllResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_BoardListAllResp,
|
||||
},
|
||||
compile: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Compile',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_compile_pb.CompileReq,
|
||||
responseType: commands_compile_pb.CompileResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_CompileReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_CompileReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_CompileResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_CompileResp,
|
||||
},
|
||||
platformInstall: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformInstall',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_core_pb.PlatformInstallReq,
|
||||
responseType: commands_core_pb.PlatformInstallResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformInstallReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformInstallReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformInstallResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformInstallResp,
|
||||
},
|
||||
platformDownload: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformDownload',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_core_pb.PlatformDownloadReq,
|
||||
responseType: commands_core_pb.PlatformDownloadResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformDownloadReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformDownloadReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformDownloadResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformDownloadResp,
|
||||
},
|
||||
platformUninstall: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformUninstall',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_core_pb.PlatformUninstallReq,
|
||||
responseType: commands_core_pb.PlatformUninstallResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformUninstallReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformUninstallReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformUninstallResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformUninstallResp,
|
||||
},
|
||||
platformUpgrade: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformUpgrade',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_core_pb.PlatformUpgradeReq,
|
||||
responseType: commands_core_pb.PlatformUpgradeResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformUpgradeReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformUpgradeReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformUpgradeResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformUpgradeResp,
|
||||
},
|
||||
upload: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/Upload',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_upload_pb.UploadReq,
|
||||
responseType: commands_upload_pb.UploadResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_UploadReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_UploadReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_UploadResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_UploadResp,
|
||||
},
|
||||
platformSearch: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformSearch',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_core_pb.PlatformSearchReq,
|
||||
responseType: commands_core_pb.PlatformSearchResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformSearchReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformSearchReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformSearchResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformSearchResp,
|
||||
},
|
||||
platformList: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/PlatformList',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_core_pb.PlatformListReq,
|
||||
responseType: commands_core_pb.PlatformListResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_PlatformListReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_PlatformListReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_PlatformListResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_PlatformListResp,
|
||||
},
|
||||
libraryDownload: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryDownload',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_lib_pb.LibraryDownloadReq,
|
||||
responseType: commands_lib_pb.LibraryDownloadResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryDownloadReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryDownloadReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryDownloadResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryDownloadResp,
|
||||
},
|
||||
libraryInstall: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryInstall',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_lib_pb.LibraryInstallReq,
|
||||
responseType: commands_lib_pb.LibraryInstallResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryInstallReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryInstallReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryInstallResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryInstallResp,
|
||||
},
|
||||
libraryUninstall: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryUninstall',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_lib_pb.LibraryUninstallReq,
|
||||
responseType: commands_lib_pb.LibraryUninstallResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryUninstallReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryUninstallReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryUninstallResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryUninstallResp,
|
||||
},
|
||||
libraryUpgradeAll: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryUpgradeAll',
|
||||
requestStream: false,
|
||||
responseStream: true,
|
||||
requestType: commands_lib_pb.LibraryUpgradeAllReq,
|
||||
responseType: commands_lib_pb.LibraryUpgradeAllResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryUpgradeAllReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryUpgradeAllReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryUpgradeAllResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryUpgradeAllResp,
|
||||
},
|
||||
libraryResolveDependencies: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryResolveDependencies',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_lib_pb.LibraryResolveDependenciesReq,
|
||||
responseType: commands_lib_pb.LibraryResolveDependenciesResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryResolveDependenciesReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryResolveDependenciesReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryResolveDependenciesResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryResolveDependenciesResp,
|
||||
},
|
||||
librarySearch: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibrarySearch',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_lib_pb.LibrarySearchReq,
|
||||
responseType: commands_lib_pb.LibrarySearchResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibrarySearchReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibrarySearchReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibrarySearchResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibrarySearchResp,
|
||||
},
|
||||
libraryList: {
|
||||
path: '/cc.arduino.cli.commands.ArduinoCore/LibraryList',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: commands_lib_pb.LibraryListReq,
|
||||
responseType: commands_lib_pb.LibraryListResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_commands_LibraryListReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_commands_LibraryListReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_commands_LibraryListResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_commands_LibraryListResp,
|
||||
},
|
||||
};
|
||||
|
||||
exports.ArduinoCoreClient = grpc.makeGenericClientConstructor(ArduinoCoreService);
|
||||
// BOOTSTRAP COMMANDS
|
||||
// -------------------
|
||||
@@ -1,308 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/commands.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
import * as commands_board_pb from "../commands/board_pb";
|
||||
import * as commands_compile_pb from "../commands/compile_pb";
|
||||
import * as commands_core_pb from "../commands/core_pb";
|
||||
import * as commands_upload_pb from "../commands/upload_pb";
|
||||
import * as commands_lib_pb from "../commands/lib_pb";
|
||||
|
||||
export class InitReq extends jspb.Message {
|
||||
getLibraryManagerOnly(): boolean;
|
||||
setLibraryManagerOnly(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InitReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InitReq): InitReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InitReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InitReq;
|
||||
static deserializeBinaryFromReader(message: InitReq, reader: jspb.BinaryReader): InitReq;
|
||||
}
|
||||
|
||||
export namespace InitReq {
|
||||
export type AsObject = {
|
||||
libraryManagerOnly: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class InitResp extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
clearPlatformsIndexErrorsList(): void;
|
||||
getPlatformsIndexErrorsList(): Array<string>;
|
||||
setPlatformsIndexErrorsList(value: Array<string>): void;
|
||||
addPlatformsIndexErrors(value: string, index?: number): string;
|
||||
|
||||
getLibrariesIndexError(): string;
|
||||
setLibrariesIndexError(value: string): void;
|
||||
|
||||
|
||||
hasDownloadProgress(): boolean;
|
||||
clearDownloadProgress(): void;
|
||||
getDownloadProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setDownloadProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InitResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InitResp): InitResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InitResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InitResp;
|
||||
static deserializeBinaryFromReader(message: InitResp, reader: jspb.BinaryReader): InitResp;
|
||||
}
|
||||
|
||||
export namespace InitResp {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
platformsIndexErrorsList: Array<string>,
|
||||
librariesIndexError: string,
|
||||
downloadProgress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DestroyReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DestroyReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DestroyReq): DestroyReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DestroyReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DestroyReq;
|
||||
static deserializeBinaryFromReader(message: DestroyReq, reader: jspb.BinaryReader): DestroyReq;
|
||||
}
|
||||
|
||||
export namespace DestroyReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DestroyResp extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DestroyResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DestroyResp): DestroyResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DestroyResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DestroyResp;
|
||||
static deserializeBinaryFromReader(message: DestroyResp, reader: jspb.BinaryReader): DestroyResp;
|
||||
}
|
||||
|
||||
export namespace DestroyResp {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class RescanReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RescanReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RescanReq): RescanReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: RescanReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): RescanReq;
|
||||
static deserializeBinaryFromReader(message: RescanReq, reader: jspb.BinaryReader): RescanReq;
|
||||
}
|
||||
|
||||
export namespace RescanReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class RescanResp extends jspb.Message {
|
||||
clearPlatformsIndexErrorsList(): void;
|
||||
getPlatformsIndexErrorsList(): Array<string>;
|
||||
setPlatformsIndexErrorsList(value: Array<string>): void;
|
||||
addPlatformsIndexErrors(value: string, index?: number): string;
|
||||
|
||||
getLibrariesIndexError(): string;
|
||||
setLibrariesIndexError(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RescanResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RescanResp): RescanResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: RescanResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): RescanResp;
|
||||
static deserializeBinaryFromReader(message: RescanResp, reader: jspb.BinaryReader): RescanResp;
|
||||
}
|
||||
|
||||
export namespace RescanResp {
|
||||
export type AsObject = {
|
||||
platformsIndexErrorsList: Array<string>,
|
||||
librariesIndexError: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateIndexReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateIndexReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateIndexReq): UpdateIndexReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UpdateIndexReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateIndexReq;
|
||||
static deserializeBinaryFromReader(message: UpdateIndexReq, reader: jspb.BinaryReader): UpdateIndexReq;
|
||||
}
|
||||
|
||||
export namespace UpdateIndexReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateIndexResp extends jspb.Message {
|
||||
|
||||
hasDownloadProgress(): boolean;
|
||||
clearDownloadProgress(): void;
|
||||
getDownloadProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setDownloadProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateIndexResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateIndexResp): UpdateIndexResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UpdateIndexResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateIndexResp;
|
||||
static deserializeBinaryFromReader(message: UpdateIndexResp, reader: jspb.BinaryReader): UpdateIndexResp;
|
||||
}
|
||||
|
||||
export namespace UpdateIndexResp {
|
||||
export type AsObject = {
|
||||
downloadProgress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateLibrariesIndexReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateLibrariesIndexReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateLibrariesIndexReq): UpdateLibrariesIndexReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UpdateLibrariesIndexReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateLibrariesIndexReq;
|
||||
static deserializeBinaryFromReader(message: UpdateLibrariesIndexReq, reader: jspb.BinaryReader): UpdateLibrariesIndexReq;
|
||||
}
|
||||
|
||||
export namespace UpdateLibrariesIndexReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateLibrariesIndexResp extends jspb.Message {
|
||||
|
||||
hasDownloadProgress(): boolean;
|
||||
clearDownloadProgress(): void;
|
||||
getDownloadProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setDownloadProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateLibrariesIndexResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UpdateLibrariesIndexResp): UpdateLibrariesIndexResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UpdateLibrariesIndexResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateLibrariesIndexResp;
|
||||
static deserializeBinaryFromReader(message: UpdateLibrariesIndexResp, reader: jspb.BinaryReader): UpdateLibrariesIndexResp;
|
||||
}
|
||||
|
||||
export namespace UpdateLibrariesIndexResp {
|
||||
export type AsObject = {
|
||||
downloadProgress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class VersionReq extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): VersionReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: VersionReq): VersionReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: VersionReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): VersionReq;
|
||||
static deserializeBinaryFromReader(message: VersionReq, reader: jspb.BinaryReader): VersionReq;
|
||||
}
|
||||
|
||||
export namespace VersionReq {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class VersionResp extends jspb.Message {
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): VersionResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: VersionResp): VersionResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: VersionResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): VersionResp;
|
||||
static deserializeBinaryFromReader(message: VersionResp, reader: jspb.BinaryReader): VersionResp;
|
||||
}
|
||||
|
||||
export namespace VersionResp {
|
||||
export type AsObject = {
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,94 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/common.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
|
||||
export class Instance extends jspb.Message {
|
||||
getId(): number;
|
||||
setId(value: number): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Instance.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Instance): Instance.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Instance, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Instance;
|
||||
static deserializeBinaryFromReader(message: Instance, reader: jspb.BinaryReader): Instance;
|
||||
}
|
||||
|
||||
export namespace Instance {
|
||||
export type AsObject = {
|
||||
id: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class DownloadProgress extends jspb.Message {
|
||||
getUrl(): string;
|
||||
setUrl(value: string): void;
|
||||
|
||||
getFile(): string;
|
||||
setFile(value: string): void;
|
||||
|
||||
getTotalSize(): number;
|
||||
setTotalSize(value: number): void;
|
||||
|
||||
getDownloaded(): number;
|
||||
setDownloaded(value: number): void;
|
||||
|
||||
getCompleted(): boolean;
|
||||
setCompleted(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownloadProgress.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownloadProgress): DownloadProgress.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DownloadProgress, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DownloadProgress;
|
||||
static deserializeBinaryFromReader(message: DownloadProgress, reader: jspb.BinaryReader): DownloadProgress;
|
||||
}
|
||||
|
||||
export namespace DownloadProgress {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
file: string,
|
||||
totalSize: number,
|
||||
downloaded: number,
|
||||
completed: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class TaskProgress extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getMessage(): string;
|
||||
setMessage(value: string): void;
|
||||
|
||||
getCompleted(): boolean;
|
||||
setCompleted(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): TaskProgress.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: TaskProgress): TaskProgress.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: TaskProgress, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): TaskProgress;
|
||||
static deserializeBinaryFromReader(message: TaskProgress, reader: jspb.BinaryReader): TaskProgress;
|
||||
}
|
||||
|
||||
export namespace TaskProgress {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
message: string,
|
||||
completed: boolean,
|
||||
}
|
||||
}
|
||||
@@ -1,609 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.DownloadProgress', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.Instance', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.TaskProgress', null, global);
|
||||
|
||||
/**
|
||||
* 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.Instance = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.Instance, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.Instance.displayName = 'proto.cc.arduino.cli.commands.Instance';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.Instance.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.Instance} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
||||
};
|
||||
|
||||
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.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.Instance;
|
||||
return proto.cc.arduino.cli.commands.Instance.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.Instance} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {number} */ (reader.readInt32());
|
||||
msg.setId(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.Instance.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.Instance.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.Instance} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getId();
|
||||
if (f !== 0) {
|
||||
writer.writeInt32(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int32 id = 1;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.Instance.prototype.getId = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.cc.arduino.cli.commands.Instance.prototype.setId = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.DownloadProgress = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.DownloadProgress, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.displayName = 'proto.cc.arduino.cli.commands.DownloadProgress';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.DownloadProgress.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.DownloadProgress} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
file: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
totalSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||
downloaded: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
completed: jspb.Message.getFieldWithDefault(msg, 5, false)
|
||||
};
|
||||
|
||||
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.DownloadProgress}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.DownloadProgress;
|
||||
return proto.cc.arduino.cli.commands.DownloadProgress.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.DownloadProgress} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.DownloadProgress}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.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.setUrl(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFile(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setTotalSize(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setDownloaded(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setCompleted(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.DownloadProgress.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.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.DownloadProgress} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getUrl();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getFile();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTotalSize();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getDownloaded();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getCompleted();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string url = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.getUrl = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.setUrl = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string file = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.getFile = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.setFile = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 total_size = 3;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.getTotalSize = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.setTotalSize = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 downloaded = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.getDownloaded = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.setDownloaded = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool completed = 5;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.getCompleted = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.DownloadProgress.prototype.setCompleted = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.TaskProgress = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.TaskProgress, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.TaskProgress.displayName = 'proto.cc.arduino.cli.commands.TaskProgress';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.TaskProgress.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.TaskProgress} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
completed: jspb.Message.getFieldWithDefault(msg, 3, false)
|
||||
};
|
||||
|
||||
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.TaskProgress}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.TaskProgress;
|
||||
return proto.cc.arduino.cli.commands.TaskProgress.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.TaskProgress} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.TaskProgress}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.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.setMessage(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setCompleted(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.TaskProgress.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.TaskProgress.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.TaskProgress} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getMessage();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getCompleted();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string name = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.getName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.setName = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string message = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.getMessage = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.setMessage = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool completed = 3;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.getCompleted = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.TaskProgress.prototype.setCompleted = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.commands);
|
||||
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,125 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/compile.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
|
||||
export class CompileReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
getSketchpath(): string;
|
||||
setSketchpath(value: string): void;
|
||||
|
||||
getShowproperties(): boolean;
|
||||
setShowproperties(value: boolean): void;
|
||||
|
||||
getPreprocess(): boolean;
|
||||
setPreprocess(value: boolean): void;
|
||||
|
||||
getBuildcachepath(): string;
|
||||
setBuildcachepath(value: string): void;
|
||||
|
||||
getBuildpath(): string;
|
||||
setBuildpath(value: string): void;
|
||||
|
||||
clearBuildpropertiesList(): void;
|
||||
getBuildpropertiesList(): Array<string>;
|
||||
setBuildpropertiesList(value: Array<string>): void;
|
||||
addBuildproperties(value: string, index?: number): string;
|
||||
|
||||
getWarnings(): string;
|
||||
setWarnings(value: string): void;
|
||||
|
||||
getVerbose(): boolean;
|
||||
setVerbose(value: boolean): void;
|
||||
|
||||
getQuiet(): boolean;
|
||||
setQuiet(value: boolean): void;
|
||||
|
||||
getVidpid(): string;
|
||||
setVidpid(value: string): void;
|
||||
|
||||
getExportfile(): string;
|
||||
setExportfile(value: string): void;
|
||||
|
||||
getJobs(): number;
|
||||
setJobs(value: number): void;
|
||||
|
||||
clearLibrariesList(): void;
|
||||
getLibrariesList(): Array<string>;
|
||||
setLibrariesList(value: Array<string>): void;
|
||||
addLibraries(value: string, index?: number): string;
|
||||
|
||||
getOptimizefordebug(): boolean;
|
||||
setOptimizefordebug(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CompileReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CompileReq): CompileReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CompileReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CompileReq;
|
||||
static deserializeBinaryFromReader(message: CompileReq, reader: jspb.BinaryReader): CompileReq;
|
||||
}
|
||||
|
||||
export namespace CompileReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
fqbn: string,
|
||||
sketchpath: string,
|
||||
showproperties: boolean,
|
||||
preprocess: boolean,
|
||||
buildcachepath: string,
|
||||
buildpath: string,
|
||||
buildpropertiesList: Array<string>,
|
||||
warnings: string,
|
||||
verbose: boolean,
|
||||
quiet: boolean,
|
||||
vidpid: string,
|
||||
exportfile: string,
|
||||
jobs: number,
|
||||
librariesList: Array<string>,
|
||||
optimizefordebug: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class CompileResp extends jspb.Message {
|
||||
getOutStream(): Uint8Array | string;
|
||||
getOutStream_asU8(): Uint8Array;
|
||||
getOutStream_asB64(): string;
|
||||
setOutStream(value: Uint8Array | string): void;
|
||||
|
||||
getErrStream(): Uint8Array | string;
|
||||
getErrStream_asU8(): Uint8Array;
|
||||
getErrStream_asB64(): string;
|
||||
setErrStream(value: Uint8Array | string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CompileResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CompileResp): CompileResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: CompileResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CompileResp;
|
||||
static deserializeBinaryFromReader(message: CompileResp, reader: jspb.BinaryReader): CompileResp;
|
||||
}
|
||||
|
||||
export namespace CompileResp {
|
||||
export type AsObject = {
|
||||
outStream: Uint8Array | string,
|
||||
errStream: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
@@ -1,844 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var commands_common_pb = require('../commands/common_pb.js');
|
||||
goog.object.extend(proto, commands_common_pb);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.CompileReq', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.CompileResp', null, global);
|
||||
|
||||
/**
|
||||
* 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.CompileReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.cc.arduino.cli.commands.CompileReq.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.CompileReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.CompileReq.displayName = 'proto.cc.arduino.cli.commands.CompileReq';
|
||||
}
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.repeatedFields_ = [8,15];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.CompileReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.CompileReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
instance: (f = msg.getInstance()) && commands_common_pb.Instance.toObject(includeInstance, f),
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
sketchpath: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
showproperties: jspb.Message.getFieldWithDefault(msg, 4, false),
|
||||
preprocess: jspb.Message.getFieldWithDefault(msg, 5, false),
|
||||
buildcachepath: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
buildpath: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
buildpropertiesList: jspb.Message.getRepeatedField(msg, 8),
|
||||
warnings: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||
verbose: jspb.Message.getFieldWithDefault(msg, 10, false),
|
||||
quiet: jspb.Message.getFieldWithDefault(msg, 11, false),
|
||||
vidpid: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
||||
exportfile: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
||||
jobs: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
||||
librariesList: jspb.Message.getRepeatedField(msg, 15),
|
||||
optimizefordebug: jspb.Message.getFieldWithDefault(msg, 16, false)
|
||||
};
|
||||
|
||||
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.CompileReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.CompileReq;
|
||||
return proto.cc.arduino.cli.commands.CompileReq.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.CompileReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.CompileReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new commands_common_pb.Instance;
|
||||
reader.readMessage(value,commands_common_pb.Instance.deserializeBinaryFromReader);
|
||||
msg.setInstance(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFqbn(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setSketchpath(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setShowproperties(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPreprocess(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setBuildcachepath(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setBuildpath(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addBuildproperties(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setWarnings(value);
|
||||
break;
|
||||
case 10:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setVerbose(value);
|
||||
break;
|
||||
case 11:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setQuiet(value);
|
||||
break;
|
||||
case 12:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setVidpid(value);
|
||||
break;
|
||||
case 13:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setExportfile(value);
|
||||
break;
|
||||
case 14:
|
||||
var value = /** @type {number} */ (reader.readInt32());
|
||||
msg.setJobs(value);
|
||||
break;
|
||||
case 15:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addLibraries(value);
|
||||
break;
|
||||
case 16:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setOptimizefordebug(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.CompileReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.CompileReq.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.CompileReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getInstance();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
commands_common_pb.Instance.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getFqbn();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getSketchpath();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShowproperties();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPreprocess();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBuildcachepath();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBuildpath();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBuildpropertiesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getWarnings();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
9,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getVerbose();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
10,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getQuiet();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
11,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getVidpid();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
12,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getExportfile();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
13,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getJobs();
|
||||
if (f !== 0) {
|
||||
writer.writeInt32(
|
||||
14,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getLibrariesList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
15,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getOptimizefordebug();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
16,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Instance instance = 1;
|
||||
* @return {?proto.cc.arduino.cli.commands.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getInstance = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.commands.Instance} */ (
|
||||
jspb.Message.getWrapperField(this, commands_common_pb.Instance, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.cc.arduino.cli.commands.Instance|undefined} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setInstance = function(value) {
|
||||
jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.clearInstance = function() {
|
||||
this.setInstance(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.hasInstance = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string fqbn = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getFqbn = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setFqbn = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string sketchPath = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getSketchpath = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setSketchpath = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool showProperties = 4;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getShowproperties = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setShowproperties = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool preprocess = 5;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getPreprocess = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setPreprocess = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string buildCachePath = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getBuildcachepath = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setBuildcachepath = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string buildPath = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getBuildpath = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setBuildpath = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string buildProperties = 8;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getBuildpropertiesList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!Array<string>} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setBuildpropertiesList = function(value) {
|
||||
jspb.Message.setField(this, 8, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.addBuildproperties = function(value, opt_index) {
|
||||
jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.clearBuildpropertiesList = function() {
|
||||
this.setBuildpropertiesList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string warnings = 9;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getWarnings = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setWarnings = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool verbose = 10;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getVerbose = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setVerbose = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool quiet = 11;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getQuiet = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setQuiet = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 11, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string vidPid = 12;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getVidpid = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setVidpid = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 12, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string exportFile = 13;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getExportfile = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setExportfile = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 13, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int32 jobs = 14;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getJobs = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setJobs = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 14, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string libraries = 15;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getLibrariesList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!Array<string>} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setLibrariesList = function(value) {
|
||||
jspb.Message.setField(this, 15, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.addLibraries = function(value, opt_index) {
|
||||
jspb.Message.addToRepeatedField(this, 15, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.clearLibrariesList = function() {
|
||||
this.setLibrariesList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool optimizeForDebug = 16;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.getOptimizefordebug = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 16, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.CompileReq.prototype.setOptimizefordebug = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 16, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.CompileResp = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.CompileResp, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.CompileResp.displayName = 'proto.cc.arduino.cli.commands.CompileResp';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.CompileResp.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.CompileResp} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
outStream: msg.getOutStream_asB64(),
|
||||
errStream: msg.getErrStream_asB64()
|
||||
};
|
||||
|
||||
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.CompileResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.CompileResp;
|
||||
return proto.cc.arduino.cli.commands.CompileResp.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.CompileResp} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.CompileResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setOutStream(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setErrStream(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.CompileResp.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.CompileResp.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.CompileResp} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getOutStream_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getErrStream_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getOutStream = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* This is a type-conversion wrapper around `getOutStream()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getOutStream_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getOutStream()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getOutStream()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getOutStream_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getOutStream()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.setOutStream = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getErrStream = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* This is a type-conversion wrapper around `getErrStream()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getErrStream_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getErrStream()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getErrStream()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.getErrStream_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getErrStream()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.commands.CompileResp.prototype.setErrStream = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.commands);
|
||||
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,436 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/core.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
|
||||
export class PlatformInstallReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getPlatformPackage(): string;
|
||||
setPlatformPackage(value: string): void;
|
||||
|
||||
getArchitecture(): string;
|
||||
setArchitecture(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformInstallReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformInstallReq): PlatformInstallReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformInstallReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformInstallReq;
|
||||
static deserializeBinaryFromReader(message: PlatformInstallReq, reader: jspb.BinaryReader): PlatformInstallReq;
|
||||
}
|
||||
|
||||
export namespace PlatformInstallReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
platformPackage: string,
|
||||
architecture: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformInstallResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformInstallResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformInstallResp): PlatformInstallResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformInstallResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformInstallResp;
|
||||
static deserializeBinaryFromReader(message: PlatformInstallResp, reader: jspb.BinaryReader): PlatformInstallResp;
|
||||
}
|
||||
|
||||
export namespace PlatformInstallResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformDownloadReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getPlatformPackage(): string;
|
||||
setPlatformPackage(value: string): void;
|
||||
|
||||
getArchitecture(): string;
|
||||
setArchitecture(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformDownloadReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformDownloadReq): PlatformDownloadReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformDownloadReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformDownloadReq;
|
||||
static deserializeBinaryFromReader(message: PlatformDownloadReq, reader: jspb.BinaryReader): PlatformDownloadReq;
|
||||
}
|
||||
|
||||
export namespace PlatformDownloadReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
platformPackage: string,
|
||||
architecture: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformDownloadResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformDownloadResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformDownloadResp): PlatformDownloadResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformDownloadResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformDownloadResp;
|
||||
static deserializeBinaryFromReader(message: PlatformDownloadResp, reader: jspb.BinaryReader): PlatformDownloadResp;
|
||||
}
|
||||
|
||||
export namespace PlatformDownloadResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformUninstallReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getPlatformPackage(): string;
|
||||
setPlatformPackage(value: string): void;
|
||||
|
||||
getArchitecture(): string;
|
||||
setArchitecture(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUninstallReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformUninstallReq): PlatformUninstallReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformUninstallReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformUninstallReq;
|
||||
static deserializeBinaryFromReader(message: PlatformUninstallReq, reader: jspb.BinaryReader): PlatformUninstallReq;
|
||||
}
|
||||
|
||||
export namespace PlatformUninstallReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
platformPackage: string,
|
||||
architecture: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformUninstallResp extends jspb.Message {
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUninstallResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformUninstallResp): PlatformUninstallResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformUninstallResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformUninstallResp;
|
||||
static deserializeBinaryFromReader(message: PlatformUninstallResp, reader: jspb.BinaryReader): PlatformUninstallResp;
|
||||
}
|
||||
|
||||
export namespace PlatformUninstallResp {
|
||||
export type AsObject = {
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformUpgradeReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getPlatformPackage(): string;
|
||||
setPlatformPackage(value: string): void;
|
||||
|
||||
getArchitecture(): string;
|
||||
setArchitecture(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUpgradeReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformUpgradeReq): PlatformUpgradeReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformUpgradeReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformUpgradeReq;
|
||||
static deserializeBinaryFromReader(message: PlatformUpgradeReq, reader: jspb.BinaryReader): PlatformUpgradeReq;
|
||||
}
|
||||
|
||||
export namespace PlatformUpgradeReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
platformPackage: string,
|
||||
architecture: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformUpgradeResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformUpgradeResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformUpgradeResp): PlatformUpgradeResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformUpgradeResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformUpgradeResp;
|
||||
static deserializeBinaryFromReader(message: PlatformUpgradeResp, reader: jspb.BinaryReader): PlatformUpgradeResp;
|
||||
}
|
||||
|
||||
export namespace PlatformUpgradeResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformSearchReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getSearchArgs(): string;
|
||||
setSearchArgs(value: string): void;
|
||||
|
||||
getAllVersions(): boolean;
|
||||
setAllVersions(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformSearchReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformSearchReq): PlatformSearchReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformSearchReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformSearchReq;
|
||||
static deserializeBinaryFromReader(message: PlatformSearchReq, reader: jspb.BinaryReader): PlatformSearchReq;
|
||||
}
|
||||
|
||||
export namespace PlatformSearchReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
searchArgs: string,
|
||||
allVersions: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformSearchResp extends jspb.Message {
|
||||
clearSearchOutputList(): void;
|
||||
getSearchOutputList(): Array<Platform>;
|
||||
setSearchOutputList(value: Array<Platform>): void;
|
||||
addSearchOutput(value?: Platform, index?: number): Platform;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformSearchResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformSearchResp): PlatformSearchResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformSearchResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformSearchResp;
|
||||
static deserializeBinaryFromReader(message: PlatformSearchResp, reader: jspb.BinaryReader): PlatformSearchResp;
|
||||
}
|
||||
|
||||
export namespace PlatformSearchResp {
|
||||
export type AsObject = {
|
||||
searchOutputList: Array<Platform.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformListReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getUpdatableOnly(): boolean;
|
||||
setUpdatableOnly(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformListReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformListReq): PlatformListReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformListReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformListReq;
|
||||
static deserializeBinaryFromReader(message: PlatformListReq, reader: jspb.BinaryReader): PlatformListReq;
|
||||
}
|
||||
|
||||
export namespace PlatformListReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
updatableOnly: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class PlatformListResp extends jspb.Message {
|
||||
clearInstalledPlatformList(): void;
|
||||
getInstalledPlatformList(): Array<Platform>;
|
||||
setInstalledPlatformList(value: Array<Platform>): void;
|
||||
addInstalledPlatform(value?: Platform, index?: number): Platform;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PlatformListResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PlatformListResp): PlatformListResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: PlatformListResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PlatformListResp;
|
||||
static deserializeBinaryFromReader(message: PlatformListResp, reader: jspb.BinaryReader): PlatformListResp;
|
||||
}
|
||||
|
||||
export namespace PlatformListResp {
|
||||
export type AsObject = {
|
||||
installedPlatformList: Array<Platform.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Platform extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
getInstalled(): string;
|
||||
setInstalled(value: string): void;
|
||||
|
||||
getLatest(): string;
|
||||
setLatest(value: string): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getMaintainer(): string;
|
||||
setMaintainer(value: string): void;
|
||||
|
||||
getWebsite(): string;
|
||||
setWebsite(value: string): void;
|
||||
|
||||
getEmail(): string;
|
||||
setEmail(value: string): void;
|
||||
|
||||
clearBoardsList(): void;
|
||||
getBoardsList(): Array<Board>;
|
||||
setBoardsList(value: Array<Board>): void;
|
||||
addBoards(value?: Board, index?: number): Board;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Platform.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Platform): Platform.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Platform, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Platform;
|
||||
static deserializeBinaryFromReader(message: Platform, reader: jspb.BinaryReader): Platform;
|
||||
}
|
||||
|
||||
export namespace Platform {
|
||||
export type AsObject = {
|
||||
id: string,
|
||||
installed: string,
|
||||
latest: string,
|
||||
name: string,
|
||||
maintainer: string,
|
||||
website: string,
|
||||
email: string,
|
||||
boardsList: Array<Board.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Board extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Board.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Board): Board.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Board, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Board;
|
||||
static deserializeBinaryFromReader(message: Board, reader: jspb.BinaryReader): Board;
|
||||
}
|
||||
|
||||
export namespace Board {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
fqbn: string,
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,721 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/lib.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
|
||||
export class LibraryDownloadReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryDownloadReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryDownloadReq): LibraryDownloadReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryDownloadReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryDownloadReq;
|
||||
static deserializeBinaryFromReader(message: LibraryDownloadReq, reader: jspb.BinaryReader): LibraryDownloadReq;
|
||||
}
|
||||
|
||||
export namespace LibraryDownloadReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
name: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryDownloadResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryDownloadResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryDownloadResp): LibraryDownloadResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryDownloadResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryDownloadResp;
|
||||
static deserializeBinaryFromReader(message: LibraryDownloadResp, reader: jspb.BinaryReader): LibraryDownloadResp;
|
||||
}
|
||||
|
||||
export namespace LibraryDownloadResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryInstallReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryInstallReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryInstallReq): LibraryInstallReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryInstallReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryInstallReq;
|
||||
static deserializeBinaryFromReader(message: LibraryInstallReq, reader: jspb.BinaryReader): LibraryInstallReq;
|
||||
}
|
||||
|
||||
export namespace LibraryInstallReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
name: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryInstallResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryInstallResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryInstallResp): LibraryInstallResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryInstallResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryInstallResp;
|
||||
static deserializeBinaryFromReader(message: LibraryInstallResp, reader: jspb.BinaryReader): LibraryInstallResp;
|
||||
}
|
||||
|
||||
export namespace LibraryInstallResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryUninstallReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUninstallReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUninstallReq): LibraryUninstallReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryUninstallReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryUninstallReq;
|
||||
static deserializeBinaryFromReader(message: LibraryUninstallReq, reader: jspb.BinaryReader): LibraryUninstallReq;
|
||||
}
|
||||
|
||||
export namespace LibraryUninstallReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
name: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryUninstallResp extends jspb.Message {
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUninstallResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUninstallResp): LibraryUninstallResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryUninstallResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryUninstallResp;
|
||||
static deserializeBinaryFromReader(message: LibraryUninstallResp, reader: jspb.BinaryReader): LibraryUninstallResp;
|
||||
}
|
||||
|
||||
export namespace LibraryUninstallResp {
|
||||
export type AsObject = {
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryUpgradeAllReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUpgradeAllReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUpgradeAllReq): LibraryUpgradeAllReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryUpgradeAllReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryUpgradeAllReq;
|
||||
static deserializeBinaryFromReader(message: LibraryUpgradeAllReq, reader: jspb.BinaryReader): LibraryUpgradeAllReq;
|
||||
}
|
||||
|
||||
export namespace LibraryUpgradeAllReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryUpgradeAllResp extends jspb.Message {
|
||||
|
||||
hasProgress(): boolean;
|
||||
clearProgress(): void;
|
||||
getProgress(): commands_common_pb.DownloadProgress | undefined;
|
||||
setProgress(value?: commands_common_pb.DownloadProgress): void;
|
||||
|
||||
|
||||
hasTaskProgress(): boolean;
|
||||
clearTaskProgress(): void;
|
||||
getTaskProgress(): commands_common_pb.TaskProgress | undefined;
|
||||
setTaskProgress(value?: commands_common_pb.TaskProgress): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryUpgradeAllResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryUpgradeAllResp): LibraryUpgradeAllResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryUpgradeAllResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryUpgradeAllResp;
|
||||
static deserializeBinaryFromReader(message: LibraryUpgradeAllResp, reader: jspb.BinaryReader): LibraryUpgradeAllResp;
|
||||
}
|
||||
|
||||
export namespace LibraryUpgradeAllResp {
|
||||
export type AsObject = {
|
||||
progress?: commands_common_pb.DownloadProgress.AsObject,
|
||||
taskProgress?: commands_common_pb.TaskProgress.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryResolveDependenciesReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryResolveDependenciesReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryResolveDependenciesReq): LibraryResolveDependenciesReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryResolveDependenciesReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryResolveDependenciesReq;
|
||||
static deserializeBinaryFromReader(message: LibraryResolveDependenciesReq, reader: jspb.BinaryReader): LibraryResolveDependenciesReq;
|
||||
}
|
||||
|
||||
export namespace LibraryResolveDependenciesReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
name: string,
|
||||
version: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryResolveDependenciesResp extends jspb.Message {
|
||||
clearDependenciesList(): void;
|
||||
getDependenciesList(): Array<LibraryDependencyStatus>;
|
||||
setDependenciesList(value: Array<LibraryDependencyStatus>): void;
|
||||
addDependencies(value?: LibraryDependencyStatus, index?: number): LibraryDependencyStatus;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryResolveDependenciesResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryResolveDependenciesResp): LibraryResolveDependenciesResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryResolveDependenciesResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryResolveDependenciesResp;
|
||||
static deserializeBinaryFromReader(message: LibraryResolveDependenciesResp, reader: jspb.BinaryReader): LibraryResolveDependenciesResp;
|
||||
}
|
||||
|
||||
export namespace LibraryResolveDependenciesResp {
|
||||
export type AsObject = {
|
||||
dependenciesList: Array<LibraryDependencyStatus.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryDependencyStatus extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getVersionrequired(): string;
|
||||
setVersionrequired(value: string): void;
|
||||
|
||||
getVersioninstalled(): string;
|
||||
setVersioninstalled(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryDependencyStatus.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryDependencyStatus): LibraryDependencyStatus.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryDependencyStatus, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryDependencyStatus;
|
||||
static deserializeBinaryFromReader(message: LibraryDependencyStatus, reader: jspb.BinaryReader): LibraryDependencyStatus;
|
||||
}
|
||||
|
||||
export namespace LibraryDependencyStatus {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
versionrequired: string,
|
||||
versioninstalled: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibrarySearchReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getQuery(): string;
|
||||
setQuery(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibrarySearchReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibrarySearchReq): LibrarySearchReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibrarySearchReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibrarySearchReq;
|
||||
static deserializeBinaryFromReader(message: LibrarySearchReq, reader: jspb.BinaryReader): LibrarySearchReq;
|
||||
}
|
||||
|
||||
export namespace LibrarySearchReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
query: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibrarySearchResp extends jspb.Message {
|
||||
clearLibrariesList(): void;
|
||||
getLibrariesList(): Array<SearchedLibrary>;
|
||||
setLibrariesList(value: Array<SearchedLibrary>): void;
|
||||
addLibraries(value?: SearchedLibrary, index?: number): SearchedLibrary;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibrarySearchResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibrarySearchResp): LibrarySearchResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibrarySearchResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibrarySearchResp;
|
||||
static deserializeBinaryFromReader(message: LibrarySearchResp, reader: jspb.BinaryReader): LibrarySearchResp;
|
||||
}
|
||||
|
||||
export namespace LibrarySearchResp {
|
||||
export type AsObject = {
|
||||
librariesList: Array<SearchedLibrary.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class SearchedLibrary extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
|
||||
getReleasesMap(): jspb.Map<string, LibraryRelease>;
|
||||
clearReleasesMap(): void;
|
||||
|
||||
|
||||
hasLatest(): boolean;
|
||||
clearLatest(): void;
|
||||
getLatest(): LibraryRelease | undefined;
|
||||
setLatest(value?: LibraryRelease): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SearchedLibrary.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SearchedLibrary): SearchedLibrary.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SearchedLibrary, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SearchedLibrary;
|
||||
static deserializeBinaryFromReader(message: SearchedLibrary, reader: jspb.BinaryReader): SearchedLibrary;
|
||||
}
|
||||
|
||||
export namespace SearchedLibrary {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
|
||||
releasesMap: Array<[string, LibraryRelease.AsObject]>,
|
||||
latest?: LibraryRelease.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryRelease extends jspb.Message {
|
||||
getAuthor(): string;
|
||||
setAuthor(value: string): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
getMaintainer(): string;
|
||||
setMaintainer(value: string): void;
|
||||
|
||||
getSentence(): string;
|
||||
setSentence(value: string): void;
|
||||
|
||||
getParagraph(): string;
|
||||
setParagraph(value: string): void;
|
||||
|
||||
getWebsite(): string;
|
||||
setWebsite(value: string): void;
|
||||
|
||||
getCategory(): string;
|
||||
setCategory(value: string): void;
|
||||
|
||||
clearArchitecturesList(): void;
|
||||
getArchitecturesList(): Array<string>;
|
||||
setArchitecturesList(value: Array<string>): void;
|
||||
addArchitectures(value: string, index?: number): string;
|
||||
|
||||
clearTypesList(): void;
|
||||
getTypesList(): Array<string>;
|
||||
setTypesList(value: Array<string>): void;
|
||||
addTypes(value: string, index?: number): string;
|
||||
|
||||
|
||||
hasResources(): boolean;
|
||||
clearResources(): void;
|
||||
getResources(): DownloadResource | undefined;
|
||||
setResources(value?: DownloadResource): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryRelease.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryRelease): LibraryRelease.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryRelease, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryRelease;
|
||||
static deserializeBinaryFromReader(message: LibraryRelease, reader: jspb.BinaryReader): LibraryRelease;
|
||||
}
|
||||
|
||||
export namespace LibraryRelease {
|
||||
export type AsObject = {
|
||||
author: string,
|
||||
version: string,
|
||||
maintainer: string,
|
||||
sentence: string,
|
||||
paragraph: string,
|
||||
website: string,
|
||||
category: string,
|
||||
architecturesList: Array<string>,
|
||||
typesList: Array<string>,
|
||||
resources?: DownloadResource.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DownloadResource extends jspb.Message {
|
||||
getUrl(): string;
|
||||
setUrl(value: string): void;
|
||||
|
||||
getArchivefilename(): string;
|
||||
setArchivefilename(value: string): void;
|
||||
|
||||
getChecksum(): string;
|
||||
setChecksum(value: string): void;
|
||||
|
||||
getSize(): number;
|
||||
setSize(value: number): void;
|
||||
|
||||
getCachepath(): string;
|
||||
setCachepath(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownloadResource.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownloadResource): DownloadResource.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DownloadResource, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DownloadResource;
|
||||
static deserializeBinaryFromReader(message: DownloadResource, reader: jspb.BinaryReader): DownloadResource;
|
||||
}
|
||||
|
||||
export namespace DownloadResource {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
archivefilename: string,
|
||||
checksum: string,
|
||||
size: number,
|
||||
cachepath: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryListReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getAll(): boolean;
|
||||
setAll(value: boolean): void;
|
||||
|
||||
getUpdatable(): boolean;
|
||||
setUpdatable(value: boolean): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryListReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryListReq): LibraryListReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryListReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryListReq;
|
||||
static deserializeBinaryFromReader(message: LibraryListReq, reader: jspb.BinaryReader): LibraryListReq;
|
||||
}
|
||||
|
||||
export namespace LibraryListReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
all: boolean,
|
||||
updatable: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class LibraryListResp extends jspb.Message {
|
||||
clearInstalledLibraryList(): void;
|
||||
getInstalledLibraryList(): Array<InstalledLibrary>;
|
||||
setInstalledLibraryList(value: Array<InstalledLibrary>): void;
|
||||
addInstalledLibrary(value?: InstalledLibrary, index?: number): InstalledLibrary;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LibraryListResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LibraryListResp): LibraryListResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LibraryListResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LibraryListResp;
|
||||
static deserializeBinaryFromReader(message: LibraryListResp, reader: jspb.BinaryReader): LibraryListResp;
|
||||
}
|
||||
|
||||
export namespace LibraryListResp {
|
||||
export type AsObject = {
|
||||
installedLibraryList: Array<InstalledLibrary.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class InstalledLibrary extends jspb.Message {
|
||||
|
||||
hasLibrary(): boolean;
|
||||
clearLibrary(): void;
|
||||
getLibrary(): Library | undefined;
|
||||
setLibrary(value?: Library): void;
|
||||
|
||||
|
||||
hasRelease(): boolean;
|
||||
clearRelease(): void;
|
||||
getRelease(): LibraryRelease | undefined;
|
||||
setRelease(value?: LibraryRelease): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InstalledLibrary.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InstalledLibrary): InstalledLibrary.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InstalledLibrary, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InstalledLibrary;
|
||||
static deserializeBinaryFromReader(message: InstalledLibrary, reader: jspb.BinaryReader): InstalledLibrary;
|
||||
}
|
||||
|
||||
export namespace InstalledLibrary {
|
||||
export type AsObject = {
|
||||
library?: Library.AsObject,
|
||||
release?: LibraryRelease.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class Library extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getAuthor(): string;
|
||||
setAuthor(value: string): void;
|
||||
|
||||
getMaintainer(): string;
|
||||
setMaintainer(value: string): void;
|
||||
|
||||
getSentence(): string;
|
||||
setSentence(value: string): void;
|
||||
|
||||
getParagraph(): string;
|
||||
setParagraph(value: string): void;
|
||||
|
||||
getWebsite(): string;
|
||||
setWebsite(value: string): void;
|
||||
|
||||
getCategory(): string;
|
||||
setCategory(value: string): void;
|
||||
|
||||
clearArchitecturesList(): void;
|
||||
getArchitecturesList(): Array<string>;
|
||||
setArchitecturesList(value: Array<string>): void;
|
||||
addArchitectures(value: string, index?: number): string;
|
||||
|
||||
clearTypesList(): void;
|
||||
getTypesList(): Array<string>;
|
||||
setTypesList(value: Array<string>): void;
|
||||
addTypes(value: string, index?: number): string;
|
||||
|
||||
getInstallDir(): string;
|
||||
setInstallDir(value: string): void;
|
||||
|
||||
getSourceDir(): string;
|
||||
setSourceDir(value: string): void;
|
||||
|
||||
getUtilityDir(): string;
|
||||
setUtilityDir(value: string): void;
|
||||
|
||||
getLocation(): string;
|
||||
setLocation(value: string): void;
|
||||
|
||||
getContainerPlatform(): string;
|
||||
setContainerPlatform(value: string): void;
|
||||
|
||||
getLayout(): string;
|
||||
setLayout(value: string): void;
|
||||
|
||||
getRealName(): string;
|
||||
setRealName(value: string): void;
|
||||
|
||||
getDotALinkage(): boolean;
|
||||
setDotALinkage(value: boolean): void;
|
||||
|
||||
getPrecompiled(): boolean;
|
||||
setPrecompiled(value: boolean): void;
|
||||
|
||||
getLdFlags(): string;
|
||||
setLdFlags(value: string): void;
|
||||
|
||||
getIsLegacy(): boolean;
|
||||
setIsLegacy(value: boolean): void;
|
||||
|
||||
getVersion(): string;
|
||||
setVersion(value: string): void;
|
||||
|
||||
getLicense(): string;
|
||||
setLicense(value: string): void;
|
||||
|
||||
|
||||
getPropertiesMap(): jspb.Map<string, string>;
|
||||
clearPropertiesMap(): void;
|
||||
|
||||
|
||||
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 = {
|
||||
name: string,
|
||||
author: string,
|
||||
maintainer: string,
|
||||
sentence: string,
|
||||
paragraph: string,
|
||||
website: string,
|
||||
category: string,
|
||||
architecturesList: Array<string>,
|
||||
typesList: Array<string>,
|
||||
installDir: string,
|
||||
sourceDir: string,
|
||||
utilityDir: string,
|
||||
location: string,
|
||||
containerPlatform: string,
|
||||
layout: string,
|
||||
realName: string,
|
||||
dotALinkage: boolean,
|
||||
precompiled: boolean,
|
||||
ldFlags: string,
|
||||
isLegacy: boolean,
|
||||
version: string,
|
||||
license: string,
|
||||
|
||||
propertiesMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
export enum LibraryLayout {
|
||||
FLAT_LAYOUT = 0,
|
||||
RECURSIVE_LAYOUT = 1,
|
||||
}
|
||||
|
||||
export enum LibraryLocation {
|
||||
IDE_BUILTIN = 0,
|
||||
PLATFORM_BUILTIN = 1,
|
||||
REFERENCED_PLATFORM_BUILTIN = 2,
|
||||
SKETCHBOOK = 3,
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
// GENERATED CODE -- NO SERVICES IN PROTO
|
||||
@@ -1,85 +0,0 @@
|
||||
// package: cc.arduino.cli.commands
|
||||
// file: commands/upload.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as commands_common_pb from "../commands/common_pb";
|
||||
|
||||
export class UploadReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): commands_common_pb.Instance | undefined;
|
||||
setInstance(value?: commands_common_pb.Instance): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
getSketchPath(): string;
|
||||
setSketchPath(value: string): void;
|
||||
|
||||
getPort(): string;
|
||||
setPort(value: string): void;
|
||||
|
||||
getVerbose(): boolean;
|
||||
setVerbose(value: boolean): void;
|
||||
|
||||
getVerify(): boolean;
|
||||
setVerify(value: boolean): void;
|
||||
|
||||
getImportFile(): string;
|
||||
setImportFile(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UploadReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UploadReq): UploadReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UploadReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UploadReq;
|
||||
static deserializeBinaryFromReader(message: UploadReq, reader: jspb.BinaryReader): UploadReq;
|
||||
}
|
||||
|
||||
export namespace UploadReq {
|
||||
export type AsObject = {
|
||||
instance?: commands_common_pb.Instance.AsObject,
|
||||
fqbn: string,
|
||||
sketchPath: string,
|
||||
port: string,
|
||||
verbose: boolean,
|
||||
verify: boolean,
|
||||
importFile: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class UploadResp extends jspb.Message {
|
||||
getOutStream(): Uint8Array | string;
|
||||
getOutStream_asU8(): Uint8Array;
|
||||
getOutStream_asB64(): string;
|
||||
setOutStream(value: Uint8Array | string): void;
|
||||
|
||||
getErrStream(): Uint8Array | string;
|
||||
getErrStream_asU8(): Uint8Array;
|
||||
getErrStream_asB64(): string;
|
||||
setErrStream(value: Uint8Array | string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UploadResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UploadResp): UploadResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: UploadResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UploadResp;
|
||||
static deserializeBinaryFromReader(message: UploadResp, reader: jspb.BinaryReader): UploadResp;
|
||||
}
|
||||
|
||||
export namespace UploadResp {
|
||||
export type AsObject = {
|
||||
outStream: Uint8Array | string,
|
||||
errStream: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
@@ -1,560 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var commands_common_pb = require('../commands/common_pb.js');
|
||||
goog.object.extend(proto, commands_common_pb);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.UploadReq', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.commands.UploadResp', null, global);
|
||||
|
||||
/**
|
||||
* 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.UploadReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.UploadReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.UploadReq.displayName = 'proto.cc.arduino.cli.commands.UploadReq';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.UploadReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.UploadReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
instance: (f = msg.getInstance()) && commands_common_pb.Instance.toObject(includeInstance, f),
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
sketchPath: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
port: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
verbose: jspb.Message.getFieldWithDefault(msg, 5, false),
|
||||
verify: jspb.Message.getFieldWithDefault(msg, 6, false),
|
||||
importFile: jspb.Message.getFieldWithDefault(msg, 7, "")
|
||||
};
|
||||
|
||||
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.UploadReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.UploadReq;
|
||||
return proto.cc.arduino.cli.commands.UploadReq.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.UploadReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.UploadReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new commands_common_pb.Instance;
|
||||
reader.readMessage(value,commands_common_pb.Instance.deserializeBinaryFromReader);
|
||||
msg.setInstance(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFqbn(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setSketchPath(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setPort(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setVerbose(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setVerify(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setImportFile(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.UploadReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.UploadReq.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.UploadReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getInstance();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
commands_common_pb.Instance.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getFqbn();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getSketchPath();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPort();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getVerbose();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getVerify();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getImportFile();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Instance instance = 1;
|
||||
* @return {?proto.cc.arduino.cli.commands.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getInstance = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.commands.Instance} */ (
|
||||
jspb.Message.getWrapperField(this, commands_common_pb.Instance, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.cc.arduino.cli.commands.Instance|undefined} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setInstance = function(value) {
|
||||
jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.clearInstance = function() {
|
||||
this.setInstance(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.hasInstance = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string fqbn = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getFqbn = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setFqbn = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string sketch_path = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getSketchPath = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setSketchPath = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string port = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getPort = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setPort = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool verbose = 5;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getVerbose = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setVerbose = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool verify = 6;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getVerify = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setVerify = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string import_file = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.getImportFile = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.commands.UploadReq.prototype.setImportFile = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.UploadResp = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.commands.UploadResp, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.commands.UploadResp.displayName = 'proto.cc.arduino.cli.commands.UploadResp';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.commands.UploadResp.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.commands.UploadResp} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
outStream: msg.getOutStream_asB64(),
|
||||
errStream: msg.getErrStream_asB64()
|
||||
};
|
||||
|
||||
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.UploadResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.commands.UploadResp;
|
||||
return proto.cc.arduino.cli.commands.UploadResp.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.UploadResp} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.commands.UploadResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setOutStream(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setErrStream(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.UploadResp.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.commands.UploadResp.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.UploadResp} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getOutStream_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getErrStream_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getOutStream = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* This is a type-conversion wrapper around `getOutStream()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getOutStream_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getOutStream()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes out_stream = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getOutStream()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getOutStream_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getOutStream()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.setOutStream = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getErrStream = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* This is a type-conversion wrapper around `getErrStream()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getErrStream_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getErrStream()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes err_stream = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getErrStream()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.getErrStream_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getErrStream()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.commands.UploadResp.prototype.setErrStream = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.commands);
|
||||
@@ -1,40 +0,0 @@
|
||||
// package: cc.arduino.cli.debug
|
||||
// file: debug/debug.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as grpc from "@grpc/grpc-js";
|
||||
import * as debug_debug_pb from "../debug/debug_pb";
|
||||
|
||||
interface IDebugService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
||||
debug: IDebugService_IDebug;
|
||||
}
|
||||
|
||||
interface IDebugService_IDebug extends grpc.MethodDefinition<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp> {
|
||||
path: string; // "/cc.arduino.cli.debug.Debug/Debug"
|
||||
requestStream: boolean; // true
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<debug_debug_pb.DebugReq>;
|
||||
requestDeserialize: grpc.deserialize<debug_debug_pb.DebugReq>;
|
||||
responseSerialize: grpc.serialize<debug_debug_pb.DebugResp>;
|
||||
responseDeserialize: grpc.deserialize<debug_debug_pb.DebugResp>;
|
||||
}
|
||||
|
||||
export const DebugService: IDebugService;
|
||||
|
||||
export interface IDebugServer {
|
||||
debug: grpc.handleBidiStreamingCall<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
}
|
||||
|
||||
export interface IDebugClient {
|
||||
debug(): grpc.ClientDuplexStream<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
debug(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
debug(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
}
|
||||
|
||||
export class DebugClient extends grpc.Client implements IDebugClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
||||
public debug(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
public debug(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<debug_debug_pb.DebugReq, debug_debug_pb.DebugResp>;
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
// Original file comments:
|
||||
// This file is part of arduino-cli.
|
||||
//
|
||||
// Copyright 2020 ARDUINO SA (http://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
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var debug_debug_pb = require('../debug/debug_pb.js');
|
||||
|
||||
function serialize_cc_arduino_cli_debug_DebugReq(arg) {
|
||||
if (!(arg instanceof debug_debug_pb.DebugReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.debug.DebugReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_debug_DebugReq(buffer_arg) {
|
||||
return debug_debug_pb.DebugReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_debug_DebugResp(arg) {
|
||||
if (!(arg instanceof debug_debug_pb.DebugResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.debug.DebugResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_debug_DebugResp(buffer_arg) {
|
||||
return debug_debug_pb.DebugResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
// Service that abstract a debug Session usage
|
||||
var DebugService = exports.DebugService = {
|
||||
debug: {
|
||||
path: '/cc.arduino.cli.debug.Debug/Debug',
|
||||
requestStream: true,
|
||||
responseStream: true,
|
||||
requestType: debug_debug_pb.DebugReq,
|
||||
responseType: debug_debug_pb.DebugResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_debug_DebugReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_debug_DebugReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_debug_DebugResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_debug_DebugResp,
|
||||
},
|
||||
};
|
||||
|
||||
exports.DebugClient = grpc.makeGenericClientConstructor(DebugService);
|
||||
@@ -1,129 +0,0 @@
|
||||
// package: cc.arduino.cli.debug
|
||||
// file: debug/debug.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
|
||||
export class DebugReq extends jspb.Message {
|
||||
|
||||
hasDebugreq(): boolean;
|
||||
clearDebugreq(): void;
|
||||
getDebugreq(): DebugConfigReq | undefined;
|
||||
setDebugreq(value?: DebugConfigReq): void;
|
||||
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DebugReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DebugReq): DebugReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DebugReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DebugReq;
|
||||
static deserializeBinaryFromReader(message: DebugReq, reader: jspb.BinaryReader): DebugReq;
|
||||
}
|
||||
|
||||
export namespace DebugReq {
|
||||
export type AsObject = {
|
||||
debugreq?: DebugConfigReq.AsObject,
|
||||
data: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
|
||||
export class DebugConfigReq extends jspb.Message {
|
||||
|
||||
hasInstance(): boolean;
|
||||
clearInstance(): void;
|
||||
getInstance(): Instance | undefined;
|
||||
setInstance(value?: Instance): void;
|
||||
|
||||
getFqbn(): string;
|
||||
setFqbn(value: string): void;
|
||||
|
||||
getSketchPath(): string;
|
||||
setSketchPath(value: string): void;
|
||||
|
||||
getPort(): string;
|
||||
setPort(value: string): void;
|
||||
|
||||
getVerbose(): boolean;
|
||||
setVerbose(value: boolean): void;
|
||||
|
||||
getImportFile(): string;
|
||||
setImportFile(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DebugConfigReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DebugConfigReq): DebugConfigReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DebugConfigReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DebugConfigReq;
|
||||
static deserializeBinaryFromReader(message: DebugConfigReq, reader: jspb.BinaryReader): DebugConfigReq;
|
||||
}
|
||||
|
||||
export namespace DebugConfigReq {
|
||||
export type AsObject = {
|
||||
instance?: Instance.AsObject,
|
||||
fqbn: string,
|
||||
sketchPath: string,
|
||||
port: string,
|
||||
verbose: boolean,
|
||||
importFile: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class DebugResp extends jspb.Message {
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): void;
|
||||
|
||||
getError(): string;
|
||||
setError(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DebugResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DebugResp): DebugResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: DebugResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DebugResp;
|
||||
static deserializeBinaryFromReader(message: DebugResp, reader: jspb.BinaryReader): DebugResp;
|
||||
}
|
||||
|
||||
export namespace DebugResp {
|
||||
export type AsObject = {
|
||||
data: Uint8Array | string,
|
||||
error: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class Instance extends jspb.Message {
|
||||
getId(): number;
|
||||
setId(value: number): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Instance.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Instance): Instance.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Instance, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Instance;
|
||||
static deserializeBinaryFromReader(message: Instance, reader: jspb.BinaryReader): Instance;
|
||||
}
|
||||
|
||||
export namespace Instance {
|
||||
export type AsObject = {
|
||||
id: number,
|
||||
}
|
||||
}
|
||||
@@ -1,859 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.cc.arduino.cli.debug.DebugConfigReq', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.debug.DebugReq', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.debug.DebugResp', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.debug.Instance', null, global);
|
||||
|
||||
/**
|
||||
* 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.debug.DebugReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.debug.DebugReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.debug.DebugReq.displayName = 'proto.cc.arduino.cli.debug.DebugReq';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.debug.DebugReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
debugreq: (f = msg.getDebugreq()) && proto.cc.arduino.cli.debug.DebugConfigReq.toObject(includeInstance, f),
|
||||
data: msg.getData_asB64()
|
||||
};
|
||||
|
||||
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.debug.DebugReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.debug.DebugReq;
|
||||
return proto.cc.arduino.cli.debug.DebugReq.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.debug.DebugReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.cc.arduino.cli.debug.DebugConfigReq;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.debug.DebugConfigReq.deserializeBinaryFromReader);
|
||||
msg.setDebugreq(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setData(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.debug.DebugReq.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.debug.DebugReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getDebugreq();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getData_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional DebugConfigReq debugReq = 1;
|
||||
* @return {?proto.cc.arduino.cli.debug.DebugConfigReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.getDebugreq = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.debug.DebugConfigReq} */ (
|
||||
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.debug.DebugConfigReq, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.cc.arduino.cli.debug.DebugConfigReq|undefined} value */
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.setDebugreq = function(value) {
|
||||
jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.clearDebugreq = function() {
|
||||
this.setDebugreq(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.hasDebugreq = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.getData = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.getData_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.getData_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.debug.DebugReq.prototype.setData = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.debug.DebugConfigReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.debug.DebugConfigReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.displayName = 'proto.cc.arduino.cli.debug.DebugConfigReq';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.debug.DebugConfigReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugConfigReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
instance: (f = msg.getInstance()) && proto.cc.arduino.cli.debug.Instance.toObject(includeInstance, f),
|
||||
fqbn: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
sketchPath: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
port: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
verbose: jspb.Message.getFieldWithDefault(msg, 5, false),
|
||||
importFile: jspb.Message.getFieldWithDefault(msg, 7, "")
|
||||
};
|
||||
|
||||
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.debug.DebugConfigReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.debug.DebugConfigReq;
|
||||
return proto.cc.arduino.cli.debug.DebugConfigReq.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugConfigReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.debug.DebugConfigReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.cc.arduino.cli.debug.Instance;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.debug.Instance.deserializeBinaryFromReader);
|
||||
msg.setInstance(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setFqbn(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setSketchPath(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setPort(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setVerbose(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setImportFile(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.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.debug.DebugConfigReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getInstance();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
proto.cc.arduino.cli.debug.Instance.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getFqbn();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getSketchPath();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPort();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getVerbose();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getImportFile();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Instance instance = 1;
|
||||
* @return {?proto.cc.arduino.cli.debug.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getInstance = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.debug.Instance} */ (
|
||||
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.debug.Instance, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.cc.arduino.cli.debug.Instance|undefined} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setInstance = function(value) {
|
||||
jspb.Message.setWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.clearInstance = function() {
|
||||
this.setInstance(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.hasInstance = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string fqbn = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getFqbn = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setFqbn = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string sketch_path = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getSketchPath = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setSketchPath = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string port = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getPort = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setPort = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool verbose = 5;
|
||||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
||||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getVerbose = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setVerbose = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string import_file = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.getImportFile = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.debug.DebugConfigReq.prototype.setImportFile = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.debug.DebugResp = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.debug.DebugResp, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.debug.DebugResp.displayName = 'proto.cc.arduino.cli.debug.DebugResp';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.debug.DebugResp.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugResp} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
data: msg.getData_asB64(),
|
||||
error: 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.debug.DebugResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.debug.DebugResp;
|
||||
return proto.cc.arduino.cli.debug.DebugResp.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.debug.DebugResp} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.debug.DebugResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setData(value);
|
||||
break;
|
||||
case 2:
|
||||
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.debug.DebugResp.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.debug.DebugResp.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.debug.DebugResp} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getData_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getError();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.getData = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.getData_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.getData_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.setData = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string error = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.getError = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.debug.DebugResp.prototype.setError = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.debug.Instance = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.debug.Instance, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.debug.Instance.displayName = 'proto.cc.arduino.cli.debug.Instance';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.debug.Instance.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.debug.Instance} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
||||
};
|
||||
|
||||
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.debug.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.debug.Instance;
|
||||
return proto.cc.arduino.cli.debug.Instance.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.debug.Instance} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.debug.Instance}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {number} */ (reader.readInt32());
|
||||
msg.setId(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.debug.Instance.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.debug.Instance} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getId();
|
||||
if (f !== 0) {
|
||||
writer.writeInt32(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int32 id = 1;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.debug.Instance.prototype.getId = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.cc.arduino.cli.debug.Instance.prototype.setId = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.debug);
|
||||
@@ -1,41 +0,0 @@
|
||||
// package: cc.arduino.cli.monitor
|
||||
// file: monitor/monitor.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as grpc from "@grpc/grpc-js";
|
||||
import * as monitor_monitor_pb from "../monitor/monitor_pb";
|
||||
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
||||
|
||||
interface IMonitorService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
||||
streamingOpen: IMonitorService_IStreamingOpen;
|
||||
}
|
||||
|
||||
interface IMonitorService_IStreamingOpen extends grpc.MethodDefinition<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp> {
|
||||
path: string; // "/cc.arduino.cli.monitor.Monitor/StreamingOpen"
|
||||
requestStream: boolean; // true
|
||||
responseStream: boolean; // true
|
||||
requestSerialize: grpc.serialize<monitor_monitor_pb.StreamingOpenReq>;
|
||||
requestDeserialize: grpc.deserialize<monitor_monitor_pb.StreamingOpenReq>;
|
||||
responseSerialize: grpc.serialize<monitor_monitor_pb.StreamingOpenResp>;
|
||||
responseDeserialize: grpc.deserialize<monitor_monitor_pb.StreamingOpenResp>;
|
||||
}
|
||||
|
||||
export const MonitorService: IMonitorService;
|
||||
|
||||
export interface IMonitorServer {
|
||||
streamingOpen: grpc.handleBidiStreamingCall<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
}
|
||||
|
||||
export interface IMonitorClient {
|
||||
streamingOpen(): grpc.ClientDuplexStream<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
streamingOpen(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
streamingOpen(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
}
|
||||
|
||||
export class MonitorClient extends grpc.Client implements IMonitorClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
||||
public streamingOpen(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
public streamingOpen(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<monitor_monitor_pb.StreamingOpenReq, monitor_monitor_pb.StreamingOpenResp>;
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
// Original file comments:
|
||||
// This file is part of arduino-cli.
|
||||
//
|
||||
// Copyright 2020 ARDUINO SA (http://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
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var monitor_monitor_pb = require('../monitor/monitor_pb.js');
|
||||
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
||||
|
||||
function serialize_cc_arduino_cli_monitor_StreamingOpenReq(arg) {
|
||||
if (!(arg instanceof monitor_monitor_pb.StreamingOpenReq)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.monitor.StreamingOpenReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_monitor_StreamingOpenReq(buffer_arg) {
|
||||
return monitor_monitor_pb.StreamingOpenReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_monitor_StreamingOpenResp(arg) {
|
||||
if (!(arg instanceof monitor_monitor_pb.StreamingOpenResp)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.monitor.StreamingOpenResp');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_monitor_StreamingOpenResp(buffer_arg) {
|
||||
return monitor_monitor_pb.StreamingOpenResp.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
// Service that abstract a Monitor usage
|
||||
var MonitorService = exports.MonitorService = {
|
||||
streamingOpen: {
|
||||
path: '/cc.arduino.cli.monitor.Monitor/StreamingOpen',
|
||||
requestStream: true,
|
||||
responseStream: true,
|
||||
requestType: monitor_monitor_pb.StreamingOpenReq,
|
||||
responseType: monitor_monitor_pb.StreamingOpenResp,
|
||||
requestSerialize: serialize_cc_arduino_cli_monitor_StreamingOpenReq,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_monitor_StreamingOpenReq,
|
||||
responseSerialize: serialize_cc_arduino_cli_monitor_StreamingOpenResp,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_monitor_StreamingOpenResp,
|
||||
},
|
||||
};
|
||||
|
||||
exports.MonitorClient = grpc.makeGenericClientConstructor(MonitorService);
|
||||
@@ -1,113 +0,0 @@
|
||||
// package: cc.arduino.cli.monitor
|
||||
// file: monitor/monitor.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
||||
|
||||
export class StreamingOpenReq extends jspb.Message {
|
||||
|
||||
hasMonitorconfig(): boolean;
|
||||
clearMonitorconfig(): void;
|
||||
getMonitorconfig(): MonitorConfig | undefined;
|
||||
setMonitorconfig(value?: MonitorConfig): void;
|
||||
|
||||
|
||||
hasData(): boolean;
|
||||
clearData(): void;
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): void;
|
||||
|
||||
|
||||
getContentCase(): StreamingOpenReq.ContentCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): StreamingOpenReq.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: StreamingOpenReq): StreamingOpenReq.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: StreamingOpenReq, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): StreamingOpenReq;
|
||||
static deserializeBinaryFromReader(message: StreamingOpenReq, reader: jspb.BinaryReader): StreamingOpenReq;
|
||||
}
|
||||
|
||||
export namespace StreamingOpenReq {
|
||||
export type AsObject = {
|
||||
monitorconfig?: MonitorConfig.AsObject,
|
||||
data: Uint8Array | string,
|
||||
}
|
||||
|
||||
export enum ContentCase {
|
||||
CONTENT_NOT_SET = 0,
|
||||
|
||||
MONITORCONFIG = 1,
|
||||
|
||||
DATA = 2,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class MonitorConfig extends jspb.Message {
|
||||
getTarget(): string;
|
||||
setTarget(value: string): void;
|
||||
|
||||
getType(): MonitorConfig.TargetType;
|
||||
setType(value: MonitorConfig.TargetType): void;
|
||||
|
||||
|
||||
hasAdditionalconfig(): boolean;
|
||||
clearAdditionalconfig(): void;
|
||||
getAdditionalconfig(): google_protobuf_struct_pb.Struct | undefined;
|
||||
setAdditionalconfig(value?: google_protobuf_struct_pb.Struct): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MonitorConfig.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MonitorConfig): MonitorConfig.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: MonitorConfig, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MonitorConfig;
|
||||
static deserializeBinaryFromReader(message: MonitorConfig, reader: jspb.BinaryReader): MonitorConfig;
|
||||
}
|
||||
|
||||
export namespace MonitorConfig {
|
||||
export type AsObject = {
|
||||
target: string,
|
||||
type: MonitorConfig.TargetType,
|
||||
additionalconfig?: google_protobuf_struct_pb.Struct.AsObject,
|
||||
}
|
||||
|
||||
export enum TargetType {
|
||||
SERIAL = 0,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class StreamingOpenResp extends jspb.Message {
|
||||
getData(): Uint8Array | string;
|
||||
getData_asU8(): Uint8Array;
|
||||
getData_asB64(): string;
|
||||
setData(value: Uint8Array | string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): StreamingOpenResp.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: StreamingOpenResp): StreamingOpenResp.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: StreamingOpenResp, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): StreamingOpenResp;
|
||||
static deserializeBinaryFromReader(message: StreamingOpenResp, reader: jspb.BinaryReader): StreamingOpenResp;
|
||||
}
|
||||
|
||||
export namespace StreamingOpenResp {
|
||||
export type AsObject = {
|
||||
data: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
@@ -1,656 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
||||
goog.object.extend(proto, google_protobuf_struct_pb);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.monitor.MonitorConfig', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.monitor.MonitorConfig.TargetType', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.monitor.StreamingOpenReq', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.monitor.StreamingOpenResp', null, global);
|
||||
|
||||
/**
|
||||
* 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.monitor.StreamingOpenReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.monitor.StreamingOpenReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.displayName = 'proto.cc.arduino.cli.monitor.StreamingOpenReq';
|
||||
}
|
||||
/**
|
||||
* 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.monitor.StreamingOpenReq.oneofGroups_ = [[1,2]];
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.ContentCase = {
|
||||
CONTENT_NOT_SET: 0,
|
||||
MONITORCONFIG: 1,
|
||||
DATA: 2
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {proto.cc.arduino.cli.monitor.StreamingOpenReq.ContentCase}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getContentCase = function() {
|
||||
return /** @type {proto.cc.arduino.cli.monitor.StreamingOpenReq.ContentCase} */(jspb.Message.computeOneofCase(this, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0]));
|
||||
};
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.monitor.StreamingOpenReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.monitor.StreamingOpenReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
monitorconfig: (f = msg.getMonitorconfig()) && proto.cc.arduino.cli.monitor.MonitorConfig.toObject(includeInstance, f),
|
||||
data: msg.getData_asB64()
|
||||
};
|
||||
|
||||
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.monitor.StreamingOpenReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.monitor.StreamingOpenReq;
|
||||
return proto.cc.arduino.cli.monitor.StreamingOpenReq.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.monitor.StreamingOpenReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.monitor.StreamingOpenReq}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.cc.arduino.cli.monitor.MonitorConfig;
|
||||
reader.readMessage(value,proto.cc.arduino.cli.monitor.MonitorConfig.deserializeBinaryFromReader);
|
||||
msg.setMonitorconfig(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setData(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.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.monitor.StreamingOpenReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getMonitorconfig();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
1,
|
||||
f,
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeBytes(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional MonitorConfig monitorConfig = 1;
|
||||
* @return {?proto.cc.arduino.cli.monitor.MonitorConfig}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getMonitorconfig = function() {
|
||||
return /** @type{?proto.cc.arduino.cli.monitor.MonitorConfig} */ (
|
||||
jspb.Message.getWrapperField(this, proto.cc.arduino.cli.monitor.MonitorConfig, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.cc.arduino.cli.monitor.MonitorConfig|undefined} value */
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.setMonitorconfig = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 1, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.clearMonitorconfig = function() {
|
||||
this.setMonitorconfig(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasMonitorconfig = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getData = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getData_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 2;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getData_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.setData = function(value) {
|
||||
jspb.Message.setOneofField(this, 2, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.clearData = function() {
|
||||
jspb.Message.setOneofField(this, 2, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasData = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.monitor.MonitorConfig = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.monitor.MonitorConfig, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.displayName = 'proto.cc.arduino.cli.monitor.MonitorConfig';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.monitor.MonitorConfig.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.monitor.MonitorConfig} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
target: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||
additionalconfig: (f = msg.getAdditionalconfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.cc.arduino.cli.monitor.MonitorConfig}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.monitor.MonitorConfig;
|
||||
return proto.cc.arduino.cli.monitor.MonitorConfig.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.monitor.MonitorConfig} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.monitor.MonitorConfig}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.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.setTarget(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.cc.arduino.cli.monitor.MonitorConfig.TargetType} */ (reader.readEnum());
|
||||
msg.setType(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = new google_protobuf_struct_pb.Struct;
|
||||
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
||||
msg.setAdditionalconfig(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.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.monitor.MonitorConfig} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getTarget();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAdditionalconfig();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
3,
|
||||
f,
|
||||
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.TargetType = {
|
||||
SERIAL: 0
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string target = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.getTarget = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.setTarget = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional TargetType type = 2;
|
||||
* @return {!proto.cc.arduino.cli.monitor.MonitorConfig.TargetType}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.getType = function() {
|
||||
return /** @type {!proto.cc.arduino.cli.monitor.MonitorConfig.TargetType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.cc.arduino.cli.monitor.MonitorConfig.TargetType} value */
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.setType = function(value) {
|
||||
jspb.Message.setProto3EnumField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional google.protobuf.Struct additionalConfig = 3;
|
||||
* @return {?proto.google.protobuf.Struct}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.getAdditionalconfig = function() {
|
||||
return /** @type{?proto.google.protobuf.Struct} */ (
|
||||
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.google.protobuf.Struct|undefined} value */
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.setAdditionalconfig = function(value) {
|
||||
jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.clearAdditionalconfig = function() {
|
||||
this.setAdditionalconfig(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.hasAdditionalconfig = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.monitor.StreamingOpenResp = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.monitor.StreamingOpenResp, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.displayName = 'proto.cc.arduino.cli.monitor.StreamingOpenResp';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.monitor.StreamingOpenResp.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.monitor.StreamingOpenResp} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
data: msg.getData_asB64()
|
||||
};
|
||||
|
||||
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.monitor.StreamingOpenResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.monitor.StreamingOpenResp;
|
||||
return proto.cc.arduino.cli.monitor.StreamingOpenResp.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.monitor.StreamingOpenResp} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.monitor.StreamingOpenResp}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setData(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.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.monitor.StreamingOpenResp} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getData_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.getData = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.getData_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes data = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getData()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.getData_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getData()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.setData = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.monitor);
|
||||
@@ -1,92 +0,0 @@
|
||||
// package: cc.arduino.cli.settings
|
||||
// file: settings/settings.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as grpc from "@grpc/grpc-js";
|
||||
import * as settings_settings_pb from "../settings/settings_pb";
|
||||
|
||||
interface ISettingsService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
||||
getAll: ISettingsService_IGetAll;
|
||||
merge: ISettingsService_IMerge;
|
||||
getValue: ISettingsService_IGetValue;
|
||||
setValue: ISettingsService_ISetValue;
|
||||
}
|
||||
|
||||
interface ISettingsService_IGetAll extends grpc.MethodDefinition<settings_settings_pb.GetAllRequest, settings_settings_pb.RawData> {
|
||||
path: string; // "/cc.arduino.cli.settings.Settings/GetAll"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<settings_settings_pb.GetAllRequest>;
|
||||
requestDeserialize: grpc.deserialize<settings_settings_pb.GetAllRequest>;
|
||||
responseSerialize: grpc.serialize<settings_settings_pb.RawData>;
|
||||
responseDeserialize: grpc.deserialize<settings_settings_pb.RawData>;
|
||||
}
|
||||
interface ISettingsService_IMerge extends grpc.MethodDefinition<settings_settings_pb.RawData, settings_settings_pb.MergeResponse> {
|
||||
path: string; // "/cc.arduino.cli.settings.Settings/Merge"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<settings_settings_pb.RawData>;
|
||||
requestDeserialize: grpc.deserialize<settings_settings_pb.RawData>;
|
||||
responseSerialize: grpc.serialize<settings_settings_pb.MergeResponse>;
|
||||
responseDeserialize: grpc.deserialize<settings_settings_pb.MergeResponse>;
|
||||
}
|
||||
interface ISettingsService_IGetValue extends grpc.MethodDefinition<settings_settings_pb.GetValueRequest, settings_settings_pb.Value> {
|
||||
path: string; // "/cc.arduino.cli.settings.Settings/GetValue"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<settings_settings_pb.GetValueRequest>;
|
||||
requestDeserialize: grpc.deserialize<settings_settings_pb.GetValueRequest>;
|
||||
responseSerialize: grpc.serialize<settings_settings_pb.Value>;
|
||||
responseDeserialize: grpc.deserialize<settings_settings_pb.Value>;
|
||||
}
|
||||
interface ISettingsService_ISetValue extends grpc.MethodDefinition<settings_settings_pb.Value, settings_settings_pb.SetValueResponse> {
|
||||
path: string; // "/cc.arduino.cli.settings.Settings/SetValue"
|
||||
requestStream: boolean; // false
|
||||
responseStream: boolean; // false
|
||||
requestSerialize: grpc.serialize<settings_settings_pb.Value>;
|
||||
requestDeserialize: grpc.deserialize<settings_settings_pb.Value>;
|
||||
responseSerialize: grpc.serialize<settings_settings_pb.SetValueResponse>;
|
||||
responseDeserialize: grpc.deserialize<settings_settings_pb.SetValueResponse>;
|
||||
}
|
||||
|
||||
export const SettingsService: ISettingsService;
|
||||
|
||||
export interface ISettingsServer {
|
||||
getAll: grpc.handleUnaryCall<settings_settings_pb.GetAllRequest, settings_settings_pb.RawData>;
|
||||
merge: grpc.handleUnaryCall<settings_settings_pb.RawData, settings_settings_pb.MergeResponse>;
|
||||
getValue: grpc.handleUnaryCall<settings_settings_pb.GetValueRequest, settings_settings_pb.Value>;
|
||||
setValue: grpc.handleUnaryCall<settings_settings_pb.Value, settings_settings_pb.SetValueResponse>;
|
||||
}
|
||||
|
||||
export interface ISettingsClient {
|
||||
getAll(request: settings_settings_pb.GetAllRequest, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
getAll(request: settings_settings_pb.GetAllRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
getAll(request: settings_settings_pb.GetAllRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
merge(request: settings_settings_pb.RawData, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
merge(request: settings_settings_pb.RawData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
merge(request: settings_settings_pb.RawData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
getValue(request: settings_settings_pb.GetValueRequest, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
getValue(request: settings_settings_pb.GetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
getValue(request: settings_settings_pb.GetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
setValue(request: settings_settings_pb.Value, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
setValue(request: settings_settings_pb.Value, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
setValue(request: settings_settings_pb.Value, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class SettingsClient extends grpc.Client implements ISettingsClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
||||
public getAll(request: settings_settings_pb.GetAllRequest, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
public getAll(request: settings_settings_pb.GetAllRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
public getAll(request: settings_settings_pb.GetAllRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.RawData) => void): grpc.ClientUnaryCall;
|
||||
public merge(request: settings_settings_pb.RawData, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public merge(request: settings_settings_pb.RawData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public merge(request: settings_settings_pb.RawData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.MergeResponse) => void): grpc.ClientUnaryCall;
|
||||
public getValue(request: settings_settings_pb.GetValueRequest, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
public getValue(request: settings_settings_pb.GetValueRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
public getValue(request: settings_settings_pb.GetValueRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.Value) => void): grpc.ClientUnaryCall;
|
||||
public setValue(request: settings_settings_pb.Value, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public setValue(request: settings_settings_pb.Value, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
public setValue(request: settings_settings_pb.Value, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: settings_settings_pb.SetValueResponse) => void): grpc.ClientUnaryCall;
|
||||
}
|
||||
@@ -1,137 +0,0 @@
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
// Original file comments:
|
||||
// This file is part of arduino-cli.
|
||||
//
|
||||
// Copyright 2020 ARDUINO SA (http://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
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var settings_settings_pb = require('../settings/settings_pb.js');
|
||||
|
||||
function serialize_cc_arduino_cli_settings_GetAllRequest(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.GetAllRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.GetAllRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_GetAllRequest(buffer_arg) {
|
||||
return settings_settings_pb.GetAllRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_settings_GetValueRequest(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.GetValueRequest)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.GetValueRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_GetValueRequest(buffer_arg) {
|
||||
return settings_settings_pb.GetValueRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_settings_MergeResponse(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.MergeResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.MergeResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_MergeResponse(buffer_arg) {
|
||||
return settings_settings_pb.MergeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_settings_RawData(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.RawData)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.RawData');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_RawData(buffer_arg) {
|
||||
return settings_settings_pb.RawData.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_settings_SetValueResponse(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.SetValueResponse)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.SetValueResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_SetValueResponse(buffer_arg) {
|
||||
return settings_settings_pb.SetValueResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_cc_arduino_cli_settings_Value(arg) {
|
||||
if (!(arg instanceof settings_settings_pb.Value)) {
|
||||
throw new Error('Expected argument of type cc.arduino.cli.settings.Value');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_cc_arduino_cli_settings_Value(buffer_arg) {
|
||||
return settings_settings_pb.Value.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
var SettingsService = exports.SettingsService = {
|
||||
getAll: {
|
||||
path: '/cc.arduino.cli.settings.Settings/GetAll',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: settings_settings_pb.GetAllRequest,
|
||||
responseType: settings_settings_pb.RawData,
|
||||
requestSerialize: serialize_cc_arduino_cli_settings_GetAllRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_settings_GetAllRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_settings_RawData,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_settings_RawData,
|
||||
},
|
||||
merge: {
|
||||
path: '/cc.arduino.cli.settings.Settings/Merge',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: settings_settings_pb.RawData,
|
||||
responseType: settings_settings_pb.MergeResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_settings_RawData,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_settings_RawData,
|
||||
responseSerialize: serialize_cc_arduino_cli_settings_MergeResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_settings_MergeResponse,
|
||||
},
|
||||
getValue: {
|
||||
path: '/cc.arduino.cli.settings.Settings/GetValue',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: settings_settings_pb.GetValueRequest,
|
||||
responseType: settings_settings_pb.Value,
|
||||
requestSerialize: serialize_cc_arduino_cli_settings_GetValueRequest,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_settings_GetValueRequest,
|
||||
responseSerialize: serialize_cc_arduino_cli_settings_Value,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_settings_Value,
|
||||
},
|
||||
setValue: {
|
||||
path: '/cc.arduino.cli.settings.Settings/SetValue',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: settings_settings_pb.Value,
|
||||
responseType: settings_settings_pb.SetValueResponse,
|
||||
requestSerialize: serialize_cc_arduino_cli_settings_Value,
|
||||
requestDeserialize: deserialize_cc_arduino_cli_settings_Value,
|
||||
responseSerialize: serialize_cc_arduino_cli_settings_SetValueResponse,
|
||||
responseDeserialize: deserialize_cc_arduino_cli_settings_SetValueResponse,
|
||||
},
|
||||
};
|
||||
|
||||
exports.SettingsClient = grpc.makeGenericClientConstructor(SettingsService);
|
||||
@@ -1,125 +0,0 @@
|
||||
// package: cc.arduino.cli.settings
|
||||
// file: settings/settings.proto
|
||||
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import * as jspb from "google-protobuf";
|
||||
|
||||
export class RawData extends jspb.Message {
|
||||
getJsondata(): string;
|
||||
setJsondata(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RawData.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RawData): RawData.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: RawData, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): RawData;
|
||||
static deserializeBinaryFromReader(message: RawData, reader: jspb.BinaryReader): RawData;
|
||||
}
|
||||
|
||||
export namespace RawData {
|
||||
export type AsObject = {
|
||||
jsondata: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class Value extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): void;
|
||||
|
||||
getJsondata(): string;
|
||||
setJsondata(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Value.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Value): Value.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: Value, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Value;
|
||||
static deserializeBinaryFromReader(message: Value, reader: jspb.BinaryReader): Value;
|
||||
}
|
||||
|
||||
export namespace Value {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
jsondata: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetAllRequest extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetAllRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetAllRequest): GetAllRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: GetAllRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetAllRequest;
|
||||
static deserializeBinaryFromReader(message: GetAllRequest, reader: jspb.BinaryReader): GetAllRequest;
|
||||
}
|
||||
|
||||
export namespace GetAllRequest {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class GetValueRequest extends jspb.Message {
|
||||
getKey(): string;
|
||||
setKey(value: string): void;
|
||||
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetValueRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetValueRequest): GetValueRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: GetValueRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetValueRequest;
|
||||
static deserializeBinaryFromReader(message: GetValueRequest, reader: jspb.BinaryReader): GetValueRequest;
|
||||
}
|
||||
|
||||
export namespace GetValueRequest {
|
||||
export type AsObject = {
|
||||
key: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class MergeResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MergeResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: MergeResponse): MergeResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: MergeResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MergeResponse;
|
||||
static deserializeBinaryFromReader(message: MergeResponse, reader: jspb.BinaryReader): MergeResponse;
|
||||
}
|
||||
|
||||
export namespace MergeResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class SetValueResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SetValueResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SetValueResponse): SetValueResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: SetValueResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): SetValueResponse;
|
||||
static deserializeBinaryFromReader(message: SetValueResponse, reader: jspb.BinaryReader): SetValueResponse;
|
||||
}
|
||||
|
||||
export namespace SetValueResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
@@ -1,821 +0,0 @@
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.GetAllRequest', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.GetValueRequest', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.MergeResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.RawData', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.SetValueResponse', null, global);
|
||||
goog.exportSymbol('proto.cc.arduino.cli.settings.Value', null, global);
|
||||
|
||||
/**
|
||||
* 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.settings.RawData = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.RawData, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.RawData.displayName = 'proto.cc.arduino.cli.settings.RawData';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.RawData.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.RawData} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
jsondata: 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.settings.RawData}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.RawData;
|
||||
return proto.cc.arduino.cli.settings.RawData.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.RawData} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.RawData}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.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.setJsondata(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.RawData.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.settings.RawData} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getJsondata();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string jsonData = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.RawData.prototype.getJsondata = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.settings.RawData.prototype.setJsondata = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.settings.Value = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.Value, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.Value.displayName = 'proto.cc.arduino.cli.settings.Value';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.Value.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.Value} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
jsondata: 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.settings.Value}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.Value;
|
||||
return proto.cc.arduino.cli.settings.Value.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.Value} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.Value}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.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.setKey(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setJsondata(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.Value.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.settings.Value} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getKey();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getJsondata();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string key = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.prototype.getKey = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.settings.Value.prototype.setKey = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string jsonData = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.Value.prototype.getJsondata = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.settings.Value.prototype.setJsondata = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.settings.GetAllRequest = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.GetAllRequest, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.displayName = 'proto.cc.arduino.cli.settings.GetAllRequest';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.GetAllRequest.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.GetAllRequest} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.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.settings.GetAllRequest}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.GetAllRequest;
|
||||
return proto.cc.arduino.cli.settings.GetAllRequest.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.GetAllRequest} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.GetAllRequest}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.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.settings.GetAllRequest.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.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.settings.GetAllRequest} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetAllRequest.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.settings.GetValueRequest = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.GetValueRequest, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.displayName = 'proto.cc.arduino.cli.settings.GetValueRequest';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.GetValueRequest.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.GetValueRequest} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
key: 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.settings.GetValueRequest}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.GetValueRequest;
|
||||
return proto.cc.arduino.cli.settings.GetValueRequest.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.GetValueRequest} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.GetValueRequest}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.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.setKey(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.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.settings.GetValueRequest} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getKey();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string key = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.prototype.getKey = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.cc.arduino.cli.settings.GetValueRequest.prototype.setKey = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.settings.MergeResponse = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.MergeResponse, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.MergeResponse.displayName = 'proto.cc.arduino.cli.settings.MergeResponse';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.MergeResponse.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.MergeResponse.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.MergeResponse} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.MergeResponse.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.settings.MergeResponse}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.MergeResponse.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.MergeResponse;
|
||||
return proto.cc.arduino.cli.settings.MergeResponse.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.MergeResponse} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.MergeResponse}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.MergeResponse.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.settings.MergeResponse.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.MergeResponse.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.settings.MergeResponse} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.MergeResponse.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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.settings.SetValueResponse = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.cc.arduino.cli.settings.SetValueResponse, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.displayName = 'proto.cc.arduino.cli.settings.SetValueResponse';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.cc.arduino.cli.settings.SetValueResponse.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.cc.arduino.cli.settings.SetValueResponse} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.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.settings.SetValueResponse}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.cc.arduino.cli.settings.SetValueResponse;
|
||||
return proto.cc.arduino.cli.settings.SetValueResponse.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.cc.arduino.cli.settings.SetValueResponse} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.cc.arduino.cli.settings.SetValueResponse}
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.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.settings.SetValueResponse.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.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.settings.SetValueResponse} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.cc.arduino.cli.settings.SetValueResponse.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.cc.arduino.cli.settings);
|
||||
Reference in New Issue
Block a user