diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0640c8b322c..2cb63a9152e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,7 +22,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: "1.14" + go-version: "1.16" - name: Install Go deps # Since 10/23/2019 pwsh is the default shell @@ -50,16 +50,27 @@ jobs: - name: Install Poetry run: pip install poetry + - name: Install buf (protoc linter) + if: runner.os == 'Linux' + run: | + go install github.com/bufbuild/buf/cmd/buf@latest + go install github.com/bufbuild/buf/cmd/protoc-gen-buf-breaking@latest + go install github.com/bufbuild/buf/cmd/protoc-gen-buf-lint@latest + shell: bash + - name: Check the code is good + if: runner.os == 'Linux' run: task check - name: Install protoc compiler + if: runner.os == 'Linux' uses: arduino/setup-protoc@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Check protocol buffers compile correctly - run: task protoc + if: runner.os == 'Linux' + run: task protoc:compile - name: Build the CLI run: task build diff --git a/Taskfile.yml b/Taskfile.yml index 0a19080c533..3648a24d5de 100755 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -19,10 +19,10 @@ tasks: docs:gen:protobuf: desc: Generate markdown contents for protobuffers cmds: - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,commands.md --proto_path=rpc ./rpc/commands/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,monitor.md --proto_path=rpc ./rpc/monitor/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,settings.md --proto_path=rpc ./rpc/settings/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,debug.md --proto_path=rpc ./rpc/debug/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,commands.md --proto_path=rpc ./rpc/cc/arduino/cli/commands/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,monitor.md --proto_path=rpc ./rpc/cc/arduino/cli/monitor/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,settings.md --proto_path=rpc ./rpc/cc/arduino/cli/settings/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,debug.md --proto_path=rpc ./rpc/cc/arduino/cli/debug/v1/*.proto' - task: docs:format docs:gen: @@ -77,20 +77,37 @@ tasks: - npx {{ .PRETTIER }} --write "**/*.md" protoc: + desc: Lint, format and compile protobuf definitions + deps: + - protoc:check + - protoc:format + - protoc:compile + + protoc:compile: desc: Compile protobuf definitions cmds: - - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/commands/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/monitor/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/settings/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/debug/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/cc/arduino/cli/commands/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/cc/arduino/cli/monitor/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/cc/arduino/cli/settings/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/cc/arduino/cli/debug/v1/*.proto' protoc:docs: desc: Generate docs for protobuf definitions cmds: - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,commands.md --proto_path=rpc ./rpc/commands/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,monitor.md --proto_path=rpc ./rpc/monitor/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,settings.md --proto_path=rpc ./rpc/settings/*.proto' - - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,debug.md --proto_path=rpc ./rpc/debug/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,commands.md --proto_path=rpc ./rpc/cc/arduino/cli/commands/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,monitor.md --proto_path=rpc ./rpc/cc/arduino/cli/monitor/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,settings.md --proto_path=rpc ./rpc/cc/arduino/cli/settings/v1/*.proto' + - '{{ default "protoc" .PROTOC_BINARY }} --doc_out=./docs/rpc --doc_opt=markdown,debug.md --proto_path=rpc ./rpc/cc/arduino/cli/debug/v1/*.proto' + + protoc:check: + desc: Perform linting of the protobuf definitions + cmds: + - buf lint rpc + + protoc:format: + desc: Perform formatting of the protobuf definitions + cmds: + - clang-format -i rpc/cc/arduino/cli/*/*/*.proto build: desc: Build the project @@ -134,6 +151,7 @@ tasks: - task: python:check - task: docs:check - task: config:check + - task: protoc:check config:check: desc: Check linting of configuration and supporting files diff --git a/arduino/libraries/libraries.go b/arduino/libraries/libraries.go index 4759ba4f4bb..2a5a4288056 100644 --- a/arduino/libraries/libraries.go +++ b/arduino/libraries/libraries.go @@ -19,7 +19,7 @@ import ( "fmt" "github.com/arduino/arduino-cli/arduino/cores" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" semver "go.bug.st/relaxed-semver" diff --git a/arduino/libraries/libraries_layout.go b/arduino/libraries/libraries_layout.go index a7f62e725fa..ba2e3501607 100644 --- a/arduino/libraries/libraries_layout.go +++ b/arduino/libraries/libraries_layout.go @@ -19,7 +19,7 @@ import ( "encoding/json" "fmt" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // LibraryLayout represents how the library source code is laid out in the library @@ -72,9 +72,9 @@ func (d *LibraryLayout) UnmarshalJSON(b []byte) error { func (d *LibraryLayout) ToRPCLibraryLayout() rpc.LibraryLayout { switch *d { case FlatLayout: - return rpc.LibraryLayout_flat_layout + return rpc.LibraryLayout_LIBRARY_LAYOUT_FLAT case RecursiveLayout: - return rpc.LibraryLayout_recursive_layout + return rpc.LibraryLayout_LIBRARY_LAYOUT_RECURSIVE } panic(fmt.Sprintf("invalid LibraryLayout value %d", *d)) } diff --git a/arduino/libraries/libraries_location.go b/arduino/libraries/libraries_location.go index a3e22cfb3f3..c40c6ad9dc0 100644 --- a/arduino/libraries/libraries_location.go +++ b/arduino/libraries/libraries_location.go @@ -19,7 +19,7 @@ import ( "encoding/json" "fmt" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // LibraryLocation represents where the library is installed @@ -89,13 +89,13 @@ func (d *LibraryLocation) UnmarshalJSON(b []byte) error { func (d *LibraryLocation) ToRPCLibraryLocation() rpc.LibraryLocation { switch *d { case IDEBuiltIn: - return rpc.LibraryLocation_ide_builtin + return rpc.LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN case PlatformBuiltIn: - return rpc.LibraryLocation_platform_builtin + return rpc.LibraryLocation_LIBRARY_LOCATION_PLATFORM_BUILTIN case ReferencedPlatformBuiltIn: - return rpc.LibraryLocation_referenced_platform_builtin + return rpc.LibraryLocation_LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN case User: - return rpc.LibraryLocation_user + return rpc.LibraryLocation_LIBRARY_LOCATION_USER } panic(fmt.Sprintf("invalid LibraryLocation value %d", *d)) } @@ -103,13 +103,13 @@ func (d *LibraryLocation) ToRPCLibraryLocation() rpc.LibraryLocation { // FromRPCLibraryLocation converts a rpc.LibraryLocation to a LibraryLocation func FromRPCLibraryLocation(l rpc.LibraryLocation) LibraryLocation { switch l { - case rpc.LibraryLocation_ide_builtin: + case rpc.LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN: return IDEBuiltIn - case rpc.LibraryLocation_platform_builtin: + case rpc.LibraryLocation_LIBRARY_LOCATION_PLATFORM_BUILTIN: return PlatformBuiltIn - case rpc.LibraryLocation_referenced_platform_builtin: + case rpc.LibraryLocation_LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN: return ReferencedPlatformBuiltIn - case rpc.LibraryLocation_user: + case rpc.LibraryLocation_LIBRARY_LOCATION_USER: return User } panic(fmt.Sprintf("invalid rpc.LibraryLocation value %d", l)) diff --git a/arduino/libraries/librariesindex/index.go b/arduino/libraries/librariesindex/index.go index 85c3bbba472..01c5c20d10b 100644 --- a/arduino/libraries/librariesindex/index.go +++ b/arduino/libraries/librariesindex/index.go @@ -20,7 +20,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries" "github.com/arduino/arduino-cli/arduino/resources" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" semver "go.bug.st/relaxed-semver" ) diff --git a/cli/board/attach.go b/cli/board/attach.go index 0049bcdab22..df310dd1fd3 100644 --- a/cli/board/attach.go +++ b/cli/board/attach.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/board" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -64,7 +64,7 @@ func runAttachCommand(cmd *cobra.Command, args []string) { path = initSketchPath(path) } - if _, err = board.Attach(context.Background(), &rpc.BoardAttachReq{ + if _, err = board.Attach(context.Background(), &rpc.BoardAttachRequest{ Instance: instance, BoardUri: args[0], SketchPath: path.String(), diff --git a/cli/board/details.go b/cli/board/details.go index d40eb79ef3a..10937def929 100644 --- a/cli/board/details.go +++ b/cli/board/details.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/board" "github.com/arduino/arduino-cli/i18n" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/fatih/color" "github.com/spf13/cobra" @@ -66,7 +66,7 @@ func runDetailsCommand(cmd *cobra.Command, args []string) { fqbn = args[0] } - res, err := board.Details(context.Background(), &rpc.BoardDetailsReq{ + res, err := board.Details(context.Background(), &rpc.BoardDetailsRequest{ Instance: inst, Fqbn: fqbn, }) @@ -82,7 +82,7 @@ func runDetailsCommand(cmd *cobra.Command, args []string) { // output from this command requires special formatting, let's create a dedicated // feedback.Result implementation type detailsResult struct { - details *rpc.BoardDetailsResp + details *rpc.BoardDetailsResponse } func (dr detailsResult) Data() interface{} { @@ -134,20 +134,20 @@ func (dr detailsResult) String() string { table.NewCell("✔", color.New(color.FgGreen))) } - for i, idp := range details.IdentificationPref { + for i, idp := range details.IdentificationPrefs { if i == 0 { t.AddRow() // get some space from above - t.AddRow(tr("Identification properties:"), "VID:"+idp.UsbID.VID+" PID:"+idp.UsbID.PID) + t.AddRow(tr("Identification properties:"), "VID:"+idp.UsbId.Vid+" PID:"+idp.UsbId.Pid) continue } - t.AddRow("", "VID:"+idp.UsbID.VID+" PID:"+idp.UsbID.PID) + t.AddRow("", "VID:"+idp.UsbId.Vid+" PID:"+idp.UsbId.Pid) } t.AddRow() // get some space from above addIfNotEmpty(tr("Package name:"), details.Package.Name) addIfNotEmpty(tr("Package maintainer:"), details.Package.Maintainer) addIfNotEmpty(tr("Package URL:"), details.Package.Url) - addIfNotEmpty(tr("Package website:"), details.Package.WebsiteURL) + addIfNotEmpty(tr("Package website:"), details.Package.WebsiteUrl) addIfNotEmpty(tr("Package online help:"), details.Package.Help.Online) t.AddRow() // get some space from above @@ -155,7 +155,7 @@ func (dr detailsResult) String() string { addIfNotEmpty(tr("Platform category:"), details.Platform.Category) addIfNotEmpty(tr("Platform architecture:"), details.Platform.Architecture) addIfNotEmpty(tr("Platform URL:"), details.Platform.Url) - addIfNotEmpty(tr("Platform file name:"), details.Platform.ArchiveFileName) + addIfNotEmpty(tr("Platform file name:"), details.Platform.ArchiveFilename) if details.Platform.Size != 0 { addIfNotEmpty(tr("Platform size (bytes):"), fmt.Sprint(details.Platform.Size)) } @@ -167,7 +167,7 @@ func (dr detailsResult) String() string { if showFullDetails { for _, sys := range tool.Systems { t.AddRow("", tr("OS:"), "", sys.Host) - t.AddRow("", tr("File:"), "", sys.ArchiveFileName) + t.AddRow("", tr("File:"), "", sys.ArchiveFilename) t.AddRow("", tr("Size (bytes):"), "", fmt.Sprint(sys.Size)) t.AddRow("", tr("Checksum:"), "", sys.Checksum) t.AddRow("", "URL:", "", sys.Url) diff --git a/cli/board/list.go b/cli/board/list.go index 7a2e825c75c..27f2a8fb70e 100644 --- a/cli/board/list.go +++ b/cli/board/list.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/board" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/spf13/cobra" ) @@ -147,7 +147,7 @@ func (dr result) String() string { if boards := port.GetBoards(); len(boards) > 0 { sort.Slice(boards, func(i, j int) bool { x, y := boards[i], boards[j] - return x.GetName() < y.GetName() || (x.GetName() == y.GetName() && x.GetFQBN() < y.GetFQBN()) + return x.GetName() < y.GetName() || (x.GetName() == y.GetName() && x.GetFqbn() < y.GetFqbn()) }) for _, b := range boards { board := b.GetName() @@ -155,7 +155,7 @@ func (dr result) String() string { // to improve the user experience, show on a dedicated column // the name of the core supporting the board detected var coreName = "" - fqbn, err := cores.ParseFQBN(b.GetFQBN()) + fqbn, err := cores.ParseFQBN(b.GetFqbn()) if err == nil { coreName = fmt.Sprintf("%s:%s", fqbn.Package, fqbn.PlatformArch) } @@ -206,7 +206,7 @@ func (dr watchEvent) String() string { if boards := dr.Boards; len(boards) > 0 { sort.Slice(boards, func(i, j int) bool { x, y := boards[i], boards[j] - return x.GetName() < y.GetName() || (x.GetName() == y.GetName() && x.GetFQBN() < y.GetFQBN()) + return x.GetName() < y.GetName() || (x.GetName() == y.GetName() && x.GetFqbn() < y.GetFqbn()) }) for _, b := range boards { board := b.GetName() @@ -214,7 +214,7 @@ func (dr watchEvent) String() string { // to improve the user experience, show on a dedicated column // the name of the core supporting the board detected var coreName = "" - fqbn, err := cores.ParseFQBN(b.GetFQBN()) + fqbn, err := cores.ParseFQBN(b.GetFqbn()) if err == nil { coreName = fmt.Sprintf("%s:%s", fqbn.Package, fqbn.PlatformArch) } diff --git a/cli/board/listall.go b/cli/board/listall.go index 0de4571b95c..1d4f4971391 100644 --- a/cli/board/listall.go +++ b/cli/board/listall.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/board" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/spf13/cobra" ) @@ -56,7 +56,7 @@ func runListAllCommand(cmd *cobra.Command, args []string) { os.Exit(errorcodes.ErrGeneric) } - list, err := board.ListAll(context.Background(), &rpc.BoardListAllReq{ + list, err := board.ListAll(context.Background(), &rpc.BoardListAllRequest{ Instance: inst, SearchArgs: args, IncludeHiddenBoards: showHiddenBoard, @@ -72,7 +72,7 @@ func runListAllCommand(cmd *cobra.Command, args []string) { // output from this command requires special formatting, let's create a dedicated // feedback.Result implementation type resultAll struct { - list *rpc.BoardListAllResp + list *rpc.BoardListAllResponse } func (dr resultAll) Data() interface{} { @@ -91,7 +91,7 @@ func (dr resultAll) String() string { if item.IsHidden { hidden = "(hidden)" } - t.AddRow(item.GetName(), item.GetFQBN(), hidden) + t.AddRow(item.GetName(), item.GetFqbn(), hidden) } return t.Render() } diff --git a/cli/board/search.go b/cli/board/search.go index 8297993e3a1..76cdd181ef0 100644 --- a/cli/board/search.go +++ b/cli/board/search.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/board" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/spf13/cobra" ) @@ -58,7 +58,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { os.Exit(errorcodes.ErrGeneric) } - res, err := board.Search(context.Background(), &rpc.BoardSearchReq{ + res, err := board.Search(context.Background(), &rpc.BoardSearchRequest{ Instance: inst, SearchArgs: strings.Join(args, " "), IncludeHiddenBoards: searchFlags.showHiddenBoard, @@ -93,7 +93,7 @@ func (r searchResults) String() string { if item.IsHidden { hidden = "(hidden)" } - t.AddRow(item.GetName(), item.GetFQBN(), item.Platform.ID, hidden) + t.AddRow(item.GetName(), item.GetFqbn(), item.Platform.Id, hidden) } return t.Render() } diff --git a/cli/burnbootloader/burnbootloader.go b/cli/burnbootloader/burnbootloader.go index 1db674ca8c3..d0a0ad75f04 100644 --- a/cli/burnbootloader/burnbootloader.go +++ b/cli/burnbootloader/burnbootloader.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/upload" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -66,7 +66,7 @@ func run(command *cobra.Command, args []string) { os.Exit(errorcodes.ErrGeneric) } - if _, err := upload.BurnBootloader(context.Background(), &rpc.BurnBootloaderReq{ + if _, err := upload.BurnBootloader(context.Background(), &rpc.BurnBootloaderRequest{ Instance: instance, Fqbn: fqbn, Port: port, diff --git a/cli/compile/compile.go b/cli/compile/compile.go index 5e600ec71e0..d6d0566f052 100644 --- a/cli/compile/compile.go +++ b/cli/compile/compile.go @@ -30,7 +30,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/compile" "github.com/arduino/arduino-cli/commands/upload" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -152,7 +152,7 @@ func run(cmd *cobra.Command, args []string) { overrides = o.Overrides } - compileReq := &rpc.CompileReq{ + compileRequest := &rpc.CompileRequest{ Instance: inst, Fqbn: fqbn, SketchPath: sketchPath.String(), @@ -175,15 +175,15 @@ func run(cmd *cobra.Command, args []string) { compileOut := new(bytes.Buffer) compileErr := new(bytes.Buffer) verboseCompile := configuration.Settings.GetString("logging.level") == "debug" - var compileRes *rpc.CompileResp + var compileRes *rpc.CompileResponse if output.OutputFormat == "json" { - compileRes, err = compile.Compile(context.Background(), compileReq, compileOut, compileErr, verboseCompile) + compileRes, err = compile.Compile(context.Background(), compileRequest, compileOut, compileErr, verboseCompile) } else { - compileRes, err = compile.Compile(context.Background(), compileReq, os.Stdout, os.Stderr, verboseCompile) + compileRes, err = compile.Compile(context.Background(), compileRequest, os.Stdout, os.Stderr, verboseCompile) } if err == nil && uploadAfterCompile { - uploadReq := &rpc.UploadReq{ + uploadRequest := &rpc.UploadRequest{ Instance: inst, Fqbn: fqbn, SketchPath: sketchPath.String(), @@ -198,9 +198,9 @@ func run(cmd *cobra.Command, args []string) { // TODO: do not print upload output in json mode uploadOut := new(bytes.Buffer) uploadErr := new(bytes.Buffer) - _, err = upload.Upload(context.Background(), uploadReq, uploadOut, uploadErr) + _, err = upload.Upload(context.Background(), uploadRequest, uploadOut, uploadErr) } else { - _, err = upload.Upload(context.Background(), uploadReq, os.Stdout, os.Stderr) + _, err = upload.Upload(context.Background(), uploadRequest, os.Stdout, os.Stderr) } if err != nil { feedback.Errorf("Error during Upload: %v", err) @@ -236,10 +236,10 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path { } type compileResult struct { - CompileOut string `json:"compiler_out"` - CompileErr string `json:"compiler_err"` - BuilderResult *rpc.CompileResp `json:"builder_result"` - Success bool `json:"success"` + CompileOut string `json:"compiler_out"` + CompileErr string `json:"compiler_err"` + BuilderResult *rpc.CompileResponse `json:"builder_result"` + Success bool `json:"success"` } func (r *compileResult) Data() interface{} { diff --git a/cli/core/download.go b/cli/core/download.go index 273c66b48df..8f941d9c926 100644 --- a/cli/core/download.go +++ b/cli/core/download.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/core" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -60,7 +60,7 @@ func runDownloadCommand(cmd *cobra.Command, args []string) { } for i, platformRef := range platformsRefs { - platformDownloadreq := &rpc.PlatformDownloadReq{ + platformDownloadreq := &rpc.PlatformDownloadRequest{ Instance: inst, PlatformPackage: platformRef.PackageName, Architecture: platformRef.Architecture, diff --git a/cli/core/install.go b/cli/core/install.go index 15df33d379c..1cc138bc7d4 100644 --- a/cli/core/install.go +++ b/cli/core/install.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -98,14 +98,14 @@ func runInstallCommand(cmd *cobra.Command, args []string) { } for _, platformRef := range platformsRefs { - platformInstallReq := &rpc.PlatformInstallReq{ + platformInstallRequest := &rpc.PlatformInstallRequest{ Instance: inst, PlatformPackage: platformRef.PackageName, Architecture: platformRef.Architecture, Version: platformRef.Version, SkipPostInstall: DetectSkipPostInstallValue(), } - _, err := core.PlatformInstall(context.Background(), platformInstallReq, output.ProgressBar(), output.TaskProgress()) + _, err := core.PlatformInstall(context.Background(), platformInstallRequest, output.ProgressBar(), output.TaskProgress()) if err != nil { feedback.Errorf("Error during install: %v", err) os.Exit(errorcodes.ErrGeneric) diff --git a/cli/core/list.go b/cli/core/list.go index ddb2e29a838..a3b09432bba 100644 --- a/cli/core/list.go +++ b/cli/core/list.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/core" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -57,7 +57,7 @@ func runListCommand(cmd *cobra.Command, args []string) { logrus.Info("Executing `arduino core list`") - platforms, err := core.GetPlatforms(&rpc.PlatformListReq{ + platforms, err := core.GetPlatforms(&rpc.PlatformListRequest{ Instance: inst, UpdatableOnly: listFlags.updatableOnly, All: listFlags.all, @@ -88,10 +88,10 @@ func (ir installedResult) String() string { t := table.New() t.SetHeader("ID", "Installed", "Latest", "Name") sort.Slice(ir.platforms, func(i, j int) bool { - return ir.platforms[i].ID < ir.platforms[j].ID + return ir.platforms[i].Id < ir.platforms[j].Id }) for _, p := range ir.platforms { - t.AddRow(p.ID, p.Installed, p.Latest, p.Name) + t.AddRow(p.Id, p.Installed, p.Latest, p.Name) } return t.Render() diff --git a/cli/core/search.go b/cli/core/search.go index 937b37648f3..7a338d482ae 100644 --- a/cli/core/search.go +++ b/cli/core/search.go @@ -27,7 +27,7 @@ import ( "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/commands/core" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -58,7 +58,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { os.Exit(errorcodes.ErrGeneric) } - _, err = commands.UpdateIndex(context.Background(), &rpc.UpdateIndexReq{ + _, err = commands.UpdateIndex(context.Background(), &rpc.UpdateIndexRequest{ Instance: inst, }, output.ProgressBar()) if err != nil { @@ -69,7 +69,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { arguments := strings.ToLower(strings.Join(args, " ")) logrus.Infof("Executing `arduino core search` with args: '%s'", arguments) - resp, err := core.PlatformSearch(&rpc.PlatformSearchReq{ + resp, err := core.PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: arguments, AllVersions: allVersions, @@ -98,10 +98,10 @@ func (sr searchResults) String() string { t := table.New() t.SetHeader("ID", "Version", "Name") sort.Slice(sr.platforms, func(i, j int) bool { - return sr.platforms[i].ID < sr.platforms[j].ID + return sr.platforms[i].Id < sr.platforms[j].Id }) for _, item := range sr.platforms { - t.AddRow(item.GetID(), item.GetLatest(), item.GetName()) + t.AddRow(item.GetId(), item.GetLatest(), item.GetName()) } return t.Render() } diff --git a/cli/core/uninstall.go b/cli/core/uninstall.go index f46ca82b2cf..7cd3cec2955 100644 --- a/cli/core/uninstall.go +++ b/cli/core/uninstall.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/core" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -63,7 +63,7 @@ func runUninstallCommand(cmd *cobra.Command, args []string) { } } for _, platformRef := range platformsRefs { - _, err := core.PlatformUninstall(context.Background(), &rpc.PlatformUninstallReq{ + _, err := core.PlatformUninstall(context.Background(), &rpc.PlatformUninstallRequest{ Instance: inst, PlatformPackage: platformRef.PackageName, Architecture: platformRef.Architecture, diff --git a/cli/core/update_index.go b/cli/core/update_index.go index 95115c18a58..da413393ee9 100644 --- a/cli/core/update_index.go +++ b/cli/core/update_index.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -45,7 +45,7 @@ func runUpdateIndexCommand(cmd *cobra.Command, args []string) { instance := instance.CreateInstanceIgnorePlatformIndexErrors() logrus.Info("Executing `arduino core update-index`") - _, err := commands.UpdateIndex(context.Background(), &rpc.UpdateIndexReq{ + _, err := commands.UpdateIndex(context.Background(), &rpc.UpdateIndexRequest{ Instance: instance, }, output.ProgressBar()) if err != nil { diff --git a/cli/core/upgrade.go b/cli/core/upgrade.go index 49a7286e37f..db27f1eb0fa 100644 --- a/cli/core/upgrade.go +++ b/cli/core/upgrade.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/core" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -57,7 +57,7 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) { // if no platform was passed, upgrade allthethings if len(args) == 0 { - targets, err := core.GetPlatforms(&rpc.PlatformListReq{ + targets, err := core.GetPlatforms(&rpc.PlatformListRequest{ Instance: inst, UpdatableOnly: true, }) @@ -72,7 +72,7 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) { } for _, t := range targets { - args = append(args, t.ID) + args = append(args, t.Id) } } @@ -91,7 +91,7 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) { continue } - r := &rpc.PlatformUpgradeReq{ + r := &rpc.PlatformUpgradeRequest{ Instance: inst, PlatformPackage: platformRef.PackageName, Architecture: platformRef.Architecture, diff --git a/cli/daemon/daemon.go b/cli/daemon/daemon.go index 3a59135c143..6289d243bb2 100644 --- a/cli/daemon/daemon.go +++ b/cli/daemon/daemon.go @@ -30,10 +30,10 @@ import ( "github.com/arduino/arduino-cli/commands/daemon" "github.com/arduino/arduino-cli/configuration" "github.com/arduino/arduino-cli/metrics" - srv_commands "github.com/arduino/arduino-cli/rpc/commands" - srv_debug "github.com/arduino/arduino-cli/rpc/debug" - srv_monitor "github.com/arduino/arduino-cli/rpc/monitor" - srv_settings "github.com/arduino/arduino-cli/rpc/settings" + srv_commands "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + srv_debug "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" + srv_monitor "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/monitor/v1" + srv_settings "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/settings/v1" "github.com/segmentio/stats/v4" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -72,18 +72,18 @@ func runDaemonCommand(cmd *cobra.Command, args []string) { configuration.Settings.Set("network.user_agent_ext", "daemon") // register the commands service - srv_commands.RegisterArduinoCoreServer(s, &daemon.ArduinoCoreServerImpl{ + srv_commands.RegisterArduinoCoreServiceServer(s, &daemon.ArduinoCoreServerImpl{ VersionString: globals.VersionInfo.VersionString, }) // Register the monitors service - srv_monitor.RegisterMonitorServer(s, &daemon.MonitorService{}) + srv_monitor.RegisterMonitorServiceServer(s, &daemon.MonitorService{}) // Register the settings service - srv_settings.RegisterSettingsServer(s, &daemon.SettingsService{}) + srv_settings.RegisterSettingsServiceServer(s, &daemon.SettingsService{}) // Register the debug session service - srv_debug.RegisterDebugServer(s, &daemon.DebugService{}) + srv_debug.RegisterDebugServiceServer(s, &daemon.DebugService{}) if !daemonize { // When parent process ends terminate also the daemon diff --git a/cli/debug/debug.go b/cli/debug/debug.go index 8e7c16b6134..fc4d1a4ee38 100644 --- a/cli/debug/debug.go +++ b/cli/debug/debug.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/debug" - dbg "github.com/arduino/arduino-cli/rpc/debug" + dbg "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" "github.com/arduino/arduino-cli/table" "github.com/arduino/go-paths-helper" "github.com/arduino/go-properties-orderedmap" @@ -81,7 +81,7 @@ func run(command *cobra.Command, args []string) { } sketchPath := initSketchPath(path) - debugConfigRequested := &dbg.DebugConfigReq{ + debugConfigRequested := &dbg.DebugConfigRequest{ Instance: instance, Fqbn: fqbn, SketchPath: sketchPath.String(), @@ -134,7 +134,7 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path { } type debugInfoResult struct { - info *dbg.GetDebugConfigResp + info *dbg.GetDebugConfigResponse } func (r *debugInfoResult) Data() interface{} { diff --git a/cli/instance/instance.go b/cli/instance/instance.go index 73be66af3f5..6850ffb0164 100644 --- a/cli/instance/instance.go +++ b/cli/instance/instance.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -46,9 +46,9 @@ func CreateInstance() (*rpc.Instance, error) { return resp.GetInstance(), checkPlatformErrors(resp) } -func getInitResponse() (*rpc.InitResp, error) { +func getInitResponse() (*rpc.InitResponse, error) { // invoke Init() - resp, err := commands.Init(context.Background(), &rpc.InitReq{}, output.ProgressBar(), output.TaskProgress()) + resp, err := commands.Init(context.Background(), &rpc.InitRequest{}, output.ProgressBar(), output.TaskProgress()) // Init() failed if err != nil { @@ -66,7 +66,7 @@ func getInitResponse() (*rpc.InitResp, error) { // update all indexes err := commands.UpdateLibrariesIndex(context.Background(), - &rpc.UpdateLibrariesIndexReq{Instance: resp.GetInstance()}, output.ProgressBar()) + &rpc.UpdateLibrariesIndexRequest{Instance: resp.GetInstance()}, output.ProgressBar()) if err != nil { return nil, errors.Wrap(err, "updating the library index") } @@ -95,7 +95,7 @@ func getInitResponse() (*rpc.InitResp, error) { if packageIndex.NotExist() { // update platform index _, err := commands.UpdateIndex(context.Background(), - &rpc.UpdateIndexReq{Instance: resp.GetInstance()}, output.ProgressBar()) + &rpc.UpdateIndexRequest{Instance: resp.GetInstance()}, output.ProgressBar()) if err != nil { return nil, errors.Wrap(err, "updating the core index") } @@ -121,7 +121,7 @@ func getInitResponse() (*rpc.InitResp, error) { return resp, nil } -func checkPlatformErrors(resp *rpc.InitResp) error { +func checkPlatformErrors(resp *rpc.InitResponse) error { // Init() and/or rescan succeeded, but there were errors loading platform indexes if resp.GetPlatformsIndexErrors() != nil { // log each error diff --git a/cli/lib/args.go b/cli/lib/args.go index 113f440a705..7d9cc00f38f 100644 --- a/cli/lib/args.go +++ b/cli/lib/args.go @@ -21,7 +21,7 @@ import ( "strings" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // LibraryReferenceArg is a command line argument that reference a library. @@ -76,7 +76,7 @@ func ParseLibraryReferenceArgs(args []string) ([]*LibraryReferenceArg, error) { // library and possibly adjust the case of the name to match a library in the index func ParseLibraryReferenceArgAndAdjustCase(instance *rpc.Instance, arg string) (*LibraryReferenceArg, error) { libRef, err := ParseLibraryReferenceArg(arg) - res, err := lib.LibrarySearch(context.Background(), &rpc.LibrarySearchReq{ + res, err := lib.LibrarySearch(context.Background(), &rpc.LibrarySearchRequest{ Instance: instance, Query: libRef.Name, }) diff --git a/cli/lib/check_deps.go b/cli/lib/check_deps.go index de797162255..df6f9c9e8bd 100644 --- a/cli/lib/check_deps.go +++ b/cli/lib/check_deps.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/fatih/color" "github.com/spf13/cobra" ) @@ -51,7 +51,7 @@ func runDepsCommand(cmd *cobra.Command, args []string) { os.Exit(errorcodes.ErrBadArgument) } - deps, err := lib.LibraryResolveDependencies(context.Background(), &rpc.LibraryResolveDependenciesReq{ + deps, err := lib.LibraryResolveDependencies(context.Background(), &rpc.LibraryResolveDependenciesRequest{ Instance: instance, Name: libRef.Name, Version: libRef.Version, @@ -66,7 +66,7 @@ func runDepsCommand(cmd *cobra.Command, args []string) { // output from this command requires special formatting, let's create a dedicated // feedback.Result implementation type checkDepResult struct { - deps *rpc.LibraryResolveDependenciesResp + deps *rpc.LibraryResolveDependenciesResponse } func (dr checkDepResult) Data() interface{} { diff --git a/cli/lib/download.go b/cli/lib/download.go index 2419df395b4..6f8a3b468cd 100644 --- a/cli/lib/download.go +++ b/cli/lib/download.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/spf13/cobra" ) @@ -51,12 +51,12 @@ func runDownloadCommand(cmd *cobra.Command, args []string) { } for _, library := range refs { - libraryDownloadReq := &rpc.LibraryDownloadReq{ + libraryDownloadRequest := &rpc.LibraryDownloadRequest{ Instance: instance, Name: library.Name, Version: library.Version, } - _, err := lib.LibraryDownload(context.Background(), libraryDownloadReq, output.ProgressBar()) + _, err := lib.LibraryDownload(context.Background(), libraryDownloadRequest, output.ProgressBar()) if err != nil { feedback.Errorf("Error downloading %s: %v", library, err) os.Exit(errorcodes.ErrNetwork) diff --git a/cli/lib/examples.go b/cli/lib/examples.go index 60bd2f2047c..a1cebaea804 100644 --- a/cli/lib/examples.go +++ b/cli/lib/examples.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/fatih/color" "github.com/sirupsen/logrus" @@ -59,7 +59,7 @@ func runExamplesCommand(cmd *cobra.Command, args []string) { name = args[0] } - res, err := lib.LibraryList(context.Background(), &rpc.LibraryListReq{ + res, err := lib.LibraryList(context.Background(), &rpc.LibraryListRequest{ Instance: instance, All: true, Name: name, @@ -71,7 +71,7 @@ func runExamplesCommand(cmd *cobra.Command, args []string) { } found := []*libraryExamples{} - for _, lib := range res.GetInstalledLibrary() { + for _, lib := range res.GetInstalledLibraries() { found = append(found, &libraryExamples{ Library: lib.Library, Examples: lib.Library.Examples, @@ -112,7 +112,7 @@ func (ir libraryExamplesResult) String() string { name := lib.Library.Name if lib.Library.ContainerPlatform != "" { name += " (" + lib.Library.GetContainerPlatform() + ")" - } else if lib.Library.Location != rpc.LibraryLocation_user { + } else if lib.Library.Location != rpc.LibraryLocation_LIBRARY_LOCATION_USER { name += " (" + lib.Library.GetLocation().String() + ")" } r := fmt.Sprintf("Examples for library %s\n", color.GreenString("%s", name)) diff --git a/cli/lib/install.go b/cli/lib/install.go index 95274aa115f..48d938effd6 100644 --- a/cli/lib/install.go +++ b/cli/lib/install.go @@ -28,7 +28,7 @@ import ( "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/spf13/cobra" ) @@ -76,7 +76,7 @@ func runInstallCommand(cmd *cobra.Command, args []string) { if installFlags.zipPath { for _, path := range args { - err := lib.ZipLibraryInstall(context.Background(), &rpc.ZipLibraryInstallReq{ + err := lib.ZipLibraryInstall(context.Background(), &rpc.ZipLibraryInstallRequest{ Instance: instance, Path: path, Overwrite: true, @@ -99,7 +99,7 @@ func runInstallCommand(cmd *cobra.Command, args []string) { } url = wd.String() } - err := lib.GitLibraryInstall(context.Background(), &rpc.GitLibraryInstallReq{ + err := lib.GitLibraryInstall(context.Background(), &rpc.GitLibraryInstallRequest{ Instance: instance, Url: url, Overwrite: true, @@ -119,13 +119,13 @@ func runInstallCommand(cmd *cobra.Command, args []string) { } for _, libRef := range libRefs { - libraryInstallReq := &rpc.LibraryInstallReq{ + libraryInstallRequest := &rpc.LibraryInstallRequest{ Instance: instance, Name: libRef.Name, Version: libRef.Version, NoDeps: installFlags.noDeps, } - err := lib.LibraryInstall(context.Background(), libraryInstallReq, output.ProgressBar(), output.TaskProgress()) + err := lib.LibraryInstall(context.Background(), libraryInstallRequest, output.ProgressBar(), output.TaskProgress()) if err != nil { feedback.Errorf("Error installing %s: %v", libRef.Name, err) os.Exit(errorcodes.ErrGeneric) diff --git a/cli/lib/list.go b/cli/lib/list.go index 6225ad8b16c..3967ae4e8cd 100644 --- a/cli/lib/list.go +++ b/cli/lib/list.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -64,7 +64,7 @@ func runListCommand(cmd *cobra.Command, args []string) { name = args[0] } - res, err := lib.LibraryList(context.Background(), &rpc.LibraryListReq{ + res, err := lib.LibraryList(context.Background(), &rpc.LibraryListRequest{ Instance: instance, All: listFlags.all, Updatable: listFlags.updatable, @@ -78,9 +78,9 @@ func runListCommand(cmd *cobra.Command, args []string) { libs := []*rpc.InstalledLibrary{} if listFlags.fqbn == "" { - libs = res.GetInstalledLibrary() + libs = res.GetInstalledLibraries() } else { - for _, lib := range res.GetInstalledLibrary() { + for _, lib := range res.GetInstalledLibraries() { if lib.Library.CompatibleWith[listFlags.fqbn] { libs = append(libs, lib) } diff --git a/cli/lib/search.go b/cli/lib/search.go index a5a699e5962..621cafad1de 100644 --- a/cli/lib/search.go +++ b/cli/lib/search.go @@ -28,7 +28,7 @@ import ( "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" semver "go.bug.st/relaxed-semver" @@ -54,7 +54,7 @@ var searchFlags struct { func runSearchCommand(cmd *cobra.Command, args []string) { instance := instance.CreateInstanceIgnorePlatformIndexErrors() - err := commands.UpdateLibrariesIndex(context.Background(), &rpc.UpdateLibrariesIndexReq{ + err := commands.UpdateLibrariesIndex(context.Background(), &rpc.UpdateLibrariesIndexRequest{ Instance: instance, }, output.ProgressBar()) if err != nil { @@ -63,7 +63,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { } logrus.Info("Executing `arduino lib search`") - searchResp, err := lib.LibrarySearch(context.Background(), &rpc.LibrarySearchReq{ + searchResp, err := lib.LibrarySearch(context.Background(), &rpc.LibrarySearchRequest{ Instance: instance, Query: (strings.Join(args, " ")), }) @@ -83,7 +83,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { // output from this command requires special formatting, let's create a dedicated // feedback.Result implementation type result struct { - results *rpc.LibrarySearchResp + results *rpc.LibrarySearchResponse namesOnly bool } @@ -124,12 +124,12 @@ func (res result) String() string { var out strings.Builder - if res.results.GetStatus() == rpc.LibrarySearchStatus_failed { + if res.results.GetStatus() == rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_FAILED { out.WriteString("No libraries matching your search.\nDid you mean...\n") } for _, lib := range results { - if res.results.GetStatus() == rpc.LibrarySearchStatus_success { + if res.results.GetStatus() == rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS { out.WriteString(fmt.Sprintf("Name: \"%s\"\n", lib.Name)) if res.namesOnly { continue diff --git a/cli/lib/uninstall.go b/cli/lib/uninstall.go index 31437e02189..0c6ee93c1f1 100644 --- a/cli/lib/uninstall.go +++ b/cli/lib/uninstall.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands/lib" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -52,7 +52,7 @@ func runUninstallCommand(cmd *cobra.Command, args []string) { } for _, library := range refs { - err := lib.LibraryUninstall(context.Background(), &rpc.LibraryUninstallReq{ + err := lib.LibraryUninstall(context.Background(), &rpc.LibraryUninstallRequest{ Instance: instance, Name: library.Name, Version: library.Version, diff --git a/cli/lib/update_index.go b/cli/lib/update_index.go index e94d7ed2855..eefe5d5e287 100644 --- a/cli/lib/update_index.go +++ b/cli/lib/update_index.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/spf13/cobra" ) @@ -37,7 +37,7 @@ func initUpdateIndexCommand() *cobra.Command { Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { instance := instance.CreateInstanceIgnorePlatformIndexErrors() - err := commands.UpdateLibrariesIndex(context.Background(), &rpc.UpdateLibrariesIndexReq{ + err := commands.UpdateLibrariesIndex(context.Background(), &rpc.UpdateLibrariesIndexRequest{ Instance: instance, }, output.ProgressBar()) if err != nil { diff --git a/cli/outdated/outdated.go b/cli/outdated/outdated.go index 14f56f2b6cf..d07a4fa7753 100644 --- a/cli/outdated/outdated.go +++ b/cli/outdated/outdated.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -53,7 +53,7 @@ func runOutdatedCommand(cmd *cobra.Command, args []string) { logrus.Info("Executing `arduino outdated`") - outdatedResp, err := commands.Outdated(context.Background(), &rpc.OutdatedReq{ + outdatedResp, err := commands.Outdated(context.Background(), &rpc.OutdatedRequest{ Instance: inst, }) if err != nil { @@ -63,8 +63,8 @@ func runOutdatedCommand(cmd *cobra.Command, args []string) { // Prints outdated cores tab := table.New() tab.SetHeader("Core name", "Installed version", "New version") - if len(outdatedResp.OutdatedPlatform) > 0 { - for _, p := range outdatedResp.OutdatedPlatform { + if len(outdatedResp.OutdatedPlatforms) > 0 { + for _, p := range outdatedResp.OutdatedPlatforms { tab.AddRow(p.Name, p.Installed, p.Latest) } feedback.Print(tab.Render()) @@ -73,8 +73,8 @@ func runOutdatedCommand(cmd *cobra.Command, args []string) { // Prints outdated libraries tab = table.New() tab.SetHeader("Library name", "Installed version", "New version") - if len(outdatedResp.OutdatedLibrary) > 0 { - for _, l := range outdatedResp.OutdatedLibrary { + if len(outdatedResp.OutdatedLibraries) > 0 { + for _, l := range outdatedResp.OutdatedLibraries { tab.AddRow(l.Library.Name, l.Library.Version, l.Release.Version) } feedback.Print(tab.Render()) diff --git a/cli/output/rpc_progress.go b/cli/output/rpc_progress.go index b018c83c36d..07a92123a56 100644 --- a/cli/output/rpc_progress.go +++ b/cli/output/rpc_progress.go @@ -19,7 +19,7 @@ import ( "fmt" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/cmaglie/pb" ) diff --git a/cli/sketch/archive.go b/cli/sketch/archive.go index b44f9990ab8..940f0e6c0fc 100644 --- a/cli/sketch/archive.go +++ b/cli/sketch/archive.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli/errorcodes" "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/commands/sketch" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -74,7 +74,7 @@ func runArchiveCommand(cmd *cobra.Command, args []string) { } _, err := sketch.ArchiveSketch(context.Background(), - &rpc.ArchiveSketchReq{ + &rpc.ArchiveSketchRequest{ SketchPath: sketchPath, ArchivePath: archivePath, IncludeBuildDir: includeBuildDir, diff --git a/cli/update/update.go b/cli/update/update.go index f219e1575d5..e62ae711597 100644 --- a/cli/update/update.go +++ b/cli/update/update.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/arduino-cli/table" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -53,7 +53,7 @@ func runUpdateCommand(cmd *cobra.Command, args []string) { logrus.Info("Executing `arduino update`") - err := commands.UpdateCoreLibrariesIndex(context.Background(), &rpc.UpdateCoreLibrariesIndexReq{ + err := commands.UpdateCoreLibrariesIndex(context.Background(), &rpc.UpdateCoreLibrariesIndexRequest{ Instance: instance, }, output.ProgressBar()) if err != nil { @@ -62,7 +62,7 @@ func runUpdateCommand(cmd *cobra.Command, args []string) { } if updateFlags.showOutdated { - outdatedResp, err := commands.Outdated(context.Background(), &rpc.OutdatedReq{ + outdatedResp, err := commands.Outdated(context.Background(), &rpc.OutdatedRequest{ Instance: instance, }) if err != nil { @@ -72,8 +72,8 @@ func runUpdateCommand(cmd *cobra.Command, args []string) { // Prints outdated cores tab := table.New() tab.SetHeader("Core name", "Installed version", "New version") - if len(outdatedResp.OutdatedPlatform) > 0 { - for _, p := range outdatedResp.OutdatedPlatform { + if len(outdatedResp.OutdatedPlatforms) > 0 { + for _, p := range outdatedResp.OutdatedPlatforms { tab.AddRow(p.Name, p.Installed, p.Latest) } feedback.Print(tab.Render()) @@ -82,8 +82,8 @@ func runUpdateCommand(cmd *cobra.Command, args []string) { // Prints outdated libraries tab = table.New() tab.SetHeader("Library name", "Installed version", "New version") - if len(outdatedResp.OutdatedLibrary) > 0 { - for _, l := range outdatedResp.OutdatedLibrary { + if len(outdatedResp.OutdatedLibraries) > 0 { + for _, l := range outdatedResp.OutdatedLibraries { tab.AddRow(l.Library.Name, l.Library.Version, l.Release.Version) } feedback.Print(tab.Render()) diff --git a/cli/upgrade/upgrade.go b/cli/upgrade/upgrade.go index f7206ba9690..71ee63aa8c4 100644 --- a/cli/upgrade/upgrade.go +++ b/cli/upgrade/upgrade.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/cli/output" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -54,7 +54,7 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) { logrus.Info("Executing `arduino upgrade`") - err = commands.Upgrade(context.Background(), &rpc.UpgradeReq{ + err = commands.Upgrade(context.Background(), &rpc.UpgradeRequest{ Instance: inst, SkipPostInstall: core.DetectSkipPostInstallValue(), }, output.NewDownloadProgressBarCB(), output.TaskProgress()) diff --git a/cli/upload/upload.go b/cli/upload/upload.go index 4a42f290ca7..235e448a7b1 100644 --- a/cli/upload/upload.go +++ b/cli/upload/upload.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli/feedback" "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/commands/upload" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -91,7 +91,7 @@ func run(command *cobra.Command, args []string) { } } - if _, err := upload.Upload(context.Background(), &rpc.UploadReq{ + if _, err := upload.Upload(context.Background(), &rpc.UploadRequest{ Instance: instance, Fqbn: fqbn, SketchPath: sketchPath.String(), diff --git a/client_example/go.sum b/client_example/go.sum index 33bc6b179b7..de7dd74206d 100644 --- a/client_example/go.sum +++ b/client_example/go.sum @@ -116,6 +116,8 @@ github.com/leonelquinteros/gotext v1.4.0/go.mod h1:yZGXREmoGTtBvZHNcc+Yfug49G/2s github.com/lithammer/fuzzysearch v1.1.1/go.mod h1:H2bng+w5gsR7NlfIJM8ElGZI0sX6C/9uzGqicVXGU6c= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/marcinbor85/gohex v0.0.0-20210308104911-55fb1c624d84 h1:hyAgCuG5nqTMDeUD8KZs7HSPs6KprPgPP8QmGV8nyvk= +github.com/marcinbor85/gohex v0.0.0-20210308104911-55fb1c624d84/go.mod h1:Pb6XcsXyropB9LNHhnqaknG/vEwYztLkQzVCHv8sQ3M= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= diff --git a/client_example/main.go b/client_example/main.go index dd99be18c48..42450e760f5 100644 --- a/client_example/main.go +++ b/client_example/main.go @@ -28,9 +28,9 @@ import ( "strings" "time" - rpc "github.com/arduino/arduino-cli/rpc/commands" - dbg "github.com/arduino/arduino-cli/rpc/debug" - "github.com/arduino/arduino-cli/rpc/settings" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + dbg "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" + "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/settings/v1" "google.golang.org/grpc" ) @@ -61,9 +61,9 @@ func main() { defer os.RemoveAll(dataDir) // Create an instance of the gRPC clients. - client := rpc.NewArduinoCoreClient(conn) + client := rpc.NewArduinoCoreServiceClient(conn) - settingsClient := settings.NewSettingsClient(conn) + settingsClient := settings.NewSettingsServiceClient(conn) // Now we can call various methods of the API... @@ -235,8 +235,8 @@ func main() { callLibUninstall(client, instance) } -func callVersion(client rpc.ArduinoCoreClient) { - versionResp, err := client.Version(context.Background(), &rpc.VersionReq{}) +func callVersion(client rpc.ArduinoCoreServiceClient) { + versionResp, err := client.Version(context.Background(), &rpc.VersionRequest{}) if err != nil { log.Fatalf("Error getting version: %s", err) } @@ -244,9 +244,9 @@ func callVersion(client rpc.ArduinoCoreClient) { log.Printf("arduino-cli version: %v", versionResp.GetVersion()) } -func callSetValue(client settings.SettingsClient) { +func callSetValue(client settings.SettingsServiceClient) { _, err := client.SetValue(context.Background(), - &settings.Value{ + &settings.SetValueRequest{ Key: "directories", JsonData: `{"data": "` + dataDir + `", "downloads": "` + path.Join(dataDir, "staging") + `", "user": "` + path.Join(dataDir, "sketchbook") + `"}`, }) @@ -257,9 +257,9 @@ func callSetValue(client settings.SettingsClient) { } } -func callSetProxy(client settings.SettingsClient) { +func callSetProxy(client settings.SettingsServiceClient) { _, err := client.SetValue(context.Background(), - &settings.Value{ + &settings.SetValueRequest{ Key: "network.proxy", JsonData: `"http://localhost:3128"`, }) @@ -269,9 +269,9 @@ func callSetProxy(client settings.SettingsClient) { } } -func callUnsetProxy(client settings.SettingsClient) { +func callUnsetProxy(client settings.SettingsServiceClient) { _, err := client.SetValue(context.Background(), - &settings.Value{ + &settings.SetValueRequest{ Key: "network.proxy", JsonData: `""`, }) @@ -281,9 +281,9 @@ func callUnsetProxy(client settings.SettingsClient) { } } -func callMerge(client settings.SettingsClient, jsonData string) { +func callMerge(client settings.SettingsServiceClient, jsonData string) { _, err := client.Merge(context.Background(), - &settings.RawData{ + &settings.MergeRequest{ JsonData: jsonData, }) @@ -292,7 +292,7 @@ func callMerge(client settings.SettingsClient, jsonData string) { } } -func callGetValue(client settings.SettingsClient) { +func callGetValue(client settings.SettingsServiceClient) { getValueResp, err := client.GetValue(context.Background(), &settings.GetValueRequest{ Key: "foo", @@ -305,7 +305,7 @@ func callGetValue(client settings.SettingsClient) { log.Printf("Value: %s: %s", getValueResp.GetKey(), getValueResp.GetJsonData()) } -func callGetAll(client settings.SettingsClient) { +func callGetAll(client settings.SettingsServiceClient) { getAllResp, err := client.GetAll(context.Background(), &settings.GetAllRequest{}) if err != nil { @@ -315,7 +315,7 @@ func callGetAll(client settings.SettingsClient) { log.Printf("Settings: %s", getAllResp.GetJsonData()) } -func callWrite(client settings.SettingsClient) { +func callWrite(client settings.SettingsServiceClient) { _, err := client.Write(context.Background(), &settings.WriteRequest{ FilePath: path.Join(dataDir, "written-settings.yml"), @@ -326,10 +326,10 @@ func callWrite(client settings.SettingsClient) { } } -func initInstance(client rpc.ArduinoCoreClient) *rpc.Instance { +func initInstance(client rpc.ArduinoCoreServiceClient) *rpc.Instance { // The configuration for this example client only contains the path to // the data folder. - initRespStream, err := client.Init(context.Background(), &rpc.InitReq{}) + initRespStream, err := client.Init(context.Background(), &rpc.InitRequest{}) if err != nil { log.Fatalf("Error creating server instance: %s", err) @@ -369,8 +369,8 @@ func initInstance(client rpc.ArduinoCoreClient) *rpc.Instance { return instance } -func callUpdateIndex(client rpc.ArduinoCoreClient, instance *rpc.Instance) { - uiRespStream, err := client.UpdateIndex(context.Background(), &rpc.UpdateIndexReq{ +func callUpdateIndex(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { + uiRespStream, err := client.UpdateIndex(context.Background(), &rpc.UpdateIndexRequest{ Instance: instance, }) if err != nil { @@ -399,8 +399,8 @@ func callUpdateIndex(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callPlatformSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { - searchResp, err := client.PlatformSearch(context.Background(), &rpc.PlatformSearchReq{ +func callPlatformSearch(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { + searchResp, err := client.PlatformSearch(context.Background(), &rpc.PlatformSearchRequest{ Instance: instance, SearchArgs: "samd", }) @@ -413,13 +413,13 @@ func callPlatformSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { for _, plat := range platforms { // We only print ID and version of the platforms found but you can look // at the definition for the rpc.Platform struct for more fields. - log.Printf("Search result: %+v - %+v", plat.GetID(), plat.GetLatest()) + log.Printf("Search result: %+v - %+v", plat.GetId(), plat.GetLatest()) } } -func callPlatformInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callPlatformInstall(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { installRespStream, err := client.PlatformInstall(context.Background(), - &rpc.PlatformInstallReq{ + &rpc.PlatformInstallRequest{ Instance: instance, PlatformPackage: "arduino", Architecture: "samd", @@ -457,24 +457,24 @@ func callPlatformInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callPlatformList(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callPlatformList(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { listResp, err := client.PlatformList(context.Background(), - &rpc.PlatformListReq{Instance: instance}) + &rpc.PlatformListRequest{Instance: instance}) if err != nil { log.Fatalf("List error: %s", err) } - for _, plat := range listResp.GetInstalledPlatform() { + for _, plat := range listResp.GetInstalledPlatforms() { // We only print ID and version of the installed platforms but you can look // at the definition for the rpc.Platform struct for more fields. - log.Printf("Installed platform: %s - %s", plat.GetID(), plat.GetInstalled()) + log.Printf("Installed platform: %s - %s", plat.GetId(), plat.GetInstalled()) } } -func callPlatformUpgrade(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callPlatformUpgrade(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { upgradeRespStream, err := client.PlatformUpgrade(context.Background(), - &rpc.PlatformUpgradeReq{ + &rpc.PlatformUpgradeRequest{ Instance: instance, PlatformPackage: "arduino", Architecture: "samd", @@ -511,9 +511,9 @@ func callPlatformUpgrade(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callBoardsDetails(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callBoardsDetails(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { details, err := client.BoardDetails(context.Background(), - &rpc.BoardDetailsReq{ + &rpc.BoardDetailsRequest{ Instance: instance, Fqbn: "arduino:samd:mkr1000", }) @@ -527,9 +527,9 @@ func callBoardsDetails(client rpc.ArduinoCoreClient, instance *rpc.Instance) { log.Printf("Config options: %s", details.GetConfigOptions()) } -func callBoardSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callBoardSearch(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { res, err := client.BoardSearch(context.Background(), - &rpc.BoardSearchReq{ + &rpc.BoardSearchRequest{ Instance: instance, SearchArgs: "", }) @@ -539,14 +539,14 @@ func callBoardSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } for _, board := range res.Boards { - log.Printf("Board Name: %s, Board Platform: %s\n", board.Name, board.Platform.ID) + log.Printf("Board Name: %s, Board Platform: %s\n", board.Name, board.Platform.Id) } } -func callBoardAttach(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callBoardAttach(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { currDir, _ := os.Getwd() boardattachresp, err := client.BoardAttach(context.Background(), - &rpc.BoardAttachReq{ + &rpc.BoardAttachRequest{ Instance: instance, BoardUri: "/dev/ttyACM0", SketchPath: filepath.Join(currDir, "hello"), @@ -578,10 +578,10 @@ func callBoardAttach(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callCompile(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callCompile(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { currDir, _ := os.Getwd() compRespStream, err := client.Compile(context.Background(), - &rpc.CompileReq{ + &rpc.CompileRequest{ Instance: instance, Fqbn: "arduino:samd:mkr1000", SketchPath: filepath.Join(currDir, "hello"), @@ -617,10 +617,10 @@ func callCompile(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callUpload(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callUpload(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { currDir, _ := os.Getwd() uplRespStream, err := client.Upload(context.Background(), - &rpc.UploadReq{ + &rpc.UploadRequest{ Instance: instance, Fqbn: "arduino:samd:mkr1000", SketchPath: filepath.Join(currDir, "hello"), @@ -654,9 +654,9 @@ func callUpload(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callListAll(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callListAll(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { boardListAllResp, err := client.BoardListAll(context.Background(), - &rpc.BoardListAllReq{ + &rpc.BoardListAllRequest{ Instance: instance, SearchArgs: []string{"mkr"}, }) @@ -666,13 +666,13 @@ func callListAll(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } for _, board := range boardListAllResp.GetBoards() { - log.Printf("%s: %s", board.GetName(), board.GetFQBN()) + log.Printf("%s: %s", board.GetName(), board.GetFqbn()) } } -func callBoardList(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callBoardList(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { boardListResp, err := client.BoardList(context.Background(), - &rpc.BoardListReq{Instance: instance}) + &rpc.BoardListRequest{Instance: instance}) if err != nil { log.Fatalf("Board list error: %s\n", err) @@ -683,14 +683,14 @@ func callBoardList(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callBoardListWatch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callBoardListWatch(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { watchClient, err := client.BoardListWatch(context.Background()) if err != nil { log.Fatalf("Board list watch error: %s\n", err) } // Start the watcher - watchClient.Send(&rpc.BoardListWatchReq{ + watchClient.Send(&rpc.BoardListWatchRequest{ Instance: instance, }) @@ -713,14 +713,14 @@ func callBoardListWatch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { // Watch for 10 seconds and then interrupts timer := time.NewTicker(time.Duration(10 * time.Second)) <-timer.C - watchClient.Send(&rpc.BoardListWatchReq{ + watchClient.Send(&rpc.BoardListWatchRequest{ Interrupt: true, }) } -func callPlatformUnInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callPlatformUnInstall(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { uninstallRespStream, err := client.PlatformUninstall(context.Background(), - &rpc.PlatformUninstallReq{ + &rpc.PlatformUninstallRequest{ Instance: instance, PlatformPackage: "arduino", Architecture: "samd", @@ -748,9 +748,9 @@ func callPlatformUnInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) } } -func callUpdateLibraryIndex(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callUpdateLibraryIndex(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libIdxUpdateStream, err := client.UpdateLibrariesIndex(context.Background(), - &rpc.UpdateLibrariesIndexReq{Instance: instance}) + &rpc.UpdateLibrariesIndexRequest{Instance: instance}) if err != nil { log.Fatalf("Error updating libraries index: %s\n", err) @@ -774,9 +774,9 @@ func callUpdateLibraryIndex(client rpc.ArduinoCoreClient, instance *rpc.Instance } } -func callLibDownload(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibDownload(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { downloadRespStream, err := client.LibraryDownload(context.Background(), - &rpc.LibraryDownloadReq{ + &rpc.LibraryDownloadRequest{ Instance: instance, Name: "WiFi101", Version: "0.15.2", @@ -804,9 +804,9 @@ func callLibDownload(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callLibInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance, version string) { +func callLibInstall(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance, version string) { installRespStream, err := client.LibraryInstall(context.Background(), - &rpc.LibraryInstallReq{ + &rpc.LibraryInstallRequest{ Instance: instance, Name: "WiFi101", Version: version, @@ -836,9 +836,9 @@ func callLibInstall(client rpc.ArduinoCoreClient, instance *rpc.Instance, versio } } -func callLibInstallNoDeps(client rpc.ArduinoCoreClient, instance *rpc.Instance, version string) { +func callLibInstallNoDeps(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance, version string) { installRespStream, err := client.LibraryInstall(context.Background(), - &rpc.LibraryInstallReq{ + &rpc.LibraryInstallRequest{ Instance: instance, Name: "Arduino_MKRIoTCarrier", Version: version, @@ -868,9 +868,9 @@ func callLibInstallNoDeps(client rpc.ArduinoCoreClient, instance *rpc.Instance, } } } -func callLibUpgradeAll(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibUpgradeAll(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libUpgradeAllRespStream, err := client.LibraryUpgradeAll(context.Background(), - &rpc.LibraryUpgradeAllReq{ + &rpc.LibraryUpgradeAllRequest{ Instance: instance, }) @@ -898,9 +898,9 @@ func callLibUpgradeAll(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callLibSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibSearch(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libSearchResp, err := client.LibrarySearch(context.Background(), - &rpc.LibrarySearchReq{ + &rpc.LibrarySearchRequest{ Instance: instance, Query: "audio", }) @@ -914,9 +914,9 @@ func callLibSearch(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callLibraryResolveDependencies(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibraryResolveDependencies(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libraryResolveDependenciesResp, err := client.LibraryResolveDependencies(context.Background(), - &rpc.LibraryResolveDependenciesReq{ + &rpc.LibraryResolveDependenciesRequest{ Instance: instance, Name: "ArduinoIoTCloud", }) @@ -934,9 +934,9 @@ func callLibraryResolveDependencies(client rpc.ArduinoCoreClient, instance *rpc. } } -func callLibList(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibList(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libLstResp, err := client.LibraryList(context.Background(), - &rpc.LibraryListReq{ + &rpc.LibraryListRequest{ Instance: instance, All: false, Updatable: false, @@ -946,14 +946,14 @@ func callLibList(client rpc.ArduinoCoreClient, instance *rpc.Instance) { log.Fatalf("Error List Library: %s", err) } - for _, res := range libLstResp.GetInstalledLibrary() { + for _, res := range libLstResp.GetInstalledLibraries() { log.Printf("%s - %s", res.GetLibrary().GetName(), res.GetLibrary().GetVersion()) } } -func callLibUninstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) { +func callLibUninstall(client rpc.ArduinoCoreServiceClient, instance *rpc.Instance) { libUninstallRespStream, err := client.LibraryUninstall(context.Background(), - &rpc.LibraryUninstallReq{ + &rpc.LibraryUninstallRequest{ Instance: instance, Name: "WiFi101", }) @@ -979,11 +979,11 @@ func callLibUninstall(client rpc.ArduinoCoreClient, instance *rpc.Instance) { } } -func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc.Instance) { +func callDebugger(debugStreamingOpenClient dbg.DebugService_DebugClient, instance *rpc.Instance) { currDir, _ := os.Getwd() log.Printf("Send debug request") - err := debugStreamingOpenClient.Send(&dbg.DebugReq{ - DebugReq: &dbg.DebugConfigReq{ + err := debugStreamingOpenClient.Send(&dbg.DebugRequest{ + DebugRequest: &dbg.DebugConfigRequest{ Instance: &rpc.Instance{Id: instance.GetId()}, Fqbn: "arduino:samd:mkr1000", SketchPath: filepath.Join(currDir, "hello"), @@ -996,7 +996,7 @@ func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc. waitForPrompt(debugStreamingOpenClient, "(gdb)") // Wait for gdb to init and show the prompt log.Printf("Send 'info registers' rcommand") - err = debugStreamingOpenClient.Send(&dbg.DebugReq{Data: []byte("info registers\n")}) + err = debugStreamingOpenClient.Send(&dbg.DebugRequest{Data: []byte("info registers\n")}) if err != nil { log.Fatalf("Send error: %s\n", err) } @@ -1006,7 +1006,7 @@ func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc. // Send quit command to gdb log.Printf("Send 'quit' command") - err = debugStreamingOpenClient.Send(&dbg.DebugReq{Data: []byte("quit\n")}) + err = debugStreamingOpenClient.Send(&dbg.DebugRequest{Data: []byte("quit\n")}) if err != nil { log.Fatalf("Send error: %s\n", err) } @@ -1019,7 +1019,7 @@ func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc. } } -func waitForPrompt(debugStreamingOpenClient dbg.Debug_DebugClient, prompt string) { +func waitForPrompt(debugStreamingOpenClient dbg.DebugService_DebugClient, prompt string) { var buffer bytes.Buffer for { compResp, err := debugStreamingOpenClient.Recv() @@ -1040,9 +1040,9 @@ func waitForPrompt(debugStreamingOpenClient dbg.Debug_DebugClient, prompt string } } -func callLoadSketch(client rpc.ArduinoCoreClient) { +func callLoadSketch(client rpc.ArduinoCoreServiceClient) { currDir, _ := os.Getwd() - sketch, err := client.LoadSketch(context.Background(), &rpc.LoadSketchReq{ + sketch, err := client.LoadSketch(context.Background(), &rpc.LoadSketchRequest{ SketchPath: filepath.Join(currDir, "hello"), }) if err != nil { diff --git a/commands/board/attach.go b/commands/board/attach.go index 5dc5bb7427f..f5bd4017eaa 100644 --- a/commands/board/attach.go +++ b/commands/board/attach.go @@ -27,13 +27,13 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/arduino/sketches" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" - "github.com/arduino/board-discovery" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + discovery "github.com/arduino/board-discovery" "github.com/arduino/go-paths-helper" ) // Attach FIXMEDOC -func Attach(ctx context.Context, req *rpc.BoardAttachReq, taskCB commands.TaskProgressCB) (*rpc.BoardAttachResp, error) { +func Attach(ctx context.Context, req *rpc.BoardAttachRequest, taskCB commands.TaskProgressCB) (*rpc.BoardAttachResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -104,7 +104,7 @@ func Attach(ctx context.Context, req *rpc.BoardAttachReq, taskCB commands.TaskPr return nil, fmt.Errorf("cannot export sketch metadata: %s", err) } taskCB(&rpc.TaskProgress{Name: "Selected fqbn: " + sketch.Metadata.CPU.Fqbn, Completed: true}) - return &rpc.BoardAttachResp{}, nil + return &rpc.BoardAttachResponse{}, nil } // FIXME: Those should probably go in a "BoardManager" pkg or something diff --git a/commands/board/details.go b/commands/board/details.go index 2e0314cfc59..a42c821ea90 100644 --- a/commands/board/details.go +++ b/commands/board/details.go @@ -22,12 +22,12 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // Details returns all details for a board including tools and HW identifiers. // This command basically gather al the information and translates it into the required grpc struct properties -func Details(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsResp, error) { +func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetailsResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -44,7 +44,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsRe return nil, fmt.Errorf("loading board data: %s", err) } - details := &rpc.BoardDetailsResp{} + details := &rpc.BoardDetailsResponse{} details.Name = board.Name() details.Fqbn = board.FQBN() details.PropertiesId = board.BoardID @@ -61,7 +61,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsRe details.Package = &rpc.Package{ Name: boardPackage.Name, Maintainer: boardPackage.Maintainer, - WebsiteURL: boardPackage.WebsiteURL, + WebsiteUrl: boardPackage.WebsiteURL, Email: boardPackage.Email, Help: &rpc.Help{Online: boardPackage.Help.Online}, Url: boardPackage.URL, @@ -75,18 +75,18 @@ func Details(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsRe if boardPlatform.Resource != nil { details.Platform.Url = boardPlatform.Resource.URL - details.Platform.ArchiveFileName = boardPlatform.Resource.ArchiveFileName + details.Platform.ArchiveFilename = boardPlatform.Resource.ArchiveFileName details.Platform.Checksum = boardPlatform.Resource.Checksum details.Platform.Size = boardPlatform.Resource.Size } - details.IdentificationPref = []*rpc.IdentificationPref{} + details.IdentificationPrefs = []*rpc.IdentificationPref{} vids := board.Properties.SubTree("vid") pids := board.Properties.SubTree("pid") for id, vid := range vids.AsMap() { if pid, ok := pids.GetOk(id); ok { - idPref := rpc.IdentificationPref{UsbID: &rpc.USBID{VID: vid, PID: pid}} - details.IdentificationPref = append(details.IdentificationPref, &idPref) + idPref := rpc.IdentificationPref{UsbId: &rpc.USBID{Vid: vid, Pid: pid}} + details.IdentificationPrefs = append(details.IdentificationPrefs, &idPref) } } @@ -124,7 +124,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsRe Checksum: f.Resource.Checksum, Size: f.Resource.Size, Host: f.OS, - ArchiveFileName: f.Resource.ArchiveFileName, + ArchiveFilename: f.Resource.ArchiveFileName, Url: f.Resource.URL, }) } diff --git a/commands/board/list.go b/commands/board/list.go index 9495bdecb6b..7eaf45179cc 100644 --- a/commands/board/list.go +++ b/commands/board/list.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/httpclient" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/pkg/errors" "github.com/segmentio/stats/v4" "github.com/sirupsen/logrus" @@ -88,9 +88,9 @@ func apiByVidPid(vid, pid string) ([]*rpc.BoardListItem, error) { retVal = append(retVal, &rpc.BoardListItem{ Name: name, - FQBN: fqbn, - VID: vid, - PID: pid, + Fqbn: fqbn, + Vid: vid, + Pid: pid, }) } else { return nil, errors.Wrap(err, "error querying Arduino Cloud Api") @@ -119,9 +119,9 @@ func identify(pm *packagemanager.PackageManager, port *commands.BoardPort) ([]*r for _, board := range pm.IdentifyBoard(port.IdentificationPrefs) { boards = append(boards, &rpc.BoardListItem{ Name: board.Name(), - FQBN: board.FQBN(), - VID: port.IdentificationPrefs.Get("vid"), - PID: port.IdentificationPrefs.Get("pid"), + Fqbn: board.FQBN(), + Vid: port.IdentificationPrefs.Get("vid"), + Pid: port.IdentificationPrefs.Get("pid"), }) } @@ -195,14 +195,14 @@ func List(instanceID int32) (r []*rpc.DetectedPort, e error) { // Watch returns a channel that receives boards connection and disconnection events. // The discovery process can be interrupted by sending a message to the interrupt channel. -func Watch(instanceID int32, interrupt <-chan bool) (<-chan *rpc.BoardListWatchResp, error) { +func Watch(instanceID int32, interrupt <-chan bool) (<-chan *rpc.BoardListWatchResponse, error) { pm := commands.GetPackageManager(instanceID) eventsChan, err := commands.WatchListBoards(pm) if err != nil { return nil, err } - outChan := make(chan *rpc.BoardListWatchResp) + outChan := make(chan *rpc.BoardListWatchResponse) go func() { for { select { @@ -228,7 +228,7 @@ func Watch(instanceID int32, interrupt <-chan bool) (<-chan *rpc.BoardListWatchR serialNumber = props.Get("serialNumber") } - outChan <- &rpc.BoardListWatchResp{ + outChan <- &rpc.BoardListWatchResponse{ EventType: event.Type, Port: &rpc.DetectedPort{ Address: event.Port.Address, diff --git a/commands/board/list_test.go b/commands/board/list_test.go index efa706d32d0..140cb84bd2e 100644 --- a/commands/board/list_test.go +++ b/commands/board/list_test.go @@ -52,9 +52,9 @@ func TestGetByVidPid(t *testing.T) { require.Nil(t, err) require.Len(t, res, 1) require.Equal(t, "Arduino/Genuino MKR1000", res[0].Name) - require.Equal(t, "arduino:samd:mkr1000", res[0].FQBN) - require.Equal(t, "0xf420", res[0].VID) - require.Equal(t, "0XF069", res[0].PID) + require.Equal(t, "arduino:samd:mkr1000", res[0].Fqbn) + require.Equal(t, "0xf420", res[0].Vid) + require.Equal(t, "0XF069", res[0].Pid) // wrong vid (too long), wrong pid (not an hex value) res, err = apiByVidPid("0xfffff", "0xDEFG") diff --git a/commands/board/listall.go b/commands/board/listall.go index ecf25e6e8d7..e2766854564 100644 --- a/commands/board/listall.go +++ b/commands/board/listall.go @@ -22,7 +22,7 @@ import ( "github.com/arduino/arduino-cli/arduino/utils" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // maximumSearchDistance is the maximum Levenshtein distance accepted when using fuzzy search. @@ -30,7 +30,7 @@ import ( const maximumSearchDistance = 20 // ListAll FIXMEDOC -func ListAll(ctx context.Context, req *rpc.BoardListAllReq) (*rpc.BoardListAllResp, error) { +func ListAll(ctx context.Context, req *rpc.BoardListAllRequest) (*rpc.BoardListAllResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -58,7 +58,7 @@ func ListAll(ctx context.Context, req *rpc.BoardListAllReq) (*rpc.BoardListAllRe return false, nil } - list := &rpc.BoardListAllResp{Boards: []*rpc.BoardListItem{}} + list := &rpc.BoardListAllResponse{Boards: []*rpc.BoardListItem{}} for _, targetPackage := range pm.Packages { for _, platform := range targetPackage.Platforms { installedPlatformRelease := pm.GetInstalledPlatformRelease(platform) @@ -75,7 +75,7 @@ func ListAll(ctx context.Context, req *rpc.BoardListAllReq) (*rpc.BoardListAllRe } rpcPlatform := &rpc.Platform{ - ID: platform.String(), + Id: platform.String(), Installed: installedVersion, Latest: latestVersion, Name: platform.Name, @@ -108,7 +108,7 @@ func ListAll(ctx context.Context, req *rpc.BoardListAllReq) (*rpc.BoardListAllRe list.Boards = append(list.Boards, &rpc.BoardListItem{ Name: board.Name(), - FQBN: board.FQBN(), + Fqbn: board.FQBN(), IsHidden: board.IsHidden(), Platform: rpcPlatform, }) diff --git a/commands/board/search.go b/commands/board/search.go index c90d3e36ab7..0750d3e0cc9 100644 --- a/commands/board/search.go +++ b/commands/board/search.go @@ -23,14 +23,14 @@ import ( "github.com/arduino/arduino-cli/arduino/utils" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // Search returns all boards that match the search arg. // Boards are searched in all platforms, including those in the index that are not yet // installed. Note that platforms that are not installed don't include boards' FQBNs. // If no search argument is used all boards are returned. -func Search(ctx context.Context, req *rpc.BoardSearchReq) (*rpc.BoardSearchResp, error) { +func Search(ctx context.Context, req *rpc.BoardSearchRequest) (*rpc.BoardSearchResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -55,7 +55,7 @@ func Search(ctx context.Context, req *rpc.BoardSearchReq) (*rpc.BoardSearchResp, return false, nil } - res := &rpc.BoardSearchResp{Boards: []*rpc.BoardListItem{}} + res := &rpc.BoardSearchResponse{Boards: []*rpc.BoardListItem{}} for _, targetPackage := range pm.Packages { for _, platform := range targetPackage.Platforms { latestPlatformRelease := platform.GetLatestRelease() @@ -68,7 +68,7 @@ func Search(ctx context.Context, req *rpc.BoardSearchReq) (*rpc.BoardSearchResp, } rpcPlatform := &rpc.Platform{ - ID: platform.String(), + Id: platform.String(), Installed: installedVersion, Latest: latestPlatformRelease.Version.String(), Name: platform.Name, @@ -98,7 +98,7 @@ func Search(ctx context.Context, req *rpc.BoardSearchReq) (*rpc.BoardSearchResp, res.Boards = append(res.Boards, &rpc.BoardListItem{ Name: board.Name(), - FQBN: board.FQBN(), + Fqbn: board.FQBN(), IsHidden: board.IsHidden(), Platform: rpcPlatform, }) diff --git a/commands/bundled_tools.go b/commands/bundled_tools.go index b8ba834b8a0..66cc66c61c3 100644 --- a/commands/bundled_tools.go +++ b/commands/bundled_tools.go @@ -20,7 +20,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // DownloadToolRelease downloads a ToolRelease diff --git a/commands/compile/compile.go b/commands/compile/compile.go index 09704be97d6..03bba9a4926 100644 --- a/commands/compile/compile.go +++ b/commands/compile/compile.go @@ -34,7 +34,7 @@ import ( "github.com/arduino/arduino-cli/legacy/builder/i18n" "github.com/arduino/arduino-cli/legacy/builder/types" "github.com/arduino/arduino-cli/metrics" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" "github.com/pkg/errors" @@ -43,7 +43,7 @@ import ( ) // Compile FIXMEDOC -func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.Writer, debug bool) (r *rpc.CompileResp, e error) { +func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream io.Writer, debug bool) (r *rpc.CompileResponse, e error) { // There is a binding between the export binaries setting and the CLI flag to explicitly set it, // since we want this binding to work also for the gRPC interface we must read it here in this @@ -207,7 +207,7 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W builderCtx.SourceOverride = req.GetSourceOverride() - r = &rpc.CompileResp{} + r = &rpc.CompileResponse{} defer func() { if p := builderCtx.BuildPath; p != nil { r.BuildPath = p.String() @@ -281,7 +281,7 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W logrus.Tracef("Compile %s for %s successful", sketch.Name, fqbnIn) - return &rpc.CompileResp{ + return &rpc.CompileResponse{ UsedLibraries: importedLibs, ExecutableSectionsSize: builderCtx.ExecutableSectionsSize.ToRPCExecutableSectionSizeArray(), }, nil diff --git a/commands/core.go b/commands/core.go index 8003ebd1978..558ddf7ca71 100644 --- a/commands/core.go +++ b/commands/core.go @@ -17,7 +17,7 @@ package commands import ( "github.com/arduino/arduino-cli/arduino/cores" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // PlatformReleaseToRPC converts our internal structure to the RPC structure. @@ -51,7 +51,7 @@ func PlatformReleaseToRPC(platformRelease *cores.PlatformRelease) *rpc.Platform } result := &rpc.Platform{ - ID: platformRelease.Platform.String(), + Id: platformRelease.Platform.String(), Name: platformRelease.Platform.Name, Maintainer: platformRelease.Platform.Package.Maintainer, Website: platformRelease.Platform.Package.WebsiteURL, diff --git a/commands/core/download.go b/commands/core/download.go index 2de0232d008..ffa062e2112 100644 --- a/commands/core/download.go +++ b/commands/core/download.go @@ -23,11 +23,11 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // PlatformDownload FIXMEDOC -func PlatformDownload(ctx context.Context, req *rpc.PlatformDownloadReq, downloadCB commands.DownloadProgressCB) (*rpc.PlatformDownloadResp, error) { +func PlatformDownload(ctx context.Context, req *rpc.PlatformDownloadRequest, downloadCB commands.DownloadProgressCB) (*rpc.PlatformDownloadResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -59,7 +59,7 @@ func PlatformDownload(ctx context.Context, req *rpc.PlatformDownloadReq, downloa } } - return &rpc.PlatformDownloadResp{}, nil + return &rpc.PlatformDownloadResponse{}, nil } func downloadPlatform(pm *packagemanager.PackageManager, platformRelease *cores.PlatformRelease, downloadCB commands.DownloadProgressCB) error { diff --git a/commands/core/install.go b/commands/core/install.go index 47e08f1650b..82a3955b51a 100644 --- a/commands/core/install.go +++ b/commands/core/install.go @@ -22,13 +22,13 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/pkg/errors" ) // PlatformInstall FIXMEDOC -func PlatformInstall(ctx context.Context, req *rpc.PlatformInstallReq, - downloadCB commands.DownloadProgressCB, taskCB commands.TaskProgressCB) (*rpc.PlatformInstallResp, error) { +func PlatformInstall(ctx context.Context, req *rpc.PlatformInstallRequest, + downloadCB commands.DownloadProgressCB, taskCB commands.TaskProgressCB) (*rpc.PlatformInstallResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { @@ -59,7 +59,7 @@ func PlatformInstall(ctx context.Context, req *rpc.PlatformInstallReq, return nil, err } - return &rpc.PlatformInstallResp{}, nil + return &rpc.PlatformInstallResponse{}, nil } func installPlatform(pm *packagemanager.PackageManager, diff --git a/commands/core/list.go b/commands/core/list.go index 13f9c5eeaa2..d4eb5515cde 100644 --- a/commands/core/list.go +++ b/commands/core/list.go @@ -17,13 +17,13 @@ package core import ( "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/pkg/errors" ) // GetPlatforms returns a list of installed platforms, optionally filtered by // those requiring an update. -func GetPlatforms(req *rpc.PlatformListReq) ([]*rpc.Platform, error) { +func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) { instanceID := req.Instance.Id i := commands.GetInstance(instanceID) if i == nil { diff --git a/commands/core/search.go b/commands/core/search.go index b12c10d3b05..83f76c53597 100644 --- a/commands/core/search.go +++ b/commands/core/search.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/utils" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // maximumSearchDistance is the maximum Levenshtein distance accepted when using fuzzy search. @@ -31,7 +31,7 @@ import ( const maximumSearchDistance = 20 // PlatformSearch FIXMEDOC -func PlatformSearch(req *rpc.PlatformSearchReq) (*rpc.PlatformSearchResp, error) { +func PlatformSearch(req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse, error) { searchArgs := strings.Trim(req.SearchArgs, " ") allVersions := req.AllVersions pm := commands.GetPackageManager(req.Instance.Id) @@ -113,5 +113,5 @@ func PlatformSearch(req *rpc.PlatformSearchReq) (*rpc.PlatformSearchResp, error) for i, platformRelease := range res { out[i] = commands.PlatformReleaseToRPC(platformRelease) } - return &rpc.PlatformSearchResp{SearchOutput: out}, nil + return &rpc.PlatformSearchResponse{SearchOutput: out}, nil } diff --git a/commands/core/search_test.go b/commands/core/search_test.go index e8f025e4e9e..40dc405e47c 100644 --- a/commands/core/search_test.go +++ b/commands/core/search_test.go @@ -21,8 +21,8 @@ import ( "github.com/arduino/arduino-cli/cli/instance" "github.com/arduino/arduino-cli/configuration" - "github.com/arduino/arduino-cli/rpc/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/arduino/go-paths-helper" "github.com/stretchr/testify/require" ) @@ -45,7 +45,7 @@ func TestPlatformSearch(t *testing.T) { require.Nil(t, err) require.NotNil(t, inst) - res, err := PlatformSearch(&rpc.PlatformSearchReq{ + res, err := PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "retrokit", AllVersions: true, @@ -55,7 +55,7 @@ func TestPlatformSearch(t *testing.T) { require.Len(t, res.SearchOutput, 2) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.5", Name: "RK002", @@ -65,7 +65,7 @@ func TestPlatformSearch(t *testing.T) { Boards: []*commands.Board{{Name: "RK002"}}, }) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.6", Name: "RK002", @@ -75,7 +75,7 @@ func TestPlatformSearch(t *testing.T) { Boards: []*commands.Board{{Name: "RK002"}}, }) - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "retrokit", AllVersions: false, @@ -84,7 +84,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 1) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.6", Name: "RK002", @@ -95,7 +95,7 @@ func TestPlatformSearch(t *testing.T) { }) // Search the Package Maintainer - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "Retrokits (www.retrokits.com)", AllVersions: true, @@ -104,7 +104,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 2) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.5", Name: "RK002", @@ -114,7 +114,7 @@ func TestPlatformSearch(t *testing.T) { Boards: []*commands.Board{{Name: "RK002"}}, }) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.6", Name: "RK002", @@ -125,7 +125,7 @@ func TestPlatformSearch(t *testing.T) { }) // Search using the Package name - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "Retrokits-RK002", AllVersions: true, @@ -134,7 +134,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 2) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.5", Name: "RK002", @@ -144,7 +144,7 @@ func TestPlatformSearch(t *testing.T) { Boards: []*commands.Board{{Name: "RK002"}}, }) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.6", Name: "RK002", @@ -155,7 +155,7 @@ func TestPlatformSearch(t *testing.T) { }) // Search using the Platform name - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "rk002", AllVersions: true, @@ -164,7 +164,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 2) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.5", Name: "RK002", @@ -174,7 +174,7 @@ func TestPlatformSearch(t *testing.T) { Boards: []*commands.Board{{Name: "RK002"}}, }) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "Retrokits-RK002:arm", + Id: "Retrokits-RK002:arm", Installed: "", Latest: "1.0.6", Name: "RK002", @@ -185,7 +185,7 @@ func TestPlatformSearch(t *testing.T) { }) // Search using a board name - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "Yún", AllVersions: true, @@ -194,7 +194,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 1) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "arduino:avr", + Id: "arduino:avr", Installed: "", Latest: "1.8.3", Name: "Arduino AVR Boards", @@ -231,7 +231,7 @@ func TestPlatformSearch(t *testing.T) { }, }) - res, err = PlatformSearch(&rpc.PlatformSearchReq{ + res, err = PlatformSearch(&rpc.PlatformSearchRequest{ Instance: inst, SearchArgs: "yun", AllVersions: true, @@ -240,7 +240,7 @@ func TestPlatformSearch(t *testing.T) { require.NotNil(t, res) require.Len(t, res.SearchOutput, 1) require.Contains(t, res.SearchOutput, &commands.Platform{ - ID: "arduino:avr", + Id: "arduino:avr", Installed: "", Latest: "1.8.3", Name: "Arduino AVR Boards", diff --git a/commands/core/uninstall.go b/commands/core/uninstall.go index 7695b3a5184..307301351e0 100644 --- a/commands/core/uninstall.go +++ b/commands/core/uninstall.go @@ -23,11 +23,11 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // PlatformUninstall FIXMEDOC -func PlatformUninstall(ctx context.Context, req *rpc.PlatformUninstallReq, taskCB commands.TaskProgressCB) (*rpc.PlatformUninstallResp, error) { +func PlatformUninstall(ctx context.Context, req *rpc.PlatformUninstallRequest, taskCB commands.TaskProgressCB) (*rpc.PlatformUninstallResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -71,7 +71,7 @@ func PlatformUninstall(ctx context.Context, req *rpc.PlatformUninstallReq, taskC if err != nil { return nil, err } - return &rpc.PlatformUninstallResp{}, nil + return &rpc.PlatformUninstallResponse{}, nil } func uninstallPlatformRelease(pm *packagemanager.PackageManager, platformRelease *cores.PlatformRelease, taskCB commands.TaskProgressCB) error { diff --git a/commands/core/upgrade.go b/commands/core/upgrade.go index 45adc90a45c..e7c5e9a92dc 100644 --- a/commands/core/upgrade.go +++ b/commands/core/upgrade.go @@ -22,7 +22,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) var ( @@ -32,8 +32,8 @@ var ( ) // PlatformUpgrade FIXMEDOC -func PlatformUpgrade(ctx context.Context, req *rpc.PlatformUpgradeReq, - downloadCB commands.DownloadProgressCB, taskCB commands.TaskProgressCB) (*rpc.PlatformUpgradeResp, error) { +func PlatformUpgrade(ctx context.Context, req *rpc.PlatformUpgradeRequest, + downloadCB commands.DownloadProgressCB, taskCB commands.TaskProgressCB) (*rpc.PlatformUpgradeResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { @@ -53,7 +53,7 @@ func PlatformUpgrade(ctx context.Context, req *rpc.PlatformUpgradeReq, return nil, err } - return &rpc.PlatformUpgradeResp{}, nil + return &rpc.PlatformUpgradeResponse{}, nil } func upgradePlatform(pm *packagemanager.PackageManager, platformRef *packagemanager.PlatformReference, diff --git a/commands/daemon/daemon.go b/commands/daemon/daemon.go index 894acc39b17..835f3ad7db7 100644 --- a/commands/daemon/daemon.go +++ b/commands/daemon/daemon.go @@ -29,7 +29,7 @@ import ( "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/commands/sketch" "github.com/arduino/arduino-cli/commands/upload" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // ArduinoCoreServerImpl FIXMEDOC @@ -38,34 +38,34 @@ type ArduinoCoreServerImpl struct { } // BoardDetails FIXMEDOC -func (s *ArduinoCoreServerImpl) BoardDetails(ctx context.Context, req *rpc.BoardDetailsReq) (*rpc.BoardDetailsResp, error) { +func (s *ArduinoCoreServerImpl) BoardDetails(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetailsResponse, error) { return board.Details(ctx, req) } // BoardList FIXMEDOC -func (s *ArduinoCoreServerImpl) BoardList(ctx context.Context, req *rpc.BoardListReq) (*rpc.BoardListResp, error) { +func (s *ArduinoCoreServerImpl) BoardList(ctx context.Context, req *rpc.BoardListRequest) (*rpc.BoardListResponse, error) { ports, err := board.List(req.GetInstance().GetId()) if err != nil { return nil, err } - return &rpc.BoardListResp{ + return &rpc.BoardListResponse{ Ports: ports, }, nil } // BoardListAll FIXMEDOC -func (s *ArduinoCoreServerImpl) BoardListAll(ctx context.Context, req *rpc.BoardListAllReq) (*rpc.BoardListAllResp, error) { +func (s *ArduinoCoreServerImpl) BoardListAll(ctx context.Context, req *rpc.BoardListAllRequest) (*rpc.BoardListAllResponse, error) { return board.ListAll(ctx, req) } // BoardSearch exposes to the gRPC interface the board search command -func (s *ArduinoCoreServerImpl) BoardSearch(ctx context.Context, req *rpc.BoardSearchReq) (*rpc.BoardSearchResp, error) { +func (s *ArduinoCoreServerImpl) BoardSearch(ctx context.Context, req *rpc.BoardSearchRequest) (*rpc.BoardSearchResponse, error) { return board.Search(ctx, req) } // BoardListWatch FIXMEDOC -func (s *ArduinoCoreServerImpl) BoardListWatch(stream rpc.ArduinoCore_BoardListWatchServer) error { +func (s *ArduinoCoreServerImpl) BoardListWatch(stream rpc.ArduinoCoreService_BoardListWatchServer) error { msg, err := stream.Recv() if err == io.EOF { return nil @@ -98,10 +98,10 @@ func (s *ArduinoCoreServerImpl) BoardListWatch(stream rpc.ArduinoCore_BoardListW } // BoardAttach FIXMEDOC -func (s *ArduinoCoreServerImpl) BoardAttach(req *rpc.BoardAttachReq, stream rpc.ArduinoCore_BoardAttachServer) error { +func (s *ArduinoCoreServerImpl) BoardAttach(req *rpc.BoardAttachRequest, stream rpc.ArduinoCoreService_BoardAttachServer) error { resp, err := board.Attach(stream.Context(), req, - func(p *rpc.TaskProgress) { stream.Send(&rpc.BoardAttachResp{TaskProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.BoardAttachResponse{TaskProgress: p}) }, ) if err != nil { return err @@ -110,19 +110,19 @@ func (s *ArduinoCoreServerImpl) BoardAttach(req *rpc.BoardAttachReq, stream rpc. } // Destroy FIXMEDOC -func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyReq) (*rpc.DestroyResp, error) { +func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyRequest) (*rpc.DestroyResponse, error) { return commands.Destroy(ctx, req) } // Rescan FIXMEDOC -func (s *ArduinoCoreServerImpl) Rescan(ctx context.Context, req *rpc.RescanReq) (*rpc.RescanResp, error) { +func (s *ArduinoCoreServerImpl) Rescan(ctx context.Context, req *rpc.RescanRequest) (*rpc.RescanResponse, error) { return commands.Rescan(req.GetInstance().GetId()) } // UpdateIndex FIXMEDOC -func (s *ArduinoCoreServerImpl) UpdateIndex(req *rpc.UpdateIndexReq, stream rpc.ArduinoCore_UpdateIndexServer) error { +func (s *ArduinoCoreServerImpl) UpdateIndex(req *rpc.UpdateIndexRequest, stream rpc.ArduinoCoreService_UpdateIndexServer) error { resp, err := commands.UpdateIndex(stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateIndexResp{DownloadProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateIndexResponse{DownloadProgress: p}) }, ) if err != nil { return err @@ -131,42 +131,42 @@ func (s *ArduinoCoreServerImpl) UpdateIndex(req *rpc.UpdateIndexReq, stream rpc. } // UpdateLibrariesIndex FIXMEDOC -func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesIndexReq, stream rpc.ArduinoCore_UpdateLibrariesIndexServer) error { +func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesIndexRequest, stream rpc.ArduinoCoreService_UpdateLibrariesIndexServer) error { err := commands.UpdateLibrariesIndex(stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateLibrariesIndexResp{DownloadProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateLibrariesIndexResponse{DownloadProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.UpdateLibrariesIndexResp{}) + return stream.Send(&rpc.UpdateLibrariesIndexResponse{}) } // UpdateCoreLibrariesIndex FIXMEDOC -func (s *ArduinoCoreServerImpl) UpdateCoreLibrariesIndex(req *rpc.UpdateCoreLibrariesIndexReq, stream rpc.ArduinoCore_UpdateCoreLibrariesIndexServer) error { +func (s *ArduinoCoreServerImpl) UpdateCoreLibrariesIndex(req *rpc.UpdateCoreLibrariesIndexRequest, stream rpc.ArduinoCoreService_UpdateCoreLibrariesIndexServer) error { err := commands.UpdateCoreLibrariesIndex(stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateCoreLibrariesIndexResp{DownloadProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.UpdateCoreLibrariesIndexResponse{DownloadProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.UpdateCoreLibrariesIndexResp{}) + return stream.Send(&rpc.UpdateCoreLibrariesIndexResponse{}) } // Outdated FIXMEDOC -func (s *ArduinoCoreServerImpl) Outdated(ctx context.Context, req *rpc.OutdatedReq) (*rpc.OutdatedResp, error) { +func (s *ArduinoCoreServerImpl) Outdated(ctx context.Context, req *rpc.OutdatedRequest) (*rpc.OutdatedResponse, error) { return commands.Outdated(ctx, req) } // Upgrade FIXMEDOC -func (s *ArduinoCoreServerImpl) Upgrade(req *rpc.UpgradeReq, stream rpc.ArduinoCore_UpgradeServer) error { +func (s *ArduinoCoreServerImpl) Upgrade(req *rpc.UpgradeRequest, stream rpc.ArduinoCoreService_UpgradeServer) error { err := commands.Upgrade(stream.Context(), req, func(p *rpc.DownloadProgress) { - stream.Send(&rpc.UpgradeResp{ + stream.Send(&rpc.UpgradeResponse{ Progress: p, }) }, func(p *rpc.TaskProgress) { - stream.Send(&rpc.UpgradeResp{ + stream.Send(&rpc.UpgradeResponse{ TaskProgress: p, }) }, @@ -174,14 +174,14 @@ func (s *ArduinoCoreServerImpl) Upgrade(req *rpc.UpgradeReq, stream rpc.ArduinoC if err != nil { return err } - return stream.Send(&rpc.UpgradeResp{}) + return stream.Send(&rpc.UpgradeResponse{}) } // Init FIXMEDOC -func (s *ArduinoCoreServerImpl) Init(req *rpc.InitReq, stream rpc.ArduinoCore_InitServer) error { +func (s *ArduinoCoreServerImpl) Init(req *rpc.InitRequest, stream rpc.ArduinoCoreService_InitServer) error { resp, err := commands.Init(stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.InitResp{DownloadProgress: p}) }, - func(p *rpc.TaskProgress) { stream.Send(&rpc.InitResp{TaskProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.InitResponse{DownloadProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.InitResponse{TaskProgress: p}) }, ) if err != nil { return err @@ -190,21 +190,21 @@ func (s *ArduinoCoreServerImpl) Init(req *rpc.InitReq, stream rpc.ArduinoCore_In } // Version FIXMEDOC -func (s *ArduinoCoreServerImpl) Version(ctx context.Context, req *rpc.VersionReq) (*rpc.VersionResp, error) { - return &rpc.VersionResp{Version: s.VersionString}, nil +func (s *ArduinoCoreServerImpl) Version(ctx context.Context, req *rpc.VersionRequest) (*rpc.VersionResponse, error) { + return &rpc.VersionResponse{Version: s.VersionString}, nil } // LoadSketch FIXMEDOC -func (s *ArduinoCoreServerImpl) LoadSketch(ctx context.Context, req *rpc.LoadSketchReq) (*rpc.LoadSketchResp, error) { +func (s *ArduinoCoreServerImpl) LoadSketch(ctx context.Context, req *rpc.LoadSketchRequest) (*rpc.LoadSketchResponse, error) { return commands.LoadSketch(ctx, req) } // Compile FIXMEDOC -func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileReq, stream rpc.ArduinoCore_CompileServer) error { +func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.ArduinoCoreService_CompileServer) error { resp, err := compile.Compile( stream.Context(), req, - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.CompileResp{OutStream: data}) }), - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.CompileResp{ErrStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.CompileResponse{OutStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.CompileResponse{ErrStream: data}) }), false) // Set debug to false if err != nil { return err @@ -213,11 +213,11 @@ func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileReq, stream rpc.ArduinoC } // PlatformInstall FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallReq, stream rpc.ArduinoCore_PlatformInstallServer) error { +func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallRequest, stream rpc.ArduinoCoreService_PlatformInstallServer) error { resp, err := core.PlatformInstall( stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformInstallResp{Progress: p}) }, - func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformInstallResp{TaskProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformInstallResponse{Progress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformInstallResponse{TaskProgress: p}) }, ) if err != nil { return err @@ -226,10 +226,10 @@ func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallReq, str } // PlatformDownload FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadReq, stream rpc.ArduinoCore_PlatformDownloadServer) error { +func (s *ArduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadRequest, stream rpc.ArduinoCoreService_PlatformDownloadServer) error { resp, err := core.PlatformDownload( stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformDownloadResp{Progress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformDownloadResponse{Progress: p}) }, ) if err != nil { return err @@ -238,10 +238,10 @@ func (s *ArduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadReq, s } // PlatformUninstall FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallReq, stream rpc.ArduinoCore_PlatformUninstallServer) error { +func (s *ArduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallRequest, stream rpc.ArduinoCoreService_PlatformUninstallServer) error { resp, err := core.PlatformUninstall( stream.Context(), req, - func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformUninstallResp{TaskProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformUninstallResponse{TaskProgress: p}) }, ) if err != nil { return err @@ -250,11 +250,11 @@ func (s *ArduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallReq, } // PlatformUpgrade FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformUpgrade(req *rpc.PlatformUpgradeReq, stream rpc.ArduinoCore_PlatformUpgradeServer) error { +func (s *ArduinoCoreServerImpl) PlatformUpgrade(req *rpc.PlatformUpgradeRequest, stream rpc.ArduinoCoreService_PlatformUpgradeServer) error { resp, err := core.PlatformUpgrade( stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformUpgradeResp{Progress: p}) }, - func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformUpgradeResp{TaskProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.PlatformUpgradeResponse{Progress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.PlatformUpgradeResponse{TaskProgress: p}) }, ) if err != nil { return err @@ -263,25 +263,25 @@ func (s *ArduinoCoreServerImpl) PlatformUpgrade(req *rpc.PlatformUpgradeReq, str } // PlatformSearch FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformSearch(ctx context.Context, req *rpc.PlatformSearchReq) (*rpc.PlatformSearchResp, error) { +func (s *ArduinoCoreServerImpl) PlatformSearch(ctx context.Context, req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse, error) { return core.PlatformSearch(req) } // PlatformList FIXMEDOC -func (s *ArduinoCoreServerImpl) PlatformList(ctx context.Context, req *rpc.PlatformListReq) (*rpc.PlatformListResp, error) { +func (s *ArduinoCoreServerImpl) PlatformList(ctx context.Context, req *rpc.PlatformListRequest) (*rpc.PlatformListResponse, error) { platforms, err := core.GetPlatforms(req) if err != nil { return nil, err } - return &rpc.PlatformListResp{InstalledPlatform: platforms}, nil + return &rpc.PlatformListResponse{InstalledPlatforms: platforms}, nil } // Upload FIXMEDOC -func (s *ArduinoCoreServerImpl) Upload(req *rpc.UploadReq, stream rpc.ArduinoCore_UploadServer) error { +func (s *ArduinoCoreServerImpl) Upload(req *rpc.UploadRequest, stream rpc.ArduinoCoreService_UploadServer) error { resp, err := upload.Upload( stream.Context(), req, - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadResp{OutStream: data}) }), - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadResp{ErrStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadResponse{OutStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadResponse{ErrStream: data}) }), ) if err != nil { return err @@ -290,11 +290,11 @@ func (s *ArduinoCoreServerImpl) Upload(req *rpc.UploadReq, stream rpc.ArduinoCor } // UploadUsingProgrammer FIXMEDOC -func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgrammerReq, stream rpc.ArduinoCore_UploadUsingProgrammerServer) error { +func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgrammerRequest, stream rpc.ArduinoCoreService_UploadUsingProgrammerServer) error { resp, err := upload.UsingProgrammer( stream.Context(), req, - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadUsingProgrammerResp{OutStream: data}) }), - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadUsingProgrammerResp{ErrStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadUsingProgrammerResponse{OutStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.UploadUsingProgrammerResponse{ErrStream: data}) }), ) if err != nil { return err @@ -303,11 +303,11 @@ func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgra } // BurnBootloader FIXMEDOC -func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderReq, stream rpc.ArduinoCore_BurnBootloaderServer) error { +func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderRequest, stream rpc.ArduinoCoreService_BurnBootloaderServer) error { resp, err := upload.BurnBootloader( stream.Context(), req, - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.BurnBootloaderResp{OutStream: data}) }), - utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.BurnBootloaderResp{ErrStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.BurnBootloaderResponse{OutStream: data}) }), + utils.FeedStreamTo(func(data []byte) { stream.Send(&rpc.BurnBootloaderResponse{ErrStream: data}) }), ) if err != nil { return err @@ -316,15 +316,15 @@ func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderReq, strea } // ListProgrammersAvailableForUpload FIXMEDOC -func (s *ArduinoCoreServerImpl) ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadReq) (*rpc.ListProgrammersAvailableForUploadResp, error) { +func (s *ArduinoCoreServerImpl) ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadRequest) (*rpc.ListProgrammersAvailableForUploadResponse, error) { return upload.ListProgrammersAvailableForUpload(ctx, req) } // LibraryDownload FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadReq, stream rpc.ArduinoCore_LibraryDownloadServer) error { +func (s *ArduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadRequest, stream rpc.ArduinoCoreService_LibraryDownloadServer) error { resp, err := lib.LibraryDownload( stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryDownloadResp{Progress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryDownloadResponse{Progress: p}) }, ) if err != nil { return err @@ -333,81 +333,81 @@ func (s *ArduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadReq, str } // LibraryInstall FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallReq, stream rpc.ArduinoCore_LibraryInstallServer) error { +func (s *ArduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, stream rpc.ArduinoCoreService_LibraryInstallServer) error { err := lib.LibraryInstall( stream.Context(), req, - func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryInstallResp{Progress: p}) }, - func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryInstallResp{TaskProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryInstallResponse{Progress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryInstallResponse{TaskProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.LibraryInstallResp{}) + return stream.Send(&rpc.LibraryInstallResponse{}) } // LibraryUninstall FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallReq, stream rpc.ArduinoCore_LibraryUninstallServer) error { +func (s *ArduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallRequest, stream rpc.ArduinoCoreService_LibraryUninstallServer) error { err := lib.LibraryUninstall(stream.Context(), req, - func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryUninstallResp{TaskProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryUninstallResponse{TaskProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.LibraryUninstallResp{}) + return stream.Send(&rpc.LibraryUninstallResponse{}) } // LibraryUpgradeAll FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllReq, stream rpc.ArduinoCore_LibraryUpgradeAllServer) error { +func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllRequest, stream rpc.ArduinoCoreService_LibraryUpgradeAllServer) error { err := lib.LibraryUpgradeAll(req.GetInstance().GetId(), - func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryUpgradeAllResp{Progress: p}) }, - func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryUpgradeAllResp{TaskProgress: p}) }, + func(p *rpc.DownloadProgress) { stream.Send(&rpc.LibraryUpgradeAllResponse{Progress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.LibraryUpgradeAllResponse{TaskProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.LibraryUpgradeAllResp{}) + return stream.Send(&rpc.LibraryUpgradeAllResponse{}) } // LibraryResolveDependencies FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesReq) (*rpc.LibraryResolveDependenciesResp, error) { +func (s *ArduinoCoreServerImpl) LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesRequest) (*rpc.LibraryResolveDependenciesResponse, error) { return lib.LibraryResolveDependencies(ctx, req) } // LibrarySearch FIXMEDOC -func (s *ArduinoCoreServerImpl) LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.LibrarySearchResp, error) { +func (s *ArduinoCoreServerImpl) LibrarySearch(ctx context.Context, req *rpc.LibrarySearchRequest) (*rpc.LibrarySearchResponse, error) { return lib.LibrarySearch(ctx, req) } // LibraryList FIXMEDOC -func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryListResp, error) { +func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.LibraryListResponse, error) { return lib.LibraryList(ctx, req) } // ArchiveSketch FIXMEDOC -func (s *ArduinoCoreServerImpl) ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchReq) (*rpc.ArchiveSketchResp, error) { +func (s *ArduinoCoreServerImpl) ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchRequest) (*rpc.ArchiveSketchResponse, error) { return sketch.ArchiveSketch(ctx, req) } //ZipLibraryInstall FIXMEDOC -func (s *ArduinoCoreServerImpl) ZipLibraryInstall(req *rpc.ZipLibraryInstallReq, stream rpc.ArduinoCore_ZipLibraryInstallServer) error { +func (s *ArduinoCoreServerImpl) ZipLibraryInstall(req *rpc.ZipLibraryInstallRequest, stream rpc.ArduinoCoreService_ZipLibraryInstallServer) error { err := lib.ZipLibraryInstall( stream.Context(), req, - func(p *rpc.TaskProgress) { stream.Send(&rpc.ZipLibraryInstallResp{TaskProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.ZipLibraryInstallResponse{TaskProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.ZipLibraryInstallResp{}) + return stream.Send(&rpc.ZipLibraryInstallResponse{}) } //GitLibraryInstall FIXMEDOC -func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallReq, stream rpc.ArduinoCore_GitLibraryInstallServer) error { +func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallRequest, stream rpc.ArduinoCoreService_GitLibraryInstallServer) error { err := lib.GitLibraryInstall( stream.Context(), req, - func(p *rpc.TaskProgress) { stream.Send(&rpc.GitLibraryInstallResp{TaskProgress: p}) }, + func(p *rpc.TaskProgress) { stream.Send(&rpc.GitLibraryInstallResponse{TaskProgress: p}) }, ) if err != nil { return err } - return stream.Send(&rpc.GitLibraryInstallResp{}) + return stream.Send(&rpc.GitLibraryInstallResponse{}) } diff --git a/commands/daemon/debug.go b/commands/daemon/debug.go index 88ea30eec9e..3c73c96ff8f 100644 --- a/commands/daemon/debug.go +++ b/commands/daemon/debug.go @@ -21,8 +21,7 @@ import ( "github.com/arduino/arduino-cli/arduino/utils" cmd "github.com/arduino/arduino-cli/commands/debug" - "github.com/arduino/arduino-cli/rpc/debug" - dbg "github.com/arduino/arduino-cli/rpc/debug" + dbg "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" "github.com/pkg/errors" ) @@ -31,8 +30,8 @@ type DebugService struct{} // Debug returns a stream response that can be used to fetch data from the // target. The first message passed through the `Debug` request must -// contain DebugReq configuration params, not data. -func (s *DebugService) Debug(stream dbg.Debug_DebugServer) error { +// contain DebugRequest configuration params, not data. +func (s *DebugService) Debug(stream dbg.DebugService_DebugServer) error { // Grab the first message msg, err := stream.Recv() @@ -41,7 +40,7 @@ func (s *DebugService) Debug(stream dbg.Debug_DebugServer) error { } // Ensure it's a config message and not data - req := msg.GetDebugReq() + req := msg.GetDebugRequest() if req == nil { return errors.Errorf("First message must contain debug request, not data") } @@ -58,7 +57,7 @@ func (s *DebugService) Debug(stream dbg.Debug_DebugServer) error { return command.GetData(), err }), utils.FeedStreamTo(func(data []byte) { - stream.Send(&dbg.DebugResp{Data: data}) + stream.Send(&dbg.DebugResponse{Data: data}) }), signalChan) if err != nil { @@ -68,6 +67,6 @@ func (s *DebugService) Debug(stream dbg.Debug_DebugServer) error { } // GetDebugConfig return metadata about a debug session -func (s *DebugService) GetDebugConfig(ctx context.Context, req *debug.DebugConfigReq) (*debug.GetDebugConfigResp, error) { +func (s *DebugService) GetDebugConfig(ctx context.Context, req *dbg.DebugConfigRequest) (*dbg.GetDebugConfigResponse, error) { return cmd.GetDebugConfig(ctx, req) } diff --git a/commands/daemon/monitor.go b/commands/daemon/monitor.go index 531ab3ea077..648b00ec5a3 100644 --- a/commands/daemon/monitor.go +++ b/commands/daemon/monitor.go @@ -21,7 +21,7 @@ import ( "sync/atomic" "github.com/arduino/arduino-cli/arduino/monitors" - rpc "github.com/arduino/arduino-cli/rpc/monitor" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/monitor/v1" ) // MonitorService implements the `Monitor` service @@ -30,7 +30,7 @@ type MonitorService struct{} // StreamingOpen returns a stream response that can be used to fetch data from the // monitor target. The first message passed through the `StreamingOpenReq` must // contain monitor configuration params, not data. -func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) error { +func (s *MonitorService) StreamingOpen(stream rpc.MonitorService_StreamingOpenServer) error { // grab the first message msg, err := stream.Recv() if err != nil { @@ -38,7 +38,7 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e } // ensure it's a config message and not data - config := msg.GetMonitorConfig() + config := msg.GetConfig() if config == nil { return errors.New("first message must contain monitor configuration, not data") } @@ -46,7 +46,7 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e // select which type of monitor we need var mon monitors.Monitor switch config.GetType() { - case rpc.MonitorConfig_SERIAL: + case rpc.MonitorConfig_TARGET_TYPE_SERIAL: // grab port speed from additional config data var baudRate float64 addCfg := config.GetAdditionalConfig() @@ -63,7 +63,7 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e return err } - case rpc.MonitorConfig_NULL: + case rpc.MonitorConfig_TARGET_TYPE_NULL: if addCfg, ok := config.GetAdditionalConfig().AsMap()["OutputRate"]; !ok { mon = monitors.OpenNullMonitor(100.0) // 100 bytes per second as default } else if outputRate, ok := addCfg.(float64); !ok { @@ -158,7 +158,7 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e slots := atomic.LoadInt32(&writeSlots) if !rateLimitEnabled || slots > 0 { - if err = stream.Send(&rpc.StreamingOpenResp{ + if err = stream.Send(&rpc.StreamingOpenResponse{ Data: buffer[:bufferUsed], Dropped: int32(dropped), }); err != nil { diff --git a/commands/daemon/settings.go b/commands/daemon/settings.go index d2e714d5108..5f42c59cfed 100644 --- a/commands/daemon/settings.go +++ b/commands/daemon/settings.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/settings" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/settings/v1" ) // SettingsService implements the `Settings` service @@ -31,10 +31,10 @@ type SettingsService struct{} // GetAll returns a message with a string field containing all the settings // currently in use, marshalled in JSON format. -func (s *SettingsService) GetAll(ctx context.Context, req *rpc.GetAllRequest) (*rpc.RawData, error) { +func (s *SettingsService) GetAll(ctx context.Context, req *rpc.GetAllRequest) (*rpc.GetAllResponse, error) { b, err := json.Marshal(configuration.Settings.AllSettings()) if err == nil { - return &rpc.RawData{ + return &rpc.GetAllResponse{ JsonData: string(b), }, nil } @@ -68,7 +68,7 @@ func mapper(toMap map[string]interface{}) map[string]interface{} { } // Merge applies multiple settings values at once. -func (s *SettingsService) Merge(ctx context.Context, req *rpc.RawData) (*rpc.MergeResponse, error) { +func (s *SettingsService) Merge(ctx context.Context, req *rpc.MergeRequest) (*rpc.MergeResponse, error) { var toMerge map[string]interface{} if err := json.Unmarshal([]byte(req.GetJsonData()), &toMerge); err != nil { return nil, err @@ -89,9 +89,8 @@ func (s *SettingsService) Merge(ctx context.Context, req *rpc.RawData) (*rpc.Mer // GetValue returns a settings value given its key. If the key is not present // an error will be returned, so that we distinguish empty settings from missing // ones. -func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest) (*rpc.Value, error) { +func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest) (*rpc.GetValueResponse, error) { key := req.GetKey() - value := &rpc.Value{} // Check if settings key actually existing, we don't use Viper.InConfig() // since that doesn't check for keys formatted like daemon.port or those set @@ -108,6 +107,7 @@ func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest } b, err := json.Marshal(configuration.Settings.Get(key)) + value := &rpc.GetValueResponse{} if err == nil { value.Key = key value.JsonData = string(b) @@ -117,7 +117,7 @@ func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest } // SetValue updates or set a value for a certain key. -func (s *SettingsService) SetValue(ctx context.Context, val *rpc.Value) (*rpc.SetValueResponse, error) { +func (s *SettingsService) SetValue(ctx context.Context, val *rpc.SetValueRequest) (*rpc.SetValueResponse, error) { key := val.GetKey() var value interface{} diff --git a/commands/daemon/settings_test.go b/commands/daemon/settings_test.go index 98c01653497..49634f33d95 100644 --- a/commands/daemon/settings_test.go +++ b/commands/daemon/settings_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/settings" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/settings/v1" "github.com/arduino/go-paths-helper" "github.com/stretchr/testify/require" ) @@ -54,7 +54,7 @@ func TestMerge(t *testing.T) { require.Equal(t, false, configuration.Settings.GetBool("sketch.always_export_binaries")) bulkSettings := `{"foo": "bar", "daemon":{"port":"420"}, "sketch": {"always_export_binaries": "true"}}` - res, err := svc.Merge(context.Background(), &rpc.RawData{JsonData: bulkSettings}) + res, err := svc.Merge(context.Background(), &rpc.MergeRequest{JsonData: bulkSettings}) require.NotNil(t, res) require.NoError(t, err) @@ -63,7 +63,7 @@ func TestMerge(t *testing.T) { require.Equal(t, true, configuration.Settings.GetBool("sketch.always_export_binaries")) bulkSettings = `{"foo":"", "daemon": {}, "sketch": {"always_export_binaries": "false"}}` - res, err = svc.Merge(context.Background(), &rpc.RawData{JsonData: bulkSettings}) + res, err = svc.Merge(context.Background(), &rpc.MergeRequest{JsonData: bulkSettings}) require.NotNil(t, res) require.NoError(t, err) @@ -72,7 +72,7 @@ func TestMerge(t *testing.T) { require.Equal(t, false, configuration.Settings.GetBool("sketch.always_export_binaries")) bulkSettings = `{"daemon": {"port":""}}` - res, err = svc.Merge(context.Background(), &rpc.RawData{JsonData: bulkSettings}) + res, err = svc.Merge(context.Background(), &rpc.MergeRequest{JsonData: bulkSettings}) require.NotNil(t, res) require.NoError(t, err) @@ -105,7 +105,7 @@ func TestGetMergedValue(t *testing.T) { // Merge value bulkSettings := `{"foo": "bar"}` - _, err = svc.Merge(context.Background(), &rpc.RawData{JsonData: bulkSettings}) + _, err = svc.Merge(context.Background(), &rpc.MergeRequest{JsonData: bulkSettings}) require.NoError(t, err) // Verifies value is correctly returned @@ -123,7 +123,7 @@ func TestGetValueNotFound(t *testing.T) { } func TestSetValue(t *testing.T) { - val := &rpc.Value{ + val := &rpc.SetValueRequest{ Key: "foo", JsonData: `"bar"`, } @@ -134,7 +134,7 @@ func TestSetValue(t *testing.T) { func TestWrite(t *testing.T) { // Writes some settings - val := &rpc.Value{ + val := &rpc.SetValueRequest{ Key: "foo", JsonData: `"bar"`, } diff --git a/commands/debug/debug.go b/commands/debug/debug.go index b35cc0c6eb2..62c95029bb9 100644 --- a/commands/debug/debug.go +++ b/commands/debug/debug.go @@ -27,7 +27,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/executils" - dbg "github.com/arduino/arduino-cli/rpc/debug" + dbg "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" "github.com/arduino/go-paths-helper" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -39,7 +39,7 @@ import ( // grpc Out <- tool stdOut // grpc Out <- tool stdErr // It also implements tool process lifecycle management -func Debug(ctx context.Context, req *dbg.DebugConfigReq, inStream io.Reader, out io.Writer, interrupt <-chan os.Signal) (*dbg.DebugResp, error) { +func Debug(ctx context.Context, req *dbg.DebugConfigRequest, inStream io.Reader, out io.Writer, interrupt <-chan os.Signal) (*dbg.DebugResponse, error) { // Get debugging command line to run debugger pm := commands.GetPackageManager(req.GetInstance().GetId()) @@ -67,7 +67,7 @@ func Debug(ctx context.Context, req *dbg.DebugConfigReq, inStream io.Reader, out // Get stdIn pipe from tool in, err := cmd.StdinPipe() if err != nil { - return &dbg.DebugResp{Error: err.Error()}, nil + return &dbg.DebugResponse{Error: err.Error()}, nil } defer in.Close() @@ -77,7 +77,7 @@ func Debug(ctx context.Context, req *dbg.DebugConfigReq, inStream io.Reader, out // Start the debug command if err := cmd.Start(); err != nil { - return &dbg.DebugResp{Error: err.Error()}, nil + return &dbg.DebugResponse{Error: err.Error()}, nil } if interrupt != nil { @@ -103,13 +103,13 @@ func Debug(ctx context.Context, req *dbg.DebugConfigReq, inStream io.Reader, out // Wait for process to finish if err := cmd.Wait(); err != nil { - return &dbg.DebugResp{Error: err.Error()}, nil + return &dbg.DebugResponse{Error: err.Error()}, nil } - return &dbg.DebugResp{}, nil + return &dbg.DebugResponse{}, nil } // getCommandLine compose a debug command represented by a core recipe -func getCommandLine(req *dbg.DebugConfigReq, pm *packagemanager.PackageManager) ([]string, error) { +func getCommandLine(req *dbg.DebugConfigRequest, pm *packagemanager.PackageManager) ([]string, error) { debugInfo, err := getDebugProperties(req, pm) if err != nil { return nil, err diff --git a/commands/debug/debug_info.go b/commands/debug/debug_info.go index 77ccb024b27..76b39145f3b 100644 --- a/commands/debug/debug_info.go +++ b/commands/debug/debug_info.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/arduino/sketches" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc/debug" + "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" "github.com/arduino/go-paths-helper" "github.com/arduino/go-properties-orderedmap" "github.com/pkg/errors" @@ -34,13 +34,13 @@ import ( ) // GetDebugConfig returns metadata to start debugging with the specified board -func GetDebugConfig(ctx context.Context, req *debug.DebugConfigReq) (*debug.GetDebugConfigResp, error) { +func GetDebugConfig(ctx context.Context, req *debug.DebugConfigRequest) (*debug.GetDebugConfigResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) return getDebugProperties(req, pm) } -func getDebugProperties(req *debug.DebugConfigReq, pm *packagemanager.PackageManager) (*debug.GetDebugConfigResp, error) { +func getDebugProperties(req *debug.DebugConfigRequest, pm *packagemanager.PackageManager) (*debug.GetDebugConfigResponse, error) { // TODO: make a generic function to extract sketch from request // and remove duplication in commands/compile.go if req.GetSketchPath() == "" { @@ -157,7 +157,7 @@ func getDebugProperties(req *debug.DebugConfigReq, pm *packagemanager.PackageMan server := debugProperties.Get("server") toolchain := debugProperties.Get("toolchain") - return &debug.GetDebugConfigResp{ + return &debug.GetDebugConfigResponse{ Executable: debugProperties.Get("executable"), Server: server, ServerPath: debugProperties.Get("server." + server + ".path"), diff --git a/commands/debug/debug_test.go b/commands/debug/debug_test.go index 2511d5a6150..61c732ca75d 100644 --- a/commands/debug/debug_test.go +++ b/commands/debug/debug_test.go @@ -22,8 +22,8 @@ import ( "testing" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" - rpc "github.com/arduino/arduino-cli/rpc/commands" - dbg "github.com/arduino/arduino-cli/rpc/debug" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + dbg "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1" "github.com/arduino/go-paths-helper" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -47,7 +47,7 @@ func TestGetCommandLine(t *testing.T) { } // Arduino Zero has an integrated debugger port, anc it could be debugged directly using USB - req := &dbg.DebugConfigReq{ + req := &dbg.DebugConfigRequest{ Instance: &rpc.Instance{Id: 1}, Fqbn: "arduino-test:samd:arduino_zero_edbg", SketchPath: sketchPath.String(), @@ -68,7 +68,7 @@ func TestGetCommandLine(t *testing.T) { // Other samd boards such as mkr1000 can be debugged using an external tool such as Atmel ICE connected to // the board debug port - req2 := &dbg.DebugConfigReq{ + req2 := &dbg.DebugConfigRequest{ Instance: &rpc.Instance{Id: 1}, Fqbn: "arduino-test:samd:mkr1000", SketchPath: sketchPath.String(), diff --git a/commands/download.go b/commands/download.go index 9b56ef4d2f2..5e8f623a9e5 100644 --- a/commands/download.go +++ b/commands/download.go @@ -20,7 +20,7 @@ import ( "time" "github.com/arduino/arduino-cli/httpclient" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "go.bug.st/downloader/v2" ) diff --git a/commands/instances.go b/commands/instances.go index 31b7d7748b5..a6650658759 100644 --- a/commands/instances.go +++ b/commands/instances.go @@ -35,7 +35,7 @@ import ( "github.com/arduino/arduino-cli/arduino/utils" "github.com/arduino/arduino-cli/cli/globals" "github.com/arduino/arduino-cli/configuration" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "go.bug.st/downloader/v2" @@ -131,7 +131,7 @@ func (instance *CoreInstance) checkForBuiltinTools(downloadCB DownloadProgressCB } // Init FIXMEDOC -func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB, taskCB TaskProgressCB) (*rpc.InitResp, error) { +func Init(ctx context.Context, req *rpc.InitRequest, downloadCB DownloadProgressCB, taskCB TaskProgressCB) (*rpc.InitResponse, error) { res, err := createInstance(ctx, req.GetLibraryManagerOnly()) if err != nil { return nil, fmt.Errorf("cannot initialize package manager: %s", err) @@ -150,7 +150,7 @@ func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB, return nil, err } - return &rpc.InitResp{ + return &rpc.InitResponse{ Instance: &rpc.Instance{Id: handle}, PlatformsIndexErrors: res.PlatformIndexErrors, LibrariesIndexError: res.LibrariesIndexError, @@ -158,18 +158,18 @@ func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB, } // Destroy FIXMEDOC -func Destroy(ctx context.Context, req *rpc.DestroyReq) (*rpc.DestroyResp, error) { +func Destroy(ctx context.Context, req *rpc.DestroyRequest) (*rpc.DestroyResponse, error) { id := req.GetInstance().GetId() if _, ok := instances[id]; !ok { return nil, fmt.Errorf("invalid handle") } delete(instances, id) - return &rpc.DestroyResp{}, nil + return &rpc.DestroyResponse{}, nil } // UpdateLibrariesIndex updates the library_index.json -func UpdateLibrariesIndex(ctx context.Context, req *rpc.UpdateLibrariesIndexReq, downloadCB func(*rpc.DownloadProgress)) error { +func UpdateLibrariesIndex(ctx context.Context, req *rpc.UpdateLibrariesIndexRequest, downloadCB func(*rpc.DownloadProgress)) error { logrus.Info("Updating libraries index") lm := GetLibraryManager(req.GetInstance().GetId()) if lm == nil { @@ -194,7 +194,7 @@ func UpdateLibrariesIndex(ctx context.Context, req *rpc.UpdateLibrariesIndexReq, } // UpdateIndex FIXMEDOC -func UpdateIndex(ctx context.Context, req *rpc.UpdateIndexReq, downloadCB DownloadProgressCB) (*rpc.UpdateIndexResp, error) { +func UpdateIndex(ctx context.Context, req *rpc.UpdateIndexRequest, downloadCB DownloadProgressCB) (*rpc.UpdateIndexResponse, error) { id := req.GetInstance().GetId() _, ok := instances[id] if !ok { @@ -313,19 +313,19 @@ func UpdateIndex(ctx context.Context, req *rpc.UpdateIndexReq, downloadCB Downlo if _, err := Rescan(id); err != nil { return nil, fmt.Errorf("rescanning filesystem: %s", err) } - return &rpc.UpdateIndexResp{}, nil + return &rpc.UpdateIndexResponse{}, nil } // UpdateCoreLibrariesIndex updates both Cores and Libraries indexes -func UpdateCoreLibrariesIndex(ctx context.Context, req *rpc.UpdateCoreLibrariesIndexReq, downloadCB DownloadProgressCB) error { - _, err := UpdateIndex(ctx, &rpc.UpdateIndexReq{ +func UpdateCoreLibrariesIndex(ctx context.Context, req *rpc.UpdateCoreLibrariesIndexRequest, downloadCB DownloadProgressCB) error { + _, err := UpdateIndex(ctx, &rpc.UpdateIndexRequest{ Instance: req.Instance, }, downloadCB) if err != nil { return err } - err = UpdateLibrariesIndex(ctx, &rpc.UpdateLibrariesIndexReq{ + err = UpdateLibrariesIndex(ctx, &rpc.UpdateLibrariesIndexRequest{ Instance: req.Instance, }, downloadCB) if err != nil { @@ -336,7 +336,7 @@ func UpdateCoreLibrariesIndex(ctx context.Context, req *rpc.UpdateCoreLibrariesI } // Outdated returns a list struct containing both Core and Libraries that can be updated -func Outdated(ctx context.Context, req *rpc.OutdatedReq) (*rpc.OutdatedResp, error) { +func Outdated(ctx context.Context, req *rpc.OutdatedRequest) (*rpc.OutdatedResponse, error) { id := req.GetInstance().GetId() libraryManager := GetLibraryManager(id) @@ -386,9 +386,9 @@ func Outdated(ctx context.Context, req *rpc.OutdatedReq) (*rpc.OutdatedResp, err } } - return &rpc.OutdatedResp{ - OutdatedLibrary: outdatedLibraries, - OutdatedPlatform: outdatedPlatforms, + return &rpc.OutdatedResponse{ + OutdatedLibraries: outdatedLibraries, + OutdatedPlatforms: outdatedPlatforms, }, nil } @@ -454,7 +454,7 @@ func getOutputRelease(lib *librariesindex.Release) *rpc.LibraryRelease { } // Upgrade downloads and installs outdated Cores and Libraries -func Upgrade(ctx context.Context, req *rpc.UpgradeReq, downloadCB DownloadProgressCB, taskCB TaskProgressCB) error { +func Upgrade(ctx context.Context, req *rpc.UpgradeRequest, downloadCB DownloadProgressCB, taskCB TaskProgressCB) error { downloaderConfig, err := GetDownloaderConfig() if err != nil { return err @@ -638,7 +638,7 @@ func Upgrade(ctx context.Context, req *rpc.UpgradeReq, downloadCB DownloadProgre } // Rescan restart discoveries for the given instance -func Rescan(instanceID int32) (*rpc.RescanResp, error) { +func Rescan(instanceID int32) (*rpc.RescanResponse, error) { coreInstance, ok := instances[instanceID] if !ok { return nil, fmt.Errorf("invalid handle") @@ -651,7 +651,7 @@ func Rescan(instanceID int32) (*rpc.RescanResp, error) { coreInstance.PackageManager = res.Pm coreInstance.lm = res.Lm - return &rpc.RescanResp{ + return &rpc.RescanResponse{ PlatformsIndexErrors: res.PlatformIndexErrors, LibrariesIndexError: res.LibrariesIndexError, }, nil @@ -757,7 +757,7 @@ func createInstance(ctx context.Context, getLibOnly bool) (*createInstanceResult } // LoadSketch collects and returns all files composing a sketch -func LoadSketch(ctx context.Context, req *rpc.LoadSketchReq) (*rpc.LoadSketchResp, error) { +func LoadSketch(ctx context.Context, req *rpc.LoadSketchRequest) (*rpc.LoadSketchResponse, error) { sketch, err := builder.SketchLoad(req.SketchPath, "") if err != nil { return nil, fmt.Errorf("Error loading sketch %v: %v", req.SketchPath, err) @@ -778,7 +778,7 @@ func LoadSketch(ctx context.Context, req *rpc.LoadSketchReq) (*rpc.LoadSketchRes rootFolderFiles[i] = file.Path } - return &rpc.LoadSketchResp{ + return &rpc.LoadSketchResponse{ MainFile: sketch.MainFile.Path, LocationPath: sketch.LocationPath, OtherSketchFiles: otherSketchFiles, diff --git a/commands/lib/download.go b/commands/lib/download.go index 117efb3aeeb..3b1ae102c38 100644 --- a/commands/lib/download.go +++ b/commands/lib/download.go @@ -22,12 +22,12 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" ) // LibraryDownload FIXMEDOC -func LibraryDownload(ctx context.Context, req *rpc.LibraryDownloadReq, downloadCB commands.DownloadProgressCB) (*rpc.LibraryDownloadResp, error) { +func LibraryDownload(ctx context.Context, req *rpc.LibraryDownloadRequest, downloadCB commands.DownloadProgressCB) (*rpc.LibraryDownloadResponse, error) { logrus.Info("Executing `arduino lib download`") lm := commands.GetLibraryManager(req.GetInstance().GetId()) @@ -43,7 +43,7 @@ func LibraryDownload(ctx context.Context, req *rpc.LibraryDownloadReq, downloadC return nil, err } - return &rpc.LibraryDownloadResp{}, nil + return &rpc.LibraryDownloadResponse{}, nil } func downloadLibrary(lm *librariesmanager.LibrariesManager, libRelease *librariesindex.Release, diff --git a/commands/lib/install.go b/commands/lib/install.go index 1a563c95269..4d37388ce69 100644 --- a/commands/lib/install.go +++ b/commands/lib/install.go @@ -22,12 +22,12 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" ) // LibraryInstall FIXMEDOC -func LibraryInstall(ctx context.Context, req *rpc.LibraryInstallReq, +func LibraryInstall(ctx context.Context, req *rpc.LibraryInstallRequest, downloadCB commands.DownloadProgressCB, taskCB commands.TaskProgressCB) error { lm := commands.GetLibraryManager(req.GetInstance().GetId()) @@ -39,7 +39,7 @@ func LibraryInstall(ctx context.Context, req *rpc.LibraryInstallReq, VersionRequired: req.Version, } } else { - res, err := LibraryResolveDependencies(ctx, &rpc.LibraryResolveDependenciesReq{ + res, err := LibraryResolveDependencies(ctx, &rpc.LibraryResolveDependenciesRequest{ Instance: req.Instance, Name: req.Name, Version: req.Version, @@ -60,7 +60,7 @@ func LibraryInstall(ctx context.Context, req *rpc.LibraryInstallReq, } for _, lib := range toInstall { - libRelease, err := findLibraryIndexRelease(lm, &rpc.LibraryInstallReq{ + libRelease, err := findLibraryIndexRelease(lm, &rpc.LibraryInstallRequest{ Name: lib.Name, Version: lib.VersionRequired, }) @@ -109,7 +109,7 @@ func installLibrary(lm *librariesmanager.LibrariesManager, libRelease *libraries } //ZipLibraryInstall FIXMEDOC -func ZipLibraryInstall(ctx context.Context, req *rpc.ZipLibraryInstallReq, taskCB commands.TaskProgressCB) error { +func ZipLibraryInstall(ctx context.Context, req *rpc.ZipLibraryInstallRequest, taskCB commands.TaskProgressCB) error { lm := commands.GetLibraryManager(req.GetInstance().GetId()) if err := lm.InstallZipLib(ctx, req.Path, req.Overwrite); err != nil { return err @@ -119,7 +119,7 @@ func ZipLibraryInstall(ctx context.Context, req *rpc.ZipLibraryInstallReq, taskC } //GitLibraryInstall FIXMEDOC -func GitLibraryInstall(ctx context.Context, req *rpc.GitLibraryInstallReq, taskCB commands.TaskProgressCB) error { +func GitLibraryInstall(ctx context.Context, req *rpc.GitLibraryInstallRequest, taskCB commands.TaskProgressCB) error { lm := commands.GetLibraryManager(req.GetInstance().GetId()) if err := lm.InstallGitLib(req.Url, req.Overwrite); err != nil { return err diff --git a/commands/lib/list.go b/commands/lib/list.go index f1e5b40bfbb..204af4fc847 100644 --- a/commands/lib/list.go +++ b/commands/lib/list.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/pkg/errors" ) @@ -35,7 +35,7 @@ type installedLib struct { } // LibraryList FIXMEDOC -func LibraryList(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryListResp, error) { +func LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.LibraryListResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) if pm == nil { return nil, errors.New("invalid instance") @@ -48,7 +48,7 @@ func LibraryList(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryList nameFilter := strings.ToLower(req.GetName()) - instaledLib := []*rpc.InstalledLibrary{} + instaledLibs := []*rpc.InstalledLibrary{} res := listLibraries(lm, req.GetUpdatable(), req.GetAll()) if f := req.GetFqbn(); f != "" { fqbn, err := cores.ParseFQBN(req.GetFqbn()) @@ -107,13 +107,13 @@ func LibraryList(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryList if err != nil { return nil, fmt.Errorf("converting library %s to rpc struct: %w", lib.Library.Name, err) } - instaledLib = append(instaledLib, &rpc.InstalledLibrary{ + instaledLibs = append(instaledLibs, &rpc.InstalledLibrary{ Library: rpcLib, Release: release, }) } - return &rpc.LibraryListResp{InstalledLibrary: instaledLib}, nil + return &rpc.LibraryListResponse{InstalledLibraries: instaledLibs}, nil } // listLibraries returns the list of installed libraries. If updatable is true it diff --git a/commands/lib/resolve_deps.go b/commands/lib/resolve_deps.go index 166be751c25..6795a22a2bc 100644 --- a/commands/lib/resolve_deps.go +++ b/commands/lib/resolve_deps.go @@ -21,11 +21,11 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // LibraryResolveDependencies FIXMEDOC -func LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesReq) (*rpc.LibraryResolveDependenciesResp, error) { +func LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesRequest) (*rpc.LibraryResolveDependenciesResponse, error) { lm := commands.GetLibraryManager(req.GetInstance().GetId()) // Search the requested lib @@ -69,5 +69,5 @@ func LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDepe VersionInstalled: installed, }) } - return &rpc.LibraryResolveDependenciesResp{Dependencies: res}, nil + return &rpc.LibraryResolveDependenciesResponse{Dependencies: res}, nil } diff --git a/commands/lib/search.go b/commands/lib/search.go index 376bab9b21f..82bada6b7cd 100644 --- a/commands/lib/search.go +++ b/commands/lib/search.go @@ -24,12 +24,12 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/arduino/utils" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" semver "go.bug.st/relaxed-semver" ) // LibrarySearch FIXMEDOC -func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.LibrarySearchResp, error) { +func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchRequest) (*rpc.LibrarySearchResponse, error) { lm := commands.GetLibraryManager(req.GetInstance().GetId()) if lm == nil { return nil, errors.New("invalid instance") @@ -38,10 +38,10 @@ func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.Library return searchLibrary(req, lm) } -func searchLibrary(req *rpc.LibrarySearchReq, lm *librariesmanager.LibrariesManager) (*rpc.LibrarySearchResp, error) { +func searchLibrary(req *rpc.LibrarySearchRequest, lm *librariesmanager.LibrariesManager) (*rpc.LibrarySearchResponse, error) { query := req.GetQuery() res := []*rpc.SearchedLibrary{} - status := rpc.LibrarySearchStatus_success + status := rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS searchArgs := strings.Split(strings.Trim(query, " "), " ") @@ -72,7 +72,7 @@ func searchLibrary(req *rpc.LibrarySearchReq, lm *librariesmanager.LibrariesMana res = append(res, indexLibraryToRPCSearchLibrary(lib)) } - return &rpc.LibrarySearchResp{Libraries: res, Status: status}, nil + return &rpc.LibrarySearchResponse{Libraries: res, Status: status}, nil } // indexLibraryToRPCSearchLibrary converts a librariindex.Library to rpc.SearchLibrary @@ -107,10 +107,10 @@ func getLibraryParameters(rel *librariesindex.Release) *rpc.LibraryRelease { Dependencies: getLibraryDependenciesParameter(rel.GetDependencies()), Resources: &rpc.DownloadResource{ Url: rel.Resource.URL, - Archivefilename: rel.Resource.ArchiveFileName, + ArchiveFilename: rel.Resource.ArchiveFileName, Checksum: rel.Resource.Checksum, Size: rel.Resource.Size, - Cachepath: rel.Resource.CachePath, + CachePath: rel.Resource.CachePath, }, } } diff --git a/commands/lib/search_test.go b/commands/lib/search_test.go index c0191229463..301b6f355a3 100644 --- a/commands/lib/search_test.go +++ b/commands/lib/search_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" "github.com/stretchr/testify/assert" ) @@ -16,7 +16,7 @@ func TestSearchLibrary(t *testing.T) { lm := librariesmanager.NewLibraryManager(customIndexPath, nil) lm.LoadIndex() - req := &rpc.LibrarySearchReq{ + req := &rpc.LibrarySearchRequest{ Instance: &rpc.Instance{Id: 1}, Query: "test", } @@ -27,7 +27,7 @@ func TestSearchLibrary(t *testing.T) { } assert := assert.New(t) - assert.Equal(resp.GetStatus(), rpc.LibrarySearchStatus_success) + assert.Equal(resp.GetStatus(), rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS) assert.Equal(len(resp.GetLibraries()), 2) assert.True(strings.Contains(resp.GetLibraries()[0].Name, "Test")) assert.True(strings.Contains(resp.GetLibraries()[1].Name, "Test")) @@ -37,7 +37,7 @@ func TestSearchLibrarySimilar(t *testing.T) { lm := librariesmanager.NewLibraryManager(customIndexPath, nil) lm.LoadIndex() - req := &rpc.LibrarySearchReq{ + req := &rpc.LibrarySearchRequest{ Instance: &rpc.Instance{Id: 1}, Query: "arduino", } @@ -48,7 +48,7 @@ func TestSearchLibrarySimilar(t *testing.T) { } assert := assert.New(t) - assert.Equal(resp.GetStatus(), rpc.LibrarySearchStatus_success) + assert.Equal(resp.GetStatus(), rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS) assert.Equal(len(resp.GetLibraries()), 2) libs := map[string]*rpc.SearchedLibrary{} for _, l := range resp.GetLibraries() { diff --git a/commands/lib/uninstall.go b/commands/lib/uninstall.go index 96d032b7704..5395109a9e8 100644 --- a/commands/lib/uninstall.go +++ b/commands/lib/uninstall.go @@ -20,11 +20,11 @@ import ( "fmt" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // LibraryUninstall FIXMEDOC -func LibraryUninstall(ctx context.Context, req *rpc.LibraryUninstallReq, taskCB commands.TaskProgressCB) error { +func LibraryUninstall(ctx context.Context, req *rpc.LibraryUninstallRequest, taskCB commands.TaskProgressCB) error { lm := commands.GetLibraryManager(req.GetInstance().GetId()) ref, err := createLibIndexReference(lm, req) if err != nil { diff --git a/commands/progress.go b/commands/progress.go index 8e05b09faea..ec879a8fb8a 100644 --- a/commands/progress.go +++ b/commands/progress.go @@ -15,7 +15,7 @@ package commands -import rpc "github.com/arduino/arduino-cli/rpc/commands" +import rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" // DownloadProgressCB is a callback to get updates on download progress type DownloadProgressCB func(curr *rpc.DownloadProgress) diff --git a/commands/sketch/archive.go b/commands/sketch/archive.go index d702489a83b..a388eee61dc 100644 --- a/commands/sketch/archive.go +++ b/commands/sketch/archive.go @@ -24,12 +24,12 @@ import ( "strings" "github.com/arduino/arduino-cli/arduino/sketches" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" ) // ArchiveSketch FIXMEDOC -func ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchReq) (*rpc.ArchiveSketchResp, error) { +func ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchRequest) (*rpc.ArchiveSketchResponse, error) { // sketchName is the name of the sketch without extension, for example "MySketch" var sketchName string @@ -104,7 +104,7 @@ func ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchReq) (*rpc.Archive } } - return &rpc.ArchiveSketchResp{}, nil + return &rpc.ArchiveSketchResponse{}, nil } // Adds a single file to an existing zip file diff --git a/commands/upload/burnbootloader.go b/commands/upload/burnbootloader.go index 31f02df0216..16426c08c93 100644 --- a/commands/upload/burnbootloader.go +++ b/commands/upload/burnbootloader.go @@ -20,12 +20,12 @@ import ( "io" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" "github.com/sirupsen/logrus" ) // BurnBootloader FIXMEDOC -func BurnBootloader(ctx context.Context, req *rpc.BurnBootloaderReq, outStream io.Writer, errStream io.Writer) (*rpc.BurnBootloaderResp, error) { +func BurnBootloader(ctx context.Context, req *rpc.BurnBootloaderRequest, outStream io.Writer, errStream io.Writer) (*rpc.BurnBootloaderResponse, error) { logrus. WithField("fqbn", req.GetFqbn()). WithField("port", req.GetPort()). @@ -51,5 +51,5 @@ func BurnBootloader(ctx context.Context, req *rpc.BurnBootloaderReq, outStream i if err != nil { return nil, err } - return &rpc.BurnBootloaderResp{}, nil + return &rpc.BurnBootloaderResponse{}, nil } diff --git a/commands/upload/programmers_list.go b/commands/upload/programmers_list.go index 9cb74c535b2..189847cf67f 100644 --- a/commands/upload/programmers_list.go +++ b/commands/upload/programmers_list.go @@ -21,11 +21,11 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/commands" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" ) // ListProgrammersAvailableForUpload FIXMEDOC -func ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadReq) (*rpc.ListProgrammersAvailableForUploadResp, error) { +func ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadRequest) (*rpc.ListProgrammersAvailableForUploadResponse, error) { pm := commands.GetPackageManager(req.GetInstance().GetId()) fqbnIn := req.GetFqbn() @@ -60,7 +60,7 @@ func ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgram result = append(result, createRPCProgrammer(id, programmer)) } - return &rpc.ListProgrammersAvailableForUploadResp{ + return &rpc.ListProgrammersAvailableForUploadResponse{ Programmers: result, }, nil } diff --git a/commands/upload/upload.go b/commands/upload/upload.go index 87ad1dc8d66..60abab2e727 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -31,7 +31,7 @@ import ( "github.com/arduino/arduino-cli/arduino/sketches" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/executils" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" "github.com/pkg/errors" @@ -40,7 +40,7 @@ import ( ) // Upload FIXMEDOC -func Upload(ctx context.Context, req *rpc.UploadReq, outStream io.Writer, errStream io.Writer) (*rpc.UploadResp, error) { +func Upload(ctx context.Context, req *rpc.UploadRequest, outStream io.Writer, errStream io.Writer) (*rpc.UploadResponse, error) { logrus.Tracef("Upload %s on %s started", req.GetSketchPath(), req.GetFqbn()) // TODO: make a generic function to extract sketch from request @@ -70,17 +70,17 @@ func Upload(ctx context.Context, req *rpc.UploadReq, outStream io.Writer, errStr if err != nil { return nil, err } - return &rpc.UploadResp{}, nil + return &rpc.UploadResponse{}, nil } // UsingProgrammer FIXMEDOC -func UsingProgrammer(ctx context.Context, req *rpc.UploadUsingProgrammerReq, outStream io.Writer, errStream io.Writer) (*rpc.UploadUsingProgrammerResp, error) { +func UsingProgrammer(ctx context.Context, req *rpc.UploadUsingProgrammerRequest, outStream io.Writer, errStream io.Writer) (*rpc.UploadUsingProgrammerResponse, error) { logrus.Tracef("Upload using programmer %s on %s started", req.GetSketchPath(), req.GetFqbn()) if req.GetProgrammer() == "" { return nil, errors.New("programmer not specified") } - _, err := Upload(ctx, &rpc.UploadReq{ + _, err := Upload(ctx, &rpc.UploadRequest{ Instance: req.GetInstance(), SketchPath: req.GetSketchPath(), ImportFile: req.GetImportFile(), @@ -91,7 +91,7 @@ func UsingProgrammer(ctx context.Context, req *rpc.UploadUsingProgrammerReq, out Verbose: req.GetVerbose(), Verify: req.GetVerify(), }, outStream, errStream) - return &rpc.UploadUsingProgrammerResp{}, err + return &rpc.UploadUsingProgrammerResponse{}, err } func runProgramAction(pm *packagemanager.PackageManager, diff --git a/docs/UPGRADING.md b/docs/UPGRADING.md index ad715fe1640..e8726374558 100644 --- a/docs/UPGRADING.md +++ b/docs/UPGRADING.md @@ -2,6 +2,394 @@ Here you can find a list of migration guides to handle breaking changes between releases of the CLI. +## Not yet released + +### Breaking changes in gRPC API and CLI JSON output. + +Starting from this release we applied a more rigorous and stricter naming conventions in gRPC API following the official +guidelines: https://developers.google.com/protocol-buffers/docs/style + +We also started using a linter to implement checks for gRPC API style errors. + +This provides a better consistency and higher quality API but inevitably introduces breaking changes. + +### gRPC API breaking changes + +Consumers of the gRPC API should regenerate their bindings and update all structures naming where necessary. Most of the +changes are trivial and falls into the following categories: + +- Service names have been suffixed with `...Service` (for example `ArduinoCore` -> `ArduinoCoreService`) +- Message names suffix has been changed from `...Req`/`...Resp` to `...Request`/`...Response` (for example + `BoardDetailsReq` -> `BoardDetailsRequest`) +- Enumerations now have their class name prefixed (for example the enumeration value `FLAT` in `LibraryLayout` has been + changed to `LIBRARY_LAYOUT_FLAT`) +- Use of lower-snake case on all fields (for example: `ID` -> `id`, `FQBN` -> `fqbn`, `Name` -> `name`, + `ArchiveFilename` -> `archive_filename`) +- Package names are now versioned (for example `cc.arduino.cli.commands` -> `cc.arduino.cli.commands.v1`) +- Repeated responses are now in plural form (`identification_pref` -> `identification_prefs`, `platform` -> `platforms`) + +### arduino-cli JSON output breaking changes + +Consumers of the JSON output of the CLI must update their clients if they use one of the following commands: + +- in `core search` command the following fields have been renamed: + + - `Boards` -> `boards` + - `Email` -> `email` + - `ID` -> `id` + - `Latest` -> `latest` + - `Maintainer` -> `maintainer` + - `Name` -> `name` + - `Website` -> `website` + + The new output is like: + + ``` + $ arduino-cli core search Due --format json + [ + { + "id": "arduino:sam", + "latest": "1.6.12", + "name": "Arduino SAM Boards (32-bits ARM Cortex-M3)", + "maintainer": "Arduino", + "website": "http://www.arduino.cc/", + "email": "packages@arduino.cc", + "boards": [ + { + "name": "Arduino Due (Native USB Port)", + "fqbn": "arduino:sam:arduino_due_x" + }, + { + "name": "Arduino Due (Programming Port)", + "fqbn": "arduino:sam:arduino_due_x_dbg" + } + ] + } + ] + ``` + +- in `board details` command the following fields have been renamed: + + - `identification_pref` -> `identification_prefs` + - `usbID` -> `usb_id` + - `PID` -> `pid` + - `VID` -> `vid` + - `websiteURL` -> `website_url` + - `archiveFileName` -> `archive_filename` + - `propertiesId` -> `properties_id` + - `toolsDependencies` -> `tools_dependencies` + + The new output is like: + + ``` + $ arduino-cli board details arduino:avr:uno --format json + { + "fqbn": "arduino:avr:uno", + "name": "Arduino Uno", + "version": "1.8.3", + "properties_id": "uno", + "official": true, + "package": { + "maintainer": "Arduino", + "url": "https://downloads.arduino.cc/packages/package_index.json", + "website_url": "http://www.arduino.cc/", + "email": "packages@arduino.cc", + "name": "arduino", + "help": { + "online": "http://www.arduino.cc/en/Reference/HomePage" + } + }, + "platform": { + "architecture": "avr", + "category": "Arduino", + "url": "http://downloads.arduino.cc/cores/avr-1.8.3.tar.bz2", + "archive_filename": "avr-1.8.3.tar.bz2", + "checksum": "SHA-256:de8a9b982477762d3d3e52fc2b682cdd8ff194dc3f1d46f4debdea6a01b33c14", + "size": 4941548, + "name": "Arduino AVR Boards" + }, + "tools_dependencies": [ + { + "packager": "arduino", + "name": "avr-gcc", + "version": "7.3.0-atmel3.6.1-arduino7", + "systems": [ + { + "checksum": "SHA-256:3903553d035da59e33cff9941b857c3cb379cb0638105dfdf69c97f0acc8e7b5", + "host": "arm-linux-gnueabihf", + "archive_filename": "avr-gcc-7.3.0-atmel3.6.1-arduino7-arm-linux-gnueabihf.tar.bz2", + "url": "http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino7-arm-linux-gnueabihf.tar.bz2", + "size": 34683056 + }, + { ... } + ] + }, + { ... } + ], + "identification_prefs": [ + { + "usb_id": { + "vid": "0x2341", + "pid": "0x0043" + } + }, + { ... } + ], + "programmers": [ + { + "platform": "Arduino AVR Boards", + "id": "parallel", + "name": "Parallel Programmer" + }, + { ... } + ] + } + ``` + +- in `board listall` command the following fields have been renamed: + + - `FQBN` -> `fqbn` + - `Email` -> `email` + - `ID` -> `id` + - `Installed` -> `installed` + - `Latest` -> `latest` + - `Name` -> `name` + - `Maintainer` -> `maintainer` + - `Website` -> `website` + + The new output is like: + + ``` + $ arduino-cli board listall Uno --format json + { + "boards": [ + { + "name": "Arduino Uno", + "fqbn": "arduino:avr:uno", + "platform": { + "id": "arduino:avr", + "installed": "1.8.3", + "latest": "1.8.3", + "name": "Arduino AVR Boards", + "maintainer": "Arduino", + "website": "http://www.arduino.cc/", + "email": "packages@arduino.cc" + } + } + ] + } + ``` + +- in `board search` command the following fields have been renamed: + + - `FQBN` -> `fqbn` + - `Email` -> `email` + - `ID` -> `id` + - `Installed` -> `installed` + - `Latest` -> `latest` + - `Name` -> `name` + - `Maintainer` -> `maintainer` + - `Website` -> `website` + + The new output is like: + + ``` + $ arduino-cli board search Uno --format json + [ + { + "name": "Arduino Uno", + "fqbn": "arduino:avr:uno", + "platform": { + "id": "arduino:avr", + "installed": "1.8.3", + "latest": "1.8.3", + "name": "Arduino AVR Boards", + "maintainer": "Arduino", + "website": "http://www.arduino.cc/", + "email": "packages@arduino.cc" + } + } + ] + ``` + +- in `lib deps` command the following fields have been renamed: + + - `versionRequired` -> `version_required` + - `versionInstalled` -> `version_installed` + + The new output is like: + + ``` + $ arduino-cli lib deps Arduino_MKRIoTCarrier --format json + { + "dependencies": [ + { + "name": "Adafruit seesaw Library", + "version_required": "1.3.1" + }, + { + "name": "SD", + "version_required": "1.2.4", + "version_installed": "1.2.3" + }, + { ... } + ] + } + ``` + +- in `lib search` command the following fields have been renamed: + + - `archivefilename` -> `archive_filename` + - `cachepath` -> `cache_path` + + The new output is like: + + ``` + $ arduino-cli lib search NTPClient --format json + { + "libraries": [ + { + "name": "NTPClient", + "releases": { + "1.0.0": { + "author": "Fabrice Weinberg", + "version": "1.0.0", + "maintainer": "Fabrice Weinberg \u003cfabrice@weinberg.me\u003e", + "sentence": "An NTPClient to connect to a time server", + "paragraph": "Get time from a NTP server and keep it in sync.", + "website": "https://github.com/FWeinb/NTPClient", + "category": "Timing", + "architectures": [ + "esp8266" + ], + "types": [ + "Arduino" + ], + "resources": { + "url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/NTPClient-1.0.0.zip", + "archive_filename": "NTPClient-1.0.0.zip", + "checksum": "SHA-256:b1f2907c9d51ee253bad23d05e2e9c1087ab1e7ba3eb12ee36881ba018d81678", + "size": 6284, + "cache_path": "libraries" + } + }, + "2.0.0": { ... }, + "3.0.0": { ... }, + "3.1.0": { ... }, + "3.2.0": { ... } + }, + "latest": { + "author": "Fabrice Weinberg", + "version": "3.2.0", + "maintainer": "Fabrice Weinberg \u003cfabrice@weinberg.me\u003e", + "sentence": "An NTPClient to connect to a time server", + "paragraph": "Get time from a NTP server and keep it in sync.", + "website": "https://github.com/arduino-libraries/NTPClient", + "category": "Timing", + "architectures": [ + "*" + ], + "types": [ + "Arduino" + ], + "resources": { + "url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/NTPClient-3.2.0.zip", + "archive_filename": "NTPClient-3.2.0.zip", + "checksum": "SHA-256:122d00df276972ba33683aff0f7fe5eb6f9a190ac364f8238a7af25450fd3e31", + "size": 7876, + "cache_path": "libraries" + } + } + } + ], + "status": 1 + } + ``` + +- in `board list` command the following fields have been renamed: + + - `FQBN` -> `fqbn` + - `VID` -> `vid` + - `PID` -> `pid` + + The new output is like: + + ``` + $ arduino-cli board list --format json + [ + { + "address": "/dev/ttyACM0", + "protocol": "serial", + "protocol_label": "Serial Port (USB)", + "boards": [ + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-dev:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-dev:nrf52:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-beta:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + } + ], + "serial_number": "BECC45F754185EC9" + } + ] + $ arduino-cli board list -w --format json + { + "type": "add", + "address": "/dev/ttyACM0", + "protocol": "serial", + "protocol_label": "Serial Port (USB)", + "boards": [ + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-dev:nrf52:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-dev:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino-beta:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + }, + { + "name": "Arduino Nano 33 BLE", + "fqbn": "arduino:mbed:nano33ble", + "vid": "0x2341", + "pid": "0x805a" + } + ], + "serial_number": "BECC45F754185EC9" + } + { + "type": "remove", + "address": "/dev/ttyACM0" + } + ``` + ## 0.16.0 ### Change type of `CompileReq.ExportBinaries` message in gRPC interface diff --git a/legacy/builder/types/context.go b/legacy/builder/types/context.go index 9b9eb113fb1..1aa99dc8a52 100644 --- a/legacy/builder/types/context.go +++ b/legacy/builder/types/context.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/arduino/libraries/librariesresolver" "github.com/arduino/arduino-cli/legacy/builder/i18n" - rpc "github.com/arduino/arduino-cli/rpc/commands" + rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" ) diff --git a/rpc/buf.yaml b/rpc/buf.yaml new file mode 100644 index 00000000000..8f15e954ca1 --- /dev/null +++ b/rpc/buf.yaml @@ -0,0 +1,8 @@ +version: v1beta1 +lint: + ignore_only: + ENUM_ZERO_VALUE_SUFFIX: + - cc/arduino/cli/commands/v1/lib.proto + - cc/arduino/cli/monitor/v1/monitor.proto + RPC_REQUEST_STANDARD_NAME: + - cc/arduino/cli/debug/v1/debug.proto diff --git a/rpc/cc/arduino/cli/commands/v1/board.pb.go b/rpc/cc/arduino/cli/commands/v1/board.pb.go new file mode 100644 index 00000000000..d137d008834 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/board.pb.go @@ -0,0 +1,2287 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/commands/v1/board.proto + +package commands + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type BoardDetailsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // The fully qualified board name of the board you want information about + // (e.g., `arduino:avr:uno`). + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` +} + +func (x *BoardDetailsRequest) Reset() { + *x = BoardDetailsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardDetailsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardDetailsRequest) ProtoMessage() {} + +func (x *BoardDetailsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardDetailsRequest.ProtoReflect.Descriptor instead. +func (*BoardDetailsRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{0} +} + +func (x *BoardDetailsRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BoardDetailsRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +type BoardDetailsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fully qualified board name of the board. + Fqbn string `protobuf:"bytes,1,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // Name used to identify the board to humans (e.g., Arduino Uno). + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Installed version of the board's platform. + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + // The board ID component of the FQBN (e.g., `uno`). + PropertiesId string `protobuf:"bytes,4,opt,name=properties_id,json=propertiesId,proto3" json:"properties_id,omitempty"` + // Board alias that can be used as a more user friendly alternative to the + // FQBN. + Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` + // Whether this is an official or 3rd party board. + Official bool `protobuf:"varint,6,opt,name=official,proto3" json:"official,omitempty"` + // URL of the board's pinout documentation. + Pinout string `protobuf:"bytes,7,opt,name=pinout,proto3" json:"pinout,omitempty"` + // Data about the package that contains the board's platform. + Package *Package `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"` + // Data about the board's platform. + Platform *BoardPlatform `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty"` + // Tool dependencies of the board. + ToolsDependencies []*ToolsDependencies `protobuf:"bytes,10,rep,name=tools_dependencies,json=toolsDependencies,proto3" json:"tools_dependencies,omitempty"` + // The board's custom configuration options. + ConfigOptions []*ConfigOption `protobuf:"bytes,11,rep,name=config_options,json=configOptions,proto3" json:"config_options,omitempty"` + // Identifying information for the board (e.g., USB VID/PID). + IdentificationPrefs []*IdentificationPref `protobuf:"bytes,12,rep,name=identification_prefs,json=identificationPrefs,proto3" json:"identification_prefs,omitempty"` + // List of programmers supported by the board + Programmers []*Programmer `protobuf:"bytes,13,rep,name=programmers,proto3" json:"programmers,omitempty"` + // Set to true if the board supports debugging + DebuggingSupported bool `protobuf:"varint,14,opt,name=debugging_supported,json=debuggingSupported,proto3" json:"debugging_supported,omitempty"` + // If a board with the specified FQBN is connected returns its serial number + // too + SerialNumber string `protobuf:"bytes,15,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` +} + +func (x *BoardDetailsResponse) Reset() { + *x = BoardDetailsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardDetailsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardDetailsResponse) ProtoMessage() {} + +func (x *BoardDetailsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardDetailsResponse.ProtoReflect.Descriptor instead. +func (*BoardDetailsResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{1} +} + +func (x *BoardDetailsResponse) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *BoardDetailsResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BoardDetailsResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *BoardDetailsResponse) GetPropertiesId() string { + if x != nil { + return x.PropertiesId + } + return "" +} + +func (x *BoardDetailsResponse) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +func (x *BoardDetailsResponse) GetOfficial() bool { + if x != nil { + return x.Official + } + return false +} + +func (x *BoardDetailsResponse) GetPinout() string { + if x != nil { + return x.Pinout + } + return "" +} + +func (x *BoardDetailsResponse) GetPackage() *Package { + if x != nil { + return x.Package + } + return nil +} + +func (x *BoardDetailsResponse) GetPlatform() *BoardPlatform { + if x != nil { + return x.Platform + } + return nil +} + +func (x *BoardDetailsResponse) GetToolsDependencies() []*ToolsDependencies { + if x != nil { + return x.ToolsDependencies + } + return nil +} + +func (x *BoardDetailsResponse) GetConfigOptions() []*ConfigOption { + if x != nil { + return x.ConfigOptions + } + return nil +} + +func (x *BoardDetailsResponse) GetIdentificationPrefs() []*IdentificationPref { + if x != nil { + return x.IdentificationPrefs + } + return nil +} + +func (x *BoardDetailsResponse) GetProgrammers() []*Programmer { + if x != nil { + return x.Programmers + } + return nil +} + +func (x *BoardDetailsResponse) GetDebuggingSupported() bool { + if x != nil { + return x.DebuggingSupported + } + return false +} + +func (x *BoardDetailsResponse) GetSerialNumber() string { + if x != nil { + return x.SerialNumber + } + return "" +} + +type IdentificationPref struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifying information for USB-connected boards. + UsbId *USBID `protobuf:"bytes,1,opt,name=usb_id,json=usbId,proto3" json:"usb_id,omitempty"` +} + +func (x *IdentificationPref) Reset() { + *x = IdentificationPref{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IdentificationPref) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IdentificationPref) ProtoMessage() {} + +func (x *IdentificationPref) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IdentificationPref.ProtoReflect.Descriptor instead. +func (*IdentificationPref) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{2} +} + +func (x *IdentificationPref) GetUsbId() *USBID { + if x != nil { + return x.UsbId + } + return nil +} + +type USBID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // USB vendor ID. + Vid string `protobuf:"bytes,1,opt,name=vid,proto3" json:"vid,omitempty"` + // USB product ID. + Pid string `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` +} + +func (x *USBID) Reset() { + *x = USBID{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *USBID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*USBID) ProtoMessage() {} + +func (x *USBID) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use USBID.ProtoReflect.Descriptor instead. +func (*USBID) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{3} +} + +func (x *USBID) GetVid() string { + if x != nil { + return x.Vid + } + return "" +} + +func (x *USBID) GetPid() string { + if x != nil { + return x.Pid + } + return "" +} + +type Package struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maintainer of the package. + Maintainer string `protobuf:"bytes,1,opt,name=maintainer,proto3" json:"maintainer,omitempty"` + // The URL of the platforms index file + // (e.g., https://downloads.arduino.cc/packages/package_index.json). + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // A URL provided by the package author, intended to point to their website. + WebsiteUrl string `protobuf:"bytes,3,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"` + // Email address of the package maintainer. + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + // Package vendor name. + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + // Resources for getting help about using the package. + Help *Help `protobuf:"bytes,6,opt,name=help,proto3" json:"help,omitempty"` +} + +func (x *Package) Reset() { + *x = Package{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Package) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Package) ProtoMessage() {} + +func (x *Package) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Package.ProtoReflect.Descriptor instead. +func (*Package) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{4} +} + +func (x *Package) GetMaintainer() string { + if x != nil { + return x.Maintainer + } + return "" +} + +func (x *Package) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Package) GetWebsiteUrl() string { + if x != nil { + return x.WebsiteUrl + } + return "" +} + +func (x *Package) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *Package) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Package) GetHelp() *Help { + if x != nil { + return x.Help + } + return nil +} + +type Help struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // URL for getting online help. + Online string `protobuf:"bytes,1,opt,name=online,proto3" json:"online,omitempty"` +} + +func (x *Help) Reset() { + *x = Help{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Help) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Help) ProtoMessage() {} + +func (x *Help) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Help.ProtoReflect.Descriptor instead. +func (*Help) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{5} +} + +func (x *Help) GetOnline() string { + if x != nil { + return x.Online + } + return "" +} + +type BoardPlatform struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Architecture of the platform (e.g., `avr`). + Architecture string `protobuf:"bytes,1,opt,name=architecture,proto3" json:"architecture,omitempty"` + // Category of the platform. Set to `Contributed` for 3rd party platforms. + Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` + // Download URL of the platform archive file. + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + // File name of the platform archive. + ArchiveFilename string `protobuf:"bytes,4,opt,name=archive_filename,json=archiveFilename,proto3" json:"archive_filename,omitempty"` + // Checksum of the platform archive. + Checksum string `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` + // File size of the platform archive. + Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` + // Name used to identify the platform to humans. + Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *BoardPlatform) Reset() { + *x = BoardPlatform{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardPlatform) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardPlatform) ProtoMessage() {} + +func (x *BoardPlatform) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardPlatform.ProtoReflect.Descriptor instead. +func (*BoardPlatform) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{6} +} + +func (x *BoardPlatform) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +func (x *BoardPlatform) GetCategory() string { + if x != nil { + return x.Category + } + return "" +} + +func (x *BoardPlatform) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *BoardPlatform) GetArchiveFilename() string { + if x != nil { + return x.ArchiveFilename + } + return "" +} + +func (x *BoardPlatform) GetChecksum() string { + if x != nil { + return x.Checksum + } + return "" +} + +func (x *BoardPlatform) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *BoardPlatform) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type ToolsDependencies struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vendor name of the package containing the tool definition. + Packager string `protobuf:"bytes,1,opt,name=packager,proto3" json:"packager,omitempty"` + // Tool name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Tool version. + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + // Data for the operating system-specific builds of the tool. + Systems []*Systems `protobuf:"bytes,4,rep,name=systems,proto3" json:"systems,omitempty"` +} + +func (x *ToolsDependencies) Reset() { + *x = ToolsDependencies{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ToolsDependencies) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ToolsDependencies) ProtoMessage() {} + +func (x *ToolsDependencies) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ToolsDependencies.ProtoReflect.Descriptor instead. +func (*ToolsDependencies) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{7} +} + +func (x *ToolsDependencies) GetPackager() string { + if x != nil { + return x.Packager + } + return "" +} + +func (x *ToolsDependencies) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ToolsDependencies) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *ToolsDependencies) GetSystems() []*Systems { + if x != nil { + return x.Systems + } + return nil +} + +type Systems struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Checksum of the tool archive. + Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` + // Operating system identifier. + Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + // File name of the tool archive. + ArchiveFilename string `protobuf:"bytes,3,opt,name=archive_filename,json=archiveFilename,proto3" json:"archive_filename,omitempty"` + // Download URL of the tool archive. + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + // File size of the tool archive. + Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *Systems) Reset() { + *x = Systems{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Systems) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Systems) ProtoMessage() {} + +func (x *Systems) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Systems.ProtoReflect.Descriptor instead. +func (*Systems) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{8} +} + +func (x *Systems) GetChecksum() string { + if x != nil { + return x.Checksum + } + return "" +} + +func (x *Systems) GetHost() string { + if x != nil { + return x.Host + } + return "" +} + +func (x *Systems) GetArchiveFilename() string { + if x != nil { + return x.ArchiveFilename + } + return "" +} + +func (x *Systems) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Systems) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ConfigOption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of the configuration option. For identifying the option to machines. + Option string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"` + // Name of the configuration option for identifying the option to humans. + OptionLabel string `protobuf:"bytes,2,opt,name=option_label,json=optionLabel,proto3" json:"option_label,omitempty"` + // Possible values of the configuration option. + Values []*ConfigValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *ConfigOption) Reset() { + *x = ConfigOption{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfigOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigOption) ProtoMessage() {} + +func (x *ConfigOption) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConfigOption.ProtoReflect.Descriptor instead. +func (*ConfigOption) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{9} +} + +func (x *ConfigOption) GetOption() string { + if x != nil { + return x.Option + } + return "" +} + +func (x *ConfigOption) GetOptionLabel() string { + if x != nil { + return x.OptionLabel + } + return "" +} + +func (x *ConfigOption) GetValues() []*ConfigValue { + if x != nil { + return x.Values + } + return nil +} + +type ConfigValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The configuration option value. + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + // Label to identify the configuration option to humans. + ValueLabel string `protobuf:"bytes,2,opt,name=value_label,json=valueLabel,proto3" json:"value_label,omitempty"` + // Whether the configuration option is selected. + Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"` +} + +func (x *ConfigValue) Reset() { + *x = ConfigValue{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfigValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigValue) ProtoMessage() {} + +func (x *ConfigValue) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConfigValue.ProtoReflect.Descriptor instead. +func (*ConfigValue) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{10} +} + +func (x *ConfigValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *ConfigValue) GetValueLabel() string { + if x != nil { + return x.ValueLabel + } + return "" +} + +func (x *ConfigValue) GetSelected() bool { + if x != nil { + return x.Selected + } + return false +} + +type BoardAttachRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // The board's URI (e.g., /dev/ttyACM0). + BoardUri string `protobuf:"bytes,2,opt,name=board_uri,json=boardUri,proto3" json:"board_uri,omitempty"` + // Path of the sketch to attach the board to. The board attachment + // metadata will be saved to `{sketch_path}/sketch.json`. + SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // Duration in seconds to search the given URI for a connected board before + // timing out. The default value is 5 seconds. + SearchTimeout string `protobuf:"bytes,4,opt,name=search_timeout,json=searchTimeout,proto3" json:"search_timeout,omitempty"` +} + +func (x *BoardAttachRequest) Reset() { + *x = BoardAttachRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardAttachRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardAttachRequest) ProtoMessage() {} + +func (x *BoardAttachRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardAttachRequest.ProtoReflect.Descriptor instead. +func (*BoardAttachRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{11} +} + +func (x *BoardAttachRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BoardAttachRequest) GetBoardUri() string { + if x != nil { + return x.BoardUri + } + return "" +} + +func (x *BoardAttachRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *BoardAttachRequest) GetSearchTimeout() string { + if x != nil { + return x.SearchTimeout + } + return "" +} + +type BoardAttachResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Description of the current stage of the board attachment. + TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *BoardAttachResponse) Reset() { + *x = BoardAttachResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardAttachResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardAttachResponse) ProtoMessage() {} + +func (x *BoardAttachResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardAttachResponse.ProtoReflect.Descriptor instead. +func (*BoardAttachResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{12} +} + +func (x *BoardAttachResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type BoardListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *BoardListRequest) Reset() { + *x = BoardListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListRequest) ProtoMessage() {} + +func (x *BoardListRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListRequest.ProtoReflect.Descriptor instead. +func (*BoardListRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{13} +} + +func (x *BoardListRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type BoardListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of ports and the boards detected on those ports. + Ports []*DetectedPort `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` +} + +func (x *BoardListResponse) Reset() { + *x = BoardListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListResponse) ProtoMessage() {} + +func (x *BoardListResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListResponse.ProtoReflect.Descriptor instead. +func (*BoardListResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{14} +} + +func (x *BoardListResponse) GetPorts() []*DetectedPort { + if x != nil { + return x.Ports + } + return nil +} + +type DetectedPort struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Address of the port (e.g., `serial:///dev/ttyACM0`). + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Protocol of the port (e.g., `serial`). + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + // A human friendly description of the protocol (e.g., "Serial Port (USB)"). + ProtocolLabel string `protobuf:"bytes,3,opt,name=protocol_label,json=protocolLabel,proto3" json:"protocol_label,omitempty"` + // The boards attached to the port. + Boards []*BoardListItem `protobuf:"bytes,4,rep,name=boards,proto3" json:"boards,omitempty"` + // Serial number of connected board + SerialNumber string `protobuf:"bytes,5,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` +} + +func (x *DetectedPort) Reset() { + *x = DetectedPort{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DetectedPort) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DetectedPort) ProtoMessage() {} + +func (x *DetectedPort) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DetectedPort.ProtoReflect.Descriptor instead. +func (*DetectedPort) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{15} +} + +func (x *DetectedPort) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *DetectedPort) GetProtocol() string { + if x != nil { + return x.Protocol + } + return "" +} + +func (x *DetectedPort) GetProtocolLabel() string { + if x != nil { + return x.ProtocolLabel + } + return "" +} + +func (x *DetectedPort) GetBoards() []*BoardListItem { + if x != nil { + return x.Boards + } + return nil +} + +func (x *DetectedPort) GetSerialNumber() string { + if x != nil { + return x.SerialNumber + } + return "" +} + +type BoardListAllRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // The search query to filter the board list by. + SearchArgs []string `protobuf:"bytes,2,rep,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` + // Set to true to get also the boards marked as "hidden" in the platform + IncludeHiddenBoards bool `protobuf:"varint,3,opt,name=include_hidden_boards,json=includeHiddenBoards,proto3" json:"include_hidden_boards,omitempty"` +} + +func (x *BoardListAllRequest) Reset() { + *x = BoardListAllRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListAllRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListAllRequest) ProtoMessage() {} + +func (x *BoardListAllRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListAllRequest.ProtoReflect.Descriptor instead. +func (*BoardListAllRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{16} +} + +func (x *BoardListAllRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BoardListAllRequest) GetSearchArgs() []string { + if x != nil { + return x.SearchArgs + } + return nil +} + +func (x *BoardListAllRequest) GetIncludeHiddenBoards() bool { + if x != nil { + return x.IncludeHiddenBoards + } + return false +} + +type BoardListAllResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of installed boards. + Boards []*BoardListItem `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"` +} + +func (x *BoardListAllResponse) Reset() { + *x = BoardListAllResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListAllResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListAllResponse) ProtoMessage() {} + +func (x *BoardListAllResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListAllResponse.ProtoReflect.Descriptor instead. +func (*BoardListAllResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{17} +} + +func (x *BoardListAllResponse) GetBoards() []*BoardListItem { + if x != nil { + return x.Boards + } + return nil +} + +type BoardListWatchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Set this to true to stop the discovery process + Interrupt bool `protobuf:"varint,2,opt,name=interrupt,proto3" json:"interrupt,omitempty"` +} + +func (x *BoardListWatchRequest) Reset() { + *x = BoardListWatchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListWatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListWatchRequest) ProtoMessage() {} + +func (x *BoardListWatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListWatchRequest.ProtoReflect.Descriptor instead. +func (*BoardListWatchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{18} +} + +func (x *BoardListWatchRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BoardListWatchRequest) GetInterrupt() bool { + if x != nil { + return x.Interrupt + } + return false +} + +type BoardListWatchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Event type as received from the serial discovery tool + EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` + // Information about the port + Port *DetectedPort `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"` + // Eventual errors when detecting connected boards + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *BoardListWatchResponse) Reset() { + *x = BoardListWatchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListWatchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListWatchResponse) ProtoMessage() {} + +func (x *BoardListWatchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListWatchResponse.ProtoReflect.Descriptor instead. +func (*BoardListWatchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{19} +} + +func (x *BoardListWatchResponse) GetEventType() string { + if x != nil { + return x.EventType + } + return "" +} + +func (x *BoardListWatchResponse) GetPort() *DetectedPort { + if x != nil { + return x.Port + } + return nil +} + +func (x *BoardListWatchResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type BoardListItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name for use when identifying the board to a human. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The fully qualified board name. Used to identify the board to a machine. + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // If the board is marked as "hidden" in the platform + IsHidden bool `protobuf:"varint,3,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"` + // Vendor ID + Vid string `protobuf:"bytes,4,opt,name=vid,proto3" json:"vid,omitempty"` + // Product ID + Pid string `protobuf:"bytes,5,opt,name=pid,proto3" json:"pid,omitempty"` + // Platform this board belongs to + Platform *Platform `protobuf:"bytes,6,opt,name=platform,proto3" json:"platform,omitempty"` +} + +func (x *BoardListItem) Reset() { + *x = BoardListItem{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardListItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardListItem) ProtoMessage() {} + +func (x *BoardListItem) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardListItem.ProtoReflect.Descriptor instead. +func (*BoardListItem) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{20} +} + +func (x *BoardListItem) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BoardListItem) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *BoardListItem) GetIsHidden() bool { + if x != nil { + return x.IsHidden + } + return false +} + +func (x *BoardListItem) GetVid() string { + if x != nil { + return x.Vid + } + return "" +} + +func (x *BoardListItem) GetPid() string { + if x != nil { + return x.Pid + } + return "" +} + +func (x *BoardListItem) GetPlatform() *Platform { + if x != nil { + return x.Platform + } + return nil +} + +type BoardSearchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // The search query to filter the board list by. + SearchArgs string `protobuf:"bytes,2,opt,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` + // Set to true to get also the boards marked as "hidden" in installed + // platforms + IncludeHiddenBoards bool `protobuf:"varint,3,opt,name=include_hidden_boards,json=includeHiddenBoards,proto3" json:"include_hidden_boards,omitempty"` +} + +func (x *BoardSearchRequest) Reset() { + *x = BoardSearchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardSearchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardSearchRequest) ProtoMessage() {} + +func (x *BoardSearchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardSearchRequest.ProtoReflect.Descriptor instead. +func (*BoardSearchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{21} +} + +func (x *BoardSearchRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BoardSearchRequest) GetSearchArgs() string { + if x != nil { + return x.SearchArgs + } + return "" +} + +func (x *BoardSearchRequest) GetIncludeHiddenBoards() bool { + if x != nil { + return x.IncludeHiddenBoards + } + return false +} + +type BoardSearchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of installed and installable boards. + Boards []*BoardListItem `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"` +} + +func (x *BoardSearchResponse) Reset() { + *x = BoardSearchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardSearchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardSearchResponse) ProtoMessage() {} + +func (x *BoardSearchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_board_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoardSearchResponse.ProtoReflect.Descriptor instead. +func (*BoardSearchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP(), []int{22} +} + +func (x *BoardSearchResponse) GetBoards() []*BoardListItem { + if x != nil { + return x.Boards + } + return nil +} + +var File_cc_arduino_cli_commands_v1_board_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_board_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, + 0x13, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0xff, 0x05, 0x0a, 0x14, 0x42, + 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x69, 0x6e, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, + 0x6e, 0x6f, 0x75, 0x74, 0x12, 0x3d, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x5c, 0x0a, 0x12, 0x74, 0x6f, + 0x6f, 0x6c, 0x73, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x11, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x61, 0x0a, 0x14, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, + 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x52, 0x13, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x73, 0x12, 0x48, 0x0a, 0x0b, + 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x67, 0x72, + 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, + 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x12, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, + 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x12, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x65, 0x66, 0x12, 0x38, 0x0a, 0x06, 0x75, 0x73, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x53, 0x42, 0x49, 0x44, 0x52, 0x05, 0x75, 0x73, 0x62, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x05, + 0x55, 0x53, 0x42, 0x49, 0x44, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x76, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0xbc, 0x01, 0x0a, 0x07, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x65, 0x62, 0x73, 0x69, + 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x65, + 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, + 0x6c, 0x70, 0x52, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x22, 0x1e, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, + 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x6f, 0x61, + 0x72, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x29, 0x0a, 0x10, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x11, + 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x07, 0x73, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x73, 0x52, 0x07, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x07, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x12, 0x42, 0x6f, 0x61, 0x72, 0x64, + 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, + 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x72, 0x69, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, + 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x22, 0x64, 0x0a, 0x13, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x74, 0x74, + 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, + 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x54, 0x0a, 0x10, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x22, 0x53, 0x0a, 0x11, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, + 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0xd3, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x0e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x12, 0x41, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, + 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x13, + 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, + 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x41, 0x72, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x5f, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x48, 0x69, + 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, 0x59, 0x0a, 0x14, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, 0x77, 0x0a, 0x15, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, + 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x22, 0x8b, + 0x01, 0x0a, 0x16, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, + 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xba, 0x01, 0x0a, + 0x0d, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x68, 0x69, 0x64, + 0x64, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x48, 0x69, 0x64, + 0x64, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x76, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, + 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xab, 0x01, 0x0a, 0x12, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x72, 0x67, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, + 0x72, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x68, + 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x48, 0x69, 0x64, 0x64, 0x65, + 0x6e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, 0x58, 0x0a, 0x13, 0x42, 0x6f, 0x61, 0x72, 0x64, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, + 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, + 0x64, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, + 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, + 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_commands_v1_board_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_board_proto_rawDescData = file_cc_arduino_cli_commands_v1_board_proto_rawDesc +) + +func file_cc_arduino_cli_commands_v1_board_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_board_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_board_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_board_proto_rawDescData) + }) + return file_cc_arduino_cli_commands_v1_board_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_board_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_cc_arduino_cli_commands_v1_board_proto_goTypes = []interface{}{ + (*BoardDetailsRequest)(nil), // 0: cc.arduino.cli.commands.v1.BoardDetailsRequest + (*BoardDetailsResponse)(nil), // 1: cc.arduino.cli.commands.v1.BoardDetailsResponse + (*IdentificationPref)(nil), // 2: cc.arduino.cli.commands.v1.IdentificationPref + (*USBID)(nil), // 3: cc.arduino.cli.commands.v1.USBID + (*Package)(nil), // 4: cc.arduino.cli.commands.v1.Package + (*Help)(nil), // 5: cc.arduino.cli.commands.v1.Help + (*BoardPlatform)(nil), // 6: cc.arduino.cli.commands.v1.BoardPlatform + (*ToolsDependencies)(nil), // 7: cc.arduino.cli.commands.v1.ToolsDependencies + (*Systems)(nil), // 8: cc.arduino.cli.commands.v1.Systems + (*ConfigOption)(nil), // 9: cc.arduino.cli.commands.v1.ConfigOption + (*ConfigValue)(nil), // 10: cc.arduino.cli.commands.v1.ConfigValue + (*BoardAttachRequest)(nil), // 11: cc.arduino.cli.commands.v1.BoardAttachRequest + (*BoardAttachResponse)(nil), // 12: cc.arduino.cli.commands.v1.BoardAttachResponse + (*BoardListRequest)(nil), // 13: cc.arduino.cli.commands.v1.BoardListRequest + (*BoardListResponse)(nil), // 14: cc.arduino.cli.commands.v1.BoardListResponse + (*DetectedPort)(nil), // 15: cc.arduino.cli.commands.v1.DetectedPort + (*BoardListAllRequest)(nil), // 16: cc.arduino.cli.commands.v1.BoardListAllRequest + (*BoardListAllResponse)(nil), // 17: cc.arduino.cli.commands.v1.BoardListAllResponse + (*BoardListWatchRequest)(nil), // 18: cc.arduino.cli.commands.v1.BoardListWatchRequest + (*BoardListWatchResponse)(nil), // 19: cc.arduino.cli.commands.v1.BoardListWatchResponse + (*BoardListItem)(nil), // 20: cc.arduino.cli.commands.v1.BoardListItem + (*BoardSearchRequest)(nil), // 21: cc.arduino.cli.commands.v1.BoardSearchRequest + (*BoardSearchResponse)(nil), // 22: cc.arduino.cli.commands.v1.BoardSearchResponse + (*Instance)(nil), // 23: cc.arduino.cli.commands.v1.Instance + (*Programmer)(nil), // 24: cc.arduino.cli.commands.v1.Programmer + (*TaskProgress)(nil), // 25: cc.arduino.cli.commands.v1.TaskProgress + (*Platform)(nil), // 26: cc.arduino.cli.commands.v1.Platform +} +var file_cc_arduino_cli_commands_v1_board_proto_depIdxs = []int32{ + 23, // 0: cc.arduino.cli.commands.v1.BoardDetailsRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 4, // 1: cc.arduino.cli.commands.v1.BoardDetailsResponse.package:type_name -> cc.arduino.cli.commands.v1.Package + 6, // 2: cc.arduino.cli.commands.v1.BoardDetailsResponse.platform:type_name -> cc.arduino.cli.commands.v1.BoardPlatform + 7, // 3: cc.arduino.cli.commands.v1.BoardDetailsResponse.tools_dependencies:type_name -> cc.arduino.cli.commands.v1.ToolsDependencies + 9, // 4: cc.arduino.cli.commands.v1.BoardDetailsResponse.config_options:type_name -> cc.arduino.cli.commands.v1.ConfigOption + 2, // 5: cc.arduino.cli.commands.v1.BoardDetailsResponse.identification_prefs:type_name -> cc.arduino.cli.commands.v1.IdentificationPref + 24, // 6: cc.arduino.cli.commands.v1.BoardDetailsResponse.programmers:type_name -> cc.arduino.cli.commands.v1.Programmer + 3, // 7: cc.arduino.cli.commands.v1.IdentificationPref.usb_id:type_name -> cc.arduino.cli.commands.v1.USBID + 5, // 8: cc.arduino.cli.commands.v1.Package.help:type_name -> cc.arduino.cli.commands.v1.Help + 8, // 9: cc.arduino.cli.commands.v1.ToolsDependencies.systems:type_name -> cc.arduino.cli.commands.v1.Systems + 10, // 10: cc.arduino.cli.commands.v1.ConfigOption.values:type_name -> cc.arduino.cli.commands.v1.ConfigValue + 23, // 11: cc.arduino.cli.commands.v1.BoardAttachRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 25, // 12: cc.arduino.cli.commands.v1.BoardAttachResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 23, // 13: cc.arduino.cli.commands.v1.BoardListRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 15, // 14: cc.arduino.cli.commands.v1.BoardListResponse.ports:type_name -> cc.arduino.cli.commands.v1.DetectedPort + 20, // 15: cc.arduino.cli.commands.v1.DetectedPort.boards:type_name -> cc.arduino.cli.commands.v1.BoardListItem + 23, // 16: cc.arduino.cli.commands.v1.BoardListAllRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 20, // 17: cc.arduino.cli.commands.v1.BoardListAllResponse.boards:type_name -> cc.arduino.cli.commands.v1.BoardListItem + 23, // 18: cc.arduino.cli.commands.v1.BoardListWatchRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 15, // 19: cc.arduino.cli.commands.v1.BoardListWatchResponse.port:type_name -> cc.arduino.cli.commands.v1.DetectedPort + 26, // 20: cc.arduino.cli.commands.v1.BoardListItem.platform:type_name -> cc.arduino.cli.commands.v1.Platform + 23, // 21: cc.arduino.cli.commands.v1.BoardSearchRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 20, // 22: cc.arduino.cli.commands.v1.BoardSearchResponse.boards:type_name -> cc.arduino.cli.commands.v1.BoardListItem + 23, // [23:23] is the sub-list for method output_type + 23, // [23:23] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_commands_v1_board_proto_init() } +func file_cc_arduino_cli_commands_v1_board_proto_init() { + if File_cc_arduino_cli_commands_v1_board_proto != nil { + return + } + file_cc_arduino_cli_commands_v1_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardDetailsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardDetailsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IdentificationPref); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*USBID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Package); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Help); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardPlatform); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ToolsDependencies); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Systems); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigOption); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardAttachRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardAttachResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DetectedPort); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListAllRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListAllResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListWatchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListWatchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardListItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardSearchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_board_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardSearchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_commands_v1_board_proto_rawDesc, + NumEnums: 0, + NumMessages: 23, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cc_arduino_cli_commands_v1_board_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_board_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_board_proto_msgTypes, + }.Build() + File_cc_arduino_cli_commands_v1_board_proto = out.File + file_cc_arduino_cli_commands_v1_board_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_board_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_board_proto_depIdxs = nil +} diff --git a/rpc/cc/arduino/cli/commands/v1/board.proto b/rpc/cc/arduino/cli/commands/v1/board.proto new file mode 100644 index 00000000000..001330514b5 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/board.proto @@ -0,0 +1,258 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +import "cc/arduino/cli/commands/v1/common.proto"; + +message BoardDetailsRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // The fully qualified board name of the board you want information about + // (e.g., `arduino:avr:uno`). + string fqbn = 2; +} + +message BoardDetailsResponse { + // The fully qualified board name of the board. + string fqbn = 1; + // Name used to identify the board to humans (e.g., Arduino Uno). + string name = 2; + // Installed version of the board's platform. + string version = 3; + // The board ID component of the FQBN (e.g., `uno`). + string properties_id = 4; + // Board alias that can be used as a more user friendly alternative to the + // FQBN. + string alias = 5; + // Whether this is an official or 3rd party board. + bool official = 6; + // URL of the board's pinout documentation. + string pinout = 7; + // Data about the package that contains the board's platform. + Package package = 8; + // Data about the board's platform. + BoardPlatform platform = 9; + // Tool dependencies of the board. + repeated ToolsDependencies tools_dependencies = 10; + // The board's custom configuration options. + repeated ConfigOption config_options = 11; + // Identifying information for the board (e.g., USB VID/PID). + repeated IdentificationPref identification_prefs = 12; + // List of programmers supported by the board + repeated Programmer programmers = 13; + // Set to true if the board supports debugging + bool debugging_supported = 14; + // If a board with the specified FQBN is connected returns its serial number + // too + string serial_number = 15; +} + +message IdentificationPref { + // Identifying information for USB-connected boards. + USBID usb_id = 1; +} + +message USBID { + // USB vendor ID. + string vid = 1; + // USB product ID. + string pid = 2; +} + +message Package { + // Maintainer of the package. + string maintainer = 1; + // The URL of the platforms index file + // (e.g., https://downloads.arduino.cc/packages/package_index.json). + string url = 2; + // A URL provided by the package author, intended to point to their website. + string website_url = 3; + // Email address of the package maintainer. + string email = 4; + // Package vendor name. + string name = 5; + // Resources for getting help about using the package. + Help help = 6; +} + +message Help { + // URL for getting online help. + string online = 1; +} + +message BoardPlatform { + // Architecture of the platform (e.g., `avr`). + string architecture = 1; + // Category of the platform. Set to `Contributed` for 3rd party platforms. + string category = 2; + // Download URL of the platform archive file. + string url = 3; + // File name of the platform archive. + string archive_filename = 4; + // Checksum of the platform archive. + string checksum = 5; + // File size of the platform archive. + int64 size = 6; + // Name used to identify the platform to humans. + string name = 7; +} + +message ToolsDependencies { + // Vendor name of the package containing the tool definition. + string packager = 1; + // Tool name. + string name = 2; + // Tool version. + string version = 3; + // Data for the operating system-specific builds of the tool. + repeated Systems systems = 4; +} + +message Systems { + // Checksum of the tool archive. + string checksum = 1; + // Operating system identifier. + string host = 2; + // File name of the tool archive. + string archive_filename = 3; + // Download URL of the tool archive. + string url = 4; + // File size of the tool archive. + int64 size = 5; +} + +message ConfigOption { + // ID of the configuration option. For identifying the option to machines. + string option = 1; + // Name of the configuration option for identifying the option to humans. + string option_label = 2; + // Possible values of the configuration option. + repeated ConfigValue values = 3; +} + +message ConfigValue { + // The configuration option value. + string value = 1; + // Label to identify the configuration option to humans. + string value_label = 2; + // Whether the configuration option is selected. + bool selected = 3; +} + +message BoardAttachRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // The board's URI (e.g., /dev/ttyACM0). + string board_uri = 2; + // Path of the sketch to attach the board to. The board attachment + // metadata will be saved to `{sketch_path}/sketch.json`. + string sketch_path = 3; + // Duration in seconds to search the given URI for a connected board before + // timing out. The default value is 5 seconds. + string search_timeout = 4; +} + +message BoardAttachResponse { + // Description of the current stage of the board attachment. + TaskProgress task_progress = 1; +} + +message BoardListRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; +} + +message BoardListResponse { + // List of ports and the boards detected on those ports. + repeated DetectedPort ports = 1; +} + +message DetectedPort { + // Address of the port (e.g., `serial:///dev/ttyACM0`). + string address = 1; + // Protocol of the port (e.g., `serial`). + string protocol = 2; + // A human friendly description of the protocol (e.g., "Serial Port (USB)"). + string protocol_label = 3; + // The boards attached to the port. + repeated BoardListItem boards = 4; + // Serial number of connected board + string serial_number = 5; +} + +message BoardListAllRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // The search query to filter the board list by. + repeated string search_args = 2; + // Set to true to get also the boards marked as "hidden" in the platform + bool include_hidden_boards = 3; +} + +message BoardListAllResponse { + // List of installed boards. + repeated BoardListItem boards = 1; +} + +message BoardListWatchRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Set this to true to stop the discovery process + bool interrupt = 2; +} + +message BoardListWatchResponse { + // Event type as received from the serial discovery tool + string event_type = 1; + // Information about the port + DetectedPort port = 2; + // Eventual errors when detecting connected boards + string error = 3; +} + +message BoardListItem { + // The name for use when identifying the board to a human. + string name = 1; + // The fully qualified board name. Used to identify the board to a machine. + string fqbn = 2; + // If the board is marked as "hidden" in the platform + bool is_hidden = 3; + // Vendor ID + string vid = 4; + // Product ID + string pid = 5; + // Platform this board belongs to + Platform platform = 6; +} + +message BoardSearchRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // The search query to filter the board list by. + string search_args = 2; + // Set to true to get also the boards marked as "hidden" in installed + // platforms + bool include_hidden_boards = 3; +} + +message BoardSearchResponse { + // List of installed and installable boards. + repeated BoardListItem boards = 1; +} diff --git a/rpc/cc/arduino/cli/commands/v1/commands.pb.go b/rpc/cc/arduino/cli/commands/v1/commands.pb.go new file mode 100644 index 00000000000..28d4382cbf7 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/commands.pb.go @@ -0,0 +1,4209 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/commands/v1/commands.proto + +package commands + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type InitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Start a Arduino Core Service instance that will provide only Library + // Manager functionality. + LibraryManagerOnly bool `protobuf:"varint,2,opt,name=library_manager_only,json=libraryManagerOnly,proto3" json:"library_manager_only,omitempty"` +} + +func (x *InitRequest) Reset() { + *x = InitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitRequest) ProtoMessage() {} + +func (x *InitRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitRequest.ProtoReflect.Descriptor instead. +func (*InitRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{0} +} + +func (x *InitRequest) GetLibraryManagerOnly() bool { + if x != nil { + return x.LibraryManagerOnly + } + return false +} + +type InitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // An Arduino Core Service instance. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Error messages related to any problems encountered while parsing the + // platforms index files. + PlatformsIndexErrors []string `protobuf:"bytes,2,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"` + // Error message if a problem was encountered while parsing the libraries + // index file. + LibrariesIndexError string `protobuf:"bytes,3,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"` + // Progress of the downloads of platforms and libraries index files. + DownloadProgress *DownloadProgress `protobuf:"bytes,4,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` + // Describes the current stage of the initialization. + TaskProgress *TaskProgress `protobuf:"bytes,5,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *InitResponse) Reset() { + *x = InitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitResponse) ProtoMessage() {} + +func (x *InitResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitResponse.ProtoReflect.Descriptor instead. +func (*InitResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{1} +} + +func (x *InitResponse) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *InitResponse) GetPlatformsIndexErrors() []string { + if x != nil { + return x.PlatformsIndexErrors + } + return nil +} + +func (x *InitResponse) GetLibrariesIndexError() string { + if x != nil { + return x.LibrariesIndexError + } + return "" +} + +func (x *InitResponse) GetDownloadProgress() *DownloadProgress { + if x != nil { + return x.DownloadProgress + } + return nil +} + +func (x *InitResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type DestroyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The Arduino Core Service instance to destroy. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *DestroyRequest) Reset() { + *x = DestroyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DestroyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DestroyRequest) ProtoMessage() {} + +func (x *DestroyRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DestroyRequest.ProtoReflect.Descriptor instead. +func (*DestroyRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{2} +} + +func (x *DestroyRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type DestroyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DestroyResponse) Reset() { + *x = DestroyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DestroyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DestroyResponse) ProtoMessage() {} + +func (x *DestroyResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DestroyResponse.ProtoReflect.Descriptor instead. +func (*DestroyResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{3} +} + +type RescanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *RescanRequest) Reset() { + *x = RescanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RescanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RescanRequest) ProtoMessage() {} + +func (x *RescanRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RescanRequest.ProtoReflect.Descriptor instead. +func (*RescanRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{4} +} + +func (x *RescanRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type RescanResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Error messages related to any problems encountered while parsing the + // platforms index file. + PlatformsIndexErrors []string `protobuf:"bytes,1,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"` + // Error message if a problem was encountered while parsing the libraries + // index file. + LibrariesIndexError string `protobuf:"bytes,2,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"` +} + +func (x *RescanResponse) Reset() { + *x = RescanResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RescanResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RescanResponse) ProtoMessage() {} + +func (x *RescanResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RescanResponse.ProtoReflect.Descriptor instead. +func (*RescanResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{5} +} + +func (x *RescanResponse) GetPlatformsIndexErrors() []string { + if x != nil { + return x.PlatformsIndexErrors + } + return nil +} + +func (x *RescanResponse) GetLibrariesIndexError() string { + if x != nil { + return x.LibrariesIndexError + } + return "" +} + +type UpdateIndexRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *UpdateIndexRequest) Reset() { + *x = UpdateIndexRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateIndexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateIndexRequest) ProtoMessage() {} + +func (x *UpdateIndexRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateIndexRequest.ProtoReflect.Descriptor instead. +func (*UpdateIndexRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{6} +} + +func (x *UpdateIndexRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type UpdateIndexResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the platforms index download. + DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` +} + +func (x *UpdateIndexResponse) Reset() { + *x = UpdateIndexResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateIndexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateIndexResponse) ProtoMessage() {} + +func (x *UpdateIndexResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateIndexResponse.ProtoReflect.Descriptor instead. +func (*UpdateIndexResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{7} +} + +func (x *UpdateIndexResponse) GetDownloadProgress() *DownloadProgress { + if x != nil { + return x.DownloadProgress + } + return nil +} + +type UpdateLibrariesIndexRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *UpdateLibrariesIndexRequest) Reset() { + *x = UpdateLibrariesIndexRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateLibrariesIndexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateLibrariesIndexRequest) ProtoMessage() {} + +func (x *UpdateLibrariesIndexRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateLibrariesIndexRequest.ProtoReflect.Descriptor instead. +func (*UpdateLibrariesIndexRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdateLibrariesIndexRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type UpdateLibrariesIndexResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the libraries index download. + DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` +} + +func (x *UpdateLibrariesIndexResponse) Reset() { + *x = UpdateLibrariesIndexResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateLibrariesIndexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateLibrariesIndexResponse) ProtoMessage() {} + +func (x *UpdateLibrariesIndexResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateLibrariesIndexResponse.ProtoReflect.Descriptor instead. +func (*UpdateLibrariesIndexResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{9} +} + +func (x *UpdateLibrariesIndexResponse) GetDownloadProgress() *DownloadProgress { + if x != nil { + return x.DownloadProgress + } + return nil +} + +type UpdateCoreLibrariesIndexRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *UpdateCoreLibrariesIndexRequest) Reset() { + *x = UpdateCoreLibrariesIndexRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateCoreLibrariesIndexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateCoreLibrariesIndexRequest) ProtoMessage() {} + +func (x *UpdateCoreLibrariesIndexRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateCoreLibrariesIndexRequest.ProtoReflect.Descriptor instead. +func (*UpdateCoreLibrariesIndexRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{10} +} + +func (x *UpdateCoreLibrariesIndexRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type UpdateCoreLibrariesIndexResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the index download. + DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` +} + +func (x *UpdateCoreLibrariesIndexResponse) Reset() { + *x = UpdateCoreLibrariesIndexResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateCoreLibrariesIndexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateCoreLibrariesIndexResponse) ProtoMessage() {} + +func (x *UpdateCoreLibrariesIndexResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateCoreLibrariesIndexResponse.ProtoReflect.Descriptor instead. +func (*UpdateCoreLibrariesIndexResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdateCoreLibrariesIndexResponse) GetDownloadProgress() *DownloadProgress { + if x != nil { + return x.DownloadProgress + } + return nil +} + +type OutdatedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` +} + +func (x *OutdatedRequest) Reset() { + *x = OutdatedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutdatedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutdatedRequest) ProtoMessage() {} + +func (x *OutdatedRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutdatedRequest.ProtoReflect.Descriptor instead. +func (*OutdatedRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{12} +} + +func (x *OutdatedRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +type OutdatedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of installed libraries that can be updated. + OutdatedLibraries []*InstalledLibrary `protobuf:"bytes,1,rep,name=outdated_libraries,json=outdatedLibraries,proto3" json:"outdated_libraries,omitempty"` + // List of installed cores that can be updated. + OutdatedPlatforms []*Platform `protobuf:"bytes,2,rep,name=outdated_platforms,json=outdatedPlatforms,proto3" json:"outdated_platforms,omitempty"` +} + +func (x *OutdatedResponse) Reset() { + *x = OutdatedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutdatedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutdatedResponse) ProtoMessage() {} + +func (x *OutdatedResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutdatedResponse.ProtoReflect.Descriptor instead. +func (*OutdatedResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{13} +} + +func (x *OutdatedResponse) GetOutdatedLibraries() []*InstalledLibrary { + if x != nil { + return x.OutdatedLibraries + } + return nil +} + +func (x *OutdatedResponse) GetOutdatedPlatforms() []*Platform { + if x != nil { + return x.OutdatedPlatforms + } + return nil +} + +type UpgradeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Set to true to not run (eventual) post install scripts + SkipPostInstall bool `protobuf:"varint,2,opt,name=skip_post_install,json=skipPostInstall,proto3" json:"skip_post_install,omitempty"` +} + +func (x *UpgradeRequest) Reset() { + *x = UpgradeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpgradeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpgradeRequest) ProtoMessage() {} + +func (x *UpgradeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpgradeRequest.ProtoReflect.Descriptor instead. +func (*UpgradeRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{14} +} + +func (x *UpgradeRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *UpgradeRequest) GetSkipPostInstall() bool { + if x != nil { + return x.SkipPostInstall + } + return false +} + +type UpgradeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the downloads of the platforms and libraries files. + Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` + // Description of the current stage of the upgrade. + TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *UpgradeResponse) Reset() { + *x = UpgradeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpgradeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpgradeResponse) ProtoMessage() {} + +func (x *UpgradeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpgradeResponse.ProtoReflect.Descriptor instead. +func (*UpgradeResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{15} +} + +func (x *UpgradeResponse) GetProgress() *DownloadProgress { + if x != nil { + return x.Progress + } + return nil +} + +func (x *UpgradeResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type VersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *VersionRequest) Reset() { + *x = VersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersionRequest) ProtoMessage() {} + +func (x *VersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead. +func (*VersionRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{16} +} + +type VersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The version of Arduino CLI in use. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *VersionResponse) Reset() { + *x = VersionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersionResponse) ProtoMessage() {} + +func (x *VersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead. +func (*VersionResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{17} +} + +func (x *VersionResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type LoadSketchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the Init response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Absolute path to single sketch file or a sketch folder + SketchPath string `protobuf:"bytes,2,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` +} + +func (x *LoadSketchRequest) Reset() { + *x = LoadSketchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadSketchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadSketchRequest) ProtoMessage() {} + +func (x *LoadSketchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LoadSketchRequest.ProtoReflect.Descriptor instead. +func (*LoadSketchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{18} +} + +func (x *LoadSketchRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *LoadSketchRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +type LoadSketchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Absolute path to a main sketch files + MainFile string `protobuf:"bytes,1,opt,name=main_file,json=mainFile,proto3" json:"main_file,omitempty"` + // Absolute path to folder that contains main_file + LocationPath string `protobuf:"bytes,2,opt,name=location_path,json=locationPath,proto3" json:"location_path,omitempty"` + // List of absolute paths to other sketch files + OtherSketchFiles []string `protobuf:"bytes,3,rep,name=other_sketch_files,json=otherSketchFiles,proto3" json:"other_sketch_files,omitempty"` + // List of absolute paths to additional sketch files + AdditionalFiles []string `protobuf:"bytes,4,rep,name=additional_files,json=additionalFiles,proto3" json:"additional_files,omitempty"` + // List of absolute paths to supported files in the sketch root folder, main + // file excluded + RootFolderFiles []string `protobuf:"bytes,5,rep,name=root_folder_files,json=rootFolderFiles,proto3" json:"root_folder_files,omitempty"` +} + +func (x *LoadSketchResponse) Reset() { + *x = LoadSketchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadSketchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadSketchResponse) ProtoMessage() {} + +func (x *LoadSketchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LoadSketchResponse.ProtoReflect.Descriptor instead. +func (*LoadSketchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{19} +} + +func (x *LoadSketchResponse) GetMainFile() string { + if x != nil { + return x.MainFile + } + return "" +} + +func (x *LoadSketchResponse) GetLocationPath() string { + if x != nil { + return x.LocationPath + } + return "" +} + +func (x *LoadSketchResponse) GetOtherSketchFiles() []string { + if x != nil { + return x.OtherSketchFiles + } + return nil +} + +func (x *LoadSketchResponse) GetAdditionalFiles() []string { + if x != nil { + return x.AdditionalFiles + } + return nil +} + +func (x *LoadSketchResponse) GetRootFolderFiles() []string { + if x != nil { + return x.RootFolderFiles + } + return nil +} + +type ArchiveSketchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Absolute path to Sketch file or folder containing Sketch file + SketchPath string `protobuf:"bytes,1,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // Absolute path to archive that will be created or folder that will contain + // it + ArchivePath string `protobuf:"bytes,2,opt,name=archive_path,json=archivePath,proto3" json:"archive_path,omitempty"` + // Specifies if build directory should be included in the archive + IncludeBuildDir bool `protobuf:"varint,3,opt,name=include_build_dir,json=includeBuildDir,proto3" json:"include_build_dir,omitempty"` +} + +func (x *ArchiveSketchRequest) Reset() { + *x = ArchiveSketchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveSketchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveSketchRequest) ProtoMessage() {} + +func (x *ArchiveSketchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveSketchRequest.ProtoReflect.Descriptor instead. +func (*ArchiveSketchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{20} +} + +func (x *ArchiveSketchRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *ArchiveSketchRequest) GetArchivePath() string { + if x != nil { + return x.ArchivePath + } + return "" +} + +func (x *ArchiveSketchRequest) GetIncludeBuildDir() bool { + if x != nil { + return x.IncludeBuildDir + } + return false +} + +type ArchiveSketchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ArchiveSketchResponse) Reset() { + *x = ArchiveSketchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveSketchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveSketchResponse) ProtoMessage() {} + +func (x *ArchiveSketchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveSketchResponse.ProtoReflect.Descriptor instead. +func (*ArchiveSketchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{21} +} + +var File_cc_arduino_cli_commands_v1_commands_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_commands_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x26, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x25, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, + 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, + 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, + 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xe4, 0x02, 0x0a, 0x0c, 0x49, 0x6e, + 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x16, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x59, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x52, 0x0a, 0x0e, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x63, 0x61, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x7a, 0x0a, 0x0e, 0x52, 0x65, + 0x73, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x16, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x56, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x70, + 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, + 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x5f, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x22, 0x79, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x59, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x63, 0x0a, 0x1f, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x22, 0x7d, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, + 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x53, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x10, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x12, 0x6f, 0x75, + 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x53, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x22, 0x7e, 0x0a, 0x0e, + 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, + 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x22, 0xaa, 0x01, 0x0a, + 0x0f, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, + 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x0f, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, + 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, + 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, + 0x22, 0xdb, 0x01, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x69, 0x6e, + 0x46, 0x69, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x74, 0x68, + 0x65, 0x72, 0x5f, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x53, 0x6b, 0x65, 0x74, + 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x46, 0x69, 0x6c, + 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, 0x65, + 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, + 0x6f, 0x6f, 0x74, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x86, + 0x01, 0x0a, 0x14, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, + 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, + 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x69, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x44, 0x69, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x32, 0xac, 0x23, 0x0a, 0x12, 0x41, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x43, 0x6f, 0x72, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, + 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x64, 0x0a, 0x07, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, + 0x79, 0x12, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x72, + 0x6f, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x06, + 0x52, 0x65, 0x73, 0x63, 0x61, 0x6e, 0x12, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x72, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2e, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x30, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x37, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, + 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x30, 0x01, 0x12, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x12, 0x3b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, + 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, + 0x67, 0x0a, 0x08, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x07, 0x55, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x12, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, + 0x12, 0x64, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0a, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, + 0x65, 0x74, 0x63, 0x68, 0x12, 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x0d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x12, 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, + 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, + 0x0c, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, + 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x70, 0x0a, 0x0b, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x12, + 0x2e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, + 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2f, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, + 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x30, 0x01, 0x12, 0x68, 0x0a, 0x09, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, + 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0c, + 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6e, 0x0a, 0x0b, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x2e, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, + 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, + 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7b, 0x0a, 0x0e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, + 0x68, 0x12, 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x64, 0x0a, 0x07, + 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x12, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x30, 0x01, 0x12, 0x7c, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, + 0x12, 0x7f, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, + 0x01, 0x12, 0x82, 0x01, 0x0a, 0x11, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x7c, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x8e, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, + 0x72, 0x12, 0x38, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, + 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, + 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0xb0, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x44, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, + 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0e, 0x42, + 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x42, + 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, + 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x77, 0x0a, 0x0e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x71, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2f, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0f, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, + 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, + 0x12, 0x79, 0x0a, 0x0e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x12, 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x82, 0x01, 0x0a, 0x11, + 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x12, 0x34, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x5a, + 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, + 0x12, 0x82, 0x01, 0x0a, 0x11, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x7f, 0x0a, 0x10, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x82, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x9b, 0x01, 0x0a, 0x1a, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x3d, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0d, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x30, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6e, 0x0a, 0x0b, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, + 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, + 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_cc_arduino_cli_commands_v1_commands_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_commands_proto_rawDescData = file_cc_arduino_cli_commands_v1_commands_proto_rawDesc +) + +func file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_commands_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_commands_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_commands_proto_rawDescData) + }) + return file_cc_arduino_cli_commands_v1_commands_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_cc_arduino_cli_commands_v1_commands_proto_goTypes = []interface{}{ + (*InitRequest)(nil), // 0: cc.arduino.cli.commands.v1.InitRequest + (*InitResponse)(nil), // 1: cc.arduino.cli.commands.v1.InitResponse + (*DestroyRequest)(nil), // 2: cc.arduino.cli.commands.v1.DestroyRequest + (*DestroyResponse)(nil), // 3: cc.arduino.cli.commands.v1.DestroyResponse + (*RescanRequest)(nil), // 4: cc.arduino.cli.commands.v1.RescanRequest + (*RescanResponse)(nil), // 5: cc.arduino.cli.commands.v1.RescanResponse + (*UpdateIndexRequest)(nil), // 6: cc.arduino.cli.commands.v1.UpdateIndexRequest + (*UpdateIndexResponse)(nil), // 7: cc.arduino.cli.commands.v1.UpdateIndexResponse + (*UpdateLibrariesIndexRequest)(nil), // 8: cc.arduino.cli.commands.v1.UpdateLibrariesIndexRequest + (*UpdateLibrariesIndexResponse)(nil), // 9: cc.arduino.cli.commands.v1.UpdateLibrariesIndexResponse + (*UpdateCoreLibrariesIndexRequest)(nil), // 10: cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexRequest + (*UpdateCoreLibrariesIndexResponse)(nil), // 11: cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexResponse + (*OutdatedRequest)(nil), // 12: cc.arduino.cli.commands.v1.OutdatedRequest + (*OutdatedResponse)(nil), // 13: cc.arduino.cli.commands.v1.OutdatedResponse + (*UpgradeRequest)(nil), // 14: cc.arduino.cli.commands.v1.UpgradeRequest + (*UpgradeResponse)(nil), // 15: cc.arduino.cli.commands.v1.UpgradeResponse + (*VersionRequest)(nil), // 16: cc.arduino.cli.commands.v1.VersionRequest + (*VersionResponse)(nil), // 17: cc.arduino.cli.commands.v1.VersionResponse + (*LoadSketchRequest)(nil), // 18: cc.arduino.cli.commands.v1.LoadSketchRequest + (*LoadSketchResponse)(nil), // 19: cc.arduino.cli.commands.v1.LoadSketchResponse + (*ArchiveSketchRequest)(nil), // 20: cc.arduino.cli.commands.v1.ArchiveSketchRequest + (*ArchiveSketchResponse)(nil), // 21: cc.arduino.cli.commands.v1.ArchiveSketchResponse + (*Instance)(nil), // 22: cc.arduino.cli.commands.v1.Instance + (*DownloadProgress)(nil), // 23: cc.arduino.cli.commands.v1.DownloadProgress + (*TaskProgress)(nil), // 24: cc.arduino.cli.commands.v1.TaskProgress + (*InstalledLibrary)(nil), // 25: cc.arduino.cli.commands.v1.InstalledLibrary + (*Platform)(nil), // 26: cc.arduino.cli.commands.v1.Platform + (*BoardDetailsRequest)(nil), // 27: cc.arduino.cli.commands.v1.BoardDetailsRequest + (*BoardAttachRequest)(nil), // 28: cc.arduino.cli.commands.v1.BoardAttachRequest + (*BoardListRequest)(nil), // 29: cc.arduino.cli.commands.v1.BoardListRequest + (*BoardListAllRequest)(nil), // 30: cc.arduino.cli.commands.v1.BoardListAllRequest + (*BoardSearchRequest)(nil), // 31: cc.arduino.cli.commands.v1.BoardSearchRequest + (*BoardListWatchRequest)(nil), // 32: cc.arduino.cli.commands.v1.BoardListWatchRequest + (*CompileRequest)(nil), // 33: cc.arduino.cli.commands.v1.CompileRequest + (*PlatformInstallRequest)(nil), // 34: cc.arduino.cli.commands.v1.PlatformInstallRequest + (*PlatformDownloadRequest)(nil), // 35: cc.arduino.cli.commands.v1.PlatformDownloadRequest + (*PlatformUninstallRequest)(nil), // 36: cc.arduino.cli.commands.v1.PlatformUninstallRequest + (*PlatformUpgradeRequest)(nil), // 37: cc.arduino.cli.commands.v1.PlatformUpgradeRequest + (*UploadRequest)(nil), // 38: cc.arduino.cli.commands.v1.UploadRequest + (*UploadUsingProgrammerRequest)(nil), // 39: cc.arduino.cli.commands.v1.UploadUsingProgrammerRequest + (*ListProgrammersAvailableForUploadRequest)(nil), // 40: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadRequest + (*BurnBootloaderRequest)(nil), // 41: cc.arduino.cli.commands.v1.BurnBootloaderRequest + (*PlatformSearchRequest)(nil), // 42: cc.arduino.cli.commands.v1.PlatformSearchRequest + (*PlatformListRequest)(nil), // 43: cc.arduino.cli.commands.v1.PlatformListRequest + (*LibraryDownloadRequest)(nil), // 44: cc.arduino.cli.commands.v1.LibraryDownloadRequest + (*LibraryInstallRequest)(nil), // 45: cc.arduino.cli.commands.v1.LibraryInstallRequest + (*ZipLibraryInstallRequest)(nil), // 46: cc.arduino.cli.commands.v1.ZipLibraryInstallRequest + (*GitLibraryInstallRequest)(nil), // 47: cc.arduino.cli.commands.v1.GitLibraryInstallRequest + (*LibraryUninstallRequest)(nil), // 48: cc.arduino.cli.commands.v1.LibraryUninstallRequest + (*LibraryUpgradeAllRequest)(nil), // 49: cc.arduino.cli.commands.v1.LibraryUpgradeAllRequest + (*LibraryResolveDependenciesRequest)(nil), // 50: cc.arduino.cli.commands.v1.LibraryResolveDependenciesRequest + (*LibrarySearchRequest)(nil), // 51: cc.arduino.cli.commands.v1.LibrarySearchRequest + (*LibraryListRequest)(nil), // 52: cc.arduino.cli.commands.v1.LibraryListRequest + (*BoardDetailsResponse)(nil), // 53: cc.arduino.cli.commands.v1.BoardDetailsResponse + (*BoardAttachResponse)(nil), // 54: cc.arduino.cli.commands.v1.BoardAttachResponse + (*BoardListResponse)(nil), // 55: cc.arduino.cli.commands.v1.BoardListResponse + (*BoardListAllResponse)(nil), // 56: cc.arduino.cli.commands.v1.BoardListAllResponse + (*BoardSearchResponse)(nil), // 57: cc.arduino.cli.commands.v1.BoardSearchResponse + (*BoardListWatchResponse)(nil), // 58: cc.arduino.cli.commands.v1.BoardListWatchResponse + (*CompileResponse)(nil), // 59: cc.arduino.cli.commands.v1.CompileResponse + (*PlatformInstallResponse)(nil), // 60: cc.arduino.cli.commands.v1.PlatformInstallResponse + (*PlatformDownloadResponse)(nil), // 61: cc.arduino.cli.commands.v1.PlatformDownloadResponse + (*PlatformUninstallResponse)(nil), // 62: cc.arduino.cli.commands.v1.PlatformUninstallResponse + (*PlatformUpgradeResponse)(nil), // 63: cc.arduino.cli.commands.v1.PlatformUpgradeResponse + (*UploadResponse)(nil), // 64: cc.arduino.cli.commands.v1.UploadResponse + (*UploadUsingProgrammerResponse)(nil), // 65: cc.arduino.cli.commands.v1.UploadUsingProgrammerResponse + (*ListProgrammersAvailableForUploadResponse)(nil), // 66: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadResponse + (*BurnBootloaderResponse)(nil), // 67: cc.arduino.cli.commands.v1.BurnBootloaderResponse + (*PlatformSearchResponse)(nil), // 68: cc.arduino.cli.commands.v1.PlatformSearchResponse + (*PlatformListResponse)(nil), // 69: cc.arduino.cli.commands.v1.PlatformListResponse + (*LibraryDownloadResponse)(nil), // 70: cc.arduino.cli.commands.v1.LibraryDownloadResponse + (*LibraryInstallResponse)(nil), // 71: cc.arduino.cli.commands.v1.LibraryInstallResponse + (*ZipLibraryInstallResponse)(nil), // 72: cc.arduino.cli.commands.v1.ZipLibraryInstallResponse + (*GitLibraryInstallResponse)(nil), // 73: cc.arduino.cli.commands.v1.GitLibraryInstallResponse + (*LibraryUninstallResponse)(nil), // 74: cc.arduino.cli.commands.v1.LibraryUninstallResponse + (*LibraryUpgradeAllResponse)(nil), // 75: cc.arduino.cli.commands.v1.LibraryUpgradeAllResponse + (*LibraryResolveDependenciesResponse)(nil), // 76: cc.arduino.cli.commands.v1.LibraryResolveDependenciesResponse + (*LibrarySearchResponse)(nil), // 77: cc.arduino.cli.commands.v1.LibrarySearchResponse + (*LibraryListResponse)(nil), // 78: cc.arduino.cli.commands.v1.LibraryListResponse +} +var file_cc_arduino_cli_commands_v1_commands_proto_depIdxs = []int32{ + 22, // 0: cc.arduino.cli.commands.v1.InitResponse.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 23, // 1: cc.arduino.cli.commands.v1.InitResponse.download_progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 24, // 2: cc.arduino.cli.commands.v1.InitResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 22, // 3: cc.arduino.cli.commands.v1.DestroyRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 22, // 4: cc.arduino.cli.commands.v1.RescanRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 22, // 5: cc.arduino.cli.commands.v1.UpdateIndexRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 23, // 6: cc.arduino.cli.commands.v1.UpdateIndexResponse.download_progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 22, // 7: cc.arduino.cli.commands.v1.UpdateLibrariesIndexRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 23, // 8: cc.arduino.cli.commands.v1.UpdateLibrariesIndexResponse.download_progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 22, // 9: cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 23, // 10: cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexResponse.download_progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 22, // 11: cc.arduino.cli.commands.v1.OutdatedRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 25, // 12: cc.arduino.cli.commands.v1.OutdatedResponse.outdated_libraries:type_name -> cc.arduino.cli.commands.v1.InstalledLibrary + 26, // 13: cc.arduino.cli.commands.v1.OutdatedResponse.outdated_platforms:type_name -> cc.arduino.cli.commands.v1.Platform + 22, // 14: cc.arduino.cli.commands.v1.UpgradeRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 23, // 15: cc.arduino.cli.commands.v1.UpgradeResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 24, // 16: cc.arduino.cli.commands.v1.UpgradeResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 22, // 17: cc.arduino.cli.commands.v1.LoadSketchRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 0, // 18: cc.arduino.cli.commands.v1.ArduinoCoreService.Init:input_type -> cc.arduino.cli.commands.v1.InitRequest + 2, // 19: cc.arduino.cli.commands.v1.ArduinoCoreService.Destroy:input_type -> cc.arduino.cli.commands.v1.DestroyRequest + 4, // 20: cc.arduino.cli.commands.v1.ArduinoCoreService.Rescan:input_type -> cc.arduino.cli.commands.v1.RescanRequest + 6, // 21: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateIndex:input_type -> cc.arduino.cli.commands.v1.UpdateIndexRequest + 8, // 22: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateLibrariesIndex:input_type -> cc.arduino.cli.commands.v1.UpdateLibrariesIndexRequest + 10, // 23: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateCoreLibrariesIndex:input_type -> cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexRequest + 12, // 24: cc.arduino.cli.commands.v1.ArduinoCoreService.Outdated:input_type -> cc.arduino.cli.commands.v1.OutdatedRequest + 14, // 25: cc.arduino.cli.commands.v1.ArduinoCoreService.Upgrade:input_type -> cc.arduino.cli.commands.v1.UpgradeRequest + 16, // 26: cc.arduino.cli.commands.v1.ArduinoCoreService.Version:input_type -> cc.arduino.cli.commands.v1.VersionRequest + 18, // 27: cc.arduino.cli.commands.v1.ArduinoCoreService.LoadSketch:input_type -> cc.arduino.cli.commands.v1.LoadSketchRequest + 20, // 28: cc.arduino.cli.commands.v1.ArduinoCoreService.ArchiveSketch:input_type -> cc.arduino.cli.commands.v1.ArchiveSketchRequest + 27, // 29: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardDetails:input_type -> cc.arduino.cli.commands.v1.BoardDetailsRequest + 28, // 30: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardAttach:input_type -> cc.arduino.cli.commands.v1.BoardAttachRequest + 29, // 31: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardList:input_type -> cc.arduino.cli.commands.v1.BoardListRequest + 30, // 32: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardListAll:input_type -> cc.arduino.cli.commands.v1.BoardListAllRequest + 31, // 33: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardSearch:input_type -> cc.arduino.cli.commands.v1.BoardSearchRequest + 32, // 34: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardListWatch:input_type -> cc.arduino.cli.commands.v1.BoardListWatchRequest + 33, // 35: cc.arduino.cli.commands.v1.ArduinoCoreService.Compile:input_type -> cc.arduino.cli.commands.v1.CompileRequest + 34, // 36: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformInstall:input_type -> cc.arduino.cli.commands.v1.PlatformInstallRequest + 35, // 37: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformDownload:input_type -> cc.arduino.cli.commands.v1.PlatformDownloadRequest + 36, // 38: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformUninstall:input_type -> cc.arduino.cli.commands.v1.PlatformUninstallRequest + 37, // 39: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformUpgrade:input_type -> cc.arduino.cli.commands.v1.PlatformUpgradeRequest + 38, // 40: cc.arduino.cli.commands.v1.ArduinoCoreService.Upload:input_type -> cc.arduino.cli.commands.v1.UploadRequest + 39, // 41: cc.arduino.cli.commands.v1.ArduinoCoreService.UploadUsingProgrammer:input_type -> cc.arduino.cli.commands.v1.UploadUsingProgrammerRequest + 40, // 42: cc.arduino.cli.commands.v1.ArduinoCoreService.ListProgrammersAvailableForUpload:input_type -> cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadRequest + 41, // 43: cc.arduino.cli.commands.v1.ArduinoCoreService.BurnBootloader:input_type -> cc.arduino.cli.commands.v1.BurnBootloaderRequest + 42, // 44: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformSearch:input_type -> cc.arduino.cli.commands.v1.PlatformSearchRequest + 43, // 45: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformList:input_type -> cc.arduino.cli.commands.v1.PlatformListRequest + 44, // 46: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryDownload:input_type -> cc.arduino.cli.commands.v1.LibraryDownloadRequest + 45, // 47: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryInstall:input_type -> cc.arduino.cli.commands.v1.LibraryInstallRequest + 46, // 48: cc.arduino.cli.commands.v1.ArduinoCoreService.ZipLibraryInstall:input_type -> cc.arduino.cli.commands.v1.ZipLibraryInstallRequest + 47, // 49: cc.arduino.cli.commands.v1.ArduinoCoreService.GitLibraryInstall:input_type -> cc.arduino.cli.commands.v1.GitLibraryInstallRequest + 48, // 50: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryUninstall:input_type -> cc.arduino.cli.commands.v1.LibraryUninstallRequest + 49, // 51: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryUpgradeAll:input_type -> cc.arduino.cli.commands.v1.LibraryUpgradeAllRequest + 50, // 52: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryResolveDependencies:input_type -> cc.arduino.cli.commands.v1.LibraryResolveDependenciesRequest + 51, // 53: cc.arduino.cli.commands.v1.ArduinoCoreService.LibrarySearch:input_type -> cc.arduino.cli.commands.v1.LibrarySearchRequest + 52, // 54: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryList:input_type -> cc.arduino.cli.commands.v1.LibraryListRequest + 1, // 55: cc.arduino.cli.commands.v1.ArduinoCoreService.Init:output_type -> cc.arduino.cli.commands.v1.InitResponse + 3, // 56: cc.arduino.cli.commands.v1.ArduinoCoreService.Destroy:output_type -> cc.arduino.cli.commands.v1.DestroyResponse + 5, // 57: cc.arduino.cli.commands.v1.ArduinoCoreService.Rescan:output_type -> cc.arduino.cli.commands.v1.RescanResponse + 7, // 58: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateIndex:output_type -> cc.arduino.cli.commands.v1.UpdateIndexResponse + 9, // 59: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateLibrariesIndex:output_type -> cc.arduino.cli.commands.v1.UpdateLibrariesIndexResponse + 11, // 60: cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateCoreLibrariesIndex:output_type -> cc.arduino.cli.commands.v1.UpdateCoreLibrariesIndexResponse + 13, // 61: cc.arduino.cli.commands.v1.ArduinoCoreService.Outdated:output_type -> cc.arduino.cli.commands.v1.OutdatedResponse + 15, // 62: cc.arduino.cli.commands.v1.ArduinoCoreService.Upgrade:output_type -> cc.arduino.cli.commands.v1.UpgradeResponse + 17, // 63: cc.arduino.cli.commands.v1.ArduinoCoreService.Version:output_type -> cc.arduino.cli.commands.v1.VersionResponse + 19, // 64: cc.arduino.cli.commands.v1.ArduinoCoreService.LoadSketch:output_type -> cc.arduino.cli.commands.v1.LoadSketchResponse + 21, // 65: cc.arduino.cli.commands.v1.ArduinoCoreService.ArchiveSketch:output_type -> cc.arduino.cli.commands.v1.ArchiveSketchResponse + 53, // 66: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardDetails:output_type -> cc.arduino.cli.commands.v1.BoardDetailsResponse + 54, // 67: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardAttach:output_type -> cc.arduino.cli.commands.v1.BoardAttachResponse + 55, // 68: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardList:output_type -> cc.arduino.cli.commands.v1.BoardListResponse + 56, // 69: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardListAll:output_type -> cc.arduino.cli.commands.v1.BoardListAllResponse + 57, // 70: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardSearch:output_type -> cc.arduino.cli.commands.v1.BoardSearchResponse + 58, // 71: cc.arduino.cli.commands.v1.ArduinoCoreService.BoardListWatch:output_type -> cc.arduino.cli.commands.v1.BoardListWatchResponse + 59, // 72: cc.arduino.cli.commands.v1.ArduinoCoreService.Compile:output_type -> cc.arduino.cli.commands.v1.CompileResponse + 60, // 73: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformInstall:output_type -> cc.arduino.cli.commands.v1.PlatformInstallResponse + 61, // 74: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformDownload:output_type -> cc.arduino.cli.commands.v1.PlatformDownloadResponse + 62, // 75: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformUninstall:output_type -> cc.arduino.cli.commands.v1.PlatformUninstallResponse + 63, // 76: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformUpgrade:output_type -> cc.arduino.cli.commands.v1.PlatformUpgradeResponse + 64, // 77: cc.arduino.cli.commands.v1.ArduinoCoreService.Upload:output_type -> cc.arduino.cli.commands.v1.UploadResponse + 65, // 78: cc.arduino.cli.commands.v1.ArduinoCoreService.UploadUsingProgrammer:output_type -> cc.arduino.cli.commands.v1.UploadUsingProgrammerResponse + 66, // 79: cc.arduino.cli.commands.v1.ArduinoCoreService.ListProgrammersAvailableForUpload:output_type -> cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadResponse + 67, // 80: cc.arduino.cli.commands.v1.ArduinoCoreService.BurnBootloader:output_type -> cc.arduino.cli.commands.v1.BurnBootloaderResponse + 68, // 81: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformSearch:output_type -> cc.arduino.cli.commands.v1.PlatformSearchResponse + 69, // 82: cc.arduino.cli.commands.v1.ArduinoCoreService.PlatformList:output_type -> cc.arduino.cli.commands.v1.PlatformListResponse + 70, // 83: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryDownload:output_type -> cc.arduino.cli.commands.v1.LibraryDownloadResponse + 71, // 84: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryInstall:output_type -> cc.arduino.cli.commands.v1.LibraryInstallResponse + 72, // 85: cc.arduino.cli.commands.v1.ArduinoCoreService.ZipLibraryInstall:output_type -> cc.arduino.cli.commands.v1.ZipLibraryInstallResponse + 73, // 86: cc.arduino.cli.commands.v1.ArduinoCoreService.GitLibraryInstall:output_type -> cc.arduino.cli.commands.v1.GitLibraryInstallResponse + 74, // 87: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryUninstall:output_type -> cc.arduino.cli.commands.v1.LibraryUninstallResponse + 75, // 88: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryUpgradeAll:output_type -> cc.arduino.cli.commands.v1.LibraryUpgradeAllResponse + 76, // 89: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryResolveDependencies:output_type -> cc.arduino.cli.commands.v1.LibraryResolveDependenciesResponse + 77, // 90: cc.arduino.cli.commands.v1.ArduinoCoreService.LibrarySearch:output_type -> cc.arduino.cli.commands.v1.LibrarySearchResponse + 78, // 91: cc.arduino.cli.commands.v1.ArduinoCoreService.LibraryList:output_type -> cc.arduino.cli.commands.v1.LibraryListResponse + 55, // [55:92] is the sub-list for method output_type + 18, // [18:55] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_commands_v1_commands_proto_init() } +func file_cc_arduino_cli_commands_v1_commands_proto_init() { + if File_cc_arduino_cli_commands_v1_commands_proto != nil { + return + } + file_cc_arduino_cli_commands_v1_common_proto_init() + file_cc_arduino_cli_commands_v1_board_proto_init() + file_cc_arduino_cli_commands_v1_compile_proto_init() + file_cc_arduino_cli_commands_v1_core_proto_init() + file_cc_arduino_cli_commands_v1_upload_proto_init() + file_cc_arduino_cli_commands_v1_lib_proto_init() + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DestroyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DestroyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RescanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RescanResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateIndexRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateIndexResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateLibrariesIndexRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateLibrariesIndexResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateCoreLibrariesIndexRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateCoreLibrariesIndexResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutdatedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutdatedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpgradeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpgradeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadSketchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadSketchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveSketchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_commands_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveSketchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_commands_v1_commands_proto_rawDesc, + NumEnums: 0, + NumMessages: 22, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cc_arduino_cli_commands_v1_commands_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_commands_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_commands_proto_msgTypes, + }.Build() + File_cc_arduino_cli_commands_v1_commands_proto = out.File + file_cc_arduino_cli_commands_v1_commands_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_commands_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_commands_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ArduinoCoreServiceClient is the client API for ArduinoCoreService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ArduinoCoreServiceClient interface { + // Start a new instance of the Arduino Core Service + Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (ArduinoCoreService_InitClient, error) + // Destroy an instance of the Arduino Core Service + Destroy(ctx context.Context, in *DestroyRequest, opts ...grpc.CallOption) (*DestroyResponse, error) + // Rescan instance of the Arduino Core Service + Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (*RescanResponse, error) + // Update package index of the Arduino Core Service + UpdateIndex(ctx context.Context, in *UpdateIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateIndexClient, error) + // Update libraries index + UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateLibrariesIndexClient, error) + // Update packages indexes for both Cores and Libraries + UpdateCoreLibrariesIndex(ctx context.Context, in *UpdateCoreLibrariesIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateCoreLibrariesIndexClient, error) + // Outdated returns a message with a list of outdated Cores and Libraries + Outdated(ctx context.Context, in *OutdatedRequest, opts ...grpc.CallOption) (*OutdatedResponse, error) + // Upgrade both Cores and Libraries + Upgrade(ctx context.Context, in *UpgradeRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpgradeClient, error) + // Get the version of Arduino CLI in use. + Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) + // Returns all files composing a Sketch + LoadSketch(ctx context.Context, in *LoadSketchRequest, opts ...grpc.CallOption) (*LoadSketchResponse, error) + // Creates a zip file containing all files of specified Sketch + ArchiveSketch(ctx context.Context, in *ArchiveSketchRequest, opts ...grpc.CallOption) (*ArchiveSketchResponse, error) + // Requests details about a board + BoardDetails(ctx context.Context, in *BoardDetailsRequest, opts ...grpc.CallOption) (*BoardDetailsResponse, error) + // Attach a board to a sketch. When the `fqbn` field of a request is not + // provided, the FQBN of the attached board will be used. + BoardAttach(ctx context.Context, in *BoardAttachRequest, opts ...grpc.CallOption) (ArduinoCoreService_BoardAttachClient, error) + // List the boards currently connected to the computer. + BoardList(ctx context.Context, in *BoardListRequest, opts ...grpc.CallOption) (*BoardListResponse, error) + // List all the boards provided by installed platforms. + BoardListAll(ctx context.Context, in *BoardListAllRequest, opts ...grpc.CallOption) (*BoardListAllResponse, error) + // Search boards in installed and not installed Platforms. + BoardSearch(ctx context.Context, in *BoardSearchRequest, opts ...grpc.CallOption) (*BoardSearchResponse, error) + // List boards connection and disconnected events. + BoardListWatch(ctx context.Context, opts ...grpc.CallOption) (ArduinoCoreService_BoardListWatchClient, error) + // Compile an Arduino sketch. + Compile(ctx context.Context, in *CompileRequest, opts ...grpc.CallOption) (ArduinoCoreService_CompileClient, error) + // Download and install a platform and its tool dependencies. + PlatformInstall(ctx context.Context, in *PlatformInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformInstallClient, error) + // Download a platform and its tool dependencies to the `staging/packages` + // subdirectory of the data directory. + PlatformDownload(ctx context.Context, in *PlatformDownloadRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformDownloadClient, error) + // Uninstall a platform as well as its tool dependencies that are not used by + // other installed platforms. + PlatformUninstall(ctx context.Context, in *PlatformUninstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformUninstallClient, error) + // Upgrade an installed platform to the latest version. + PlatformUpgrade(ctx context.Context, in *PlatformUpgradeRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformUpgradeClient, error) + // Upload a compiled sketch to a board. + Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (ArduinoCoreService_UploadClient, error) + // Upload a compiled sketch to a board using a programmer. + UploadUsingProgrammer(ctx context.Context, in *UploadUsingProgrammerRequest, opts ...grpc.CallOption) (ArduinoCoreService_UploadUsingProgrammerClient, error) + // List programmers available for a board. + ListProgrammersAvailableForUpload(ctx context.Context, in *ListProgrammersAvailableForUploadRequest, opts ...grpc.CallOption) (*ListProgrammersAvailableForUploadResponse, error) + // Burn bootloader to a board. + BurnBootloader(ctx context.Context, in *BurnBootloaderRequest, opts ...grpc.CallOption) (ArduinoCoreService_BurnBootloaderClient, error) + // Search for a platform in the platforms indexes. + PlatformSearch(ctx context.Context, in *PlatformSearchRequest, opts ...grpc.CallOption) (*PlatformSearchResponse, error) + // List all installed platforms. + PlatformList(ctx context.Context, in *PlatformListRequest, opts ...grpc.CallOption) (*PlatformListResponse, error) + // Download the archive file of an Arduino library in the libraries index to + // the staging directory. + LibraryDownload(ctx context.Context, in *LibraryDownloadRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryDownloadClient, error) + // Download and install an Arduino library from the libraries index. + LibraryInstall(ctx context.Context, in *LibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryInstallClient, error) + // Install a library from a Zip File + ZipLibraryInstall(ctx context.Context, in *ZipLibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_ZipLibraryInstallClient, error) + // Download and install a library from a git url + GitLibraryInstall(ctx context.Context, in *GitLibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_GitLibraryInstallClient, error) + // Uninstall an Arduino library. + LibraryUninstall(ctx context.Context, in *LibraryUninstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryUninstallClient, error) + // Upgrade all installed Arduino libraries to the newest version available. + LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryUpgradeAllClient, error) + // List the recursive dependencies of a library, as defined by the `depends` + // field of the library.properties files. + LibraryResolveDependencies(ctx context.Context, in *LibraryResolveDependenciesRequest, opts ...grpc.CallOption) (*LibraryResolveDependenciesResponse, error) + // Search the Arduino libraries index for libraries. + LibrarySearch(ctx context.Context, in *LibrarySearchRequest, opts ...grpc.CallOption) (*LibrarySearchResponse, error) + // List the installed libraries. + LibraryList(ctx context.Context, in *LibraryListRequest, opts ...grpc.CallOption) (*LibraryListResponse, error) +} + +type arduinoCoreServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewArduinoCoreServiceClient(cc grpc.ClientConnInterface) ArduinoCoreServiceClient { + return &arduinoCoreServiceClient{cc} +} + +func (c *arduinoCoreServiceClient) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (ArduinoCoreService_InitClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[0], "/cc.arduino.cli.commands.v1.ArduinoCoreService/Init", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceInitClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_InitClient interface { + Recv() (*InitResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceInitClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceInitClient) Recv() (*InitResponse, error) { + m := new(InitResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) Destroy(ctx context.Context, in *DestroyRequest, opts ...grpc.CallOption) (*DestroyResponse, error) { + out := new(DestroyResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/Destroy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (*RescanResponse, error) { + out := new(RescanResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/Rescan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) UpdateIndex(ctx context.Context, in *UpdateIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateIndexClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[1], "/cc.arduino.cli.commands.v1.ArduinoCoreService/UpdateIndex", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUpdateIndexClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UpdateIndexClient interface { + Recv() (*UpdateIndexResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUpdateIndexClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUpdateIndexClient) Recv() (*UpdateIndexResponse, error) { + m := new(UpdateIndexResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateLibrariesIndexClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[2], "/cc.arduino.cli.commands.v1.ArduinoCoreService/UpdateLibrariesIndex", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUpdateLibrariesIndexClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UpdateLibrariesIndexClient interface { + Recv() (*UpdateLibrariesIndexResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUpdateLibrariesIndexClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUpdateLibrariesIndexClient) Recv() (*UpdateLibrariesIndexResponse, error) { + m := new(UpdateLibrariesIndexResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) UpdateCoreLibrariesIndex(ctx context.Context, in *UpdateCoreLibrariesIndexRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpdateCoreLibrariesIndexClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[3], "/cc.arduino.cli.commands.v1.ArduinoCoreService/UpdateCoreLibrariesIndex", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUpdateCoreLibrariesIndexClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UpdateCoreLibrariesIndexClient interface { + Recv() (*UpdateCoreLibrariesIndexResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUpdateCoreLibrariesIndexClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUpdateCoreLibrariesIndexClient) Recv() (*UpdateCoreLibrariesIndexResponse, error) { + m := new(UpdateCoreLibrariesIndexResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) Outdated(ctx context.Context, in *OutdatedRequest, opts ...grpc.CallOption) (*OutdatedResponse, error) { + out := new(OutdatedResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/Outdated", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) Upgrade(ctx context.Context, in *UpgradeRequest, opts ...grpc.CallOption) (ArduinoCoreService_UpgradeClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[4], "/cc.arduino.cli.commands.v1.ArduinoCoreService/Upgrade", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUpgradeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UpgradeClient interface { + Recv() (*UpgradeResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUpgradeClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUpgradeClient) Recv() (*UpgradeResponse, error) { + m := new(UpgradeResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { + out := new(VersionResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/Version", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) LoadSketch(ctx context.Context, in *LoadSketchRequest, opts ...grpc.CallOption) (*LoadSketchResponse, error) { + out := new(LoadSketchResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/LoadSketch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) ArchiveSketch(ctx context.Context, in *ArchiveSketchRequest, opts ...grpc.CallOption) (*ArchiveSketchResponse, error) { + out := new(ArchiveSketchResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/ArchiveSketch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BoardDetails(ctx context.Context, in *BoardDetailsRequest, opts ...grpc.CallOption) (*BoardDetailsResponse, error) { + out := new(BoardDetailsResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardDetails", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BoardAttach(ctx context.Context, in *BoardAttachRequest, opts ...grpc.CallOption) (ArduinoCoreService_BoardAttachClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[5], "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardAttach", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceBoardAttachClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_BoardAttachClient interface { + Recv() (*BoardAttachResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceBoardAttachClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceBoardAttachClient) Recv() (*BoardAttachResponse, error) { + m := new(BoardAttachResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) BoardList(ctx context.Context, in *BoardListRequest, opts ...grpc.CallOption) (*BoardListResponse, error) { + out := new(BoardListResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BoardListAll(ctx context.Context, in *BoardListAllRequest, opts ...grpc.CallOption) (*BoardListAllResponse, error) { + out := new(BoardListAllResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardListAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BoardSearch(ctx context.Context, in *BoardSearchRequest, opts ...grpc.CallOption) (*BoardSearchResponse, error) { + out := new(BoardSearchResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardSearch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BoardListWatch(ctx context.Context, opts ...grpc.CallOption) (ArduinoCoreService_BoardListWatchClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[6], "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardListWatch", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceBoardListWatchClient{stream} + return x, nil +} + +type ArduinoCoreService_BoardListWatchClient interface { + Send(*BoardListWatchRequest) error + Recv() (*BoardListWatchResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceBoardListWatchClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceBoardListWatchClient) Send(m *BoardListWatchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *arduinoCoreServiceBoardListWatchClient) Recv() (*BoardListWatchResponse, error) { + m := new(BoardListWatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) Compile(ctx context.Context, in *CompileRequest, opts ...grpc.CallOption) (ArduinoCoreService_CompileClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[7], "/cc.arduino.cli.commands.v1.ArduinoCoreService/Compile", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceCompileClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_CompileClient interface { + Recv() (*CompileResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceCompileClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceCompileClient) Recv() (*CompileResponse, error) { + m := new(CompileResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) PlatformInstall(ctx context.Context, in *PlatformInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformInstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[8], "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformInstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServicePlatformInstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_PlatformInstallClient interface { + Recv() (*PlatformInstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServicePlatformInstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServicePlatformInstallClient) Recv() (*PlatformInstallResponse, error) { + m := new(PlatformInstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) PlatformDownload(ctx context.Context, in *PlatformDownloadRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformDownloadClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[9], "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformDownload", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServicePlatformDownloadClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_PlatformDownloadClient interface { + Recv() (*PlatformDownloadResponse, error) + grpc.ClientStream +} + +type arduinoCoreServicePlatformDownloadClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServicePlatformDownloadClient) Recv() (*PlatformDownloadResponse, error) { + m := new(PlatformDownloadResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) PlatformUninstall(ctx context.Context, in *PlatformUninstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformUninstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[10], "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformUninstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServicePlatformUninstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_PlatformUninstallClient interface { + Recv() (*PlatformUninstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServicePlatformUninstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServicePlatformUninstallClient) Recv() (*PlatformUninstallResponse, error) { + m := new(PlatformUninstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) PlatformUpgrade(ctx context.Context, in *PlatformUpgradeRequest, opts ...grpc.CallOption) (ArduinoCoreService_PlatformUpgradeClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[11], "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformUpgrade", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServicePlatformUpgradeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_PlatformUpgradeClient interface { + Recv() (*PlatformUpgradeResponse, error) + grpc.ClientStream +} + +type arduinoCoreServicePlatformUpgradeClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServicePlatformUpgradeClient) Recv() (*PlatformUpgradeResponse, error) { + m := new(PlatformUpgradeResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (ArduinoCoreService_UploadClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[12], "/cc.arduino.cli.commands.v1.ArduinoCoreService/Upload", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUploadClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UploadClient interface { + Recv() (*UploadResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUploadClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUploadClient) Recv() (*UploadResponse, error) { + m := new(UploadResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) UploadUsingProgrammer(ctx context.Context, in *UploadUsingProgrammerRequest, opts ...grpc.CallOption) (ArduinoCoreService_UploadUsingProgrammerClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[13], "/cc.arduino.cli.commands.v1.ArduinoCoreService/UploadUsingProgrammer", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceUploadUsingProgrammerClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_UploadUsingProgrammerClient interface { + Recv() (*UploadUsingProgrammerResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceUploadUsingProgrammerClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceUploadUsingProgrammerClient) Recv() (*UploadUsingProgrammerResponse, error) { + m := new(UploadUsingProgrammerResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) ListProgrammersAvailableForUpload(ctx context.Context, in *ListProgrammersAvailableForUploadRequest, opts ...grpc.CallOption) (*ListProgrammersAvailableForUploadResponse, error) { + out := new(ListProgrammersAvailableForUploadResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/ListProgrammersAvailableForUpload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) BurnBootloader(ctx context.Context, in *BurnBootloaderRequest, opts ...grpc.CallOption) (ArduinoCoreService_BurnBootloaderClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[14], "/cc.arduino.cli.commands.v1.ArduinoCoreService/BurnBootloader", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceBurnBootloaderClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_BurnBootloaderClient interface { + Recv() (*BurnBootloaderResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceBurnBootloaderClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceBurnBootloaderClient) Recv() (*BurnBootloaderResponse, error) { + m := new(BurnBootloaderResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) PlatformSearch(ctx context.Context, in *PlatformSearchRequest, opts ...grpc.CallOption) (*PlatformSearchResponse, error) { + out := new(PlatformSearchResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformSearch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) PlatformList(ctx context.Context, in *PlatformListRequest, opts ...grpc.CallOption) (*PlatformListResponse, error) { + out := new(PlatformListResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) LibraryDownload(ctx context.Context, in *LibraryDownloadRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryDownloadClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[15], "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryDownload", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceLibraryDownloadClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_LibraryDownloadClient interface { + Recv() (*LibraryDownloadResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceLibraryDownloadClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceLibraryDownloadClient) Recv() (*LibraryDownloadResponse, error) { + m := new(LibraryDownloadResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) LibraryInstall(ctx context.Context, in *LibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryInstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[16], "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryInstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceLibraryInstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_LibraryInstallClient interface { + Recv() (*LibraryInstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceLibraryInstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceLibraryInstallClient) Recv() (*LibraryInstallResponse, error) { + m := new(LibraryInstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) ZipLibraryInstall(ctx context.Context, in *ZipLibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_ZipLibraryInstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[17], "/cc.arduino.cli.commands.v1.ArduinoCoreService/ZipLibraryInstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceZipLibraryInstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_ZipLibraryInstallClient interface { + Recv() (*ZipLibraryInstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceZipLibraryInstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceZipLibraryInstallClient) Recv() (*ZipLibraryInstallResponse, error) { + m := new(ZipLibraryInstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) GitLibraryInstall(ctx context.Context, in *GitLibraryInstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_GitLibraryInstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[18], "/cc.arduino.cli.commands.v1.ArduinoCoreService/GitLibraryInstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceGitLibraryInstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_GitLibraryInstallClient interface { + Recv() (*GitLibraryInstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceGitLibraryInstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceGitLibraryInstallClient) Recv() (*GitLibraryInstallResponse, error) { + m := new(GitLibraryInstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) LibraryUninstall(ctx context.Context, in *LibraryUninstallRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryUninstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[19], "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryUninstall", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceLibraryUninstallClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_LibraryUninstallClient interface { + Recv() (*LibraryUninstallResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceLibraryUninstallClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceLibraryUninstallClient) Recv() (*LibraryUninstallResponse, error) { + m := new(LibraryUninstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllRequest, opts ...grpc.CallOption) (ArduinoCoreService_LibraryUpgradeAllClient, error) { + stream, err := c.cc.NewStream(ctx, &_ArduinoCoreService_serviceDesc.Streams[20], "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryUpgradeAll", opts...) + if err != nil { + return nil, err + } + x := &arduinoCoreServiceLibraryUpgradeAllClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ArduinoCoreService_LibraryUpgradeAllClient interface { + Recv() (*LibraryUpgradeAllResponse, error) + grpc.ClientStream +} + +type arduinoCoreServiceLibraryUpgradeAllClient struct { + grpc.ClientStream +} + +func (x *arduinoCoreServiceLibraryUpgradeAllClient) Recv() (*LibraryUpgradeAllResponse, error) { + m := new(LibraryUpgradeAllResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *arduinoCoreServiceClient) LibraryResolveDependencies(ctx context.Context, in *LibraryResolveDependenciesRequest, opts ...grpc.CallOption) (*LibraryResolveDependenciesResponse, error) { + out := new(LibraryResolveDependenciesResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryResolveDependencies", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) LibrarySearch(ctx context.Context, in *LibrarySearchRequest, opts ...grpc.CallOption) (*LibrarySearchResponse, error) { + out := new(LibrarySearchResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibrarySearch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *arduinoCoreServiceClient) LibraryList(ctx context.Context, in *LibraryListRequest, opts ...grpc.CallOption) (*LibraryListResponse, error) { + out := new(LibraryListResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ArduinoCoreServiceServer is the server API for ArduinoCoreService service. +type ArduinoCoreServiceServer interface { + // Start a new instance of the Arduino Core Service + Init(*InitRequest, ArduinoCoreService_InitServer) error + // Destroy an instance of the Arduino Core Service + Destroy(context.Context, *DestroyRequest) (*DestroyResponse, error) + // Rescan instance of the Arduino Core Service + Rescan(context.Context, *RescanRequest) (*RescanResponse, error) + // Update package index of the Arduino Core Service + UpdateIndex(*UpdateIndexRequest, ArduinoCoreService_UpdateIndexServer) error + // Update libraries index + UpdateLibrariesIndex(*UpdateLibrariesIndexRequest, ArduinoCoreService_UpdateLibrariesIndexServer) error + // Update packages indexes for both Cores and Libraries + UpdateCoreLibrariesIndex(*UpdateCoreLibrariesIndexRequest, ArduinoCoreService_UpdateCoreLibrariesIndexServer) error + // Outdated returns a message with a list of outdated Cores and Libraries + Outdated(context.Context, *OutdatedRequest) (*OutdatedResponse, error) + // Upgrade both Cores and Libraries + Upgrade(*UpgradeRequest, ArduinoCoreService_UpgradeServer) error + // Get the version of Arduino CLI in use. + Version(context.Context, *VersionRequest) (*VersionResponse, error) + // Returns all files composing a Sketch + LoadSketch(context.Context, *LoadSketchRequest) (*LoadSketchResponse, error) + // Creates a zip file containing all files of specified Sketch + ArchiveSketch(context.Context, *ArchiveSketchRequest) (*ArchiveSketchResponse, error) + // Requests details about a board + BoardDetails(context.Context, *BoardDetailsRequest) (*BoardDetailsResponse, error) + // Attach a board to a sketch. When the `fqbn` field of a request is not + // provided, the FQBN of the attached board will be used. + BoardAttach(*BoardAttachRequest, ArduinoCoreService_BoardAttachServer) error + // List the boards currently connected to the computer. + BoardList(context.Context, *BoardListRequest) (*BoardListResponse, error) + // List all the boards provided by installed platforms. + BoardListAll(context.Context, *BoardListAllRequest) (*BoardListAllResponse, error) + // Search boards in installed and not installed Platforms. + BoardSearch(context.Context, *BoardSearchRequest) (*BoardSearchResponse, error) + // List boards connection and disconnected events. + BoardListWatch(ArduinoCoreService_BoardListWatchServer) error + // Compile an Arduino sketch. + Compile(*CompileRequest, ArduinoCoreService_CompileServer) error + // Download and install a platform and its tool dependencies. + PlatformInstall(*PlatformInstallRequest, ArduinoCoreService_PlatformInstallServer) error + // Download a platform and its tool dependencies to the `staging/packages` + // subdirectory of the data directory. + PlatformDownload(*PlatformDownloadRequest, ArduinoCoreService_PlatformDownloadServer) error + // Uninstall a platform as well as its tool dependencies that are not used by + // other installed platforms. + PlatformUninstall(*PlatformUninstallRequest, ArduinoCoreService_PlatformUninstallServer) error + // Upgrade an installed platform to the latest version. + PlatformUpgrade(*PlatformUpgradeRequest, ArduinoCoreService_PlatformUpgradeServer) error + // Upload a compiled sketch to a board. + Upload(*UploadRequest, ArduinoCoreService_UploadServer) error + // Upload a compiled sketch to a board using a programmer. + UploadUsingProgrammer(*UploadUsingProgrammerRequest, ArduinoCoreService_UploadUsingProgrammerServer) error + // List programmers available for a board. + ListProgrammersAvailableForUpload(context.Context, *ListProgrammersAvailableForUploadRequest) (*ListProgrammersAvailableForUploadResponse, error) + // Burn bootloader to a board. + BurnBootloader(*BurnBootloaderRequest, ArduinoCoreService_BurnBootloaderServer) error + // Search for a platform in the platforms indexes. + PlatformSearch(context.Context, *PlatformSearchRequest) (*PlatformSearchResponse, error) + // List all installed platforms. + PlatformList(context.Context, *PlatformListRequest) (*PlatformListResponse, error) + // Download the archive file of an Arduino library in the libraries index to + // the staging directory. + LibraryDownload(*LibraryDownloadRequest, ArduinoCoreService_LibraryDownloadServer) error + // Download and install an Arduino library from the libraries index. + LibraryInstall(*LibraryInstallRequest, ArduinoCoreService_LibraryInstallServer) error + // Install a library from a Zip File + ZipLibraryInstall(*ZipLibraryInstallRequest, ArduinoCoreService_ZipLibraryInstallServer) error + // Download and install a library from a git url + GitLibraryInstall(*GitLibraryInstallRequest, ArduinoCoreService_GitLibraryInstallServer) error + // Uninstall an Arduino library. + LibraryUninstall(*LibraryUninstallRequest, ArduinoCoreService_LibraryUninstallServer) error + // Upgrade all installed Arduino libraries to the newest version available. + LibraryUpgradeAll(*LibraryUpgradeAllRequest, ArduinoCoreService_LibraryUpgradeAllServer) error + // List the recursive dependencies of a library, as defined by the `depends` + // field of the library.properties files. + LibraryResolveDependencies(context.Context, *LibraryResolveDependenciesRequest) (*LibraryResolveDependenciesResponse, error) + // Search the Arduino libraries index for libraries. + LibrarySearch(context.Context, *LibrarySearchRequest) (*LibrarySearchResponse, error) + // List the installed libraries. + LibraryList(context.Context, *LibraryListRequest) (*LibraryListResponse, error) +} + +// UnimplementedArduinoCoreServiceServer can be embedded to have forward compatible implementations. +type UnimplementedArduinoCoreServiceServer struct { +} + +func (*UnimplementedArduinoCoreServiceServer) Init(*InitRequest, ArduinoCoreService_InitServer) error { + return status.Errorf(codes.Unimplemented, "method Init not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Destroy(context.Context, *DestroyRequest) (*DestroyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Destroy not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Rescan(context.Context, *RescanRequest) (*RescanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rescan not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) UpdateIndex(*UpdateIndexRequest, ArduinoCoreService_UpdateIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateIndex not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) UpdateLibrariesIndex(*UpdateLibrariesIndexRequest, ArduinoCoreService_UpdateLibrariesIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateLibrariesIndex not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) UpdateCoreLibrariesIndex(*UpdateCoreLibrariesIndexRequest, ArduinoCoreService_UpdateCoreLibrariesIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateCoreLibrariesIndex not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Outdated(context.Context, *OutdatedRequest) (*OutdatedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Outdated not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Upgrade(*UpgradeRequest, ArduinoCoreService_UpgradeServer) error { + return status.Errorf(codes.Unimplemented, "method Upgrade not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LoadSketch(context.Context, *LoadSketchRequest) (*LoadSketchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadSketch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) ArchiveSketch(context.Context, *ArchiveSketchRequest) (*ArchiveSketchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveSketch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardDetails(context.Context, *BoardDetailsRequest) (*BoardDetailsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardDetails not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardAttach(*BoardAttachRequest, ArduinoCoreService_BoardAttachServer) error { + return status.Errorf(codes.Unimplemented, "method BoardAttach not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardList(context.Context, *BoardListRequest) (*BoardListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardList not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardListAll(context.Context, *BoardListAllRequest) (*BoardListAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardListAll not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardSearch(context.Context, *BoardSearchRequest) (*BoardSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardSearch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BoardListWatch(ArduinoCoreService_BoardListWatchServer) error { + return status.Errorf(codes.Unimplemented, "method BoardListWatch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Compile(*CompileRequest, ArduinoCoreService_CompileServer) error { + return status.Errorf(codes.Unimplemented, "method Compile not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformInstall(*PlatformInstallRequest, ArduinoCoreService_PlatformInstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformInstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformDownload(*PlatformDownloadRequest, ArduinoCoreService_PlatformDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformDownload not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformUninstall(*PlatformUninstallRequest, ArduinoCoreService_PlatformUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUninstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformUpgrade(*PlatformUpgradeRequest, ArduinoCoreService_PlatformUpgradeServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUpgrade not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) Upload(*UploadRequest, ArduinoCoreService_UploadServer) error { + return status.Errorf(codes.Unimplemented, "method Upload not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) UploadUsingProgrammer(*UploadUsingProgrammerRequest, ArduinoCoreService_UploadUsingProgrammerServer) error { + return status.Errorf(codes.Unimplemented, "method UploadUsingProgrammer not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) ListProgrammersAvailableForUpload(context.Context, *ListProgrammersAvailableForUploadRequest) (*ListProgrammersAvailableForUploadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProgrammersAvailableForUpload not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) BurnBootloader(*BurnBootloaderRequest, ArduinoCoreService_BurnBootloaderServer) error { + return status.Errorf(codes.Unimplemented, "method BurnBootloader not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformSearch(context.Context, *PlatformSearchRequest) (*PlatformSearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformSearch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) PlatformList(context.Context, *PlatformListRequest) (*PlatformListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformList not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryDownload(*LibraryDownloadRequest, ArduinoCoreService_LibraryDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryDownload not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryInstall(*LibraryInstallRequest, ArduinoCoreService_LibraryInstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryInstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) ZipLibraryInstall(*ZipLibraryInstallRequest, ArduinoCoreService_ZipLibraryInstallServer) error { + return status.Errorf(codes.Unimplemented, "method ZipLibraryInstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) GitLibraryInstall(*GitLibraryInstallRequest, ArduinoCoreService_GitLibraryInstallServer) error { + return status.Errorf(codes.Unimplemented, "method GitLibraryInstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryUninstall(*LibraryUninstallRequest, ArduinoCoreService_LibraryUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUninstall not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryUpgradeAll(*LibraryUpgradeAllRequest, ArduinoCoreService_LibraryUpgradeAllServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUpgradeAll not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryResolveDependencies(context.Context, *LibraryResolveDependenciesRequest) (*LibraryResolveDependenciesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibraryResolveDependencies not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibrarySearch(context.Context, *LibrarySearchRequest) (*LibrarySearchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibrarySearch not implemented") +} +func (*UnimplementedArduinoCoreServiceServer) LibraryList(context.Context, *LibraryListRequest) (*LibraryListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibraryList not implemented") +} + +func RegisterArduinoCoreServiceServer(s *grpc.Server, srv ArduinoCoreServiceServer) { + s.RegisterService(&_ArduinoCoreService_serviceDesc, srv) +} + +func _ArduinoCoreService_Init_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InitRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).Init(m, &arduinoCoreServiceInitServer{stream}) +} + +type ArduinoCoreService_InitServer interface { + Send(*InitResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceInitServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceInitServer) Send(m *InitResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_Destroy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DestroyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).Destroy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/Destroy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).Destroy(ctx, req.(*DestroyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_Rescan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RescanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).Rescan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/Rescan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).Rescan(ctx, req.(*RescanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_UpdateIndex_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UpdateIndexRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).UpdateIndex(m, &arduinoCoreServiceUpdateIndexServer{stream}) +} + +type ArduinoCoreService_UpdateIndexServer interface { + Send(*UpdateIndexResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUpdateIndexServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUpdateIndexServer) Send(m *UpdateIndexResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_UpdateLibrariesIndex_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UpdateLibrariesIndexRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).UpdateLibrariesIndex(m, &arduinoCoreServiceUpdateLibrariesIndexServer{stream}) +} + +type ArduinoCoreService_UpdateLibrariesIndexServer interface { + Send(*UpdateLibrariesIndexResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUpdateLibrariesIndexServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUpdateLibrariesIndexServer) Send(m *UpdateLibrariesIndexResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_UpdateCoreLibrariesIndex_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UpdateCoreLibrariesIndexRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).UpdateCoreLibrariesIndex(m, &arduinoCoreServiceUpdateCoreLibrariesIndexServer{stream}) +} + +type ArduinoCoreService_UpdateCoreLibrariesIndexServer interface { + Send(*UpdateCoreLibrariesIndexResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUpdateCoreLibrariesIndexServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUpdateCoreLibrariesIndexServer) Send(m *UpdateCoreLibrariesIndexResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_Outdated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OutdatedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).Outdated(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/Outdated", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).Outdated(ctx, req.(*OutdatedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_Upgrade_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UpgradeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).Upgrade(m, &arduinoCoreServiceUpgradeServer{stream}) +} + +type ArduinoCoreService_UpgradeServer interface { + Send(*UpgradeResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUpgradeServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUpgradeServer) Send(m *UpgradeResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).Version(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/Version", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).Version(ctx, req.(*VersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_LoadSketch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadSketchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).LoadSketch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/LoadSketch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).LoadSketch(ctx, req.(*LoadSketchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_ArchiveSketch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveSketchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).ArchiveSketch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/ArchiveSketch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).ArchiveSketch(ctx, req.(*ArchiveSketchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BoardDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BoardDetailsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).BoardDetails(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardDetails", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).BoardDetails(ctx, req.(*BoardDetailsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BoardAttach_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BoardAttachRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).BoardAttach(m, &arduinoCoreServiceBoardAttachServer{stream}) +} + +type ArduinoCoreService_BoardAttachServer interface { + Send(*BoardAttachResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceBoardAttachServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceBoardAttachServer) Send(m *BoardAttachResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_BoardList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BoardListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).BoardList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).BoardList(ctx, req.(*BoardListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BoardListAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BoardListAllRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).BoardListAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardListAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).BoardListAll(ctx, req.(*BoardListAllRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BoardSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BoardSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).BoardSearch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/BoardSearch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).BoardSearch(ctx, req.(*BoardSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BoardListWatch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ArduinoCoreServiceServer).BoardListWatch(&arduinoCoreServiceBoardListWatchServer{stream}) +} + +type ArduinoCoreService_BoardListWatchServer interface { + Send(*BoardListWatchResponse) error + Recv() (*BoardListWatchRequest, error) + grpc.ServerStream +} + +type arduinoCoreServiceBoardListWatchServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceBoardListWatchServer) Send(m *BoardListWatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *arduinoCoreServiceBoardListWatchServer) Recv() (*BoardListWatchRequest, error) { + m := new(BoardListWatchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _ArduinoCoreService_Compile_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CompileRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).Compile(m, &arduinoCoreServiceCompileServer{stream}) +} + +type ArduinoCoreService_CompileServer interface { + Send(*CompileResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceCompileServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceCompileServer) Send(m *CompileResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_PlatformInstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PlatformInstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).PlatformInstall(m, &arduinoCoreServicePlatformInstallServer{stream}) +} + +type ArduinoCoreService_PlatformInstallServer interface { + Send(*PlatformInstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServicePlatformInstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServicePlatformInstallServer) Send(m *PlatformInstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_PlatformDownload_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PlatformDownloadRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).PlatformDownload(m, &arduinoCoreServicePlatformDownloadServer{stream}) +} + +type ArduinoCoreService_PlatformDownloadServer interface { + Send(*PlatformDownloadResponse) error + grpc.ServerStream +} + +type arduinoCoreServicePlatformDownloadServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServicePlatformDownloadServer) Send(m *PlatformDownloadResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_PlatformUninstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PlatformUninstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).PlatformUninstall(m, &arduinoCoreServicePlatformUninstallServer{stream}) +} + +type ArduinoCoreService_PlatformUninstallServer interface { + Send(*PlatformUninstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServicePlatformUninstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServicePlatformUninstallServer) Send(m *PlatformUninstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_PlatformUpgrade_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PlatformUpgradeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).PlatformUpgrade(m, &arduinoCoreServicePlatformUpgradeServer{stream}) +} + +type ArduinoCoreService_PlatformUpgradeServer interface { + Send(*PlatformUpgradeResponse) error + grpc.ServerStream +} + +type arduinoCoreServicePlatformUpgradeServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServicePlatformUpgradeServer) Send(m *PlatformUpgradeResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_Upload_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UploadRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).Upload(m, &arduinoCoreServiceUploadServer{stream}) +} + +type ArduinoCoreService_UploadServer interface { + Send(*UploadResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUploadServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUploadServer) Send(m *UploadResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_UploadUsingProgrammer_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UploadUsingProgrammerRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).UploadUsingProgrammer(m, &arduinoCoreServiceUploadUsingProgrammerServer{stream}) +} + +type ArduinoCoreService_UploadUsingProgrammerServer interface { + Send(*UploadUsingProgrammerResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceUploadUsingProgrammerServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceUploadUsingProgrammerServer) Send(m *UploadUsingProgrammerResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_ListProgrammersAvailableForUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProgrammersAvailableForUploadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).ListProgrammersAvailableForUpload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/ListProgrammersAvailableForUpload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).ListProgrammersAvailableForUpload(ctx, req.(*ListProgrammersAvailableForUploadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_BurnBootloader_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BurnBootloaderRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).BurnBootloader(m, &arduinoCoreServiceBurnBootloaderServer{stream}) +} + +type ArduinoCoreService_BurnBootloaderServer interface { + Send(*BurnBootloaderResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceBurnBootloaderServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceBurnBootloaderServer) Send(m *BurnBootloaderResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_PlatformSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PlatformSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).PlatformSearch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformSearch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).PlatformSearch(ctx, req.(*PlatformSearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_PlatformList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PlatformListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).PlatformList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/PlatformList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).PlatformList(ctx, req.(*PlatformListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_LibraryDownload_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LibraryDownloadRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).LibraryDownload(m, &arduinoCoreServiceLibraryDownloadServer{stream}) +} + +type ArduinoCoreService_LibraryDownloadServer interface { + Send(*LibraryDownloadResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceLibraryDownloadServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceLibraryDownloadServer) Send(m *LibraryDownloadResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_LibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LibraryInstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).LibraryInstall(m, &arduinoCoreServiceLibraryInstallServer{stream}) +} + +type ArduinoCoreService_LibraryInstallServer interface { + Send(*LibraryInstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceLibraryInstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceLibraryInstallServer) Send(m *LibraryInstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_ZipLibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ZipLibraryInstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).ZipLibraryInstall(m, &arduinoCoreServiceZipLibraryInstallServer{stream}) +} + +type ArduinoCoreService_ZipLibraryInstallServer interface { + Send(*ZipLibraryInstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceZipLibraryInstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceZipLibraryInstallServer) Send(m *ZipLibraryInstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_GitLibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GitLibraryInstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).GitLibraryInstall(m, &arduinoCoreServiceGitLibraryInstallServer{stream}) +} + +type ArduinoCoreService_GitLibraryInstallServer interface { + Send(*GitLibraryInstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceGitLibraryInstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceGitLibraryInstallServer) Send(m *GitLibraryInstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_LibraryUninstall_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LibraryUninstallRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).LibraryUninstall(m, &arduinoCoreServiceLibraryUninstallServer{stream}) +} + +type ArduinoCoreService_LibraryUninstallServer interface { + Send(*LibraryUninstallResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceLibraryUninstallServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceLibraryUninstallServer) Send(m *LibraryUninstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_LibraryUpgradeAll_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LibraryUpgradeAllRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArduinoCoreServiceServer).LibraryUpgradeAll(m, &arduinoCoreServiceLibraryUpgradeAllServer{stream}) +} + +type ArduinoCoreService_LibraryUpgradeAllServer interface { + Send(*LibraryUpgradeAllResponse) error + grpc.ServerStream +} + +type arduinoCoreServiceLibraryUpgradeAllServer struct { + grpc.ServerStream +} + +func (x *arduinoCoreServiceLibraryUpgradeAllServer) Send(m *LibraryUpgradeAllResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ArduinoCoreService_LibraryResolveDependencies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LibraryResolveDependenciesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).LibraryResolveDependencies(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryResolveDependencies", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).LibraryResolveDependencies(ctx, req.(*LibraryResolveDependenciesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_LibrarySearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LibrarySearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).LibrarySearch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibrarySearch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).LibrarySearch(ctx, req.(*LibrarySearchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArduinoCoreService_LibraryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LibraryListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArduinoCoreServiceServer).LibraryList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.commands.v1.ArduinoCoreService/LibraryList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArduinoCoreServiceServer).LibraryList(ctx, req.(*LibraryListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ArduinoCoreService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cc.arduino.cli.commands.v1.ArduinoCoreService", + HandlerType: (*ArduinoCoreServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Destroy", + Handler: _ArduinoCoreService_Destroy_Handler, + }, + { + MethodName: "Rescan", + Handler: _ArduinoCoreService_Rescan_Handler, + }, + { + MethodName: "Outdated", + Handler: _ArduinoCoreService_Outdated_Handler, + }, + { + MethodName: "Version", + Handler: _ArduinoCoreService_Version_Handler, + }, + { + MethodName: "LoadSketch", + Handler: _ArduinoCoreService_LoadSketch_Handler, + }, + { + MethodName: "ArchiveSketch", + Handler: _ArduinoCoreService_ArchiveSketch_Handler, + }, + { + MethodName: "BoardDetails", + Handler: _ArduinoCoreService_BoardDetails_Handler, + }, + { + MethodName: "BoardList", + Handler: _ArduinoCoreService_BoardList_Handler, + }, + { + MethodName: "BoardListAll", + Handler: _ArduinoCoreService_BoardListAll_Handler, + }, + { + MethodName: "BoardSearch", + Handler: _ArduinoCoreService_BoardSearch_Handler, + }, + { + MethodName: "ListProgrammersAvailableForUpload", + Handler: _ArduinoCoreService_ListProgrammersAvailableForUpload_Handler, + }, + { + MethodName: "PlatformSearch", + Handler: _ArduinoCoreService_PlatformSearch_Handler, + }, + { + MethodName: "PlatformList", + Handler: _ArduinoCoreService_PlatformList_Handler, + }, + { + MethodName: "LibraryResolveDependencies", + Handler: _ArduinoCoreService_LibraryResolveDependencies_Handler, + }, + { + MethodName: "LibrarySearch", + Handler: _ArduinoCoreService_LibrarySearch_Handler, + }, + { + MethodName: "LibraryList", + Handler: _ArduinoCoreService_LibraryList_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Init", + Handler: _ArduinoCoreService_Init_Handler, + ServerStreams: true, + }, + { + StreamName: "UpdateIndex", + Handler: _ArduinoCoreService_UpdateIndex_Handler, + ServerStreams: true, + }, + { + StreamName: "UpdateLibrariesIndex", + Handler: _ArduinoCoreService_UpdateLibrariesIndex_Handler, + ServerStreams: true, + }, + { + StreamName: "UpdateCoreLibrariesIndex", + Handler: _ArduinoCoreService_UpdateCoreLibrariesIndex_Handler, + ServerStreams: true, + }, + { + StreamName: "Upgrade", + Handler: _ArduinoCoreService_Upgrade_Handler, + ServerStreams: true, + }, + { + StreamName: "BoardAttach", + Handler: _ArduinoCoreService_BoardAttach_Handler, + ServerStreams: true, + }, + { + StreamName: "BoardListWatch", + Handler: _ArduinoCoreService_BoardListWatch_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "Compile", + Handler: _ArduinoCoreService_Compile_Handler, + ServerStreams: true, + }, + { + StreamName: "PlatformInstall", + Handler: _ArduinoCoreService_PlatformInstall_Handler, + ServerStreams: true, + }, + { + StreamName: "PlatformDownload", + Handler: _ArduinoCoreService_PlatformDownload_Handler, + ServerStreams: true, + }, + { + StreamName: "PlatformUninstall", + Handler: _ArduinoCoreService_PlatformUninstall_Handler, + ServerStreams: true, + }, + { + StreamName: "PlatformUpgrade", + Handler: _ArduinoCoreService_PlatformUpgrade_Handler, + ServerStreams: true, + }, + { + StreamName: "Upload", + Handler: _ArduinoCoreService_Upload_Handler, + ServerStreams: true, + }, + { + StreamName: "UploadUsingProgrammer", + Handler: _ArduinoCoreService_UploadUsingProgrammer_Handler, + ServerStreams: true, + }, + { + StreamName: "BurnBootloader", + Handler: _ArduinoCoreService_BurnBootloader_Handler, + ServerStreams: true, + }, + { + StreamName: "LibraryDownload", + Handler: _ArduinoCoreService_LibraryDownload_Handler, + ServerStreams: true, + }, + { + StreamName: "LibraryInstall", + Handler: _ArduinoCoreService_LibraryInstall_Handler, + ServerStreams: true, + }, + { + StreamName: "ZipLibraryInstall", + Handler: _ArduinoCoreService_ZipLibraryInstall_Handler, + ServerStreams: true, + }, + { + StreamName: "GitLibraryInstall", + Handler: _ArduinoCoreService_GitLibraryInstall_Handler, + ServerStreams: true, + }, + { + StreamName: "LibraryUninstall", + Handler: _ArduinoCoreService_LibraryUninstall_Handler, + ServerStreams: true, + }, + { + StreamName: "LibraryUpgradeAll", + Handler: _ArduinoCoreService_LibraryUpgradeAll_Handler, + ServerStreams: true, + }, + }, + Metadata: "cc/arduino/cli/commands/v1/commands.proto", +} diff --git a/rpc/commands/commands.proto b/rpc/cc/arduino/cli/commands/v1/commands.proto similarity index 58% rename from rpc/commands/commands.proto rename to rpc/cc/arduino/cli/commands/v1/commands.proto index 85b742ff1d1..f79ea7bfff8 100644 --- a/rpc/commands/commands.proto +++ b/rpc/cc/arduino/cli/commands/v1/commands.proto @@ -15,149 +15,167 @@ syntax = "proto3"; -package cc.arduino.cli.commands; +package cc.arduino.cli.commands.v1; -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; -import "commands/common.proto"; -import "commands/board.proto"; -import "commands/compile.proto"; -import "commands/core.proto"; -import "commands/upload.proto"; -import "commands/lib.proto"; +import "cc/arduino/cli/commands/v1/common.proto"; +import "cc/arduino/cli/commands/v1/board.proto"; +import "cc/arduino/cli/commands/v1/compile.proto"; +import "cc/arduino/cli/commands/v1/core.proto"; +import "cc/arduino/cli/commands/v1/upload.proto"; +import "cc/arduino/cli/commands/v1/lib.proto"; -// The main Arduino Platform Service -service ArduinoCore { +// The main Arduino Platform service API +service ArduinoCoreService { // BOOTSTRAP COMMANDS //------------------- // Start a new instance of the Arduino Core Service - rpc Init(InitReq) returns (stream InitResp) {} + rpc Init(InitRequest) returns (stream InitResponse) {} // Destroy an instance of the Arduino Core Service - rpc Destroy(DestroyReq) returns (DestroyResp) {} + rpc Destroy(DestroyRequest) returns (DestroyResponse) {} // Rescan instance of the Arduino Core Service - rpc Rescan(RescanReq) returns (RescanResp) {} + rpc Rescan(RescanRequest) returns (RescanResponse) {} // Update package index of the Arduino Core Service - rpc UpdateIndex(UpdateIndexReq) returns (stream UpdateIndexResp) {} + rpc UpdateIndex(UpdateIndexRequest) returns (stream UpdateIndexResponse) {} // Update libraries index - rpc UpdateLibrariesIndex(UpdateLibrariesIndexReq) returns (stream UpdateLibrariesIndexResp) {} + rpc UpdateLibrariesIndex(UpdateLibrariesIndexRequest) + returns (stream UpdateLibrariesIndexResponse) {} // Update packages indexes for both Cores and Libraries - rpc UpdateCoreLibrariesIndex(UpdateCoreLibrariesIndexReq) returns (stream UpdateCoreLibrariesIndexResp) {} + rpc UpdateCoreLibrariesIndex(UpdateCoreLibrariesIndexRequest) + returns (stream UpdateCoreLibrariesIndexResponse) {} // Outdated returns a message with a list of outdated Cores and Libraries - rpc Outdated(OutdatedReq) returns (OutdatedResp) {} + rpc Outdated(OutdatedRequest) returns (OutdatedResponse) {} // Upgrade both Cores and Libraries - rpc Upgrade(UpgradeReq) returns (stream UpgradeResp) {} + rpc Upgrade(UpgradeRequest) returns (stream UpgradeResponse) {} // Get the version of Arduino CLI in use. - rpc Version(VersionReq) returns (VersionResp) {} + rpc Version(VersionRequest) returns (VersionResponse) {} // Returns all files composing a Sketch - rpc LoadSketch(LoadSketchReq) returns (LoadSketchResp) {} + rpc LoadSketch(LoadSketchRequest) returns (LoadSketchResponse) {} // Creates a zip file containing all files of specified Sketch - rpc ArchiveSketch(ArchiveSketchReq) returns (ArchiveSketchResp) {} + rpc ArchiveSketch(ArchiveSketchRequest) returns (ArchiveSketchResponse) {} // BOARD COMMANDS // -------------- // Requests details about a board - rpc BoardDetails(BoardDetailsReq) returns (BoardDetailsResp); + rpc BoardDetails(BoardDetailsRequest) returns (BoardDetailsResponse); // Attach a board to a sketch. When the `fqbn` field of a request is not // provided, the FQBN of the attached board will be used. - rpc BoardAttach(BoardAttachReq) returns (stream BoardAttachResp); + rpc BoardAttach(BoardAttachRequest) returns (stream BoardAttachResponse); // List the boards currently connected to the computer. - rpc BoardList(BoardListReq) returns (BoardListResp); + rpc BoardList(BoardListRequest) returns (BoardListResponse); // List all the boards provided by installed platforms. - rpc BoardListAll(BoardListAllReq) returns (BoardListAllResp); + rpc BoardListAll(BoardListAllRequest) returns (BoardListAllResponse); // Search boards in installed and not installed Platforms. - rpc BoardSearch(BoardSearchReq) returns (BoardSearchResp); + rpc BoardSearch(BoardSearchRequest) returns (BoardSearchResponse); // List boards connection and disconnected events. - rpc BoardListWatch(stream BoardListWatchReq) returns (stream BoardListWatchResp); + rpc BoardListWatch(stream BoardListWatchRequest) + returns (stream BoardListWatchResponse); // Compile an Arduino sketch. - rpc Compile(CompileReq) returns (stream CompileResp); + rpc Compile(CompileRequest) returns (stream CompileResponse); // Download and install a platform and its tool dependencies. - rpc PlatformInstall(PlatformInstallReq) returns (stream PlatformInstallResp); + rpc PlatformInstall(PlatformInstallRequest) + returns (stream PlatformInstallResponse); // Download a platform and its tool dependencies to the `staging/packages` // subdirectory of the data directory. - rpc PlatformDownload(PlatformDownloadReq) returns (stream PlatformDownloadResp); + rpc PlatformDownload(PlatformDownloadRequest) + returns (stream PlatformDownloadResponse); // Uninstall a platform as well as its tool dependencies that are not used by // other installed platforms. - rpc PlatformUninstall(PlatformUninstallReq) returns (stream PlatformUninstallResp); + rpc PlatformUninstall(PlatformUninstallRequest) + returns (stream PlatformUninstallResponse); // Upgrade an installed platform to the latest version. - rpc PlatformUpgrade(PlatformUpgradeReq) returns (stream PlatformUpgradeResp); + rpc PlatformUpgrade(PlatformUpgradeRequest) + returns (stream PlatformUpgradeResponse); // Upload a compiled sketch to a board. - rpc Upload(UploadReq) returns (stream UploadResp); + rpc Upload(UploadRequest) returns (stream UploadResponse); // Upload a compiled sketch to a board using a programmer. - rpc UploadUsingProgrammer(UploadUsingProgrammerReq) returns (stream UploadUsingProgrammerResp); + rpc UploadUsingProgrammer(UploadUsingProgrammerRequest) + returns (stream UploadUsingProgrammerResponse); // List programmers available for a board. - rpc ListProgrammersAvailableForUpload(ListProgrammersAvailableForUploadReq) returns (ListProgrammersAvailableForUploadResp); + rpc ListProgrammersAvailableForUpload( + ListProgrammersAvailableForUploadRequest) + returns (ListProgrammersAvailableForUploadResponse); // Burn bootloader to a board. - rpc BurnBootloader(BurnBootloaderReq) returns (stream BurnBootloaderResp); + rpc BurnBootloader(BurnBootloaderRequest) + returns (stream BurnBootloaderResponse); // Search for a platform in the platforms indexes. - rpc PlatformSearch(PlatformSearchReq) returns (PlatformSearchResp); + rpc PlatformSearch(PlatformSearchRequest) returns (PlatformSearchResponse); // List all installed platforms. - rpc PlatformList(PlatformListReq) returns (PlatformListResp); + rpc PlatformList(PlatformListRequest) returns (PlatformListResponse); // Download the archive file of an Arduino library in the libraries index to // the staging directory. - rpc LibraryDownload(LibraryDownloadReq) returns (stream LibraryDownloadResp); + rpc LibraryDownload(LibraryDownloadRequest) + returns (stream LibraryDownloadResponse); // Download and install an Arduino library from the libraries index. - rpc LibraryInstall(LibraryInstallReq) returns (stream LibraryInstallResp); + rpc LibraryInstall(LibraryInstallRequest) + returns (stream LibraryInstallResponse); // Install a library from a Zip File - rpc ZipLibraryInstall(ZipLibraryInstallReq) returns (stream ZipLibraryInstallResp); + rpc ZipLibraryInstall(ZipLibraryInstallRequest) + returns (stream ZipLibraryInstallResponse); // Download and install a library from a git url - rpc GitLibraryInstall(GitLibraryInstallReq) returns (stream GitLibraryInstallResp); + rpc GitLibraryInstall(GitLibraryInstallRequest) + returns (stream GitLibraryInstallResponse); // Uninstall an Arduino library. - rpc LibraryUninstall(LibraryUninstallReq) returns (stream LibraryUninstallResp); + rpc LibraryUninstall(LibraryUninstallRequest) + returns (stream LibraryUninstallResponse); // Upgrade all installed Arduino libraries to the newest version available. - rpc LibraryUpgradeAll(LibraryUpgradeAllReq) returns (stream LibraryUpgradeAllResp); + rpc LibraryUpgradeAll(LibraryUpgradeAllRequest) + returns (stream LibraryUpgradeAllResponse); // List the recursive dependencies of a library, as defined by the `depends` // field of the library.properties files. - rpc LibraryResolveDependencies(LibraryResolveDependenciesReq) returns (LibraryResolveDependenciesResp); + rpc LibraryResolveDependencies(LibraryResolveDependenciesRequest) + returns (LibraryResolveDependenciesResponse); // Search the Arduino libraries index for libraries. - rpc LibrarySearch(LibrarySearchReq) returns (LibrarySearchResp); + rpc LibrarySearch(LibrarySearchRequest) returns (LibrarySearchResponse); // List the installed libraries. - rpc LibraryList(LibraryListReq) returns (LibraryListResp); + rpc LibraryList(LibraryListRequest) returns (LibraryListResponse); } -message InitReq { +message InitRequest { // Start a Arduino Core Service instance that will provide only Library // Manager functionality. bool library_manager_only = 2; } -message InitResp { +message InitResponse { // An Arduino Core Service instance. Instance instance = 1; // Error messages related to any problems encountered while parsing the @@ -172,18 +190,19 @@ message InitResp { TaskProgress task_progress = 5; } -message DestroyReq { +message DestroyRequest { // The Arduino Core Service instance to destroy. Instance instance = 1; } -message DestroyResp {} -message RescanReq { +message DestroyResponse {} + +message RescanRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; } -message RescanResp { +message RescanResponse { // Error messages related to any problems encountered while parsing the // platforms index file. repeated string platforms_index_errors = 1; @@ -192,78 +211,77 @@ message RescanResp { string libraries_index_error = 2; } -message UpdateIndexReq { +message UpdateIndexRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; } -message UpdateIndexResp { +message UpdateIndexResponse { // Progress of the platforms index download. DownloadProgress download_progress = 1; } -message UpdateLibrariesIndexReq { +message UpdateLibrariesIndexRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; } -message UpdateLibrariesIndexResp { +message UpdateLibrariesIndexResponse { // Progress of the libraries index download. DownloadProgress download_progress = 1; } -message UpdateCoreLibrariesIndexReq { +message UpdateCoreLibrariesIndexRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; } -message UpdateCoreLibrariesIndexResp { +message UpdateCoreLibrariesIndexResponse { // Progress of the index download. DownloadProgress download_progress = 1; } -message OutdatedReq { +message OutdatedRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; } -message OutdatedResp { +message OutdatedResponse { // List of installed libraries that can be updated. - repeated InstalledLibrary outdated_library = 1; + repeated InstalledLibrary outdated_libraries = 1; // List of installed cores that can be updated. - repeated Platform outdated_platform = 2; + repeated Platform outdated_platforms = 2; } -message UpgradeReq { +message UpgradeRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; - // Set to true to not run (eventual) post install scripts - bool skipPostInstall = 2; + bool skip_post_install = 2; } -message UpgradeResp { +message UpgradeResponse { // Progress of the downloads of the platforms and libraries files. DownloadProgress progress = 1; // Description of the current stage of the upgrade. TaskProgress task_progress = 2; } -message VersionReq {} +message VersionRequest {} -message VersionResp { +message VersionResponse { // The version of Arduino CLI in use. string version = 1; } -message LoadSketchReq { +message LoadSketchRequest { // Arduino Core Service instance from the Init response. Instance instance = 1; // Absolute path to single sketch file or a sketch folder string sketch_path = 2; } -message LoadSketchResp { +message LoadSketchResponse { // Absolute path to a main sketch files string main_file = 1; // Absolute path to folder that contains main_file @@ -272,17 +290,19 @@ message LoadSketchResp { repeated string other_sketch_files = 3; // List of absolute paths to additional sketch files repeated string additional_files = 4; - // List of absolute paths to supported files in the sketch root folder, main file excluded + // List of absolute paths to supported files in the sketch root folder, main + // file excluded repeated string root_folder_files = 5; } -message ArchiveSketchReq{ +message ArchiveSketchRequest { // Absolute path to Sketch file or folder containing Sketch file string sketch_path = 1; - // Absolute path to archive that will be created or folder that will contain it + // Absolute path to archive that will be created or folder that will contain + // it string archive_path = 2; // Specifies if build directory should be included in the archive bool include_build_dir = 3; } -message ArchiveSketchResp { } +message ArchiveSketchResponse {} diff --git a/rpc/commands/common.pb.go b/rpc/cc/arduino/cli/commands/v1/common.pb.go similarity index 55% rename from rpc/commands/common.pb.go rename to rpc/cc/arduino/cli/commands/v1/common.pb.go index 1b721c2eca2..de08ee9aec4 100644 --- a/rpc/commands/common.pb.go +++ b/rpc/cc/arduino/cli/commands/v1/common.pb.go @@ -17,7 +17,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 -// source: commands/common.proto +// source: cc/arduino/cli/commands/v1/common.proto package commands @@ -52,7 +52,7 @@ type Instance struct { func (x *Instance) Reset() { *x = Instance{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[0] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65,7 +65,7 @@ func (x *Instance) String() string { func (*Instance) ProtoMessage() {} func (x *Instance) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[0] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -78,7 +78,7 @@ func (x *Instance) ProtoReflect() protoreflect.Message { // Deprecated: Use Instance.ProtoReflect.Descriptor instead. func (*Instance) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{0} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{0} } func (x *Instance) GetId() int32 { @@ -108,7 +108,7 @@ type DownloadProgress struct { func (x *DownloadProgress) Reset() { *x = DownloadProgress{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[1] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -121,7 +121,7 @@ func (x *DownloadProgress) String() string { func (*DownloadProgress) ProtoMessage() {} func (x *DownloadProgress) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[1] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -134,7 +134,7 @@ func (x *DownloadProgress) ProtoReflect() protoreflect.Message { // Deprecated: Use DownloadProgress.ProtoReflect.Descriptor instead. func (*DownloadProgress) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{1} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{1} } func (x *DownloadProgress) GetUrl() string { @@ -188,7 +188,7 @@ type TaskProgress struct { func (x *TaskProgress) Reset() { *x = TaskProgress{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[2] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -201,7 +201,7 @@ func (x *TaskProgress) String() string { func (*TaskProgress) ProtoMessage() {} func (x *TaskProgress) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[2] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -214,7 +214,7 @@ func (x *TaskProgress) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskProgress.ProtoReflect.Descriptor instead. func (*TaskProgress) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{2} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{2} } func (x *TaskProgress) GetName() string { @@ -251,7 +251,7 @@ type Programmer struct { func (x *Programmer) Reset() { *x = Programmer{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[3] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -264,7 +264,7 @@ func (x *Programmer) String() string { func (*Programmer) ProtoMessage() {} func (x *Programmer) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[3] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -277,7 +277,7 @@ func (x *Programmer) ProtoReflect() protoreflect.Message { // Deprecated: Use Programmer.ProtoReflect.Descriptor instead. func (*Programmer) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{3} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{3} } func (x *Programmer) GetPlatform() string { @@ -307,34 +307,34 @@ type Platform struct { unknownFields protoimpl.UnknownFields // Platform ID (e.g., `arduino:avr`). - ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version of the platform. - Installed string `protobuf:"bytes,2,opt,name=Installed,proto3" json:"Installed,omitempty"` + Installed string `protobuf:"bytes,2,opt,name=installed,proto3" json:"installed,omitempty"` // Newest available version of the platform. - Latest string `protobuf:"bytes,3,opt,name=Latest,proto3" json:"Latest,omitempty"` + Latest string `protobuf:"bytes,3,opt,name=latest,proto3" json:"latest,omitempty"` // Name used to identify the platform to humans (e.g., "Arduino AVR Boards"). - Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Maintainer of the platform's package. - Maintainer string `protobuf:"bytes,5,opt,name=Maintainer,proto3" json:"Maintainer,omitempty"` + Maintainer string `protobuf:"bytes,5,opt,name=maintainer,proto3" json:"maintainer,omitempty"` // A URL provided by the author of the platform's package, intended to point // to their website. - Website string `protobuf:"bytes,6,opt,name=Website,proto3" json:"Website,omitempty"` + Website string `protobuf:"bytes,6,opt,name=website,proto3" json:"website,omitempty"` // Email of the maintainer of the platform's package. - Email string `protobuf:"bytes,7,opt,name=Email,proto3" json:"Email,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // List of boards provided by the platform. If the platform is installed, // this is the boards listed in the platform's boards.txt. If the platform is // not installed, this is an arbitrary list of board names provided by the // platform author for display and may not match boards.txt. - Boards []*Board `protobuf:"bytes,8,rep,name=Boards,proto3" json:"Boards,omitempty"` + Boards []*Board `protobuf:"bytes,8,rep,name=boards,proto3" json:"boards,omitempty"` // If true this Platform has been installed manually in the user' sketchbook // hardware folder - ManuallyInstalled bool `protobuf:"varint,9,opt,name=ManuallyInstalled,proto3" json:"ManuallyInstalled,omitempty"` + ManuallyInstalled bool `protobuf:"varint,9,opt,name=manually_installed,json=manuallyInstalled,proto3" json:"manually_installed,omitempty"` } func (x *Platform) Reset() { *x = Platform{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[4] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -347,7 +347,7 @@ func (x *Platform) String() string { func (*Platform) ProtoMessage() {} func (x *Platform) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[4] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -360,12 +360,12 @@ func (x *Platform) ProtoReflect() protoreflect.Message { // Deprecated: Use Platform.ProtoReflect.Descriptor instead. func (*Platform) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{4} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{4} } -func (x *Platform) GetID() string { +func (x *Platform) GetId() string { if x != nil { - return x.ID + return x.Id } return "" } @@ -441,7 +441,7 @@ type Board struct { func (x *Board) Reset() { *x = Board{} if protoimpl.UnsafeEnabled { - mi := &file_commands_common_proto_msgTypes[5] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -454,7 +454,7 @@ func (x *Board) String() string { func (*Board) ProtoMessage() {} func (x *Board) ProtoReflect() protoreflect.Message { - mi := &file_commands_common_proto_msgTypes[5] + mi := &file_cc_arduino_cli_commands_v1_common_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -467,7 +467,7 @@ func (x *Board) ProtoReflect() protoreflect.Message { // Deprecated: Use Board.ProtoReflect.Descriptor instead. func (*Board) Descriptor() ([]byte, []int) { - return file_commands_common_proto_rawDescGZIP(), []int{5} + return file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP(), []int{5} } func (x *Board) GetName() string { @@ -484,84 +484,87 @@ func (x *Board) GetFqbn() string { return "" } -var File_commands_common_proto protoreflect.FileDescriptor - -var file_commands_common_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x22, 0x1a, 0x0a, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x95, 0x01, 0x0a, - 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, - 0x61, 0x64, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x64, 0x22, 0x5a, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, - 0x22, 0x4c, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x12, 0x1a, - 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9a, - 0x02, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x49, - 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x4d, 0x61, 0x69, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x0a, 0x06, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x42, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x06, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x2c, 0x0a, - 0x11, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, - 0x6c, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x05, 0x42, - 0x6f, 0x61, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x42, 0x2d, 0x5a, 0x2b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, - 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, +var File_cc_arduino_cli_commands_v1_common_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_common_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x1a, 0x0a, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x95, 0x01, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x5a, 0x0a, 0x0c, 0x54, 0x61, 0x73, + 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x4c, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, + 0x6d, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0x9e, 0x02, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, + 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, + 0x62, 0x73, 0x69, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, + 0x73, 0x69, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x39, 0x0a, 0x06, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x06, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x6c, + 0x79, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x05, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x66, 0x71, 0x62, 0x6e, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_commands_common_proto_rawDescOnce sync.Once - file_commands_common_proto_rawDescData = file_commands_common_proto_rawDesc + file_cc_arduino_cli_commands_v1_common_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_common_proto_rawDescData = file_cc_arduino_cli_commands_v1_common_proto_rawDesc ) -func file_commands_common_proto_rawDescGZIP() []byte { - file_commands_common_proto_rawDescOnce.Do(func() { - file_commands_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_common_proto_rawDescData) +func file_cc_arduino_cli_commands_v1_common_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_common_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_common_proto_rawDescData) }) - return file_commands_common_proto_rawDescData + return file_cc_arduino_cli_commands_v1_common_proto_rawDescData } -var file_commands_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_commands_common_proto_goTypes = []interface{}{ - (*Instance)(nil), // 0: cc.arduino.cli.commands.Instance - (*DownloadProgress)(nil), // 1: cc.arduino.cli.commands.DownloadProgress - (*TaskProgress)(nil), // 2: cc.arduino.cli.commands.TaskProgress - (*Programmer)(nil), // 3: cc.arduino.cli.commands.Programmer - (*Platform)(nil), // 4: cc.arduino.cli.commands.Platform - (*Board)(nil), // 5: cc.arduino.cli.commands.Board +var file_cc_arduino_cli_commands_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cc_arduino_cli_commands_v1_common_proto_goTypes = []interface{}{ + (*Instance)(nil), // 0: cc.arduino.cli.commands.v1.Instance + (*DownloadProgress)(nil), // 1: cc.arduino.cli.commands.v1.DownloadProgress + (*TaskProgress)(nil), // 2: cc.arduino.cli.commands.v1.TaskProgress + (*Programmer)(nil), // 3: cc.arduino.cli.commands.v1.Programmer + (*Platform)(nil), // 4: cc.arduino.cli.commands.v1.Platform + (*Board)(nil), // 5: cc.arduino.cli.commands.v1.Board } -var file_commands_common_proto_depIdxs = []int32{ - 5, // 0: cc.arduino.cli.commands.Platform.Boards:type_name -> cc.arduino.cli.commands.Board +var file_cc_arduino_cli_commands_v1_common_proto_depIdxs = []int32{ + 5, // 0: cc.arduino.cli.commands.v1.Platform.boards:type_name -> cc.arduino.cli.commands.v1.Board 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -569,13 +572,13 @@ var file_commands_common_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_commands_common_proto_init() } -func file_commands_common_proto_init() { - if File_commands_common_proto != nil { +func init() { file_cc_arduino_cli_commands_v1_common_proto_init() } +func file_cc_arduino_cli_commands_v1_common_proto_init() { + if File_cc_arduino_cli_commands_v1_common_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_commands_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Instance); i { case 0: return &v.state @@ -587,7 +590,7 @@ func file_commands_common_proto_init() { return nil } } - file_commands_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DownloadProgress); i { case 0: return &v.state @@ -599,7 +602,7 @@ func file_commands_common_proto_init() { return nil } } - file_commands_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskProgress); i { case 0: return &v.state @@ -611,7 +614,7 @@ func file_commands_common_proto_init() { return nil } } - file_commands_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Programmer); i { case 0: return &v.state @@ -623,7 +626,7 @@ func file_commands_common_proto_init() { return nil } } - file_commands_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Platform); i { case 0: return &v.state @@ -635,7 +638,7 @@ func file_commands_common_proto_init() { return nil } } - file_commands_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Board); i { case 0: return &v.state @@ -652,18 +655,18 @@ func file_commands_common_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_common_proto_rawDesc, + RawDescriptor: file_cc_arduino_cli_commands_v1_common_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_commands_common_proto_goTypes, - DependencyIndexes: file_commands_common_proto_depIdxs, - MessageInfos: file_commands_common_proto_msgTypes, + GoTypes: file_cc_arduino_cli_commands_v1_common_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_common_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_common_proto_msgTypes, }.Build() - File_commands_common_proto = out.File - file_commands_common_proto_rawDesc = nil - file_commands_common_proto_goTypes = nil - file_commands_common_proto_depIdxs = nil + File_cc_arduino_cli_commands_v1_common_proto = out.File + file_cc_arduino_cli_commands_v1_common_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_common_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_common_proto_depIdxs = nil } diff --git a/rpc/cc/arduino/cli/commands/v1/common.proto b/rpc/cc/arduino/cli/commands/v1/common.proto new file mode 100644 index 00000000000..01b509d197c --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/common.proto @@ -0,0 +1,87 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +message Instance { + // The ID of the instance. + int32 id = 1; +} + +message DownloadProgress { + // URL of the download. + string url = 1; + // The file being downloaded. + string file = 2; + // Total size of the file being downloaded. + int64 total_size = 3; + // Size of the downloaded portion of the file. + int64 downloaded = 4; + // Whether the download is complete. + bool completed = 5; +} + +message TaskProgress { + // Description of the task. + string name = 1; + // Additional information about the task. + string message = 2; + // Whether the task is complete. + bool completed = 3; +} + +message Programmer { + string platform = 1; + string id = 2; + string name = 3; +} + +message Platform { + // Platform ID (e.g., `arduino:avr`). + string id = 1; + // Version of the platform. + string installed = 2; + // Newest available version of the platform. + string latest = 3; + // Name used to identify the platform to humans (e.g., "Arduino AVR Boards"). + string name = 4; + // Maintainer of the platform's package. + string maintainer = 5; + // A URL provided by the author of the platform's package, intended to point + // to their website. + string website = 6; + // Email of the maintainer of the platform's package. + string email = 7; + // List of boards provided by the platform. If the platform is installed, + // this is the boards listed in the platform's boards.txt. If the platform is + // not installed, this is an arbitrary list of board names provided by the + // platform author for display and may not match boards.txt. + repeated Board boards = 8; + // If true this Platform has been installed manually in the user' sketchbook + // hardware folder + bool manually_installed = 9; +} + +message Board { + // Name used to identify the board to humans. + string name = 1; + // Fully qualified board name used to identify the board to machines. The FQBN + // is only available for installed boards. + string fqbn = 2; +} \ No newline at end of file diff --git a/rpc/cc/arduino/cli/commands/v1/compile.pb.go b/rpc/cc/arduino/cli/commands/v1/compile.pb.go new file mode 100644 index 00000000000..8bc8d5307c4 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/compile.pb.go @@ -0,0 +1,624 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/commands/v1/compile.proto + +package commands + +import ( + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type CompileRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Fully Qualified Board Name, e.g.: `arduino:avr:uno`. If this field is + // not defined, the FQBN of the board attached to the sketch via the + // `BoardAttach` method is used. + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // The path where the sketch is stored. + SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // Show all build preferences used instead of compiling. + ShowProperties bool `protobuf:"varint,4,opt,name=show_properties,json=showProperties,proto3" json:"show_properties,omitempty"` + // Print preprocessed code to stdout instead of compiling. + Preprocess bool `protobuf:"varint,5,opt,name=preprocess,proto3" json:"preprocess,omitempty"` + // Builds of 'core.a' are saved into this path to be cached and reused. + BuildCachePath string `protobuf:"bytes,6,opt,name=build_cache_path,json=buildCachePath,proto3" json:"build_cache_path,omitempty"` + // Path to use to store the files used for the compilation. If omitted, + // a directory will be created in the operating system's default temporary + // path. + BuildPath string `protobuf:"bytes,7,opt,name=build_path,json=buildPath,proto3" json:"build_path,omitempty"` + // List of custom build properties separated by commas. + BuildProperties []string `protobuf:"bytes,8,rep,name=build_properties,json=buildProperties,proto3" json:"build_properties,omitempty"` + // Used to tell gcc which warning level to use. The level names are: "none", + // "default", "more" and "all". + Warnings string `protobuf:"bytes,9,opt,name=warnings,proto3" json:"warnings,omitempty"` + // Turns on verbose mode. + Verbose bool `protobuf:"varint,10,opt,name=verbose,proto3" json:"verbose,omitempty"` + // Suppresses almost every output. + Quiet bool `protobuf:"varint,11,opt,name=quiet,proto3" json:"quiet,omitempty"` + // VID/PID specific build properties. + VidPid string `protobuf:"bytes,12,opt,name=vid_pid,json=vidPid,proto3" json:"vid_pid,omitempty"` + // The max number of concurrent compiler instances to run (as `make -jx`). + // If jobs is set to 0, it will use the number of available CPUs as the + // maximum. + Jobs int32 `protobuf:"varint,14,opt,name=jobs,proto3" json:"jobs,omitempty"` + // List of custom libraries paths separated by commas. + Libraries []string `protobuf:"bytes,15,rep,name=libraries,proto3" json:"libraries,omitempty"` + // Optimize compile output for debug, not for release. + OptimizeForDebug bool `protobuf:"varint,16,opt,name=optimize_for_debug,json=optimizeForDebug,proto3" json:"optimize_for_debug,omitempty"` + // Optional: save the build artifacts in this directory, the directory must + // exist. + ExportDir string `protobuf:"bytes,18,opt,name=export_dir,json=exportDir,proto3" json:"export_dir,omitempty"` + // Optional: cleanup the build folder and do not use any previously cached + // build + Clean bool `protobuf:"varint,19,opt,name=clean,proto3" json:"clean,omitempty"` + // When set to `true` only the compilation database will be produced and no + // actual build will be performed. + CreateCompilationDatabaseOnly bool `protobuf:"varint,21,opt,name=create_compilation_database_only,json=createCompilationDatabaseOnly,proto3" json:"create_compilation_database_only,omitempty"` + // This map (source file -> new content) let the builder use the provided + // content instead of reading the corresponding file on disk. This is useful + // for IDE that have unsaved changes in memory. The path must be relative to + // the sketch directory. Only files from the sketch are allowed. + SourceOverride map[string]string `protobuf:"bytes,22,rep,name=source_override,json=sourceOverride,proto3" json:"source_override,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // When set to `true` the compiled binary will be copied to the export + // directory. + ExportBinaries *wrappers.BoolValue `protobuf:"bytes,23,opt,name=export_binaries,json=exportBinaries,proto3" json:"export_binaries,omitempty"` +} + +func (x *CompileRequest) Reset() { + *x = CompileRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompileRequest) ProtoMessage() {} + +func (x *CompileRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompileRequest.ProtoReflect.Descriptor instead. +func (*CompileRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_compile_proto_rawDescGZIP(), []int{0} +} + +func (x *CompileRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *CompileRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *CompileRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *CompileRequest) GetShowProperties() bool { + if x != nil { + return x.ShowProperties + } + return false +} + +func (x *CompileRequest) GetPreprocess() bool { + if x != nil { + return x.Preprocess + } + return false +} + +func (x *CompileRequest) GetBuildCachePath() string { + if x != nil { + return x.BuildCachePath + } + return "" +} + +func (x *CompileRequest) GetBuildPath() string { + if x != nil { + return x.BuildPath + } + return "" +} + +func (x *CompileRequest) GetBuildProperties() []string { + if x != nil { + return x.BuildProperties + } + return nil +} + +func (x *CompileRequest) GetWarnings() string { + if x != nil { + return x.Warnings + } + return "" +} + +func (x *CompileRequest) GetVerbose() bool { + if x != nil { + return x.Verbose + } + return false +} + +func (x *CompileRequest) GetQuiet() bool { + if x != nil { + return x.Quiet + } + return false +} + +func (x *CompileRequest) GetVidPid() string { + if x != nil { + return x.VidPid + } + return "" +} + +func (x *CompileRequest) GetJobs() int32 { + if x != nil { + return x.Jobs + } + return 0 +} + +func (x *CompileRequest) GetLibraries() []string { + if x != nil { + return x.Libraries + } + return nil +} + +func (x *CompileRequest) GetOptimizeForDebug() bool { + if x != nil { + return x.OptimizeForDebug + } + return false +} + +func (x *CompileRequest) GetExportDir() string { + if x != nil { + return x.ExportDir + } + return "" +} + +func (x *CompileRequest) GetClean() bool { + if x != nil { + return x.Clean + } + return false +} + +func (x *CompileRequest) GetCreateCompilationDatabaseOnly() bool { + if x != nil { + return x.CreateCompilationDatabaseOnly + } + return false +} + +func (x *CompileRequest) GetSourceOverride() map[string]string { + if x != nil { + return x.SourceOverride + } + return nil +} + +func (x *CompileRequest) GetExportBinaries() *wrappers.BoolValue { + if x != nil { + return x.ExportBinaries + } + return nil +} + +type CompileResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The output of the compilation process. + OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` + // The error output of the compilation process. + ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` + // The compiler build path + BuildPath string `protobuf:"bytes,3,opt,name=build_path,json=buildPath,proto3" json:"build_path,omitempty"` + // The libraries used in the build + UsedLibraries []*Library `protobuf:"bytes,4,rep,name=used_libraries,json=usedLibraries,proto3" json:"used_libraries,omitempty"` + // The size of the executable split by sections + ExecutableSectionsSize []*ExecutableSectionSize `protobuf:"bytes,5,rep,name=executable_sections_size,json=executableSectionsSize,proto3" json:"executable_sections_size,omitempty"` +} + +func (x *CompileResponse) Reset() { + *x = CompileResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompileResponse) ProtoMessage() {} + +func (x *CompileResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompileResponse.ProtoReflect.Descriptor instead. +func (*CompileResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_compile_proto_rawDescGZIP(), []int{1} +} + +func (x *CompileResponse) GetOutStream() []byte { + if x != nil { + return x.OutStream + } + return nil +} + +func (x *CompileResponse) GetErrStream() []byte { + if x != nil { + return x.ErrStream + } + return nil +} + +func (x *CompileResponse) GetBuildPath() string { + if x != nil { + return x.BuildPath + } + return "" +} + +func (x *CompileResponse) GetUsedLibraries() []*Library { + if x != nil { + return x.UsedLibraries + } + return nil +} + +func (x *CompileResponse) GetExecutableSectionsSize() []*ExecutableSectionSize { + if x != nil { + return x.ExecutableSectionsSize + } + return nil +} + +type ExecutableSectionSize struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + MaxSize int64 `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` +} + +func (x *ExecutableSectionSize) Reset() { + *x = ExecutableSectionSize{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutableSectionSize) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutableSectionSize) ProtoMessage() {} + +func (x *ExecutableSectionSize) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutableSectionSize.ProtoReflect.Descriptor instead. +func (*ExecutableSectionSize) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_compile_proto_rawDescGZIP(), []int{2} +} + +func (x *ExecutableSectionSize) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ExecutableSectionSize) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ExecutableSectionSize) GetMaxSize() int64 { + if x != nil { + return x.MaxSize + } + return 0 +} + +var File_cc_arduino_cli_commands_v1_compile_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_compile_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x24, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x62, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf8, 0x06, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, + 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, + 0x27, 0x0a, 0x0f, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x72, + 0x65, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x61, + 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x12, 0x29, 0x0a, 0x10, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, + 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x62, + 0x6f, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x69, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x05, 0x71, 0x75, 0x69, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x69, 0x64, 0x5f, + 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x69, 0x64, 0x50, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x5f, + 0x66, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x47, 0x0a, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x1d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, + 0x67, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x41, 0x0a, + 0x13, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xa7, 0x02, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x12, 0x4a, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x0d, + 0x75, 0x73, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x6b, 0x0a, + 0x18, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, + 0x7a, 0x65, 0x52, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x5a, 0x0a, 0x15, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, + 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, + 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_commands_v1_compile_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_compile_proto_rawDescData = file_cc_arduino_cli_commands_v1_compile_proto_rawDesc +) + +func file_cc_arduino_cli_commands_v1_compile_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_compile_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_compile_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_compile_proto_rawDescData) + }) + return file_cc_arduino_cli_commands_v1_compile_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_compile_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cc_arduino_cli_commands_v1_compile_proto_goTypes = []interface{}{ + (*CompileRequest)(nil), // 0: cc.arduino.cli.commands.v1.CompileRequest + (*CompileResponse)(nil), // 1: cc.arduino.cli.commands.v1.CompileResponse + (*ExecutableSectionSize)(nil), // 2: cc.arduino.cli.commands.v1.ExecutableSectionSize + nil, // 3: cc.arduino.cli.commands.v1.CompileRequest.SourceOverrideEntry + (*Instance)(nil), // 4: cc.arduino.cli.commands.v1.Instance + (*wrappers.BoolValue)(nil), // 5: google.protobuf.BoolValue + (*Library)(nil), // 6: cc.arduino.cli.commands.v1.Library +} +var file_cc_arduino_cli_commands_v1_compile_proto_depIdxs = []int32{ + 4, // 0: cc.arduino.cli.commands.v1.CompileRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 3, // 1: cc.arduino.cli.commands.v1.CompileRequest.source_override:type_name -> cc.arduino.cli.commands.v1.CompileRequest.SourceOverrideEntry + 5, // 2: cc.arduino.cli.commands.v1.CompileRequest.export_binaries:type_name -> google.protobuf.BoolValue + 6, // 3: cc.arduino.cli.commands.v1.CompileResponse.used_libraries:type_name -> cc.arduino.cli.commands.v1.Library + 2, // 4: cc.arduino.cli.commands.v1.CompileResponse.executable_sections_size:type_name -> cc.arduino.cli.commands.v1.ExecutableSectionSize + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_commands_v1_compile_proto_init() } +func file_cc_arduino_cli_commands_v1_compile_proto_init() { + if File_cc_arduino_cli_commands_v1_compile_proto != nil { + return + } + file_cc_arduino_cli_commands_v1_common_proto_init() + file_cc_arduino_cli_commands_v1_lib_proto_init() + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompileRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompileResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_compile_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutableSectionSize); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_commands_v1_compile_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cc_arduino_cli_commands_v1_compile_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_compile_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_compile_proto_msgTypes, + }.Build() + File_cc_arduino_cli_commands_v1_compile_proto = out.File + file_cc_arduino_cli_commands_v1_compile_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_compile_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_compile_proto_depIdxs = nil +} diff --git a/rpc/cc/arduino/cli/commands/v1/compile.proto b/rpc/cc/arduino/cli/commands/v1/compile.proto new file mode 100644 index 00000000000..e70c1f32965 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/compile.proto @@ -0,0 +1,100 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +import "google/protobuf/wrappers.proto"; +import "cc/arduino/cli/commands/v1/common.proto"; +import "cc/arduino/cli/commands/v1/lib.proto"; + +message CompileRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Fully Qualified Board Name, e.g.: `arduino:avr:uno`. If this field is + // not defined, the FQBN of the board attached to the sketch via the + // `BoardAttach` method is used. + string fqbn = 2; + // The path where the sketch is stored. + string sketch_path = 3; + // Show all build preferences used instead of compiling. + bool show_properties = 4; + // Print preprocessed code to stdout instead of compiling. + bool preprocess = 5; + // Builds of 'core.a' are saved into this path to be cached and reused. + string build_cache_path = 6; + // Path to use to store the files used for the compilation. If omitted, + // a directory will be created in the operating system's default temporary + // path. + string build_path = 7; + // List of custom build properties separated by commas. + repeated string build_properties = 8; + // Used to tell gcc which warning level to use. The level names are: "none", + // "default", "more" and "all". + string warnings = 9; + // Turns on verbose mode. + bool verbose = 10; + // Suppresses almost every output. + bool quiet = 11; + // VID/PID specific build properties. + string vid_pid = 12; + // The max number of concurrent compiler instances to run (as `make -jx`). + // If jobs is set to 0, it will use the number of available CPUs as the + // maximum. + int32 jobs = 14; + // List of custom libraries paths separated by commas. + repeated string libraries = 15; + // Optimize compile output for debug, not for release. + bool optimize_for_debug = 16; + // Optional: save the build artifacts in this directory, the directory must + // exist. + string export_dir = 18; + // Optional: cleanup the build folder and do not use any previously cached + // build + bool clean = 19; + // When set to `true` only the compilation database will be produced and no + // actual build will be performed. + bool create_compilation_database_only = 21; + // This map (source file -> new content) let the builder use the provided + // content instead of reading the corresponding file on disk. This is useful + // for IDE that have unsaved changes in memory. The path must be relative to + // the sketch directory. Only files from the sketch are allowed. + map source_override = 22; + // When set to `true` the compiled binary will be copied to the export + // directory. + google.protobuf.BoolValue export_binaries = 23; +} + +message CompileResponse { + // The output of the compilation process. + bytes out_stream = 1; + // The error output of the compilation process. + bytes err_stream = 2; + // The compiler build path + string build_path = 3; + // The libraries used in the build + repeated Library used_libraries = 4; + // The size of the executable split by sections + repeated ExecutableSectionSize executable_sections_size = 5; +} + +message ExecutableSectionSize { + string name = 1; + int64 size = 2; + int64 max_size = 3; +} \ No newline at end of file diff --git a/rpc/cc/arduino/cli/commands/v1/core.pb.go b/rpc/cc/arduino/cli/commands/v1/core.pb.go new file mode 100644 index 00000000000..0d65ba8c569 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/core.pb.go @@ -0,0 +1,1146 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/commands/v1/core.proto + +package commands + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type PlatformInstallRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Vendor name of the platform (e.g., `arduino`). + PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` + // Architecture name of the platform (e.g., `avr`). + Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` + // Platform version to install. + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + // Set to true to not run (eventual) post install scripts for trusted + // platforms + SkipPostInstall bool `protobuf:"varint,5,opt,name=skip_post_install,json=skipPostInstall,proto3" json:"skip_post_install,omitempty"` +} + +func (x *PlatformInstallRequest) Reset() { + *x = PlatformInstallRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformInstallRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformInstallRequest) ProtoMessage() {} + +func (x *PlatformInstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformInstallRequest.ProtoReflect.Descriptor instead. +func (*PlatformInstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{0} +} + +func (x *PlatformInstallRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformInstallRequest) GetPlatformPackage() string { + if x != nil { + return x.PlatformPackage + } + return "" +} + +func (x *PlatformInstallRequest) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +func (x *PlatformInstallRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *PlatformInstallRequest) GetSkipPostInstall() bool { + if x != nil { + return x.SkipPostInstall + } + return false +} + +type PlatformInstallResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the downloads of the platform and tool files. + Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` + // Description of the current stage of the installation. + TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *PlatformInstallResponse) Reset() { + *x = PlatformInstallResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformInstallResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformInstallResponse) ProtoMessage() {} + +func (x *PlatformInstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformInstallResponse.ProtoReflect.Descriptor instead. +func (*PlatformInstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{1} +} + +func (x *PlatformInstallResponse) GetProgress() *DownloadProgress { + if x != nil { + return x.Progress + } + return nil +} + +func (x *PlatformInstallResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type PlatformDownloadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` + // Architecture name of the platform (e.g., `avr`). + Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` + // Platform version to download. + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *PlatformDownloadRequest) Reset() { + *x = PlatformDownloadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformDownloadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformDownloadRequest) ProtoMessage() {} + +func (x *PlatformDownloadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformDownloadRequest.ProtoReflect.Descriptor instead. +func (*PlatformDownloadRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{2} +} + +func (x *PlatformDownloadRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformDownloadRequest) GetPlatformPackage() string { + if x != nil { + return x.PlatformPackage + } + return "" +} + +func (x *PlatformDownloadRequest) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +func (x *PlatformDownloadRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type PlatformDownloadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the downloads of platform and tool files. + Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` +} + +func (x *PlatformDownloadResponse) Reset() { + *x = PlatformDownloadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformDownloadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformDownloadResponse) ProtoMessage() {} + +func (x *PlatformDownloadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformDownloadResponse.ProtoReflect.Descriptor instead. +func (*PlatformDownloadResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{3} +} + +func (x *PlatformDownloadResponse) GetProgress() *DownloadProgress { + if x != nil { + return x.Progress + } + return nil +} + +type PlatformUninstallRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Vendor name of the platform (e.g., `arduino`). + PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` + // Architecture name of the platform (e.g., `avr`). + Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` +} + +func (x *PlatformUninstallRequest) Reset() { + *x = PlatformUninstallRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformUninstallRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformUninstallRequest) ProtoMessage() {} + +func (x *PlatformUninstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformUninstallRequest.ProtoReflect.Descriptor instead. +func (*PlatformUninstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{4} +} + +func (x *PlatformUninstallRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformUninstallRequest) GetPlatformPackage() string { + if x != nil { + return x.PlatformPackage + } + return "" +} + +func (x *PlatformUninstallRequest) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +type PlatformUninstallResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Description of the current stage of the uninstall. + TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *PlatformUninstallResponse) Reset() { + *x = PlatformUninstallResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformUninstallResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformUninstallResponse) ProtoMessage() {} + +func (x *PlatformUninstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformUninstallResponse.ProtoReflect.Descriptor instead. +func (*PlatformUninstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{5} +} + +func (x *PlatformUninstallResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type PlatformUpgradeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Vendor name of the platform (e.g., `arduino`). + PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` + // Architecture name of the platform (e.g., `avr`). + Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` + // Set to true to not run (eventual) post install scripts for trusted + // platforms + SkipPostInstall bool `protobuf:"varint,4,opt,name=skip_post_install,json=skipPostInstall,proto3" json:"skip_post_install,omitempty"` +} + +func (x *PlatformUpgradeRequest) Reset() { + *x = PlatformUpgradeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformUpgradeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformUpgradeRequest) ProtoMessage() {} + +func (x *PlatformUpgradeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformUpgradeRequest.ProtoReflect.Descriptor instead. +func (*PlatformUpgradeRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{6} +} + +func (x *PlatformUpgradeRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformUpgradeRequest) GetPlatformPackage() string { + if x != nil { + return x.PlatformPackage + } + return "" +} + +func (x *PlatformUpgradeRequest) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +func (x *PlatformUpgradeRequest) GetSkipPostInstall() bool { + if x != nil { + return x.SkipPostInstall + } + return false +} + +type PlatformUpgradeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Progress of the downloads of the platform and tool files. + Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` + // Description of the current stage of the upgrade. + TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` +} + +func (x *PlatformUpgradeResponse) Reset() { + *x = PlatformUpgradeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformUpgradeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformUpgradeResponse) ProtoMessage() {} + +func (x *PlatformUpgradeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformUpgradeResponse.ProtoReflect.Descriptor instead. +func (*PlatformUpgradeResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{7} +} + +func (x *PlatformUpgradeResponse) GetProgress() *DownloadProgress { + if x != nil { + return x.Progress + } + return nil +} + +func (x *PlatformUpgradeResponse) GetTaskProgress() *TaskProgress { + if x != nil { + return x.TaskProgress + } + return nil +} + +type PlatformSearchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Keywords for the search. + SearchArgs string `protobuf:"bytes,2,opt,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` + // Whether to show all available versions. `false` causes only the newest + // versions of the cores to be listed in the search results. + AllVersions bool `protobuf:"varint,3,opt,name=all_versions,json=allVersions,proto3" json:"all_versions,omitempty"` +} + +func (x *PlatformSearchRequest) Reset() { + *x = PlatformSearchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformSearchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformSearchRequest) ProtoMessage() {} + +func (x *PlatformSearchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformSearchRequest.ProtoReflect.Descriptor instead. +func (*PlatformSearchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{8} +} + +func (x *PlatformSearchRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformSearchRequest) GetSearchArgs() string { + if x != nil { + return x.SearchArgs + } + return "" +} + +func (x *PlatformSearchRequest) GetAllVersions() bool { + if x != nil { + return x.AllVersions + } + return false +} + +type PlatformSearchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Results of the search. + SearchOutput []*Platform `protobuf:"bytes,1,rep,name=search_output,json=searchOutput,proto3" json:"search_output,omitempty"` +} + +func (x *PlatformSearchResponse) Reset() { + *x = PlatformSearchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformSearchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformSearchResponse) ProtoMessage() {} + +func (x *PlatformSearchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformSearchResponse.ProtoReflect.Descriptor instead. +func (*PlatformSearchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{9} +} + +func (x *PlatformSearchResponse) GetSearchOutput() []*Platform { + if x != nil { + return x.SearchOutput + } + return nil +} + +type PlatformListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Set to true to only list platforms which have a newer version available + // than the one currently installed. + UpdatableOnly bool `protobuf:"varint,2,opt,name=updatable_only,json=updatableOnly,proto3" json:"updatable_only,omitempty"` + // Set to true to list platforms installed manually in the user' sketchbook + // hardware folder, installed with the PlatformManager through the CLI or + // IDE and that are available to install + All bool `protobuf:"varint,3,opt,name=all,proto3" json:"all,omitempty"` +} + +func (x *PlatformListRequest) Reset() { + *x = PlatformListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformListRequest) ProtoMessage() {} + +func (x *PlatformListRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformListRequest.ProtoReflect.Descriptor instead. +func (*PlatformListRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{10} +} + +func (x *PlatformListRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *PlatformListRequest) GetUpdatableOnly() bool { + if x != nil { + return x.UpdatableOnly + } + return false +} + +func (x *PlatformListRequest) GetAll() bool { + if x != nil { + return x.All + } + return false +} + +type PlatformListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The installed platforms. + InstalledPlatforms []*Platform `protobuf:"bytes,1,rep,name=installed_platforms,json=installedPlatforms,proto3" json:"installed_platforms,omitempty"` +} + +func (x *PlatformListResponse) Reset() { + *x = PlatformListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformListResponse) ProtoMessage() {} + +func (x *PlatformListResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_core_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlatformListResponse.ProtoReflect.Descriptor instead. +func (*PlatformListResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP(), []int{11} +} + +func (x *PlatformListResponse) GetInstalledPlatforms() []*Platform { + if x != nil { + return x.InstalledPlatforms + } + return nil +} + +var File_cc_arduino_cli_commands_v1_core_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_core_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, + 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x01, 0x0a, + 0x16, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, + 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x22, 0xb2, + 0x01, 0x0a, 0x17, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x17, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x64, 0x0a, 0x18, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0xab, 0x01, 0x0a, 0x18, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, + 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, 0x6a, + 0x0a, 0x19, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, + 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd5, 0x01, 0x0a, 0x16, 0x50, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, + 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, + 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, + 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x15, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x72, + 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x41, 0x72, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x6c, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x61, 0x6c, 0x6c, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x63, 0x0a, 0x16, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0c, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x90, 0x01, 0x0a, + 0x13, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x22, + 0x6d, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x42, 0x48, + 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, + 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, + 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x3b, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_commands_v1_core_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_core_proto_rawDescData = file_cc_arduino_cli_commands_v1_core_proto_rawDesc +) + +func file_cc_arduino_cli_commands_v1_core_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_core_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_core_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_core_proto_rawDescData) + }) + return file_cc_arduino_cli_commands_v1_core_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_core_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_cc_arduino_cli_commands_v1_core_proto_goTypes = []interface{}{ + (*PlatformInstallRequest)(nil), // 0: cc.arduino.cli.commands.v1.PlatformInstallRequest + (*PlatformInstallResponse)(nil), // 1: cc.arduino.cli.commands.v1.PlatformInstallResponse + (*PlatformDownloadRequest)(nil), // 2: cc.arduino.cli.commands.v1.PlatformDownloadRequest + (*PlatformDownloadResponse)(nil), // 3: cc.arduino.cli.commands.v1.PlatformDownloadResponse + (*PlatformUninstallRequest)(nil), // 4: cc.arduino.cli.commands.v1.PlatformUninstallRequest + (*PlatformUninstallResponse)(nil), // 5: cc.arduino.cli.commands.v1.PlatformUninstallResponse + (*PlatformUpgradeRequest)(nil), // 6: cc.arduino.cli.commands.v1.PlatformUpgradeRequest + (*PlatformUpgradeResponse)(nil), // 7: cc.arduino.cli.commands.v1.PlatformUpgradeResponse + (*PlatformSearchRequest)(nil), // 8: cc.arduino.cli.commands.v1.PlatformSearchRequest + (*PlatformSearchResponse)(nil), // 9: cc.arduino.cli.commands.v1.PlatformSearchResponse + (*PlatformListRequest)(nil), // 10: cc.arduino.cli.commands.v1.PlatformListRequest + (*PlatformListResponse)(nil), // 11: cc.arduino.cli.commands.v1.PlatformListResponse + (*Instance)(nil), // 12: cc.arduino.cli.commands.v1.Instance + (*DownloadProgress)(nil), // 13: cc.arduino.cli.commands.v1.DownloadProgress + (*TaskProgress)(nil), // 14: cc.arduino.cli.commands.v1.TaskProgress + (*Platform)(nil), // 15: cc.arduino.cli.commands.v1.Platform +} +var file_cc_arduino_cli_commands_v1_core_proto_depIdxs = []int32{ + 12, // 0: cc.arduino.cli.commands.v1.PlatformInstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 13, // 1: cc.arduino.cli.commands.v1.PlatformInstallResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 14, // 2: cc.arduino.cli.commands.v1.PlatformInstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 12, // 3: cc.arduino.cli.commands.v1.PlatformDownloadRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 13, // 4: cc.arduino.cli.commands.v1.PlatformDownloadResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 12, // 5: cc.arduino.cli.commands.v1.PlatformUninstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 14, // 6: cc.arduino.cli.commands.v1.PlatformUninstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 12, // 7: cc.arduino.cli.commands.v1.PlatformUpgradeRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 13, // 8: cc.arduino.cli.commands.v1.PlatformUpgradeResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 14, // 9: cc.arduino.cli.commands.v1.PlatformUpgradeResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 12, // 10: cc.arduino.cli.commands.v1.PlatformSearchRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 15, // 11: cc.arduino.cli.commands.v1.PlatformSearchResponse.search_output:type_name -> cc.arduino.cli.commands.v1.Platform + 12, // 12: cc.arduino.cli.commands.v1.PlatformListRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 15, // 13: cc.arduino.cli.commands.v1.PlatformListResponse.installed_platforms:type_name -> cc.arduino.cli.commands.v1.Platform + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_commands_v1_core_proto_init() } +func file_cc_arduino_cli_commands_v1_core_proto_init() { + if File_cc_arduino_cli_commands_v1_core_proto != nil { + return + } + file_cc_arduino_cli_commands_v1_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformInstallRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformInstallResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformDownloadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformDownloadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformUninstallRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformUninstallResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformUpgradeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformUpgradeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformSearchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformSearchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_core_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_commands_v1_core_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cc_arduino_cli_commands_v1_core_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_core_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_core_proto_msgTypes, + }.Build() + File_cc_arduino_cli_commands_v1_core_proto = out.File + file_cc_arduino_cli_commands_v1_core_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_core_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_core_proto_depIdxs = nil +} diff --git a/rpc/cc/arduino/cli/commands/v1/core.proto b/rpc/cc/arduino/cli/commands/v1/core.proto new file mode 100644 index 00000000000..a1762f8f0bd --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/core.proto @@ -0,0 +1,123 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +import "cc/arduino/cli/commands/v1/common.proto"; + +message PlatformInstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Vendor name of the platform (e.g., `arduino`). + string platform_package = 2; + // Architecture name of the platform (e.g., `avr`). + string architecture = 3; + // Platform version to install. + string version = 4; + // Set to true to not run (eventual) post install scripts for trusted + // platforms + bool skip_post_install = 5; +} + +message PlatformInstallResponse { + // Progress of the downloads of the platform and tool files. + DownloadProgress progress = 1; + // Description of the current stage of the installation. + TaskProgress task_progress = 2; +} + +message PlatformDownloadRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + string platform_package = 2; + // Architecture name of the platform (e.g., `avr`). + string architecture = 3; + // Platform version to download. + string version = 4; +} + +message PlatformDownloadResponse { + // Progress of the downloads of platform and tool files. + DownloadProgress progress = 1; +} + +message PlatformUninstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Vendor name of the platform (e.g., `arduino`). + string platform_package = 2; + // Architecture name of the platform (e.g., `avr`). + string architecture = 3; +} + +message PlatformUninstallResponse { + // Description of the current stage of the uninstall. + TaskProgress task_progress = 1; +} + +message PlatformUpgradeRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Vendor name of the platform (e.g., `arduino`). + string platform_package = 2; + // Architecture name of the platform (e.g., `avr`). + string architecture = 3; + // Set to true to not run (eventual) post install scripts for trusted + // platforms + bool skip_post_install = 4; +} + +message PlatformUpgradeResponse { + // Progress of the downloads of the platform and tool files. + DownloadProgress progress = 1; + // Description of the current stage of the upgrade. + TaskProgress task_progress = 2; +} + +message PlatformSearchRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Keywords for the search. + string search_args = 2; + // Whether to show all available versions. `false` causes only the newest + // versions of the cores to be listed in the search results. + bool all_versions = 3; +} + +message PlatformSearchResponse { + // Results of the search. + repeated Platform search_output = 1; +} + +message PlatformListRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Set to true to only list platforms which have a newer version available + // than the one currently installed. + bool updatable_only = 2; + // Set to true to list platforms installed manually in the user' sketchbook + // hardware folder, installed with the PlatformManager through the CLI or + // IDE and that are available to install + bool all = 3; +} + +message PlatformListResponse { + // The installed platforms. + repeated Platform installed_platforms = 1; +} diff --git a/rpc/commands/lib.pb.go b/rpc/cc/arduino/cli/commands/v1/lib.pb.go similarity index 50% rename from rpc/commands/lib.pb.go rename to rpc/cc/arduino/cli/commands/v1/lib.pb.go index e35872843f9..861303acee0 100644 --- a/rpc/commands/lib.pb.go +++ b/rpc/cc/arduino/cli/commands/v1/lib.pb.go @@ -17,7 +17,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 -// source: commands/lib.proto +// source: cc/arduino/cli/commands/v1/lib.proto package commands @@ -44,20 +44,20 @@ type LibrarySearchStatus int32 const ( // No search results were found. - LibrarySearchStatus_failed LibrarySearchStatus = 0 + LibrarySearchStatus_LIBRARY_SEARCH_STATUS_FAILED LibrarySearchStatus = 0 // Search results were found. - LibrarySearchStatus_success LibrarySearchStatus = 1 + LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS LibrarySearchStatus = 1 ) // Enum value maps for LibrarySearchStatus. var ( LibrarySearchStatus_name = map[int32]string{ - 0: "failed", - 1: "success", + 0: "LIBRARY_SEARCH_STATUS_FAILED", + 1: "LIBRARY_SEARCH_STATUS_SUCCESS", } LibrarySearchStatus_value = map[string]int32{ - "failed": 0, - "success": 1, + "LIBRARY_SEARCH_STATUS_FAILED": 0, + "LIBRARY_SEARCH_STATUS_SUCCESS": 1, } ) @@ -72,11 +72,11 @@ func (x LibrarySearchStatus) String() string { } func (LibrarySearchStatus) Descriptor() protoreflect.EnumDescriptor { - return file_commands_lib_proto_enumTypes[0].Descriptor() + return file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[0].Descriptor() } func (LibrarySearchStatus) Type() protoreflect.EnumType { - return &file_commands_lib_proto_enumTypes[0] + return &file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[0] } func (x LibrarySearchStatus) Number() protoreflect.EnumNumber { @@ -85,27 +85,27 @@ func (x LibrarySearchStatus) Number() protoreflect.EnumNumber { // Deprecated: Use LibrarySearchStatus.Descriptor instead. func (LibrarySearchStatus) EnumDescriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{0} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{0} } type LibraryLayout int32 const ( // Library is in the 1.0 Arduino library format. - LibraryLayout_flat_layout LibraryLayout = 0 + LibraryLayout_LIBRARY_LAYOUT_FLAT LibraryLayout = 0 // Library is in the 1.5 Arduino library format. - LibraryLayout_recursive_layout LibraryLayout = 1 + LibraryLayout_LIBRARY_LAYOUT_RECURSIVE LibraryLayout = 1 ) // Enum value maps for LibraryLayout. var ( LibraryLayout_name = map[int32]string{ - 0: "flat_layout", - 1: "recursive_layout", + 0: "LIBRARY_LAYOUT_FLAT", + 1: "LIBRARY_LAYOUT_RECURSIVE", } LibraryLayout_value = map[string]int32{ - "flat_layout": 0, - "recursive_layout": 1, + "LIBRARY_LAYOUT_FLAT": 0, + "LIBRARY_LAYOUT_RECURSIVE": 1, } ) @@ -120,11 +120,11 @@ func (x LibraryLayout) String() string { } func (LibraryLayout) Descriptor() protoreflect.EnumDescriptor { - return file_commands_lib_proto_enumTypes[1].Descriptor() + return file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[1].Descriptor() } func (LibraryLayout) Type() protoreflect.EnumType { - return &file_commands_lib_proto_enumTypes[1] + return &file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[1] } func (x LibraryLayout) Number() protoreflect.EnumNumber { @@ -133,37 +133,37 @@ func (x LibraryLayout) Number() protoreflect.EnumNumber { // Deprecated: Use LibraryLayout.Descriptor instead. func (LibraryLayout) EnumDescriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{1} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{1} } type LibraryLocation int32 const ( // In the `libraries` subdirectory of the Arduino IDE installation. - LibraryLocation_ide_builtin LibraryLocation = 0 + LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN LibraryLocation = 0 // In the `libraries` subdirectory of the user directory (sketchbook). - LibraryLocation_user LibraryLocation = 1 + LibraryLocation_LIBRARY_LOCATION_USER LibraryLocation = 1 // In the `libraries` subdirectory of a platform. - LibraryLocation_platform_builtin LibraryLocation = 2 + LibraryLocation_LIBRARY_LOCATION_PLATFORM_BUILTIN LibraryLocation = 2 // When `LibraryLocation` is used in a context where a board is specified, // this indicates the library is in the `libraries` subdirectory of a // platform referenced by the board's platform. - LibraryLocation_referenced_platform_builtin LibraryLocation = 3 + LibraryLocation_LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN LibraryLocation = 3 ) // Enum value maps for LibraryLocation. var ( LibraryLocation_name = map[int32]string{ - 0: "ide_builtin", - 1: "user", - 2: "platform_builtin", - 3: "referenced_platform_builtin", + 0: "LIBRARY_LOCATION_IDE_BUILTIN", + 1: "LIBRARY_LOCATION_USER", + 2: "LIBRARY_LOCATION_PLATFORM_BUILTIN", + 3: "LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN", } LibraryLocation_value = map[string]int32{ - "ide_builtin": 0, - "user": 1, - "platform_builtin": 2, - "referenced_platform_builtin": 3, + "LIBRARY_LOCATION_IDE_BUILTIN": 0, + "LIBRARY_LOCATION_USER": 1, + "LIBRARY_LOCATION_PLATFORM_BUILTIN": 2, + "LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN": 3, } ) @@ -178,11 +178,11 @@ func (x LibraryLocation) String() string { } func (LibraryLocation) Descriptor() protoreflect.EnumDescriptor { - return file_commands_lib_proto_enumTypes[2].Descriptor() + return file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[2].Descriptor() } func (LibraryLocation) Type() protoreflect.EnumType { - return &file_commands_lib_proto_enumTypes[2] + return &file_cc_arduino_cli_commands_v1_lib_proto_enumTypes[2] } func (x LibraryLocation) Number() protoreflect.EnumNumber { @@ -191,10 +191,10 @@ func (x LibraryLocation) Number() protoreflect.EnumNumber { // Deprecated: Use LibraryLocation.Descriptor instead. func (LibraryLocation) EnumDescriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{2} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{2} } -type LibraryDownloadReq struct { +type LibraryDownloadRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -207,23 +207,23 @@ type LibraryDownloadReq struct { Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` } -func (x *LibraryDownloadReq) Reset() { - *x = LibraryDownloadReq{} +func (x *LibraryDownloadRequest) Reset() { + *x = LibraryDownloadRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[0] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryDownloadReq) String() string { +func (x *LibraryDownloadRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryDownloadReq) ProtoMessage() {} +func (*LibraryDownloadRequest) ProtoMessage() {} -func (x *LibraryDownloadReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[0] +func (x *LibraryDownloadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,33 +234,33 @@ func (x *LibraryDownloadReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryDownloadReq.ProtoReflect.Descriptor instead. -func (*LibraryDownloadReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{0} +// Deprecated: Use LibraryDownloadRequest.ProtoReflect.Descriptor instead. +func (*LibraryDownloadRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{0} } -func (x *LibraryDownloadReq) GetInstance() *Instance { +func (x *LibraryDownloadRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibraryDownloadReq) GetName() string { +func (x *LibraryDownloadRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *LibraryDownloadReq) GetVersion() string { +func (x *LibraryDownloadRequest) GetVersion() string { if x != nil { return x.Version } return "" } -type LibraryDownloadResp struct { +type LibraryDownloadResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -269,23 +269,23 @@ type LibraryDownloadResp struct { Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` } -func (x *LibraryDownloadResp) Reset() { - *x = LibraryDownloadResp{} +func (x *LibraryDownloadResponse) Reset() { + *x = LibraryDownloadResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[1] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryDownloadResp) String() string { +func (x *LibraryDownloadResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryDownloadResp) ProtoMessage() {} +func (*LibraryDownloadResponse) ProtoMessage() {} -func (x *LibraryDownloadResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[1] +func (x *LibraryDownloadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -296,19 +296,19 @@ func (x *LibraryDownloadResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryDownloadResp.ProtoReflect.Descriptor instead. -func (*LibraryDownloadResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{1} +// Deprecated: Use LibraryDownloadResponse.ProtoReflect.Descriptor instead. +func (*LibraryDownloadResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{1} } -func (x *LibraryDownloadResp) GetProgress() *DownloadProgress { +func (x *LibraryDownloadResponse) GetProgress() *DownloadProgress { if x != nil { return x.Progress } return nil } -type LibraryInstallReq struct { +type LibraryInstallRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -319,27 +319,28 @@ type LibraryInstallReq struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The version of the library to install. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - // Set to true to skip installation of specified library's dependencies, defaults to false. - NoDeps bool `protobuf:"varint,4,opt,name=noDeps,proto3" json:"noDeps,omitempty"` + // Set to true to skip installation of specified library's dependencies, + // defaults to false. + NoDeps bool `protobuf:"varint,4,opt,name=no_deps,json=noDeps,proto3" json:"no_deps,omitempty"` } -func (x *LibraryInstallReq) Reset() { - *x = LibraryInstallReq{} +func (x *LibraryInstallRequest) Reset() { + *x = LibraryInstallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[2] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryInstallReq) String() string { +func (x *LibraryInstallRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryInstallReq) ProtoMessage() {} +func (*LibraryInstallRequest) ProtoMessage() {} -func (x *LibraryInstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[2] +func (x *LibraryInstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -350,40 +351,40 @@ func (x *LibraryInstallReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryInstallReq.ProtoReflect.Descriptor instead. -func (*LibraryInstallReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{2} +// Deprecated: Use LibraryInstallRequest.ProtoReflect.Descriptor instead. +func (*LibraryInstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{2} } -func (x *LibraryInstallReq) GetInstance() *Instance { +func (x *LibraryInstallRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibraryInstallReq) GetName() string { +func (x *LibraryInstallRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *LibraryInstallReq) GetVersion() string { +func (x *LibraryInstallRequest) GetVersion() string { if x != nil { return x.Version } return "" } -func (x *LibraryInstallReq) GetNoDeps() bool { +func (x *LibraryInstallRequest) GetNoDeps() bool { if x != nil { return x.NoDeps } return false } -type LibraryInstallResp struct { +type LibraryInstallResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -394,23 +395,23 @@ type LibraryInstallResp struct { TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` } -func (x *LibraryInstallResp) Reset() { - *x = LibraryInstallResp{} +func (x *LibraryInstallResponse) Reset() { + *x = LibraryInstallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[3] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryInstallResp) String() string { +func (x *LibraryInstallResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryInstallResp) ProtoMessage() {} +func (*LibraryInstallResponse) ProtoMessage() {} -func (x *LibraryInstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[3] +func (x *LibraryInstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -421,26 +422,26 @@ func (x *LibraryInstallResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryInstallResp.ProtoReflect.Descriptor instead. -func (*LibraryInstallResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{3} +// Deprecated: Use LibraryInstallResponse.ProtoReflect.Descriptor instead. +func (*LibraryInstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{3} } -func (x *LibraryInstallResp) GetProgress() *DownloadProgress { +func (x *LibraryInstallResponse) GetProgress() *DownloadProgress { if x != nil { return x.Progress } return nil } -func (x *LibraryInstallResp) GetTaskProgress() *TaskProgress { +func (x *LibraryInstallResponse) GetTaskProgress() *TaskProgress { if x != nil { return x.TaskProgress } return nil } -type LibraryUninstallReq struct { +type LibraryUninstallRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -453,23 +454,23 @@ type LibraryUninstallReq struct { Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` } -func (x *LibraryUninstallReq) Reset() { - *x = LibraryUninstallReq{} +func (x *LibraryUninstallRequest) Reset() { + *x = LibraryUninstallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[4] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryUninstallReq) String() string { +func (x *LibraryUninstallRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryUninstallReq) ProtoMessage() {} +func (*LibraryUninstallRequest) ProtoMessage() {} -func (x *LibraryUninstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[4] +func (x *LibraryUninstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -480,33 +481,33 @@ func (x *LibraryUninstallReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryUninstallReq.ProtoReflect.Descriptor instead. -func (*LibraryUninstallReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{4} +// Deprecated: Use LibraryUninstallRequest.ProtoReflect.Descriptor instead. +func (*LibraryUninstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{4} } -func (x *LibraryUninstallReq) GetInstance() *Instance { +func (x *LibraryUninstallRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibraryUninstallReq) GetName() string { +func (x *LibraryUninstallRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *LibraryUninstallReq) GetVersion() string { +func (x *LibraryUninstallRequest) GetVersion() string { if x != nil { return x.Version } return "" } -type LibraryUninstallResp struct { +type LibraryUninstallResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -515,23 +516,23 @@ type LibraryUninstallResp struct { TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` } -func (x *LibraryUninstallResp) Reset() { - *x = LibraryUninstallResp{} +func (x *LibraryUninstallResponse) Reset() { + *x = LibraryUninstallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[5] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryUninstallResp) String() string { +func (x *LibraryUninstallResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryUninstallResp) ProtoMessage() {} +func (*LibraryUninstallResponse) ProtoMessage() {} -func (x *LibraryUninstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[5] +func (x *LibraryUninstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -542,19 +543,19 @@ func (x *LibraryUninstallResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryUninstallResp.ProtoReflect.Descriptor instead. -func (*LibraryUninstallResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{5} +// Deprecated: Use LibraryUninstallResponse.ProtoReflect.Descriptor instead. +func (*LibraryUninstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{5} } -func (x *LibraryUninstallResp) GetTaskProgress() *TaskProgress { +func (x *LibraryUninstallResponse) GetTaskProgress() *TaskProgress { if x != nil { return x.TaskProgress } return nil } -type LibraryUpgradeAllReq struct { +type LibraryUpgradeAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -563,23 +564,23 @@ type LibraryUpgradeAllReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` } -func (x *LibraryUpgradeAllReq) Reset() { - *x = LibraryUpgradeAllReq{} +func (x *LibraryUpgradeAllRequest) Reset() { + *x = LibraryUpgradeAllRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[6] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryUpgradeAllReq) String() string { +func (x *LibraryUpgradeAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryUpgradeAllReq) ProtoMessage() {} +func (*LibraryUpgradeAllRequest) ProtoMessage() {} -func (x *LibraryUpgradeAllReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[6] +func (x *LibraryUpgradeAllRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -590,19 +591,19 @@ func (x *LibraryUpgradeAllReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryUpgradeAllReq.ProtoReflect.Descriptor instead. -func (*LibraryUpgradeAllReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{6} +// Deprecated: Use LibraryUpgradeAllRequest.ProtoReflect.Descriptor instead. +func (*LibraryUpgradeAllRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{6} } -func (x *LibraryUpgradeAllReq) GetInstance() *Instance { +func (x *LibraryUpgradeAllRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -type LibraryUpgradeAllResp struct { +type LibraryUpgradeAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -613,23 +614,23 @@ type LibraryUpgradeAllResp struct { TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` } -func (x *LibraryUpgradeAllResp) Reset() { - *x = LibraryUpgradeAllResp{} +func (x *LibraryUpgradeAllResponse) Reset() { + *x = LibraryUpgradeAllResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[7] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryUpgradeAllResp) String() string { +func (x *LibraryUpgradeAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryUpgradeAllResp) ProtoMessage() {} +func (*LibraryUpgradeAllResponse) ProtoMessage() {} -func (x *LibraryUpgradeAllResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[7] +func (x *LibraryUpgradeAllResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -640,26 +641,26 @@ func (x *LibraryUpgradeAllResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryUpgradeAllResp.ProtoReflect.Descriptor instead. -func (*LibraryUpgradeAllResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{7} +// Deprecated: Use LibraryUpgradeAllResponse.ProtoReflect.Descriptor instead. +func (*LibraryUpgradeAllResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{7} } -func (x *LibraryUpgradeAllResp) GetProgress() *DownloadProgress { +func (x *LibraryUpgradeAllResponse) GetProgress() *DownloadProgress { if x != nil { return x.Progress } return nil } -func (x *LibraryUpgradeAllResp) GetTaskProgress() *TaskProgress { +func (x *LibraryUpgradeAllResponse) GetTaskProgress() *TaskProgress { if x != nil { return x.TaskProgress } return nil } -type LibraryResolveDependenciesReq struct { +type LibraryResolveDependenciesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -673,23 +674,23 @@ type LibraryResolveDependenciesReq struct { Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` } -func (x *LibraryResolveDependenciesReq) Reset() { - *x = LibraryResolveDependenciesReq{} +func (x *LibraryResolveDependenciesRequest) Reset() { + *x = LibraryResolveDependenciesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[8] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryResolveDependenciesReq) String() string { +func (x *LibraryResolveDependenciesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryResolveDependenciesReq) ProtoMessage() {} +func (*LibraryResolveDependenciesRequest) ProtoMessage() {} -func (x *LibraryResolveDependenciesReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[8] +func (x *LibraryResolveDependenciesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -700,33 +701,33 @@ func (x *LibraryResolveDependenciesReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryResolveDependenciesReq.ProtoReflect.Descriptor instead. -func (*LibraryResolveDependenciesReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{8} +// Deprecated: Use LibraryResolveDependenciesRequest.ProtoReflect.Descriptor instead. +func (*LibraryResolveDependenciesRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{8} } -func (x *LibraryResolveDependenciesReq) GetInstance() *Instance { +func (x *LibraryResolveDependenciesRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibraryResolveDependenciesReq) GetName() string { +func (x *LibraryResolveDependenciesRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *LibraryResolveDependenciesReq) GetVersion() string { +func (x *LibraryResolveDependenciesRequest) GetVersion() string { if x != nil { return x.Version } return "" } -type LibraryResolveDependenciesResp struct { +type LibraryResolveDependenciesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -735,23 +736,23 @@ type LibraryResolveDependenciesResp struct { Dependencies []*LibraryDependencyStatus `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"` } -func (x *LibraryResolveDependenciesResp) Reset() { - *x = LibraryResolveDependenciesResp{} +func (x *LibraryResolveDependenciesResponse) Reset() { + *x = LibraryResolveDependenciesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[9] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryResolveDependenciesResp) String() string { +func (x *LibraryResolveDependenciesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryResolveDependenciesResp) ProtoMessage() {} +func (*LibraryResolveDependenciesResponse) ProtoMessage() {} -func (x *LibraryResolveDependenciesResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[9] +func (x *LibraryResolveDependenciesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -762,12 +763,12 @@ func (x *LibraryResolveDependenciesResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryResolveDependenciesResp.ProtoReflect.Descriptor instead. -func (*LibraryResolveDependenciesResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{9} +// Deprecated: Use LibraryResolveDependenciesResponse.ProtoReflect.Descriptor instead. +func (*LibraryResolveDependenciesResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{9} } -func (x *LibraryResolveDependenciesResp) GetDependencies() []*LibraryDependencyStatus { +func (x *LibraryResolveDependenciesResponse) GetDependencies() []*LibraryDependencyStatus { if x != nil { return x.Dependencies } @@ -782,15 +783,15 @@ type LibraryDependencyStatus struct { // The name of the library dependency. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The required version of the library dependency. - VersionRequired string `protobuf:"bytes,2,opt,name=versionRequired,proto3" json:"versionRequired,omitempty"` + VersionRequired string `protobuf:"bytes,2,opt,name=version_required,json=versionRequired,proto3" json:"version_required,omitempty"` // Version of the library dependency currently installed. - VersionInstalled string `protobuf:"bytes,3,opt,name=versionInstalled,proto3" json:"versionInstalled,omitempty"` + VersionInstalled string `protobuf:"bytes,3,opt,name=version_installed,json=versionInstalled,proto3" json:"version_installed,omitempty"` } func (x *LibraryDependencyStatus) Reset() { *x = LibraryDependencyStatus{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[10] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -803,7 +804,7 @@ func (x *LibraryDependencyStatus) String() string { func (*LibraryDependencyStatus) ProtoMessage() {} func (x *LibraryDependencyStatus) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[10] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -816,7 +817,7 @@ func (x *LibraryDependencyStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use LibraryDependencyStatus.ProtoReflect.Descriptor instead. func (*LibraryDependencyStatus) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{10} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{10} } func (x *LibraryDependencyStatus) GetName() string { @@ -840,7 +841,7 @@ func (x *LibraryDependencyStatus) GetVersionInstalled() string { return "" } -type LibrarySearchReq struct { +type LibrarySearchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -851,23 +852,23 @@ type LibrarySearchReq struct { Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } -func (x *LibrarySearchReq) Reset() { - *x = LibrarySearchReq{} +func (x *LibrarySearchRequest) Reset() { + *x = LibrarySearchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[11] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibrarySearchReq) String() string { +func (x *LibrarySearchRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibrarySearchReq) ProtoMessage() {} +func (*LibrarySearchRequest) ProtoMessage() {} -func (x *LibrarySearchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[11] +func (x *LibrarySearchRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -878,26 +879,26 @@ func (x *LibrarySearchReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibrarySearchReq.ProtoReflect.Descriptor instead. -func (*LibrarySearchReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{11} +// Deprecated: Use LibrarySearchRequest.ProtoReflect.Descriptor instead. +func (*LibrarySearchRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{11} } -func (x *LibrarySearchReq) GetInstance() *Instance { +func (x *LibrarySearchRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibrarySearchReq) GetQuery() string { +func (x *LibrarySearchRequest) GetQuery() string { if x != nil { return x.Query } return "" } -type LibrarySearchResp struct { +type LibrarySearchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -905,26 +906,26 @@ type LibrarySearchResp struct { // The results of the search. Libraries []*SearchedLibrary `protobuf:"bytes,1,rep,name=libraries,proto3" json:"libraries,omitempty"` // Whether the search yielded results. - Status LibrarySearchStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cc.arduino.cli.commands.LibrarySearchStatus" json:"status,omitempty"` + Status LibrarySearchStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cc.arduino.cli.commands.v1.LibrarySearchStatus" json:"status,omitempty"` } -func (x *LibrarySearchResp) Reset() { - *x = LibrarySearchResp{} +func (x *LibrarySearchResponse) Reset() { + *x = LibrarySearchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[12] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibrarySearchResp) String() string { +func (x *LibrarySearchResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibrarySearchResp) ProtoMessage() {} +func (*LibrarySearchResponse) ProtoMessage() {} -func (x *LibrarySearchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[12] +func (x *LibrarySearchResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -935,23 +936,23 @@ func (x *LibrarySearchResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibrarySearchResp.ProtoReflect.Descriptor instead. -func (*LibrarySearchResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{12} +// Deprecated: Use LibrarySearchResponse.ProtoReflect.Descriptor instead. +func (*LibrarySearchResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{12} } -func (x *LibrarySearchResp) GetLibraries() []*SearchedLibrary { +func (x *LibrarySearchResponse) GetLibraries() []*SearchedLibrary { if x != nil { return x.Libraries } return nil } -func (x *LibrarySearchResp) GetStatus() LibrarySearchStatus { +func (x *LibrarySearchResponse) GetStatus() LibrarySearchStatus { if x != nil { return x.Status } - return LibrarySearchStatus_failed + return LibrarySearchStatus_LIBRARY_SEARCH_STATUS_FAILED } type SearchedLibrary struct { @@ -971,7 +972,7 @@ type SearchedLibrary struct { func (x *SearchedLibrary) Reset() { *x = SearchedLibrary{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[13] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -984,7 +985,7 @@ func (x *SearchedLibrary) String() string { func (*SearchedLibrary) ProtoMessage() {} func (x *SearchedLibrary) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[13] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -997,7 +998,7 @@ func (x *SearchedLibrary) ProtoReflect() protoreflect.Message { // Deprecated: Use SearchedLibrary.ProtoReflect.Descriptor instead. func (*SearchedLibrary) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{13} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{13} } func (x *SearchedLibrary) GetName() string { @@ -1060,7 +1061,7 @@ type LibraryRelease struct { func (x *LibraryRelease) Reset() { *x = LibraryRelease{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[14] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1073,7 +1074,7 @@ func (x *LibraryRelease) String() string { func (*LibraryRelease) ProtoMessage() {} func (x *LibraryRelease) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[14] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1086,7 +1087,7 @@ func (x *LibraryRelease) ProtoReflect() protoreflect.Message { // Deprecated: Use LibraryRelease.ProtoReflect.Descriptor instead. func (*LibraryRelease) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{14} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{14} } func (x *LibraryRelease) GetAuthor() string { @@ -1194,7 +1195,7 @@ type LibraryDependency struct { func (x *LibraryDependency) Reset() { *x = LibraryDependency{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[15] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1207,7 +1208,7 @@ func (x *LibraryDependency) String() string { func (*LibraryDependency) ProtoMessage() {} func (x *LibraryDependency) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[15] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1220,7 +1221,7 @@ func (x *LibraryDependency) ProtoReflect() protoreflect.Message { // Deprecated: Use LibraryDependency.ProtoReflect.Descriptor instead. func (*LibraryDependency) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{15} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{15} } func (x *LibraryDependency) GetName() string { @@ -1245,20 +1246,20 @@ type DownloadResource struct { // Download URL of the library archive. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Filename of the library archive. - Archivefilename string `protobuf:"bytes,2,opt,name=archivefilename,proto3" json:"archivefilename,omitempty"` + ArchiveFilename string `protobuf:"bytes,2,opt,name=archive_filename,json=archiveFilename,proto3" json:"archive_filename,omitempty"` // Checksum of the library archive. Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` // File size of the library archive. Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // The directory under the staging subdirectory of the data directory the // library archive file will be downloaded to. - Cachepath string `protobuf:"bytes,5,opt,name=cachepath,proto3" json:"cachepath,omitempty"` + CachePath string `protobuf:"bytes,5,opt,name=cache_path,json=cachePath,proto3" json:"cache_path,omitempty"` } func (x *DownloadResource) Reset() { *x = DownloadResource{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[16] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1271,7 +1272,7 @@ func (x *DownloadResource) String() string { func (*DownloadResource) ProtoMessage() {} func (x *DownloadResource) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[16] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1284,7 +1285,7 @@ func (x *DownloadResource) ProtoReflect() protoreflect.Message { // Deprecated: Use DownloadResource.ProtoReflect.Descriptor instead. func (*DownloadResource) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{16} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{16} } func (x *DownloadResource) GetUrl() string { @@ -1294,9 +1295,9 @@ func (x *DownloadResource) GetUrl() string { return "" } -func (x *DownloadResource) GetArchivefilename() string { +func (x *DownloadResource) GetArchiveFilename() string { if x != nil { - return x.Archivefilename + return x.ArchiveFilename } return "" } @@ -1315,14 +1316,14 @@ func (x *DownloadResource) GetSize() int64 { return 0 } -func (x *DownloadResource) GetCachepath() string { +func (x *DownloadResource) GetCachePath() string { if x != nil { - return x.Cachepath + return x.CachePath } return "" } -type LibraryListReq struct { +type LibraryListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1338,27 +1339,28 @@ type LibraryListReq struct { // If set filters out the libraries not matching name Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // By setting this field all duplicate libraries are filtered out leaving - // only the libraries that will be used to compile for the specified board FQBN. + // only the libraries that will be used to compile for the specified board + // FQBN. Fqbn string `protobuf:"bytes,5,opt,name=fqbn,proto3" json:"fqbn,omitempty"` } -func (x *LibraryListReq) Reset() { - *x = LibraryListReq{} +func (x *LibraryListRequest) Reset() { + *x = LibraryListRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[17] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryListReq) String() string { +func (x *LibraryListRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryListReq) ProtoMessage() {} +func (*LibraryListRequest) ProtoMessage() {} -func (x *LibraryListReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[17] +func (x *LibraryListRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1369,72 +1371,72 @@ func (x *LibraryListReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryListReq.ProtoReflect.Descriptor instead. -func (*LibraryListReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{17} +// Deprecated: Use LibraryListRequest.ProtoReflect.Descriptor instead. +func (*LibraryListRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{17} } -func (x *LibraryListReq) GetInstance() *Instance { +func (x *LibraryListRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *LibraryListReq) GetAll() bool { +func (x *LibraryListRequest) GetAll() bool { if x != nil { return x.All } return false } -func (x *LibraryListReq) GetUpdatable() bool { +func (x *LibraryListRequest) GetUpdatable() bool { if x != nil { return x.Updatable } return false } -func (x *LibraryListReq) GetName() string { +func (x *LibraryListRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *LibraryListReq) GetFqbn() string { +func (x *LibraryListRequest) GetFqbn() string { if x != nil { return x.Fqbn } return "" } -type LibraryListResp struct { +type LibraryListResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // List of installed libraries. - InstalledLibrary []*InstalledLibrary `protobuf:"bytes,1,rep,name=installed_library,json=installedLibrary,proto3" json:"installed_library,omitempty"` + InstalledLibraries []*InstalledLibrary `protobuf:"bytes,1,rep,name=installed_libraries,json=installedLibraries,proto3" json:"installed_libraries,omitempty"` } -func (x *LibraryListResp) Reset() { - *x = LibraryListResp{} +func (x *LibraryListResponse) Reset() { + *x = LibraryListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[18] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LibraryListResp) String() string { +func (x *LibraryListResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LibraryListResp) ProtoMessage() {} +func (*LibraryListResponse) ProtoMessage() {} -func (x *LibraryListResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[18] +func (x *LibraryListResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1445,14 +1447,14 @@ func (x *LibraryListResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LibraryListResp.ProtoReflect.Descriptor instead. -func (*LibraryListResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{18} +// Deprecated: Use LibraryListResponse.ProtoReflect.Descriptor instead. +func (*LibraryListResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{18} } -func (x *LibraryListResp) GetInstalledLibrary() []*InstalledLibrary { +func (x *LibraryListResponse) GetInstalledLibraries() []*InstalledLibrary { if x != nil { - return x.InstalledLibrary + return x.InstalledLibraries } return nil } @@ -1473,7 +1475,7 @@ type InstalledLibrary struct { func (x *InstalledLibrary) Reset() { *x = InstalledLibrary{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[19] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1486,7 +1488,7 @@ func (x *InstalledLibrary) String() string { func (*InstalledLibrary) ProtoMessage() {} func (x *InstalledLibrary) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[19] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1499,7 +1501,7 @@ func (x *InstalledLibrary) ProtoReflect() protoreflect.Message { // Deprecated: Use InstalledLibrary.ProtoReflect.Descriptor instead. func (*InstalledLibrary) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{19} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{19} } func (x *InstalledLibrary) GetLibrary() *Library { @@ -1568,13 +1570,13 @@ type Library struct { // fields. Properties map[string]string `protobuf:"bytes,23,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The location type of the library installation. - Location LibraryLocation `protobuf:"varint,24,opt,name=location,proto3,enum=cc.arduino.cli.commands.LibraryLocation" json:"location,omitempty"` + Location LibraryLocation `protobuf:"varint,24,opt,name=location,proto3,enum=cc.arduino.cli.commands.v1.LibraryLocation" json:"location,omitempty"` // The library format type. - Layout LibraryLayout `protobuf:"varint,25,opt,name=layout,proto3,enum=cc.arduino.cli.commands.LibraryLayout" json:"layout,omitempty"` + Layout LibraryLayout `protobuf:"varint,25,opt,name=layout,proto3,enum=cc.arduino.cli.commands.v1.LibraryLayout" json:"layout,omitempty"` // The example sketches provided by the library Examples []string `protobuf:"bytes,26,rep,name=examples,proto3" json:"examples,omitempty"` - // Value of the `includes` field in library.properties or, if missing, the list of - // include files available on the library source root directory. + // Value of the `includes` field in library.properties or, if missing, the + // list of include files available on the library source root directory. ProvidesIncludes []string `protobuf:"bytes,27,rep,name=provides_includes,json=providesIncludes,proto3" json:"provides_includes,omitempty"` // Map of FQBNs that specifies if library is compatible with this library CompatibleWith map[string]bool `protobuf:"bytes,28,rep,name=compatible_with,json=compatibleWith,proto3" json:"compatible_with,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` @@ -1583,7 +1585,7 @@ type Library struct { func (x *Library) Reset() { *x = Library{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[20] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1596,7 +1598,7 @@ func (x *Library) String() string { func (*Library) ProtoMessage() {} func (x *Library) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[20] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1609,7 +1611,7 @@ func (x *Library) ProtoReflect() protoreflect.Message { // Deprecated: Use Library.ProtoReflect.Descriptor instead. func (*Library) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{20} + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{20} } func (x *Library) GetName() string { @@ -1763,14 +1765,14 @@ func (x *Library) GetLocation() LibraryLocation { if x != nil { return x.Location } - return LibraryLocation_ide_builtin + return LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN } func (x *Library) GetLayout() LibraryLayout { if x != nil { return x.Layout } - return LibraryLayout_flat_layout + return LibraryLayout_LIBRARY_LAYOUT_FLAT } func (x *Library) GetExamples() []string { @@ -1794,36 +1796,37 @@ func (x *Library) GetCompatibleWith() map[string]bool { return nil } -type ZipLibraryInstallReq struct { +type ZipLibraryInstallRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Arduino Core Service instance from the `Init` response. Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - //Path to the archived library - Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"` - // Set to true to overwrite an already installed library with the same name. Defaults to false. + // Path to the archived library + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + // Set to true to overwrite an already installed library with the same name. + // Defaults to false. Overwrite bool `protobuf:"varint,3,opt,name=overwrite,proto3" json:"overwrite,omitempty"` } -func (x *ZipLibraryInstallReq) Reset() { - *x = ZipLibraryInstallReq{} +func (x *ZipLibraryInstallRequest) Reset() { + *x = ZipLibraryInstallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[21] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ZipLibraryInstallReq) String() string { +func (x *ZipLibraryInstallRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ZipLibraryInstallReq) ProtoMessage() {} +func (*ZipLibraryInstallRequest) ProtoMessage() {} -func (x *ZipLibraryInstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[21] +func (x *ZipLibraryInstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1834,33 +1837,33 @@ func (x *ZipLibraryInstallReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ZipLibraryInstallReq.ProtoReflect.Descriptor instead. -func (*ZipLibraryInstallReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{21} +// Deprecated: Use ZipLibraryInstallRequest.ProtoReflect.Descriptor instead. +func (*ZipLibraryInstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{21} } -func (x *ZipLibraryInstallReq) GetInstance() *Instance { +func (x *ZipLibraryInstallRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *ZipLibraryInstallReq) GetPath() string { +func (x *ZipLibraryInstallRequest) GetPath() string { if x != nil { return x.Path } return "" } -func (x *ZipLibraryInstallReq) GetOverwrite() bool { +func (x *ZipLibraryInstallRequest) GetOverwrite() bool { if x != nil { return x.Overwrite } return false } -type ZipLibraryInstallResp struct { +type ZipLibraryInstallResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1869,23 +1872,23 @@ type ZipLibraryInstallResp struct { TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` } -func (x *ZipLibraryInstallResp) Reset() { - *x = ZipLibraryInstallResp{} +func (x *ZipLibraryInstallResponse) Reset() { + *x = ZipLibraryInstallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[22] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ZipLibraryInstallResp) String() string { +func (x *ZipLibraryInstallResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ZipLibraryInstallResp) ProtoMessage() {} +func (*ZipLibraryInstallResponse) ProtoMessage() {} -func (x *ZipLibraryInstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[22] +func (x *ZipLibraryInstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1896,19 +1899,19 @@ func (x *ZipLibraryInstallResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ZipLibraryInstallResp.ProtoReflect.Descriptor instead. -func (*ZipLibraryInstallResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{22} +// Deprecated: Use ZipLibraryInstallResponse.ProtoReflect.Descriptor instead. +func (*ZipLibraryInstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{22} } -func (x *ZipLibraryInstallResp) GetTaskProgress() *TaskProgress { +func (x *ZipLibraryInstallResponse) GetTaskProgress() *TaskProgress { if x != nil { return x.TaskProgress } return nil } -type GitLibraryInstallReq struct { +type GitLibraryInstallRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1917,27 +1920,28 @@ type GitLibraryInstallReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // URL to the repository containing the library Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - // Set to true to overwrite an already installed library with the same name. Defaults to false. + // Set to true to overwrite an already installed library with the same name. + // Defaults to false. Overwrite bool `protobuf:"varint,3,opt,name=overwrite,proto3" json:"overwrite,omitempty"` } -func (x *GitLibraryInstallReq) Reset() { - *x = GitLibraryInstallReq{} +func (x *GitLibraryInstallRequest) Reset() { + *x = GitLibraryInstallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[23] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GitLibraryInstallReq) String() string { +func (x *GitLibraryInstallRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GitLibraryInstallReq) ProtoMessage() {} +func (*GitLibraryInstallRequest) ProtoMessage() {} -func (x *GitLibraryInstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[23] +func (x *GitLibraryInstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1948,33 +1952,33 @@ func (x *GitLibraryInstallReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GitLibraryInstallReq.ProtoReflect.Descriptor instead. -func (*GitLibraryInstallReq) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{23} +// Deprecated: Use GitLibraryInstallRequest.ProtoReflect.Descriptor instead. +func (*GitLibraryInstallRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{23} } -func (x *GitLibraryInstallReq) GetInstance() *Instance { +func (x *GitLibraryInstallRequest) GetInstance() *Instance { if x != nil { return x.Instance } return nil } -func (x *GitLibraryInstallReq) GetUrl() string { +func (x *GitLibraryInstallRequest) GetUrl() string { if x != nil { return x.Url } return "" } -func (x *GitLibraryInstallReq) GetOverwrite() bool { +func (x *GitLibraryInstallRequest) GetOverwrite() bool { if x != nil { return x.Overwrite } return false } -type GitLibraryInstallResp struct { +type GitLibraryInstallResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1983,23 +1987,23 @@ type GitLibraryInstallResp struct { TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` } -func (x *GitLibraryInstallResp) Reset() { - *x = GitLibraryInstallResp{} +func (x *GitLibraryInstallResponse) Reset() { + *x = GitLibraryInstallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_commands_lib_proto_msgTypes[24] + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GitLibraryInstallResp) String() string { +func (x *GitLibraryInstallResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GitLibraryInstallResp) ProtoMessage() {} +func (*GitLibraryInstallResponse) ProtoMessage() {} -func (x *GitLibraryInstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_lib_proto_msgTypes[24] +func (x *GitLibraryInstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2010,151 +2014,160 @@ func (x *GitLibraryInstallResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GitLibraryInstallResp.ProtoReflect.Descriptor instead. -func (*GitLibraryInstallResp) Descriptor() ([]byte, []int) { - return file_commands_lib_proto_rawDescGZIP(), []int{24} +// Deprecated: Use GitLibraryInstallResponse.ProtoReflect.Descriptor instead. +func (*GitLibraryInstallResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP(), []int{24} } -func (x *GitLibraryInstallResp) GetTaskProgress() *TaskProgress { +func (x *GitLibraryInstallResponse) GetTaskProgress() *TaskProgress { if x != nil { return x.TaskProgress } return nil } -var File_commands_lib_proto protoreflect.FileDescriptor +var File_cc_arduino_cli_commands_v1_lib_proto protoreflect.FileDescriptor -var file_commands_lib_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x6c, 0x69, 0x62, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x1a, 0x15, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x13, 0x4c, 0x69, 0x62, 0x72, - 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x45, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x44, - 0x65, 0x70, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x44, 0x65, 0x70, - 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, - 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x13, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, +var file_cc_arduino_cli_commands_v1_lib_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x62, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x22, 0x62, 0x0a, 0x14, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x22, 0x55, 0x0a, 0x14, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x15, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x76, 0x31, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, + 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x16, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x0a, 0x17, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x15, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x0d, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x62, - 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, - 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, - 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x0a, 0x1e, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x0c, 0x64, 0x65, 0x70, - 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x22, - 0x83, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, - 0x64, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x28, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x67, 0x0a, 0x10, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x64, 0x65, 0x70, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x44, 0x65, 0x70, 0x73, 0x22, 0xb1, + 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0xa1, - 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x46, 0x0a, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x69, + 0x0a, 0x18, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, + 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5c, 0x0a, 0x18, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0xa0, 0x02, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, - 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x52, 0x0a, 0x08, 0x72, 0x65, - 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, - 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x3f, - 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x93, + 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x7d, 0x0a, 0x22, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x69, 0x65, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, + 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x2b, + 0x0a, 0x11, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x6e, 0x0a, 0x14, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0xab, 0x01, 0x0a, 0x15, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, + 0x12, 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2f, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x0f, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x55, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, + 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x52, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x67, 0x0a, 0x0d, + 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x40, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, - 0x64, 0x0a, 0x0d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xee, 0x03, 0x0a, 0x0e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf4, 0x03, 0x0a, 0x0e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, @@ -2171,63 +2184,65 @@ var file_commands_lib_proto_rawDesc = []byte{ 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, - 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x18, 0x0c, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x49, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, - 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x65, - 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, - 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x11, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x2d, 0x0a, 0x12, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, - 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x22, 0x9c, - 0x01, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, - 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x70, 0x61, 0x74, 0x68, 0x22, 0xa7, 0x01, - 0x0a, 0x0e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, - 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0x69, 0x0a, 0x0f, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x56, 0x0a, 0x11, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x52, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x07, 0x6c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x07, 0x6c, 0x69, 0x62, 0x72, - 0x61, 0x72, 0x79, 0x12, 0x41, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, + 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x11, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x0c, 0x64, 0x65, 0x70, + 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0c, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x11, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, + 0x61, 0x69, 0x6e, 0x74, 0x22, 0x9e, 0x01, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, 0x69, + 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x63, 0x68, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, + 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0x74, 0x0a, 0x13, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, + 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, + 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x22, 0x97, 0x01, 0x0a, + 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x12, 0x3d, 0x0a, 0x07, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x07, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x12, 0x44, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, + 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x07, 0x72, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xe2, 0x08, 0x0a, 0x07, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x08, 0x0a, 0x07, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x1e, @@ -2265,170 +2280,182 @@ var file_commands_lib_proto_rawDesc = []byte{ 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x08, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x18, 0x19, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, - 0x61, 0x72, 0x79, 0x4c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x1a, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x2b, 0x0a, - 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, - 0x65, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x12, 0x5d, 0x0a, 0x0f, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x18, 0x1c, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x57, 0x69, 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x74, 0x69, 0x62, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, - 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x14, - 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x47, + 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, + 0x74, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x61, 0x79, 0x6f, + 0x75, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, + 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, + 0x65, 0x57, 0x69, 0x74, 0x68, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, + 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8e, 0x01, 0x0a, 0x18, 0x5a, 0x69, 0x70, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x76, + 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, + 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x22, 0x6a, 0x0a, 0x19, 0x5a, 0x69, 0x70, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x18, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x22, 0x63, 0x0a, 0x15, 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, - 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, - 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, - 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x47, - 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x22, 0x63, 0x0a, 0x15, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0d, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2a, 0x2e, 0x0a, 0x13, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, - 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x2a, 0x36, 0x0a, 0x0d, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x4c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x66, 0x6c, 0x61, 0x74, - 0x5f, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x72, 0x65, 0x63, - 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x10, 0x01, 0x2a, - 0x63, 0x0a, 0x0f, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x69, 0x64, 0x65, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, - 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x10, 0x01, 0x12, 0x14, 0x0a, - 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, - 0x6e, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x74, - 0x69, 0x6e, 0x10, 0x03, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x22, 0x6a, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4d, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2a, + 0x5a, 0x0a, 0x13, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, + 0x59, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x4c, 0x49, 0x42, 0x52, + 0x41, 0x52, 0x59, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x46, 0x0a, 0x0d, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x13, + 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, 0x5f, 0x4c, 0x41, 0x59, 0x4f, 0x55, 0x54, 0x5f, 0x46, + 0x4c, 0x41, 0x54, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, + 0x5f, 0x4c, 0x41, 0x59, 0x4f, 0x55, 0x54, 0x5f, 0x52, 0x45, 0x43, 0x55, 0x52, 0x53, 0x49, 0x56, + 0x45, 0x10, 0x01, 0x2a, 0xa7, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x49, 0x42, 0x52, 0x41, + 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x45, 0x5f, + 0x42, 0x55, 0x49, 0x4c, 0x54, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4c, 0x49, 0x42, + 0x52, 0x41, 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x53, + 0x45, 0x52, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, 0x5f, + 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, + 0x4d, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x54, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4c, + 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, + 0x4f, 0x52, 0x4d, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x54, 0x49, 0x4e, 0x10, 0x03, 0x42, 0x48, 0x5a, + 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, + 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, + 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_commands_lib_proto_rawDescOnce sync.Once - file_commands_lib_proto_rawDescData = file_commands_lib_proto_rawDesc + file_cc_arduino_cli_commands_v1_lib_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_lib_proto_rawDescData = file_cc_arduino_cli_commands_v1_lib_proto_rawDesc ) -func file_commands_lib_proto_rawDescGZIP() []byte { - file_commands_lib_proto_rawDescOnce.Do(func() { - file_commands_lib_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_lib_proto_rawDescData) +func file_cc_arduino_cli_commands_v1_lib_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_lib_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_lib_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_lib_proto_rawDescData) }) - return file_commands_lib_proto_rawDescData -} - -var file_commands_lib_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_commands_lib_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_commands_lib_proto_goTypes = []interface{}{ - (LibrarySearchStatus)(0), // 0: cc.arduino.cli.commands.LibrarySearchStatus - (LibraryLayout)(0), // 1: cc.arduino.cli.commands.LibraryLayout - (LibraryLocation)(0), // 2: cc.arduino.cli.commands.LibraryLocation - (*LibraryDownloadReq)(nil), // 3: cc.arduino.cli.commands.LibraryDownloadReq - (*LibraryDownloadResp)(nil), // 4: cc.arduino.cli.commands.LibraryDownloadResp - (*LibraryInstallReq)(nil), // 5: cc.arduino.cli.commands.LibraryInstallReq - (*LibraryInstallResp)(nil), // 6: cc.arduino.cli.commands.LibraryInstallResp - (*LibraryUninstallReq)(nil), // 7: cc.arduino.cli.commands.LibraryUninstallReq - (*LibraryUninstallResp)(nil), // 8: cc.arduino.cli.commands.LibraryUninstallResp - (*LibraryUpgradeAllReq)(nil), // 9: cc.arduino.cli.commands.LibraryUpgradeAllReq - (*LibraryUpgradeAllResp)(nil), // 10: cc.arduino.cli.commands.LibraryUpgradeAllResp - (*LibraryResolveDependenciesReq)(nil), // 11: cc.arduino.cli.commands.LibraryResolveDependenciesReq - (*LibraryResolveDependenciesResp)(nil), // 12: cc.arduino.cli.commands.LibraryResolveDependenciesResp - (*LibraryDependencyStatus)(nil), // 13: cc.arduino.cli.commands.LibraryDependencyStatus - (*LibrarySearchReq)(nil), // 14: cc.arduino.cli.commands.LibrarySearchReq - (*LibrarySearchResp)(nil), // 15: cc.arduino.cli.commands.LibrarySearchResp - (*SearchedLibrary)(nil), // 16: cc.arduino.cli.commands.SearchedLibrary - (*LibraryRelease)(nil), // 17: cc.arduino.cli.commands.LibraryRelease - (*LibraryDependency)(nil), // 18: cc.arduino.cli.commands.LibraryDependency - (*DownloadResource)(nil), // 19: cc.arduino.cli.commands.DownloadResource - (*LibraryListReq)(nil), // 20: cc.arduino.cli.commands.LibraryListReq - (*LibraryListResp)(nil), // 21: cc.arduino.cli.commands.LibraryListResp - (*InstalledLibrary)(nil), // 22: cc.arduino.cli.commands.InstalledLibrary - (*Library)(nil), // 23: cc.arduino.cli.commands.Library - (*ZipLibraryInstallReq)(nil), // 24: cc.arduino.cli.commands.ZipLibraryInstallReq - (*ZipLibraryInstallResp)(nil), // 25: cc.arduino.cli.commands.ZipLibraryInstallResp - (*GitLibraryInstallReq)(nil), // 26: cc.arduino.cli.commands.GitLibraryInstallReq - (*GitLibraryInstallResp)(nil), // 27: cc.arduino.cli.commands.GitLibraryInstallResp - nil, // 28: cc.arduino.cli.commands.SearchedLibrary.ReleasesEntry - nil, // 29: cc.arduino.cli.commands.Library.PropertiesEntry - nil, // 30: cc.arduino.cli.commands.Library.CompatibleWithEntry - (*Instance)(nil), // 31: cc.arduino.cli.commands.Instance - (*DownloadProgress)(nil), // 32: cc.arduino.cli.commands.DownloadProgress - (*TaskProgress)(nil), // 33: cc.arduino.cli.commands.TaskProgress -} -var file_commands_lib_proto_depIdxs = []int32{ - 31, // 0: cc.arduino.cli.commands.LibraryDownloadReq.instance:type_name -> cc.arduino.cli.commands.Instance - 32, // 1: cc.arduino.cli.commands.LibraryDownloadResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 31, // 2: cc.arduino.cli.commands.LibraryInstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 32, // 3: cc.arduino.cli.commands.LibraryInstallResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 33, // 4: cc.arduino.cli.commands.LibraryInstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 31, // 5: cc.arduino.cli.commands.LibraryUninstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 33, // 6: cc.arduino.cli.commands.LibraryUninstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 31, // 7: cc.arduino.cli.commands.LibraryUpgradeAllReq.instance:type_name -> cc.arduino.cli.commands.Instance - 32, // 8: cc.arduino.cli.commands.LibraryUpgradeAllResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 33, // 9: cc.arduino.cli.commands.LibraryUpgradeAllResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 31, // 10: cc.arduino.cli.commands.LibraryResolveDependenciesReq.instance:type_name -> cc.arduino.cli.commands.Instance - 13, // 11: cc.arduino.cli.commands.LibraryResolveDependenciesResp.dependencies:type_name -> cc.arduino.cli.commands.LibraryDependencyStatus - 31, // 12: cc.arduino.cli.commands.LibrarySearchReq.instance:type_name -> cc.arduino.cli.commands.Instance - 16, // 13: cc.arduino.cli.commands.LibrarySearchResp.libraries:type_name -> cc.arduino.cli.commands.SearchedLibrary - 0, // 14: cc.arduino.cli.commands.LibrarySearchResp.status:type_name -> cc.arduino.cli.commands.LibrarySearchStatus - 28, // 15: cc.arduino.cli.commands.SearchedLibrary.releases:type_name -> cc.arduino.cli.commands.SearchedLibrary.ReleasesEntry - 17, // 16: cc.arduino.cli.commands.SearchedLibrary.latest:type_name -> cc.arduino.cli.commands.LibraryRelease - 19, // 17: cc.arduino.cli.commands.LibraryRelease.resources:type_name -> cc.arduino.cli.commands.DownloadResource - 18, // 18: cc.arduino.cli.commands.LibraryRelease.dependencies:type_name -> cc.arduino.cli.commands.LibraryDependency - 31, // 19: cc.arduino.cli.commands.LibraryListReq.instance:type_name -> cc.arduino.cli.commands.Instance - 22, // 20: cc.arduino.cli.commands.LibraryListResp.installed_library:type_name -> cc.arduino.cli.commands.InstalledLibrary - 23, // 21: cc.arduino.cli.commands.InstalledLibrary.library:type_name -> cc.arduino.cli.commands.Library - 17, // 22: cc.arduino.cli.commands.InstalledLibrary.release:type_name -> cc.arduino.cli.commands.LibraryRelease - 29, // 23: cc.arduino.cli.commands.Library.properties:type_name -> cc.arduino.cli.commands.Library.PropertiesEntry - 2, // 24: cc.arduino.cli.commands.Library.location:type_name -> cc.arduino.cli.commands.LibraryLocation - 1, // 25: cc.arduino.cli.commands.Library.layout:type_name -> cc.arduino.cli.commands.LibraryLayout - 30, // 26: cc.arduino.cli.commands.Library.compatible_with:type_name -> cc.arduino.cli.commands.Library.CompatibleWithEntry - 31, // 27: cc.arduino.cli.commands.ZipLibraryInstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 33, // 28: cc.arduino.cli.commands.ZipLibraryInstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 31, // 29: cc.arduino.cli.commands.GitLibraryInstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 33, // 30: cc.arduino.cli.commands.GitLibraryInstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 17, // 31: cc.arduino.cli.commands.SearchedLibrary.ReleasesEntry.value:type_name -> cc.arduino.cli.commands.LibraryRelease + return file_cc_arduino_cli_commands_v1_lib_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_lib_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_cc_arduino_cli_commands_v1_lib_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_cc_arduino_cli_commands_v1_lib_proto_goTypes = []interface{}{ + (LibrarySearchStatus)(0), // 0: cc.arduino.cli.commands.v1.LibrarySearchStatus + (LibraryLayout)(0), // 1: cc.arduino.cli.commands.v1.LibraryLayout + (LibraryLocation)(0), // 2: cc.arduino.cli.commands.v1.LibraryLocation + (*LibraryDownloadRequest)(nil), // 3: cc.arduino.cli.commands.v1.LibraryDownloadRequest + (*LibraryDownloadResponse)(nil), // 4: cc.arduino.cli.commands.v1.LibraryDownloadResponse + (*LibraryInstallRequest)(nil), // 5: cc.arduino.cli.commands.v1.LibraryInstallRequest + (*LibraryInstallResponse)(nil), // 6: cc.arduino.cli.commands.v1.LibraryInstallResponse + (*LibraryUninstallRequest)(nil), // 7: cc.arduino.cli.commands.v1.LibraryUninstallRequest + (*LibraryUninstallResponse)(nil), // 8: cc.arduino.cli.commands.v1.LibraryUninstallResponse + (*LibraryUpgradeAllRequest)(nil), // 9: cc.arduino.cli.commands.v1.LibraryUpgradeAllRequest + (*LibraryUpgradeAllResponse)(nil), // 10: cc.arduino.cli.commands.v1.LibraryUpgradeAllResponse + (*LibraryResolveDependenciesRequest)(nil), // 11: cc.arduino.cli.commands.v1.LibraryResolveDependenciesRequest + (*LibraryResolveDependenciesResponse)(nil), // 12: cc.arduino.cli.commands.v1.LibraryResolveDependenciesResponse + (*LibraryDependencyStatus)(nil), // 13: cc.arduino.cli.commands.v1.LibraryDependencyStatus + (*LibrarySearchRequest)(nil), // 14: cc.arduino.cli.commands.v1.LibrarySearchRequest + (*LibrarySearchResponse)(nil), // 15: cc.arduino.cli.commands.v1.LibrarySearchResponse + (*SearchedLibrary)(nil), // 16: cc.arduino.cli.commands.v1.SearchedLibrary + (*LibraryRelease)(nil), // 17: cc.arduino.cli.commands.v1.LibraryRelease + (*LibraryDependency)(nil), // 18: cc.arduino.cli.commands.v1.LibraryDependency + (*DownloadResource)(nil), // 19: cc.arduino.cli.commands.v1.DownloadResource + (*LibraryListRequest)(nil), // 20: cc.arduino.cli.commands.v1.LibraryListRequest + (*LibraryListResponse)(nil), // 21: cc.arduino.cli.commands.v1.LibraryListResponse + (*InstalledLibrary)(nil), // 22: cc.arduino.cli.commands.v1.InstalledLibrary + (*Library)(nil), // 23: cc.arduino.cli.commands.v1.Library + (*ZipLibraryInstallRequest)(nil), // 24: cc.arduino.cli.commands.v1.ZipLibraryInstallRequest + (*ZipLibraryInstallResponse)(nil), // 25: cc.arduino.cli.commands.v1.ZipLibraryInstallResponse + (*GitLibraryInstallRequest)(nil), // 26: cc.arduino.cli.commands.v1.GitLibraryInstallRequest + (*GitLibraryInstallResponse)(nil), // 27: cc.arduino.cli.commands.v1.GitLibraryInstallResponse + nil, // 28: cc.arduino.cli.commands.v1.SearchedLibrary.ReleasesEntry + nil, // 29: cc.arduino.cli.commands.v1.Library.PropertiesEntry + nil, // 30: cc.arduino.cli.commands.v1.Library.CompatibleWithEntry + (*Instance)(nil), // 31: cc.arduino.cli.commands.v1.Instance + (*DownloadProgress)(nil), // 32: cc.arduino.cli.commands.v1.DownloadProgress + (*TaskProgress)(nil), // 33: cc.arduino.cli.commands.v1.TaskProgress +} +var file_cc_arduino_cli_commands_v1_lib_proto_depIdxs = []int32{ + 31, // 0: cc.arduino.cli.commands.v1.LibraryDownloadRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 32, // 1: cc.arduino.cli.commands.v1.LibraryDownloadResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 31, // 2: cc.arduino.cli.commands.v1.LibraryInstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 32, // 3: cc.arduino.cli.commands.v1.LibraryInstallResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 33, // 4: cc.arduino.cli.commands.v1.LibraryInstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 31, // 5: cc.arduino.cli.commands.v1.LibraryUninstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 33, // 6: cc.arduino.cli.commands.v1.LibraryUninstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 31, // 7: cc.arduino.cli.commands.v1.LibraryUpgradeAllRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 32, // 8: cc.arduino.cli.commands.v1.LibraryUpgradeAllResponse.progress:type_name -> cc.arduino.cli.commands.v1.DownloadProgress + 33, // 9: cc.arduino.cli.commands.v1.LibraryUpgradeAllResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 31, // 10: cc.arduino.cli.commands.v1.LibraryResolveDependenciesRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 13, // 11: cc.arduino.cli.commands.v1.LibraryResolveDependenciesResponse.dependencies:type_name -> cc.arduino.cli.commands.v1.LibraryDependencyStatus + 31, // 12: cc.arduino.cli.commands.v1.LibrarySearchRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 16, // 13: cc.arduino.cli.commands.v1.LibrarySearchResponse.libraries:type_name -> cc.arduino.cli.commands.v1.SearchedLibrary + 0, // 14: cc.arduino.cli.commands.v1.LibrarySearchResponse.status:type_name -> cc.arduino.cli.commands.v1.LibrarySearchStatus + 28, // 15: cc.arduino.cli.commands.v1.SearchedLibrary.releases:type_name -> cc.arduino.cli.commands.v1.SearchedLibrary.ReleasesEntry + 17, // 16: cc.arduino.cli.commands.v1.SearchedLibrary.latest:type_name -> cc.arduino.cli.commands.v1.LibraryRelease + 19, // 17: cc.arduino.cli.commands.v1.LibraryRelease.resources:type_name -> cc.arduino.cli.commands.v1.DownloadResource + 18, // 18: cc.arduino.cli.commands.v1.LibraryRelease.dependencies:type_name -> cc.arduino.cli.commands.v1.LibraryDependency + 31, // 19: cc.arduino.cli.commands.v1.LibraryListRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 22, // 20: cc.arduino.cli.commands.v1.LibraryListResponse.installed_libraries:type_name -> cc.arduino.cli.commands.v1.InstalledLibrary + 23, // 21: cc.arduino.cli.commands.v1.InstalledLibrary.library:type_name -> cc.arduino.cli.commands.v1.Library + 17, // 22: cc.arduino.cli.commands.v1.InstalledLibrary.release:type_name -> cc.arduino.cli.commands.v1.LibraryRelease + 29, // 23: cc.arduino.cli.commands.v1.Library.properties:type_name -> cc.arduino.cli.commands.v1.Library.PropertiesEntry + 2, // 24: cc.arduino.cli.commands.v1.Library.location:type_name -> cc.arduino.cli.commands.v1.LibraryLocation + 1, // 25: cc.arduino.cli.commands.v1.Library.layout:type_name -> cc.arduino.cli.commands.v1.LibraryLayout + 30, // 26: cc.arduino.cli.commands.v1.Library.compatible_with:type_name -> cc.arduino.cli.commands.v1.Library.CompatibleWithEntry + 31, // 27: cc.arduino.cli.commands.v1.ZipLibraryInstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 33, // 28: cc.arduino.cli.commands.v1.ZipLibraryInstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 31, // 29: cc.arduino.cli.commands.v1.GitLibraryInstallRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 33, // 30: cc.arduino.cli.commands.v1.GitLibraryInstallResponse.task_progress:type_name -> cc.arduino.cli.commands.v1.TaskProgress + 17, // 31: cc.arduino.cli.commands.v1.SearchedLibrary.ReleasesEntry.value:type_name -> cc.arduino.cli.commands.v1.LibraryRelease 32, // [32:32] is the sub-list for method output_type 32, // [32:32] is the sub-list for method input_type 32, // [32:32] is the sub-list for extension type_name @@ -2436,15 +2463,15 @@ var file_commands_lib_proto_depIdxs = []int32{ 0, // [0:32] is the sub-list for field type_name } -func init() { file_commands_lib_proto_init() } -func file_commands_lib_proto_init() { - if File_commands_lib_proto != nil { +func init() { file_cc_arduino_cli_commands_v1_lib_proto_init() } +func file_cc_arduino_cli_commands_v1_lib_proto_init() { + if File_cc_arduino_cli_commands_v1_lib_proto != nil { return } - file_commands_common_proto_init() + file_cc_arduino_cli_commands_v1_common_proto_init() if !protoimpl.UnsafeEnabled { - file_commands_lib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryDownloadReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryDownloadRequest); i { case 0: return &v.state case 1: @@ -2455,8 +2482,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryDownloadResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryDownloadResponse); i { case 0: return &v.state case 1: @@ -2467,8 +2494,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryInstallReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryInstallRequest); i { case 0: return &v.state case 1: @@ -2479,8 +2506,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryInstallResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryInstallResponse); i { case 0: return &v.state case 1: @@ -2491,8 +2518,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryUninstallReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryUninstallRequest); i { case 0: return &v.state case 1: @@ -2503,8 +2530,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryUninstallResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryUninstallResponse); i { case 0: return &v.state case 1: @@ -2515,8 +2542,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryUpgradeAllReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryUpgradeAllRequest); i { case 0: return &v.state case 1: @@ -2527,8 +2554,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryUpgradeAllResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryUpgradeAllResponse); i { case 0: return &v.state case 1: @@ -2539,8 +2566,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryResolveDependenciesReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryResolveDependenciesRequest); i { case 0: return &v.state case 1: @@ -2551,8 +2578,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryResolveDependenciesResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryResolveDependenciesResponse); i { case 0: return &v.state case 1: @@ -2563,7 +2590,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LibraryDependencyStatus); i { case 0: return &v.state @@ -2575,8 +2602,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibrarySearchReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibrarySearchRequest); i { case 0: return &v.state case 1: @@ -2587,8 +2614,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibrarySearchResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibrarySearchResponse); i { case 0: return &v.state case 1: @@ -2599,7 +2626,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchedLibrary); i { case 0: return &v.state @@ -2611,7 +2638,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LibraryRelease); i { case 0: return &v.state @@ -2623,7 +2650,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LibraryDependency); i { case 0: return &v.state @@ -2635,7 +2662,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DownloadResource); i { case 0: return &v.state @@ -2647,8 +2674,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryListReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryListRequest); i { case 0: return &v.state case 1: @@ -2659,8 +2686,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LibraryListResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibraryListResponse); i { case 0: return &v.state case 1: @@ -2671,7 +2698,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InstalledLibrary); i { case 0: return &v.state @@ -2683,7 +2710,7 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Library); i { case 0: return &v.state @@ -2695,8 +2722,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ZipLibraryInstallReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ZipLibraryInstallRequest); i { case 0: return &v.state case 1: @@ -2707,8 +2734,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ZipLibraryInstallResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ZipLibraryInstallResponse); i { case 0: return &v.state case 1: @@ -2719,8 +2746,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GitLibraryInstallReq); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GitLibraryInstallRequest); i { case 0: return &v.state case 1: @@ -2731,8 +2758,8 @@ func file_commands_lib_proto_init() { return nil } } - file_commands_lib_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GitLibraryInstallResp); i { + file_cc_arduino_cli_commands_v1_lib_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GitLibraryInstallResponse); i { case 0: return &v.state case 1: @@ -2748,19 +2775,19 @@ func file_commands_lib_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_lib_proto_rawDesc, + RawDescriptor: file_cc_arduino_cli_commands_v1_lib_proto_rawDesc, NumEnums: 3, NumMessages: 28, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_commands_lib_proto_goTypes, - DependencyIndexes: file_commands_lib_proto_depIdxs, - EnumInfos: file_commands_lib_proto_enumTypes, - MessageInfos: file_commands_lib_proto_msgTypes, + GoTypes: file_cc_arduino_cli_commands_v1_lib_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_lib_proto_depIdxs, + EnumInfos: file_cc_arduino_cli_commands_v1_lib_proto_enumTypes, + MessageInfos: file_cc_arduino_cli_commands_v1_lib_proto_msgTypes, }.Build() - File_commands_lib_proto = out.File - file_commands_lib_proto_rawDesc = nil - file_commands_lib_proto_goTypes = nil - file_commands_lib_proto_depIdxs = nil + File_cc_arduino_cli_commands_v1_lib_proto = out.File + file_cc_arduino_cli_commands_v1_lib_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_lib_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_lib_proto_depIdxs = nil } diff --git a/rpc/cc/arduino/cli/commands/v1/lib.proto b/rpc/cc/arduino/cli/commands/v1/lib.proto new file mode 100644 index 00000000000..4dbb1684288 --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/lib.proto @@ -0,0 +1,330 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +import "cc/arduino/cli/commands/v1/common.proto"; + +message LibraryDownloadRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Name of the library. + string name = 2; + // The version of the library to download. + string version = 3; +} + +message LibraryDownloadResponse { + // Progress of the library download. + DownloadProgress progress = 1; +} + +message LibraryInstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Name of the library. + string name = 2; + // The version of the library to install. + string version = 3; + // Set to true to skip installation of specified library's dependencies, + // defaults to false. + bool no_deps = 4; +} + +message LibraryInstallResponse { + // Progress of the library download. + DownloadProgress progress = 1; + // Description of the current stage of the installation. + TaskProgress task_progress = 2; +} + +message LibraryUninstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Name of the library. + string name = 2; + // The version of the library to uninstall. + string version = 3; +} + +message LibraryUninstallResponse { + // Description of the current stage of the uninstallation. + TaskProgress task_progress = 1; +} + +message LibraryUpgradeAllRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; +} + +message LibraryUpgradeAllResponse { + // Progress of the downloads of files needed for the upgrades. + DownloadProgress progress = 1; + // Description of the current stage of the upgrade. + TaskProgress task_progress = 2; +} + +message LibraryResolveDependenciesRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Name of the library. + string name = 2; + // The version of the library to check dependencies of. If no version is + // specified, dependencies of the newest version will be listed. + string version = 3; +} + +message LibraryResolveDependenciesResponse { + // Dependencies of the library. + repeated LibraryDependencyStatus dependencies = 1; +} + +message LibraryDependencyStatus { + // The name of the library dependency. + string name = 1; + // The required version of the library dependency. + string version_required = 2; + // Version of the library dependency currently installed. + string version_installed = 3; +} + +message LibrarySearchRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // The search query. + string query = 2; +} + +enum LibrarySearchStatus { + // No search results were found. + LIBRARY_SEARCH_STATUS_FAILED = 0; + // Search results were found. + LIBRARY_SEARCH_STATUS_SUCCESS = 1; +} + +message LibrarySearchResponse { + // The results of the search. + repeated SearchedLibrary libraries = 1; + // Whether the search yielded results. + LibrarySearchStatus status = 2; +} + +message SearchedLibrary { + // Library name. + string name = 1; + // The index data for the available versions of the library. The key of the + // map is the library version. + map releases = 2; + // The index data for the latest version of the library. + LibraryRelease latest = 3; +} + +message LibraryRelease { + // Value of the `author` field in library.properties. + string author = 1; + // Value of the `version` field in library.properties. + string version = 2; + // Value of the `maintainer` field in library.properties. + string maintainer = 3; + // Value of the `sentence` field in library.properties. + string sentence = 4; + // Value of the `paragraph` field in library.properties. + string paragraph = 5; + // Value of the `url` field in library.properties. + string website = 6; + // Value of the `category` field in library.properties. + string category = 7; + // Value of the `architectures` field in library.properties. + repeated string architectures = 8; + // The type categories of the library, as defined in the libraries index. + // Possible values: `Arduino`, `Partner`, `Recommended`, `Contributed`, + // `Retired`. + repeated string types = 9; + // Information about the library archive file. + DownloadResource resources = 10; + // Value of the `license` field in library.properties. + string license = 11; + // Value of the `includes` field in library.properties. + repeated string provides_includes = 12; + // The names of the library's dependencies, as defined by the 'depends' + // field of library.properties. + repeated LibraryDependency dependencies = 13; +} + +message LibraryDependency { + // Library name of the dependency. + string name = 1; + // Version constraint of the dependency. + string version_constraint = 2; +} + +message DownloadResource { + // Download URL of the library archive. + string url = 1; + // Filename of the library archive. + string archive_filename = 2; + // Checksum of the library archive. + string checksum = 3; + // File size of the library archive. + int64 size = 4; + // The directory under the staging subdirectory of the data directory the + // library archive file will be downloaded to. + string cache_path = 5; +} + +message LibraryListRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Whether to include built-in libraries (from platforms and the Arduino + // IDE) in the listing. + bool all = 2; + // Whether to list only libraries for which there is a newer version than + // the installed version available in the libraries index. + bool updatable = 3; + // If set filters out the libraries not matching name + string name = 4; + // By setting this field all duplicate libraries are filtered out leaving + // only the libraries that will be used to compile for the specified board + // FQBN. + string fqbn = 5; +} + +message LibraryListResponse { + // List of installed libraries. + repeated InstalledLibrary installed_libraries = 1; +} + +message InstalledLibrary { + // Information about the library. + Library library = 1; + // When the `updatable` field of the `LibraryList` request is set to `true`, + // this will contain information on the latest version of the library in the + // libraries index. + LibraryRelease release = 2; +} + +message Library { + // The library's directory name. + string name = 1; + // Value of the `author` field in library.properties. + string author = 2; + // Value of the `maintainer` field in library.properties. + string maintainer = 3; + // Value of the `sentence` field in library.properties. + string sentence = 4; + // Value of the `paragraph` field in library.properties. + string paragraph = 5; + // Value of the `url` field in library.properties. + string website = 6; + // Value of the `category` field in library.properties. + string category = 7; + // Value of the `architectures` field in library.properties. + repeated string architectures = 8; + // The type categories of the library. Possible values: `Arduino`, + // `Partner`, `Recommended`, `Contributed`, `Retired`. + repeated string types = 9; + // The path of the library directory. + string install_dir = 10; + // The location of the library's source files. + string source_dir = 11; + // The location of the library's `utility` directory. + string utility_dir = 12; + // If `location` is `platform_builtin` or `referenced_platform_builtin`, the + // identifying string for the platform containing the library + // (e.g., `arduino:avr@1.8.2`). + string container_platform = 14; + // Value of the `name` field in library.properties. + string real_name = 16; + // Value of the `dot_a_linkage` field in library.properties. + bool dot_a_linkage = 17; + // Value of the `precompiled` field in library.properties. + bool precompiled = 18; + // Value of the `ldflags` field in library.properties. + string ld_flags = 19; + // A library.properties file is not present in the library's root directory. + bool is_legacy = 20; + // Value of the `version` field in library.properties. + string version = 21; + // Value of the `license` field in library.properties. + string license = 22; + // The data from the library's library.properties file, including unused + // fields. + map properties = 23; + // The location type of the library installation. + LibraryLocation location = 24; + // The library format type. + LibraryLayout layout = 25; + // The example sketches provided by the library + repeated string examples = 26; + // Value of the `includes` field in library.properties or, if missing, the + // list of include files available on the library source root directory. + repeated string provides_includes = 27; + // Map of FQBNs that specifies if library is compatible with this library + map compatible_with = 28; +} + +enum LibraryLayout { + // Library is in the 1.0 Arduino library format. + LIBRARY_LAYOUT_FLAT = 0; + // Library is in the 1.5 Arduino library format. + LIBRARY_LAYOUT_RECURSIVE = 1; +} + +enum LibraryLocation { + // In the `libraries` subdirectory of the Arduino IDE installation. + LIBRARY_LOCATION_IDE_BUILTIN = 0; + // In the `libraries` subdirectory of the user directory (sketchbook). + LIBRARY_LOCATION_USER = 1; + // In the `libraries` subdirectory of a platform. + LIBRARY_LOCATION_PLATFORM_BUILTIN = 2; + // When `LibraryLocation` is used in a context where a board is specified, + // this indicates the library is in the `libraries` subdirectory of a + // platform referenced by the board's platform. + LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN = 3; +} + +message ZipLibraryInstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Path to the archived library + string path = 2; + // Set to true to overwrite an already installed library with the same name. + // Defaults to false. + bool overwrite = 3; +} + +message ZipLibraryInstallResponse { + // Description of the current stage of the installation. + TaskProgress task_progress = 1; +} + +message GitLibraryInstallRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // URL to the repository containing the library + string url = 2; + // Set to true to overwrite an already installed library with the same name. + // Defaults to false. + bool overwrite = 3; +} + +message GitLibraryInstallResponse { + // Description of the current stage of the installation. + TaskProgress task_progress = 1; +} diff --git a/rpc/cc/arduino/cli/commands/v1/upload.pb.go b/rpc/cc/arduino/cli/commands/v1/upload.pb.go new file mode 100644 index 00000000000..0d78228fefb --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/upload.pb.go @@ -0,0 +1,928 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/commands/v1/upload.proto + +package commands + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type UploadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + // If this field is not defined, the FQBN of the board attached to the sketch + // via the `BoardAttach` method is used. + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // Path where the sketch to be uploaded is stored. Unless the `import_file` + // field is defined, the compiled binary is assumed to be at the location and + // filename under this path where it is saved by the `Compile` method. + SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // The port of the board. + Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` + // Whether to turn on verbose output during the upload. + Verbose bool `protobuf:"varint,5,opt,name=verbose,proto3" json:"verbose,omitempty"` + // After upload, verify that the contents of the memory on the board match the + // uploaded binary. + Verify bool `protobuf:"varint,6,opt,name=verify,proto3" json:"verify,omitempty"` + // When `import_file` is specified, it overrides the `import_dir` and + // `sketch_path` params. + ImportFile string `protobuf:"bytes,7,opt,name=import_file,json=importFile,proto3" json:"import_file,omitempty"` + // Custom path to a directory containing compiled files. When `import_dir` is + // not specified, the standard build directory under `sketch_path` is used. + ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` + // The programmer to use for upload. If set an UploadUsingProgrammer is + // triggered instead of a normal upload. The UploadUsingProgrammer call may + // also be used for explicit error check. + Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` +} + +func (x *UploadRequest) Reset() { + *x = UploadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadRequest) ProtoMessage() {} + +func (x *UploadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead. +func (*UploadRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{0} +} + +func (x *UploadRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *UploadRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *UploadRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *UploadRequest) GetPort() string { + if x != nil { + return x.Port + } + return "" +} + +func (x *UploadRequest) GetVerbose() bool { + if x != nil { + return x.Verbose + } + return false +} + +func (x *UploadRequest) GetVerify() bool { + if x != nil { + return x.Verify + } + return false +} + +func (x *UploadRequest) GetImportFile() string { + if x != nil { + return x.ImportFile + } + return "" +} + +func (x *UploadRequest) GetImportDir() string { + if x != nil { + return x.ImportDir + } + return "" +} + +func (x *UploadRequest) GetProgrammer() string { + if x != nil { + return x.Programmer + } + return "" +} + +type UploadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The output of the upload process. + OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` + // The error output of the upload process. + ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` +} + +func (x *UploadResponse) Reset() { + *x = UploadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadResponse) ProtoMessage() {} + +func (x *UploadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead. +func (*UploadResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{1} +} + +func (x *UploadResponse) GetOutStream() []byte { + if x != nil { + return x.OutStream + } + return nil +} + +func (x *UploadResponse) GetErrStream() []byte { + if x != nil { + return x.ErrStream + } + return nil +} + +type UploadUsingProgrammerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + // If this field is not defined, the FQBN of the board attached to the sketch + // via the `BoardAttach` method is used. + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // Path where the sketch to be uploaded is stored. Unless the `import_file` + // field is defined, the compiled binary is assumed to be at the location and + // filename under this path where it is saved by the `Compile` method. + SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // The port of the board. + Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` + // Whether to turn on verbose output during the upload. + Verbose bool `protobuf:"varint,5,opt,name=verbose,proto3" json:"verbose,omitempty"` + // After upload, verify that the contents of the memory on the board match the + // uploaded binary. + Verify bool `protobuf:"varint,6,opt,name=verify,proto3" json:"verify,omitempty"` + // When `import_file` is specified, it overrides the `import_dir` and + // `sketch_path` params. + ImportFile string `protobuf:"bytes,7,opt,name=import_file,json=importFile,proto3" json:"import_file,omitempty"` + // Custom path to a directory containing compiled files. When `import_dir` is + // not specified, the standard build directory under `sketch_path` is used. + ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` + // The programmer to use for upload. + Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` +} + +func (x *UploadUsingProgrammerRequest) Reset() { + *x = UploadUsingProgrammerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadUsingProgrammerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadUsingProgrammerRequest) ProtoMessage() {} + +func (x *UploadUsingProgrammerRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadUsingProgrammerRequest.ProtoReflect.Descriptor instead. +func (*UploadUsingProgrammerRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{2} +} + +func (x *UploadUsingProgrammerRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *UploadUsingProgrammerRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *UploadUsingProgrammerRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *UploadUsingProgrammerRequest) GetPort() string { + if x != nil { + return x.Port + } + return "" +} + +func (x *UploadUsingProgrammerRequest) GetVerbose() bool { + if x != nil { + return x.Verbose + } + return false +} + +func (x *UploadUsingProgrammerRequest) GetVerify() bool { + if x != nil { + return x.Verify + } + return false +} + +func (x *UploadUsingProgrammerRequest) GetImportFile() string { + if x != nil { + return x.ImportFile + } + return "" +} + +func (x *UploadUsingProgrammerRequest) GetImportDir() string { + if x != nil { + return x.ImportDir + } + return "" +} + +func (x *UploadUsingProgrammerRequest) GetProgrammer() string { + if x != nil { + return x.Programmer + } + return "" +} + +type UploadUsingProgrammerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The output of the upload process. + OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` + // The error output of the upload process. + ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` +} + +func (x *UploadUsingProgrammerResponse) Reset() { + *x = UploadUsingProgrammerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadUsingProgrammerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadUsingProgrammerResponse) ProtoMessage() {} + +func (x *UploadUsingProgrammerResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadUsingProgrammerResponse.ProtoReflect.Descriptor instead. +func (*UploadUsingProgrammerResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{3} +} + +func (x *UploadUsingProgrammerResponse) GetOutStream() []byte { + if x != nil { + return x.OutStream + } + return nil +} + +func (x *UploadUsingProgrammerResponse) GetErrStream() []byte { + if x != nil { + return x.ErrStream + } + return nil +} + +type BurnBootloaderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // The port of the programmer used to program the bootloader. + Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` + // Whether to turn on verbose output during the programming. + Verbose bool `protobuf:"varint,4,opt,name=verbose,proto3" json:"verbose,omitempty"` + // After programming, verify the contents of the memory on the board match the + // uploaded binary. + Verify bool `protobuf:"varint,5,opt,name=verify,proto3" json:"verify,omitempty"` + // The programmer to use for burning bootloader. + Programmer string `protobuf:"bytes,6,opt,name=programmer,proto3" json:"programmer,omitempty"` +} + +func (x *BurnBootloaderRequest) Reset() { + *x = BurnBootloaderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurnBootloaderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurnBootloaderRequest) ProtoMessage() {} + +func (x *BurnBootloaderRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BurnBootloaderRequest.ProtoReflect.Descriptor instead. +func (*BurnBootloaderRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{4} +} + +func (x *BurnBootloaderRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *BurnBootloaderRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *BurnBootloaderRequest) GetPort() string { + if x != nil { + return x.Port + } + return "" +} + +func (x *BurnBootloaderRequest) GetVerbose() bool { + if x != nil { + return x.Verbose + } + return false +} + +func (x *BurnBootloaderRequest) GetVerify() bool { + if x != nil { + return x.Verify + } + return false +} + +func (x *BurnBootloaderRequest) GetProgrammer() string { + if x != nil { + return x.Programmer + } + return "" +} + +type BurnBootloaderResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The output of the burn bootloader process. + OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` + // The error output of the burn bootloader process. + ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` +} + +func (x *BurnBootloaderResponse) Reset() { + *x = BurnBootloaderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurnBootloaderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurnBootloaderResponse) ProtoMessage() {} + +func (x *BurnBootloaderResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BurnBootloaderResponse.ProtoReflect.Descriptor instead. +func (*BurnBootloaderResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{5} +} + +func (x *BurnBootloaderResponse) GetOutStream() []byte { + if x != nil { + return x.OutStream + } + return nil +} + +func (x *BurnBootloaderResponse) GetErrStream() []byte { + if x != nil { + return x.ErrStream + } + return nil +} + +type ListProgrammersAvailableForUploadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` +} + +func (x *ListProgrammersAvailableForUploadRequest) Reset() { + *x = ListProgrammersAvailableForUploadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProgrammersAvailableForUploadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProgrammersAvailableForUploadRequest) ProtoMessage() {} + +func (x *ListProgrammersAvailableForUploadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProgrammersAvailableForUploadRequest.ProtoReflect.Descriptor instead. +func (*ListProgrammersAvailableForUploadRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{6} +} + +func (x *ListProgrammersAvailableForUploadRequest) GetInstance() *Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *ListProgrammersAvailableForUploadRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +type ListProgrammersAvailableForUploadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Programmers []*Programmer `protobuf:"bytes,1,rep,name=programmers,proto3" json:"programmers,omitempty"` +} + +func (x *ListProgrammersAvailableForUploadResponse) Reset() { + *x = ListProgrammersAvailableForUploadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProgrammersAvailableForUploadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProgrammersAvailableForUploadResponse) ProtoMessage() {} + +func (x *ListProgrammersAvailableForUploadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProgrammersAvailableForUploadResponse.ProtoReflect.Descriptor instead. +func (*ListProgrammersAvailableForUploadResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP(), []int{7} +} + +func (x *ListProgrammersAvailableForUploadResponse) GetProgrammers() []*Programmer { + if x != nil { + return x.Programmers + } + return nil +} + +var File_cc_arduino_cli_commands_v1_upload_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_commands_v1_upload_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x70, 0x6c, + 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, + 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, + 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x62, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1f, 0x0a, + 0x0b, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, 0x4e, 0x0a, + 0x0e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, + 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0xbb, 0x02, + 0x0a, 0x1c, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, + 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x62, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, + 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, 0x5d, 0x0a, 0x1d, 0x55, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, + 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x65, + 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0xd3, 0x01, 0x0a, 0x15, 0x42, + 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, + 0x22, 0x56, 0x0a, 0x16, 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, + 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, + 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, + 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0x80, 0x01, 0x0a, 0x28, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0x75, 0x0a, 0x29, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x67, + 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, + 0x72, 0x73, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, + 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_commands_v1_upload_proto_rawDescOnce sync.Once + file_cc_arduino_cli_commands_v1_upload_proto_rawDescData = file_cc_arduino_cli_commands_v1_upload_proto_rawDesc +) + +func file_cc_arduino_cli_commands_v1_upload_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_commands_v1_upload_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_commands_v1_upload_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_commands_v1_upload_proto_rawDescData) + }) + return file_cc_arduino_cli_commands_v1_upload_proto_rawDescData +} + +var file_cc_arduino_cli_commands_v1_upload_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_cc_arduino_cli_commands_v1_upload_proto_goTypes = []interface{}{ + (*UploadRequest)(nil), // 0: cc.arduino.cli.commands.v1.UploadRequest + (*UploadResponse)(nil), // 1: cc.arduino.cli.commands.v1.UploadResponse + (*UploadUsingProgrammerRequest)(nil), // 2: cc.arduino.cli.commands.v1.UploadUsingProgrammerRequest + (*UploadUsingProgrammerResponse)(nil), // 3: cc.arduino.cli.commands.v1.UploadUsingProgrammerResponse + (*BurnBootloaderRequest)(nil), // 4: cc.arduino.cli.commands.v1.BurnBootloaderRequest + (*BurnBootloaderResponse)(nil), // 5: cc.arduino.cli.commands.v1.BurnBootloaderResponse + (*ListProgrammersAvailableForUploadRequest)(nil), // 6: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadRequest + (*ListProgrammersAvailableForUploadResponse)(nil), // 7: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadResponse + (*Instance)(nil), // 8: cc.arduino.cli.commands.v1.Instance + (*Programmer)(nil), // 9: cc.arduino.cli.commands.v1.Programmer +} +var file_cc_arduino_cli_commands_v1_upload_proto_depIdxs = []int32{ + 8, // 0: cc.arduino.cli.commands.v1.UploadRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 8, // 1: cc.arduino.cli.commands.v1.UploadUsingProgrammerRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 8, // 2: cc.arduino.cli.commands.v1.BurnBootloaderRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 8, // 3: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 9, // 4: cc.arduino.cli.commands.v1.ListProgrammersAvailableForUploadResponse.programmers:type_name -> cc.arduino.cli.commands.v1.Programmer + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_commands_v1_upload_proto_init() } +func file_cc_arduino_cli_commands_v1_upload_proto_init() { + if File_cc_arduino_cli_commands_v1_upload_proto != nil { + return + } + file_cc_arduino_cli_commands_v1_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadUsingProgrammerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadUsingProgrammerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnBootloaderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnBootloaderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProgrammersAvailableForUploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_commands_v1_upload_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProgrammersAvailableForUploadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_commands_v1_upload_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cc_arduino_cli_commands_v1_upload_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_commands_v1_upload_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_commands_v1_upload_proto_msgTypes, + }.Build() + File_cc_arduino_cli_commands_v1_upload_proto = out.File + file_cc_arduino_cli_commands_v1_upload_proto_rawDesc = nil + file_cc_arduino_cli_commands_v1_upload_proto_goTypes = nil + file_cc_arduino_cli_commands_v1_upload_proto_depIdxs = nil +} diff --git a/rpc/cc/arduino/cli/commands/v1/upload.proto b/rpc/cc/arduino/cli/commands/v1/upload.proto new file mode 100644 index 00000000000..b65ef82196c --- /dev/null +++ b/rpc/cc/arduino/cli/commands/v1/upload.proto @@ -0,0 +1,126 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.commands.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands"; + +import "cc/arduino/cli/commands/v1/common.proto"; + +message UploadRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + // If this field is not defined, the FQBN of the board attached to the sketch + // via the `BoardAttach` method is used. + string fqbn = 2; + // Path where the sketch to be uploaded is stored. Unless the `import_file` + // field is defined, the compiled binary is assumed to be at the location and + // filename under this path where it is saved by the `Compile` method. + string sketch_path = 3; + // The port of the board. + string port = 4; + // Whether to turn on verbose output during the upload. + bool verbose = 5; + // After upload, verify that the contents of the memory on the board match the + // uploaded binary. + bool verify = 6; + // When `import_file` is specified, it overrides the `import_dir` and + // `sketch_path` params. + string import_file = 7; + // Custom path to a directory containing compiled files. When `import_dir` is + // not specified, the standard build directory under `sketch_path` is used. + string import_dir = 8; + // The programmer to use for upload. If set an UploadUsingProgrammer is + // triggered instead of a normal upload. The UploadUsingProgrammer call may + // also be used for explicit error check. + string programmer = 9; +} + +message UploadResponse { + // The output of the upload process. + bytes out_stream = 1; + // The error output of the upload process. + bytes err_stream = 2; +} + +message UploadUsingProgrammerRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + // If this field is not defined, the FQBN of the board attached to the sketch + // via the `BoardAttach` method is used. + string fqbn = 2; + // Path where the sketch to be uploaded is stored. Unless the `import_file` + // field is defined, the compiled binary is assumed to be at the location and + // filename under this path where it is saved by the `Compile` method. + string sketch_path = 3; + // The port of the board. + string port = 4; + // Whether to turn on verbose output during the upload. + bool verbose = 5; + // After upload, verify that the contents of the memory on the board match the + // uploaded binary. + bool verify = 6; + // When `import_file` is specified, it overrides the `import_dir` and + // `sketch_path` params. + string import_file = 7; + // Custom path to a directory containing compiled files. When `import_dir` is + // not specified, the standard build directory under `sketch_path` is used. + string import_dir = 8; + // The programmer to use for upload. + string programmer = 9; +} + +message UploadUsingProgrammerResponse { + // The output of the upload process. + bytes out_stream = 1; + // The error output of the upload process. + bytes err_stream = 2; +} + +message BurnBootloaderRequest { + // Arduino Core Service instance from the `Init` response. + Instance instance = 1; + // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). + string fqbn = 2; + // The port of the programmer used to program the bootloader. + string port = 3; + // Whether to turn on verbose output during the programming. + bool verbose = 4; + // After programming, verify the contents of the memory on the board match the + // uploaded binary. + bool verify = 5; + // The programmer to use for burning bootloader. + string programmer = 6; +} + +message BurnBootloaderResponse { + // The output of the burn bootloader process. + bytes out_stream = 1; + // The error output of the burn bootloader process. + bytes err_stream = 2; +} + +message ListProgrammersAvailableForUploadRequest { + Instance instance = 1; + string fqbn = 2; +} + +message ListProgrammersAvailableForUploadResponse { + repeated Programmer programmers = 1; +} diff --git a/rpc/cc/arduino/cli/debug/v1/debug.pb.go b/rpc/cc/arduino/cli/debug/v1/debug.pb.go new file mode 100644 index 00000000000..b68bcf3040a --- /dev/null +++ b/rpc/cc/arduino/cli/debug/v1/debug.pb.go @@ -0,0 +1,760 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/debug/v1/debug.proto + +package debug + +import ( + context "context" + v1 "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The top-level message sent by the client for the `Debug` method. +// Multiple `DebugReq` messages can be sent but the first message +// must contain a `DebugConfigReq` message to initialize the debug session. +// All subsequent messages must contain bytes to be sent to the debug session +// and must not contain a `DebugReq` message. +type DebugRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Provides information to the debug that specifies which is the target. + // The first `StreamingOpenReq` message must contain a `DebugReq` + // message. + DebugRequest *DebugConfigRequest `protobuf:"bytes,1,opt,name=debug_request,json=debugRequest,proto3" json:"debug_request,omitempty"` + // The data to be sent to the target being monitored. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // Set this to true to send and Interrupt signal to the debugger process + SendInterrupt bool `protobuf:"varint,3,opt,name=send_interrupt,json=sendInterrupt,proto3" json:"send_interrupt,omitempty"` +} + +func (x *DebugRequest) Reset() { + *x = DebugRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DebugRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DebugRequest) ProtoMessage() {} + +func (x *DebugRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DebugRequest.ProtoReflect.Descriptor instead. +func (*DebugRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_debug_v1_debug_proto_rawDescGZIP(), []int{0} +} + +func (x *DebugRequest) GetDebugRequest() *DebugConfigRequest { + if x != nil { + return x.DebugRequest + } + return nil +} + +func (x *DebugRequest) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *DebugRequest) GetSendInterrupt() bool { + if x != nil { + return x.SendInterrupt + } + return false +} + +type DebugConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Arduino Core Service instance from the `Init` response. + Instance *v1.Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + // Fully qualified board name of the board in use + // (e.g., `arduino:samd:mkr1000`). If this is omitted, the FQBN attached to + // the sketch will be used. + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + // Path to the sketch that is running on the board. The compiled executable + // is expected to be located under this path. + SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` + // Port of the debugger (optional). + Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` + // Which GDB command interpreter to use. + Interpreter string `protobuf:"bytes,5,opt,name=interpreter,proto3" json:"interpreter,omitempty"` + // Directory containing the compiled executable. If `import_dir` is not + // specified, the executable is assumed to be in + // `{sketch_path}/build/{fqbn}/`. + ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` + // The programmer to use for debugging. + Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` +} + +func (x *DebugConfigRequest) Reset() { + *x = DebugConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DebugConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DebugConfigRequest) ProtoMessage() {} + +func (x *DebugConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DebugConfigRequest.ProtoReflect.Descriptor instead. +func (*DebugConfigRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_debug_v1_debug_proto_rawDescGZIP(), []int{1} +} + +func (x *DebugConfigRequest) GetInstance() *v1.Instance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *DebugConfigRequest) GetFqbn() string { + if x != nil { + return x.Fqbn + } + return "" +} + +func (x *DebugConfigRequest) GetSketchPath() string { + if x != nil { + return x.SketchPath + } + return "" +} + +func (x *DebugConfigRequest) GetPort() string { + if x != nil { + return x.Port + } + return "" +} + +func (x *DebugConfigRequest) GetInterpreter() string { + if x != nil { + return x.Interpreter + } + return "" +} + +func (x *DebugConfigRequest) GetImportDir() string { + if x != nil { + return x.ImportDir + } + return "" +} + +func (x *DebugConfigRequest) GetProgrammer() string { + if x != nil { + return x.Programmer + } + return "" +} + +// +type DebugResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Incoming data from the debugger tool. + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + // Incoming error output from the debugger tool. + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *DebugResponse) Reset() { + *x = DebugResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DebugResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DebugResponse) ProtoMessage() {} + +func (x *DebugResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DebugResponse.ProtoReflect.Descriptor instead. +func (*DebugResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_debug_v1_debug_proto_rawDescGZIP(), []int{2} +} + +func (x *DebugResponse) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *DebugResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type GetDebugConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The executable binary to debug + Executable string `protobuf:"bytes,1,opt,name=executable,proto3" json:"executable,omitempty"` + // The toolchain type used for the build (for example "gcc") + Toolchain string `protobuf:"bytes,2,opt,name=toolchain,proto3" json:"toolchain,omitempty"` + // The toolchain directory + ToolchainPath string `protobuf:"bytes,3,opt,name=toolchain_path,json=toolchainPath,proto3" json:"toolchain_path,omitempty"` + // The toolchain architecture prefix (for example "arm-none-eabi-") + ToolchainPrefix string `protobuf:"bytes,4,opt,name=toolchain_prefix,json=toolchainPrefix,proto3" json:"toolchain_prefix,omitempty"` + // The GDB server type used to connect to the programmer/board (for example + // "openocd") + Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` + // The GDB server directory + ServerPath string `protobuf:"bytes,6,opt,name=server_path,json=serverPath,proto3" json:"server_path,omitempty"` + // Extra configuration parameters wrt toolchain + ToolchainConfiguration map[string]string `protobuf:"bytes,7,rep,name=toolchain_configuration,json=toolchainConfiguration,proto3" json:"toolchain_configuration,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Extra configuration parameters wrt GDB server + ServerConfiguration map[string]string `protobuf:"bytes,8,rep,name=server_configuration,json=serverConfiguration,proto3" json:"server_configuration,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *GetDebugConfigResponse) Reset() { + *x = GetDebugConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDebugConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDebugConfigResponse) ProtoMessage() {} + +func (x *GetDebugConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDebugConfigResponse.ProtoReflect.Descriptor instead. +func (*GetDebugConfigResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_debug_v1_debug_proto_rawDescGZIP(), []int{3} +} + +func (x *GetDebugConfigResponse) GetExecutable() string { + if x != nil { + return x.Executable + } + return "" +} + +func (x *GetDebugConfigResponse) GetToolchain() string { + if x != nil { + return x.Toolchain + } + return "" +} + +func (x *GetDebugConfigResponse) GetToolchainPath() string { + if x != nil { + return x.ToolchainPath + } + return "" +} + +func (x *GetDebugConfigResponse) GetToolchainPrefix() string { + if x != nil { + return x.ToolchainPrefix + } + return "" +} + +func (x *GetDebugConfigResponse) GetServer() string { + if x != nil { + return x.Server + } + return "" +} + +func (x *GetDebugConfigResponse) GetServerPath() string { + if x != nil { + return x.ServerPath + } + return "" +} + +func (x *GetDebugConfigResponse) GetToolchainConfiguration() map[string]string { + if x != nil { + return x.ToolchainConfiguration + } + return nil +} + +func (x *GetDebugConfigResponse) GetServerConfiguration() map[string]string { + if x != nil { + return x.ServerConfiguration + } + return nil +} + +var File_cc_arduino_cli_debug_v1_debug_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_debug_v1_debug_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x27, + 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0d, 0x64, 0x65, 0x62, 0x75, + 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x64, 0x65, + 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, + 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x72, 0x75, 0x70, 0x74, 0x22, 0x80, 0x02, 0x0a, 0x12, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x08, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, + 0x62, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, + 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, 0x39, 0x0a, 0x0d, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x22, 0xf8, 0x04, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, + 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x25, 0x0a, 0x0e, + 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, + 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x84, 0x01, 0x0a, 0x17, 0x74, 0x6f, 0x6f, 0x6c, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7b, + 0x0a, 0x14, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, + 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x49, 0x0a, 0x1b, 0x54, + 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x46, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xde, + 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x62, 0x75, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x5c, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x70, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, + 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, + 0x62, 0x75, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, + 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, + 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, + 0x62, 0x75, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_debug_v1_debug_proto_rawDescOnce sync.Once + file_cc_arduino_cli_debug_v1_debug_proto_rawDescData = file_cc_arduino_cli_debug_v1_debug_proto_rawDesc +) + +func file_cc_arduino_cli_debug_v1_debug_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_debug_v1_debug_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_debug_v1_debug_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_debug_v1_debug_proto_rawDescData) + }) + return file_cc_arduino_cli_debug_v1_debug_proto_rawDescData +} + +var file_cc_arduino_cli_debug_v1_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cc_arduino_cli_debug_v1_debug_proto_goTypes = []interface{}{ + (*DebugRequest)(nil), // 0: cc.arduino.cli.debug.v1.DebugRequest + (*DebugConfigRequest)(nil), // 1: cc.arduino.cli.debug.v1.DebugConfigRequest + (*DebugResponse)(nil), // 2: cc.arduino.cli.debug.v1.DebugResponse + (*GetDebugConfigResponse)(nil), // 3: cc.arduino.cli.debug.v1.GetDebugConfigResponse + nil, // 4: cc.arduino.cli.debug.v1.GetDebugConfigResponse.ToolchainConfigurationEntry + nil, // 5: cc.arduino.cli.debug.v1.GetDebugConfigResponse.ServerConfigurationEntry + (*v1.Instance)(nil), // 6: cc.arduino.cli.commands.v1.Instance +} +var file_cc_arduino_cli_debug_v1_debug_proto_depIdxs = []int32{ + 1, // 0: cc.arduino.cli.debug.v1.DebugRequest.debug_request:type_name -> cc.arduino.cli.debug.v1.DebugConfigRequest + 6, // 1: cc.arduino.cli.debug.v1.DebugConfigRequest.instance:type_name -> cc.arduino.cli.commands.v1.Instance + 4, // 2: cc.arduino.cli.debug.v1.GetDebugConfigResponse.toolchain_configuration:type_name -> cc.arduino.cli.debug.v1.GetDebugConfigResponse.ToolchainConfigurationEntry + 5, // 3: cc.arduino.cli.debug.v1.GetDebugConfigResponse.server_configuration:type_name -> cc.arduino.cli.debug.v1.GetDebugConfigResponse.ServerConfigurationEntry + 0, // 4: cc.arduino.cli.debug.v1.DebugService.Debug:input_type -> cc.arduino.cli.debug.v1.DebugRequest + 1, // 5: cc.arduino.cli.debug.v1.DebugService.GetDebugConfig:input_type -> cc.arduino.cli.debug.v1.DebugConfigRequest + 2, // 6: cc.arduino.cli.debug.v1.DebugService.Debug:output_type -> cc.arduino.cli.debug.v1.DebugResponse + 3, // 7: cc.arduino.cli.debug.v1.DebugService.GetDebugConfig:output_type -> cc.arduino.cli.debug.v1.GetDebugConfigResponse + 6, // [6:8] is the sub-list for method output_type + 4, // [4:6] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_debug_v1_debug_proto_init() } +func file_cc_arduino_cli_debug_v1_debug_proto_init() { + if File_cc_arduino_cli_debug_v1_debug_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_debug_v1_debug_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDebugConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_debug_v1_debug_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cc_arduino_cli_debug_v1_debug_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_debug_v1_debug_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_debug_v1_debug_proto_msgTypes, + }.Build() + File_cc_arduino_cli_debug_v1_debug_proto = out.File + file_cc_arduino_cli_debug_v1_debug_proto_rawDesc = nil + file_cc_arduino_cli_debug_v1_debug_proto_goTypes = nil + file_cc_arduino_cli_debug_v1_debug_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// DebugServiceClient is the client API for DebugService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DebugServiceClient interface { + // Start a debug session and communicate with the debugger tool. + Debug(ctx context.Context, opts ...grpc.CallOption) (DebugService_DebugClient, error) + GetDebugConfig(ctx context.Context, in *DebugConfigRequest, opts ...grpc.CallOption) (*GetDebugConfigResponse, error) +} + +type debugServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDebugServiceClient(cc grpc.ClientConnInterface) DebugServiceClient { + return &debugServiceClient{cc} +} + +func (c *debugServiceClient) Debug(ctx context.Context, opts ...grpc.CallOption) (DebugService_DebugClient, error) { + stream, err := c.cc.NewStream(ctx, &_DebugService_serviceDesc.Streams[0], "/cc.arduino.cli.debug.v1.DebugService/Debug", opts...) + if err != nil { + return nil, err + } + x := &debugServiceDebugClient{stream} + return x, nil +} + +type DebugService_DebugClient interface { + Send(*DebugRequest) error + Recv() (*DebugResponse, error) + grpc.ClientStream +} + +type debugServiceDebugClient struct { + grpc.ClientStream +} + +func (x *debugServiceDebugClient) Send(m *DebugRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *debugServiceDebugClient) Recv() (*DebugResponse, error) { + m := new(DebugResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *debugServiceClient) GetDebugConfig(ctx context.Context, in *DebugConfigRequest, opts ...grpc.CallOption) (*GetDebugConfigResponse, error) { + out := new(GetDebugConfigResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.debug.v1.DebugService/GetDebugConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DebugServiceServer is the server API for DebugService service. +type DebugServiceServer interface { + // Start a debug session and communicate with the debugger tool. + Debug(DebugService_DebugServer) error + GetDebugConfig(context.Context, *DebugConfigRequest) (*GetDebugConfigResponse, error) +} + +// UnimplementedDebugServiceServer can be embedded to have forward compatible implementations. +type UnimplementedDebugServiceServer struct { +} + +func (*UnimplementedDebugServiceServer) Debug(DebugService_DebugServer) error { + return status.Errorf(codes.Unimplemented, "method Debug not implemented") +} +func (*UnimplementedDebugServiceServer) GetDebugConfig(context.Context, *DebugConfigRequest) (*GetDebugConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDebugConfig not implemented") +} + +func RegisterDebugServiceServer(s *grpc.Server, srv DebugServiceServer) { + s.RegisterService(&_DebugService_serviceDesc, srv) +} + +func _DebugService_Debug_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(DebugServiceServer).Debug(&debugServiceDebugServer{stream}) +} + +type DebugService_DebugServer interface { + Send(*DebugResponse) error + Recv() (*DebugRequest, error) + grpc.ServerStream +} + +type debugServiceDebugServer struct { + grpc.ServerStream +} + +func (x *debugServiceDebugServer) Send(m *DebugResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *debugServiceDebugServer) Recv() (*DebugRequest, error) { + m := new(DebugRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _DebugService_GetDebugConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DebugConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DebugServiceServer).GetDebugConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.debug.v1.DebugService/GetDebugConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DebugServiceServer).GetDebugConfig(ctx, req.(*DebugConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _DebugService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cc.arduino.cli.debug.v1.DebugService", + HandlerType: (*DebugServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetDebugConfig", + Handler: _DebugService_GetDebugConfig_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Debug", + Handler: _DebugService_Debug_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "cc/arduino/cli/debug/v1/debug.proto", +} diff --git a/rpc/cc/arduino/cli/debug/v1/debug.proto b/rpc/cc/arduino/cli/debug/v1/debug.proto new file mode 100644 index 00000000000..b2dd7ff0621 --- /dev/null +++ b/rpc/cc/arduino/cli/debug/v1/debug.proto @@ -0,0 +1,100 @@ +// 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. + +syntax = "proto3"; + +package cc.arduino.cli.debug.v1; + +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/debug/v1;debug"; + +import "cc/arduino/cli/commands/v1/common.proto"; + +// DebugService abstracts a debug Session usage +service DebugService { + // Start a debug session and communicate with the debugger tool. + rpc Debug(stream DebugRequest) returns (stream DebugResponse) {} + + rpc GetDebugConfig(DebugConfigRequest) returns (GetDebugConfigResponse) {} +} + +// The top-level message sent by the client for the `Debug` method. +// Multiple `DebugReq` messages can be sent but the first message +// must contain a `DebugConfigReq` message to initialize the debug session. +// All subsequent messages must contain bytes to be sent to the debug session +// and must not contain a `DebugReq` message. +message DebugRequest { + // Content must be either a debug session config or data to be sent. + + // Provides information to the debug that specifies which is the target. + // The first `StreamingOpenReq` message must contain a `DebugReq` + // message. + DebugConfigRequest debug_request = 1; + + // The data to be sent to the target being monitored. + bytes data = 2; + + // Set this to true to send and Interrupt signal to the debugger process + bool send_interrupt = 3; +} + +message DebugConfigRequest { + // Arduino Core Service instance from the `Init` response. + cc.arduino.cli.commands.v1.Instance instance = 1; + // Fully qualified board name of the board in use + // (e.g., `arduino:samd:mkr1000`). If this is omitted, the FQBN attached to + // the sketch will be used. + string fqbn = 2; + // Path to the sketch that is running on the board. The compiled executable + // is expected to be located under this path. + string sketch_path = 3; + // Port of the debugger (optional). + string port = 4; + // Which GDB command interpreter to use. + string interpreter = 5; + // Directory containing the compiled executable. If `import_dir` is not + // specified, the executable is assumed to be in + // `{sketch_path}/build/{fqbn}/`. + string import_dir = 8; + // The programmer to use for debugging. + string programmer = 9; +} + +// +message DebugResponse { + // Incoming data from the debugger tool. + bytes data = 1; + // Incoming error output from the debugger tool. + string error = 2; +} + +message GetDebugConfigResponse { + // The executable binary to debug + string executable = 1; + // The toolchain type used for the build (for example "gcc") + string toolchain = 2; + // The toolchain directory + string toolchain_path = 3; + // The toolchain architecture prefix (for example "arm-none-eabi-") + string toolchain_prefix = 4; + // The GDB server type used to connect to the programmer/board (for example + // "openocd") + string server = 5; + // The GDB server directory + string server_path = 6; + // Extra configuration parameters wrt toolchain + map toolchain_configuration = 7; + // Extra configuration parameters wrt GDB server + map server_configuration = 8; +} diff --git a/rpc/cc/arduino/cli/monitor/v1/monitor.pb.go b/rpc/cc/arduino/cli/monitor/v1/monitor.pb.go new file mode 100644 index 00000000000..ba393d293a3 --- /dev/null +++ b/rpc/cc/arduino/cli/monitor/v1/monitor.pb.go @@ -0,0 +1,617 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/monitor/v1/monitor.proto + +package monitor + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type MonitorConfig_TargetType int32 + +const ( + MonitorConfig_TARGET_TYPE_SERIAL MonitorConfig_TargetType = 0 + MonitorConfig_TARGET_TYPE_NULL MonitorConfig_TargetType = 99 +) + +// Enum value maps for MonitorConfig_TargetType. +var ( + MonitorConfig_TargetType_name = map[int32]string{ + 0: "TARGET_TYPE_SERIAL", + 99: "TARGET_TYPE_NULL", + } + MonitorConfig_TargetType_value = map[string]int32{ + "TARGET_TYPE_SERIAL": 0, + "TARGET_TYPE_NULL": 99, + } +) + +func (x MonitorConfig_TargetType) Enum() *MonitorConfig_TargetType { + p := new(MonitorConfig_TargetType) + *p = x + return p +} + +func (x MonitorConfig_TargetType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MonitorConfig_TargetType) Descriptor() protoreflect.EnumDescriptor { + return file_cc_arduino_cli_monitor_v1_monitor_proto_enumTypes[0].Descriptor() +} + +func (MonitorConfig_TargetType) Type() protoreflect.EnumType { + return &file_cc_arduino_cli_monitor_v1_monitor_proto_enumTypes[0] +} + +func (x MonitorConfig_TargetType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MonitorConfig_TargetType.Descriptor instead. +func (MonitorConfig_TargetType) EnumDescriptor() ([]byte, []int) { + return file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescGZIP(), []int{1, 0} +} + +// The top-level message sent by the client for the `StreamingOpen` method. +// Multiple `StreamingOpenReq` messages can be sent but the first message +// must contain a `monitor_config` message to initialize the monitor target. +// All subsequent messages must contain bytes to be sent to the target +// and must not contain a `monitor_config` message. +type StreamingOpenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Content must be either a monitor config or data to be sent. + // + // Types that are assignable to Content: + // *StreamingOpenRequest_Config + // *StreamingOpenRequest_Data + // *StreamingOpenRequest_RecvAcknowledge + Content isStreamingOpenRequest_Content `protobuf_oneof:"content"` +} + +func (x *StreamingOpenRequest) Reset() { + *x = StreamingOpenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamingOpenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamingOpenRequest) ProtoMessage() {} + +func (x *StreamingOpenRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamingOpenRequest.ProtoReflect.Descriptor instead. +func (*StreamingOpenRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescGZIP(), []int{0} +} + +func (m *StreamingOpenRequest) GetContent() isStreamingOpenRequest_Content { + if m != nil { + return m.Content + } + return nil +} + +func (x *StreamingOpenRequest) GetConfig() *MonitorConfig { + if x, ok := x.GetContent().(*StreamingOpenRequest_Config); ok { + return x.Config + } + return nil +} + +func (x *StreamingOpenRequest) GetData() []byte { + if x, ok := x.GetContent().(*StreamingOpenRequest_Data); ok { + return x.Data + } + return nil +} + +func (x *StreamingOpenRequest) GetRecvAcknowledge() int32 { + if x, ok := x.GetContent().(*StreamingOpenRequest_RecvAcknowledge); ok { + return x.RecvAcknowledge + } + return 0 +} + +type isStreamingOpenRequest_Content interface { + isStreamingOpenRequest_Content() +} + +type StreamingOpenRequest_Config struct { + // Provides information to the monitor that specifies which is the target. + // The first `StreamingOpenReq` message must contain a `config` + // message. + Config *MonitorConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof"` +} + +type StreamingOpenRequest_Data struct { + // The data to be sent to the target being monitored. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"` +} + +type StreamingOpenRequest_RecvAcknowledge struct { + // When the rate limiter is enabled, this parameter is used to report the + // number of successfully processed StreamingOpenResp messages (with data). + RecvAcknowledge int32 `protobuf:"varint,3,opt,name=recv_acknowledge,json=recvAcknowledge,proto3,oneof"` +} + +func (*StreamingOpenRequest_Config) isStreamingOpenRequest_Content() {} + +func (*StreamingOpenRequest_Data) isStreamingOpenRequest_Content() {} + +func (*StreamingOpenRequest_RecvAcknowledge) isStreamingOpenRequest_Content() {} + +// Tells the monitor which target to open and provides additional parameters +// that might be needed to configure the target or the monitor itself. +type MonitorConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The target name. + Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + Type MonitorConfig_TargetType `protobuf:"varint,2,opt,name=type,proto3,enum=cc.arduino.cli.monitor.v1.MonitorConfig_TargetType" json:"type,omitempty"` + // Additional parameters that might be needed to configure the target or the + // monitor itself. + AdditionalConfig *_struct.Struct `protobuf:"bytes,3,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` + // This parameter indicates how many bytes should be buffered on the server + // side before dropping. If >0 then the server will enable a rate limiter and + // will send incoming data to the client only when the client allows it: see + // the StreamingOpenReq.recv_acknowledge parameter for details. + RecvRateLimitBuffer int32 `protobuf:"varint,4,opt,name=recv_rate_limit_buffer,json=recvRateLimitBuffer,proto3" json:"recv_rate_limit_buffer,omitempty"` +} + +func (x *MonitorConfig) Reset() { + *x = MonitorConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MonitorConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MonitorConfig) ProtoMessage() {} + +func (x *MonitorConfig) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MonitorConfig.ProtoReflect.Descriptor instead. +func (*MonitorConfig) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescGZIP(), []int{1} +} + +func (x *MonitorConfig) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +func (x *MonitorConfig) GetType() MonitorConfig_TargetType { + if x != nil { + return x.Type + } + return MonitorConfig_TARGET_TYPE_SERIAL +} + +func (x *MonitorConfig) GetAdditionalConfig() *_struct.Struct { + if x != nil { + return x.AdditionalConfig + } + return nil +} + +func (x *MonitorConfig) GetRecvRateLimitBuffer() int32 { + if x != nil { + return x.RecvRateLimitBuffer + } + return 0 +} + +type StreamingOpenResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The data received from the target. + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + // The number of bytes dropped. + // During regular updates this number should be 0, but in case the + // client is not able to process the recv window quickly enough this + // parameter will report the number of dropped bytes. + Dropped int32 `protobuf:"varint,2,opt,name=dropped,proto3" json:"dropped,omitempty"` +} + +func (x *StreamingOpenResponse) Reset() { + *x = StreamingOpenResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamingOpenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamingOpenResponse) ProtoMessage() {} + +func (x *StreamingOpenResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamingOpenResponse.ProtoReflect.Descriptor instead. +func (*StreamingOpenResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescGZIP(), []int{2} +} + +func (x *StreamingOpenResponse) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *StreamingOpenResponse) GetDropped() int32 { + if x != nil { + return x.Dropped + } + return 0 +} + +var File_cc_arduino_cli_monitor_v1_monitor_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_monitor_v1_monitor_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x63, 0x2e, 0x61, 0x72, + 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, + 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x76, 0x5f, 0x61, 0x63, + 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, + 0x00, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x76, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, + 0x67, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xa7, 0x02, + 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x44, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x16, 0x72, 0x65, 0x63, 0x76, 0x5f, 0x72, + 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x72, 0x65, 0x63, 0x76, 0x52, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x22, 0x3a, 0x0a, 0x0a, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x49, 0x41, 0x4c, 0x10, + 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x63, 0x22, 0x45, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x32, 0x8a, + 0x01, 0x0a, 0x0e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, + 0x65, 0x6e, 0x12, 0x2f, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, + 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, + 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x46, 0x5a, 0x44, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, + 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescOnce sync.Once + file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescData = file_cc_arduino_cli_monitor_v1_monitor_proto_rawDesc +) + +func file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescData) + }) + return file_cc_arduino_cli_monitor_v1_monitor_proto_rawDescData +} + +var file_cc_arduino_cli_monitor_v1_monitor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_cc_arduino_cli_monitor_v1_monitor_proto_goTypes = []interface{}{ + (MonitorConfig_TargetType)(0), // 0: cc.arduino.cli.monitor.v1.MonitorConfig.TargetType + (*StreamingOpenRequest)(nil), // 1: cc.arduino.cli.monitor.v1.StreamingOpenRequest + (*MonitorConfig)(nil), // 2: cc.arduino.cli.monitor.v1.MonitorConfig + (*StreamingOpenResponse)(nil), // 3: cc.arduino.cli.monitor.v1.StreamingOpenResponse + (*_struct.Struct)(nil), // 4: google.protobuf.Struct +} +var file_cc_arduino_cli_monitor_v1_monitor_proto_depIdxs = []int32{ + 2, // 0: cc.arduino.cli.monitor.v1.StreamingOpenRequest.config:type_name -> cc.arduino.cli.monitor.v1.MonitorConfig + 0, // 1: cc.arduino.cli.monitor.v1.MonitorConfig.type:type_name -> cc.arduino.cli.monitor.v1.MonitorConfig.TargetType + 4, // 2: cc.arduino.cli.monitor.v1.MonitorConfig.additional_config:type_name -> google.protobuf.Struct + 1, // 3: cc.arduino.cli.monitor.v1.MonitorService.StreamingOpen:input_type -> cc.arduino.cli.monitor.v1.StreamingOpenRequest + 3, // 4: cc.arduino.cli.monitor.v1.MonitorService.StreamingOpen:output_type -> cc.arduino.cli.monitor.v1.StreamingOpenResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_monitor_v1_monitor_proto_init() } +func file_cc_arduino_cli_monitor_v1_monitor_proto_init() { + if File_cc_arduino_cli_monitor_v1_monitor_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamingOpenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MonitorConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamingOpenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*StreamingOpenRequest_Config)(nil), + (*StreamingOpenRequest_Data)(nil), + (*StreamingOpenRequest_RecvAcknowledge)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_monitor_v1_monitor_proto_rawDesc, + NumEnums: 1, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cc_arduino_cli_monitor_v1_monitor_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_monitor_v1_monitor_proto_depIdxs, + EnumInfos: file_cc_arduino_cli_monitor_v1_monitor_proto_enumTypes, + MessageInfos: file_cc_arduino_cli_monitor_v1_monitor_proto_msgTypes, + }.Build() + File_cc_arduino_cli_monitor_v1_monitor_proto = out.File + file_cc_arduino_cli_monitor_v1_monitor_proto_rawDesc = nil + file_cc_arduino_cli_monitor_v1_monitor_proto_goTypes = nil + file_cc_arduino_cli_monitor_v1_monitor_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// MonitorServiceClient is the client API for MonitorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MonitorServiceClient interface { + // Open a bidirectional monitor stream. This can be used to implement + // something similar to the Arduino IDE's Serial Monitor. + StreamingOpen(ctx context.Context, opts ...grpc.CallOption) (MonitorService_StreamingOpenClient, error) +} + +type monitorServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMonitorServiceClient(cc grpc.ClientConnInterface) MonitorServiceClient { + return &monitorServiceClient{cc} +} + +func (c *monitorServiceClient) StreamingOpen(ctx context.Context, opts ...grpc.CallOption) (MonitorService_StreamingOpenClient, error) { + stream, err := c.cc.NewStream(ctx, &_MonitorService_serviceDesc.Streams[0], "/cc.arduino.cli.monitor.v1.MonitorService/StreamingOpen", opts...) + if err != nil { + return nil, err + } + x := &monitorServiceStreamingOpenClient{stream} + return x, nil +} + +type MonitorService_StreamingOpenClient interface { + Send(*StreamingOpenRequest) error + Recv() (*StreamingOpenResponse, error) + grpc.ClientStream +} + +type monitorServiceStreamingOpenClient struct { + grpc.ClientStream +} + +func (x *monitorServiceStreamingOpenClient) Send(m *StreamingOpenRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *monitorServiceStreamingOpenClient) Recv() (*StreamingOpenResponse, error) { + m := new(StreamingOpenResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// MonitorServiceServer is the server API for MonitorService service. +type MonitorServiceServer interface { + // Open a bidirectional monitor stream. This can be used to implement + // something similar to the Arduino IDE's Serial Monitor. + StreamingOpen(MonitorService_StreamingOpenServer) error +} + +// UnimplementedMonitorServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMonitorServiceServer struct { +} + +func (*UnimplementedMonitorServiceServer) StreamingOpen(MonitorService_StreamingOpenServer) error { + return status.Errorf(codes.Unimplemented, "method StreamingOpen not implemented") +} + +func RegisterMonitorServiceServer(s *grpc.Server, srv MonitorServiceServer) { + s.RegisterService(&_MonitorService_serviceDesc, srv) +} + +func _MonitorService_StreamingOpen_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(MonitorServiceServer).StreamingOpen(&monitorServiceStreamingOpenServer{stream}) +} + +type MonitorService_StreamingOpenServer interface { + Send(*StreamingOpenResponse) error + Recv() (*StreamingOpenRequest, error) + grpc.ServerStream +} + +type monitorServiceStreamingOpenServer struct { + grpc.ServerStream +} + +func (x *monitorServiceStreamingOpenServer) Send(m *StreamingOpenResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *monitorServiceStreamingOpenServer) Recv() (*StreamingOpenRequest, error) { + m := new(StreamingOpenRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _MonitorService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cc.arduino.cli.monitor.v1.MonitorService", + HandlerType: (*MonitorServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamingOpen", + Handler: _MonitorService_StreamingOpen_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "cc/arduino/cli/monitor/v1/monitor.proto", +} diff --git a/rpc/monitor/monitor.proto b/rpc/cc/arduino/cli/monitor/v1/monitor.proto similarity index 66% rename from rpc/monitor/monitor.proto rename to rpc/cc/arduino/cli/monitor/v1/monitor.proto index 8b5538d2fc9..6166e0d4236 100644 --- a/rpc/monitor/monitor.proto +++ b/rpc/cc/arduino/cli/monitor/v1/monitor.proto @@ -15,18 +15,18 @@ syntax = "proto3"; -package cc.arduino.cli.monitor; +package cc.arduino.cli.monitor.v1; -option go_package = "github.com/arduino/arduino-cli/rpc/monitor"; +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/monitor/v1;monitor"; import "google/protobuf/struct.proto"; -// Service that abstracts a Monitor usage -service Monitor { +// MonitorService provides services for boards monitor +service MonitorService { // Open a bidirectional monitor stream. This can be used to implement // something similar to the Arduino IDE's Serial Monitor. - rpc StreamingOpen(stream StreamingOpenReq) - returns (stream StreamingOpenResp) {} + rpc StreamingOpen(stream StreamingOpenRequest) + returns (stream StreamingOpenResponse) {} } // The top-level message sent by the client for the `StreamingOpen` method. @@ -34,13 +34,13 @@ service Monitor { // must contain a `monitor_config` message to initialize the monitor target. // All subsequent messages must contain bytes to be sent to the target // and must not contain a `monitor_config` message. -message StreamingOpenReq { +message StreamingOpenRequest { // Content must be either a monitor config or data to be sent. oneof content { // Provides information to the monitor that specifies which is the target. - // The first `StreamingOpenReq` message must contain a `monitor_config` + // The first `StreamingOpenReq` message must contain a `config` // message. - MonitorConfig monitorConfig = 1; + MonitorConfig config = 1; // The data to be sent to the target being monitored. bytes data = 2; @@ -55,8 +55,8 @@ message StreamingOpenReq { // that might be needed to configure the target or the monitor itself. message MonitorConfig { enum TargetType { - SERIAL = 0; - NULL = 99; + TARGET_TYPE_SERIAL = 0; + TARGET_TYPE_NULL = 99; } // The target name. @@ -64,23 +64,22 @@ message MonitorConfig { TargetType type = 2; // Additional parameters that might be needed to configure the target or the // monitor itself. - google.protobuf.Struct additionalConfig = 3; + google.protobuf.Struct additional_config = 3; - // This parameter indicates how many bytes should be buffered on the server side - // before dropping. If >0 then the server will enable a rate limiter and will send - // incoming data to the client only when the client allows it: see the - // StreamingOpenReq.recv_acknowledge parameter for details. + // This parameter indicates how many bytes should be buffered on the server + // side before dropping. If >0 then the server will enable a rate limiter and + // will send incoming data to the client only when the client allows it: see + // the StreamingOpenReq.recv_acknowledge parameter for details. int32 recv_rate_limit_buffer = 4; } -// -message StreamingOpenResp { - // The data received from the target. - bytes data = 1; +message StreamingOpenResponse { + // The data received from the target. + bytes data = 1; - // The number of bytes dropped. - // During regular updates this number should be 0, but in case the - // client is not able to process the recv window quickly enough this - // parameter will report the number of dropped bytes. - int32 dropped = 2; + // The number of bytes dropped. + // During regular updates this number should be 0, but in case the + // client is not able to process the recv window quickly enough this + // parameter will report the number of dropped bytes. + int32 dropped = 2; } \ No newline at end of file diff --git a/rpc/cc/arduino/cli/settings/v1/settings.pb.go b/rpc/cc/arduino/cli/settings/v1/settings.pb.go new file mode 100644 index 00000000000..518b52aa44d --- /dev/null +++ b/rpc/cc/arduino/cli/settings/v1/settings.pb.go @@ -0,0 +1,998 @@ +// 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.4 +// source: cc/arduino/cli/settings/v1/settings.proto + +package settings + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetAllResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The settings, in JSON format. + JsonData string `protobuf:"bytes,1,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` +} + +func (x *GetAllResponse) Reset() { + *x = GetAllResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAllResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllResponse) ProtoMessage() {} + +func (x *GetAllResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead. +func (*GetAllResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{0} +} + +func (x *GetAllResponse) GetJsonData() string { + if x != nil { + return x.JsonData + } + return "" +} + +type MergeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The settings, in JSON format. + JsonData string `protobuf:"bytes,1,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` +} + +func (x *MergeRequest) Reset() { + *x = MergeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MergeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MergeRequest) ProtoMessage() {} + +func (x *MergeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MergeRequest.ProtoReflect.Descriptor instead. +func (*MergeRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{1} +} + +func (x *MergeRequest) GetJsonData() string { + if x != nil { + return x.JsonData + } + return "" +} + +type GetValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The key of the setting. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The setting, in JSON format. + JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` +} + +func (x *GetValueResponse) Reset() { + *x = GetValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetValueResponse) ProtoMessage() {} + +func (x *GetValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetValueResponse.ProtoReflect.Descriptor instead. +func (*GetValueResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{2} +} + +func (x *GetValueResponse) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *GetValueResponse) GetJsonData() string { + if x != nil { + return x.JsonData + } + return "" +} + +type SetValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The key of the setting. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The setting, in JSON format. + JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` +} + +func (x *SetValueRequest) Reset() { + *x = SetValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetValueRequest) ProtoMessage() {} + +func (x *SetValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetValueRequest.ProtoReflect.Descriptor instead. +func (*SetValueRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{3} +} + +func (x *SetValueRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SetValueRequest) GetJsonData() string { + if x != nil { + return x.JsonData + } + return "" +} + +type GetAllRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetAllRequest) Reset() { + *x = GetAllRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAllRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllRequest) ProtoMessage() {} + +func (x *GetAllRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead. +func (*GetAllRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{4} +} + +type GetValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The key of the setting. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *GetValueRequest) Reset() { + *x = GetValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetValueRequest) ProtoMessage() {} + +func (x *GetValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetValueRequest.ProtoReflect.Descriptor instead. +func (*GetValueRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{5} +} + +func (x *GetValueRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +type MergeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MergeResponse) Reset() { + *x = MergeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MergeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MergeResponse) ProtoMessage() {} + +func (x *MergeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MergeResponse.ProtoReflect.Descriptor instead. +func (*MergeResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{6} +} + +type SetValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SetValueResponse) Reset() { + *x = SetValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetValueResponse) ProtoMessage() {} + +func (x *SetValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetValueResponse.ProtoReflect.Descriptor instead. +func (*SetValueResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{7} +} + +type WriteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Path to settings file (e.g. /path/to/arduino-cli.yaml) + FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` +} + +func (x *WriteRequest) Reset() { + *x = WriteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteRequest) ProtoMessage() {} + +func (x *WriteRequest) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. +func (*WriteRequest) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{8} +} + +func (x *WriteRequest) GetFilePath() string { + if x != nil { + return x.FilePath + } + return "" +} + +type WriteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WriteResponse) Reset() { + *x = WriteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteResponse) ProtoMessage() {} + +func (x *WriteResponse) ProtoReflect() protoreflect.Message { + mi := &file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. +func (*WriteResponse) Descriptor() ([]byte, []int) { + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP(), []int{9} +} + +var File_cc_arduino_cli_settings_v1_settings_proto protoreflect.FileDescriptor + +var file_cc_arduino_cli_settings_v1_settings_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x63, 0x6c, 0x69, + 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x2d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, 0x6f, + 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, + 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x0c, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x44, + 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, 0x6f, + 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, + 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x40, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6a, + 0x73, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x0f, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x23, 0x0a, 0x0f, 0x47, 0x65, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x0f, + 0x0a, 0x0d, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x22, 0x0f, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x32, 0xfc, 0x03, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x12, + 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x63, 0x2e, + 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x05, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x12, + 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, + 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x08, 0x53, + 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, + 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x63, 0x63, + 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, + 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, + 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x63, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, + 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, + 0x31, 0x3b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cc_arduino_cli_settings_v1_settings_proto_rawDescOnce sync.Once + file_cc_arduino_cli_settings_v1_settings_proto_rawDescData = file_cc_arduino_cli_settings_v1_settings_proto_rawDesc +) + +func file_cc_arduino_cli_settings_v1_settings_proto_rawDescGZIP() []byte { + file_cc_arduino_cli_settings_v1_settings_proto_rawDescOnce.Do(func() { + file_cc_arduino_cli_settings_v1_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_cc_arduino_cli_settings_v1_settings_proto_rawDescData) + }) + return file_cc_arduino_cli_settings_v1_settings_proto_rawDescData +} + +var file_cc_arduino_cli_settings_v1_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_cc_arduino_cli_settings_v1_settings_proto_goTypes = []interface{}{ + (*GetAllResponse)(nil), // 0: cc.arduino.cli.settings.v1.GetAllResponse + (*MergeRequest)(nil), // 1: cc.arduino.cli.settings.v1.MergeRequest + (*GetValueResponse)(nil), // 2: cc.arduino.cli.settings.v1.GetValueResponse + (*SetValueRequest)(nil), // 3: cc.arduino.cli.settings.v1.SetValueRequest + (*GetAllRequest)(nil), // 4: cc.arduino.cli.settings.v1.GetAllRequest + (*GetValueRequest)(nil), // 5: cc.arduino.cli.settings.v1.GetValueRequest + (*MergeResponse)(nil), // 6: cc.arduino.cli.settings.v1.MergeResponse + (*SetValueResponse)(nil), // 7: cc.arduino.cli.settings.v1.SetValueResponse + (*WriteRequest)(nil), // 8: cc.arduino.cli.settings.v1.WriteRequest + (*WriteResponse)(nil), // 9: cc.arduino.cli.settings.v1.WriteResponse +} +var file_cc_arduino_cli_settings_v1_settings_proto_depIdxs = []int32{ + 4, // 0: cc.arduino.cli.settings.v1.SettingsService.GetAll:input_type -> cc.arduino.cli.settings.v1.GetAllRequest + 1, // 1: cc.arduino.cli.settings.v1.SettingsService.Merge:input_type -> cc.arduino.cli.settings.v1.MergeRequest + 5, // 2: cc.arduino.cli.settings.v1.SettingsService.GetValue:input_type -> cc.arduino.cli.settings.v1.GetValueRequest + 3, // 3: cc.arduino.cli.settings.v1.SettingsService.SetValue:input_type -> cc.arduino.cli.settings.v1.SetValueRequest + 8, // 4: cc.arduino.cli.settings.v1.SettingsService.Write:input_type -> cc.arduino.cli.settings.v1.WriteRequest + 0, // 5: cc.arduino.cli.settings.v1.SettingsService.GetAll:output_type -> cc.arduino.cli.settings.v1.GetAllResponse + 6, // 6: cc.arduino.cli.settings.v1.SettingsService.Merge:output_type -> cc.arduino.cli.settings.v1.MergeResponse + 2, // 7: cc.arduino.cli.settings.v1.SettingsService.GetValue:output_type -> cc.arduino.cli.settings.v1.GetValueResponse + 7, // 8: cc.arduino.cli.settings.v1.SettingsService.SetValue:output_type -> cc.arduino.cli.settings.v1.SetValueResponse + 9, // 9: cc.arduino.cli.settings.v1.SettingsService.Write:output_type -> cc.arduino.cli.settings.v1.WriteResponse + 5, // [5:10] is the sub-list for method output_type + 0, // [0:5] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_cc_arduino_cli_settings_v1_settings_proto_init() } +func file_cc_arduino_cli_settings_v1_settings_proto_init() { + if File_cc_arduino_cli_settings_v1_settings_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAllResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAllRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cc_arduino_cli_settings_v1_settings_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cc_arduino_cli_settings_v1_settings_proto_rawDesc, + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cc_arduino_cli_settings_v1_settings_proto_goTypes, + DependencyIndexes: file_cc_arduino_cli_settings_v1_settings_proto_depIdxs, + MessageInfos: file_cc_arduino_cli_settings_v1_settings_proto_msgTypes, + }.Build() + File_cc_arduino_cli_settings_v1_settings_proto = out.File + file_cc_arduino_cli_settings_v1_settings_proto_rawDesc = nil + file_cc_arduino_cli_settings_v1_settings_proto_goTypes = nil + file_cc_arduino_cli_settings_v1_settings_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SettingsServiceClient is the client API for SettingsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SettingsServiceClient interface { + // List all the settings. + GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) + // Set multiple settings values at once. + Merge(ctx context.Context, in *MergeRequest, opts ...grpc.CallOption) (*MergeResponse, error) + // Get the value of a specific setting. + GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) + // Set the value of a specific setting. + SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*SetValueResponse, error) + // Writes to file settings currently stored in memory + Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) +} + +type settingsServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient { + return &settingsServiceClient{cc} +} + +func (c *settingsServiceClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) { + out := new(GetAllResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.v1.SettingsService/GetAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) Merge(ctx context.Context, in *MergeRequest, opts ...grpc.CallOption) (*MergeResponse, error) { + out := new(MergeResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.v1.SettingsService/Merge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) { + out := new(GetValueResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.v1.SettingsService/GetValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*SetValueResponse, error) { + out := new(SetValueResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.v1.SettingsService/SetValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { + out := new(WriteResponse) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.v1.SettingsService/Write", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SettingsServiceServer is the server API for SettingsService service. +type SettingsServiceServer interface { + // List all the settings. + GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) + // Set multiple settings values at once. + Merge(context.Context, *MergeRequest) (*MergeResponse, error) + // Get the value of a specific setting. + GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) + // Set the value of a specific setting. + SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) + // Writes to file settings currently stored in memory + Write(context.Context, *WriteRequest) (*WriteResponse, error) +} + +// UnimplementedSettingsServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSettingsServiceServer struct { +} + +func (*UnimplementedSettingsServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAll not implemented") +} +func (*UnimplementedSettingsServiceServer) Merge(context.Context, *MergeRequest) (*MergeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Merge not implemented") +} +func (*UnimplementedSettingsServiceServer) GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetValue not implemented") +} +func (*UnimplementedSettingsServiceServer) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetValue not implemented") +} +func (*UnimplementedSettingsServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Write not implemented") +} + +func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer) { + s.RegisterService(&_SettingsService_serviceDesc, srv) +} + +func _SettingsService_GetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAllRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).GetAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.settings.v1.SettingsService/GetAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).GetAll(ctx, req.(*GetAllRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_Merge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MergeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).Merge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.settings.v1.SettingsService/Merge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).Merge(ctx, req.(*MergeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_GetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).GetValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.settings.v1.SettingsService/GetValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).GetValue(ctx, req.(*GetValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_SetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).SetValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.settings.v1.SettingsService/SetValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).SetValue(ctx, req.(*SetValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).Write(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cc.arduino.cli.settings.v1.SettingsService/Write", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).Write(ctx, req.(*WriteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SettingsService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cc.arduino.cli.settings.v1.SettingsService", + HandlerType: (*SettingsServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAll", + Handler: _SettingsService_GetAll_Handler, + }, + { + MethodName: "Merge", + Handler: _SettingsService_Merge_Handler, + }, + { + MethodName: "GetValue", + Handler: _SettingsService_GetValue_Handler, + }, + { + MethodName: "SetValue", + Handler: _SettingsService_SetValue_Handler, + }, + { + MethodName: "Write", + Handler: _SettingsService_Write_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cc/arduino/cli/settings/v1/settings.proto", +} diff --git a/rpc/settings/settings.proto b/rpc/cc/arduino/cli/settings/v1/settings.proto similarity index 60% rename from rpc/settings/settings.proto rename to rpc/cc/arduino/cli/settings/v1/settings.proto index e3b330631cb..859931d9684 100644 --- a/rpc/settings/settings.proto +++ b/rpc/cc/arduino/cli/settings/v1/settings.proto @@ -15,50 +15,67 @@ syntax = "proto3"; -package cc.arduino.cli.settings; +package cc.arduino.cli.settings.v1; -option go_package = "github.com/arduino/arduino-cli/rpc/settings"; +option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/settings/v1;settings"; -// The Settings service provides an interface to Arduino CLI's configuration +// The SettingsService provides an interface to Arduino CLI configuration // options -service Settings { +service SettingsService { // List all the settings. - rpc GetAll(GetAllRequest) returns (RawData); + rpc GetAll(GetAllRequest) returns (GetAllResponse); + // Set multiple settings values at once. - rpc Merge(RawData) returns (MergeResponse); + rpc Merge(MergeRequest) returns (MergeResponse); + // Get the value of a specific setting. - rpc GetValue(GetValueRequest) returns (Value); + rpc GetValue(GetValueRequest) returns (GetValueResponse); + // Set the value of a specific setting. - rpc SetValue(Value) returns (SetValueResponse); + rpc SetValue(SetValueRequest) returns (SetValueResponse); + // Writes to file settings currently stored in memory rpc Write(WriteRequest) returns (WriteResponse); } -message RawData { - // The settings, in JSON format. - string jsonData = 1; +message GetAllResponse { + // The settings, in JSON format. + string json_data = 1; +} + +message MergeRequest { + // The settings, in JSON format. + string json_data = 1; +} + +message GetValueResponse { + // The key of the setting. + string key = 1; + // The setting, in JSON format. + string json_data = 2; } -message Value { +message SetValueRequest { // The key of the setting. string key = 1; // The setting, in JSON format. - string jsonData = 2; + string json_data = 2; } message GetAllRequest {} + message GetValueRequest { // The key of the setting. string key = 1; } + message MergeResponse {} + message SetValueResponse {} message WriteRequest { // Path to settings file (e.g. /path/to/arduino-cli.yaml) - string filePath = 1; + string file_path = 1; } -message WriteResponse { - // TODO -} \ No newline at end of file +message WriteResponse {} \ No newline at end of file diff --git a/rpc/commands/board.pb.go b/rpc/commands/board.pb.go deleted file mode 100644 index 05f921e86f1..00000000000 --- a/rpc/commands/board.pb.go +++ /dev/null @@ -1,2273 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: commands/board.proto - -package commands - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type BoardDetailsReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // The fully qualified board name of the board you want information about - // (e.g., `arduino:avr:uno`). - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` -} - -func (x *BoardDetailsReq) Reset() { - *x = BoardDetailsReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardDetailsReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardDetailsReq) ProtoMessage() {} - -func (x *BoardDetailsReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardDetailsReq.ProtoReflect.Descriptor instead. -func (*BoardDetailsReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{0} -} - -func (x *BoardDetailsReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BoardDetailsReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -type BoardDetailsResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The fully qualified board name of the board. - Fqbn string `protobuf:"bytes,1,opt,name=fqbn,proto3" json:"fqbn,omitempty"` - // Name used to identify the board to humans (e.g., Arduino Uno). - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Installed version of the board's platform. - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - // The board ID component of the FQBN (e.g., `uno`). - PropertiesId string `protobuf:"bytes,4,opt,name=propertiesId,proto3" json:"propertiesId,omitempty"` - // Board alias that can be used as a more user friendly alternative to the - // FQBN. - Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` - // Whether this is an official or 3rd party board. - Official bool `protobuf:"varint,6,opt,name=official,proto3" json:"official,omitempty"` - // URL of the board's pinout documentation. - Pinout string `protobuf:"bytes,7,opt,name=pinout,proto3" json:"pinout,omitempty"` - // Data about the package that contains the board's platform. - Package *Package `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"` - // Data about the board's platform. - Platform *BoardPlatform `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty"` - // Tool dependencies of the board. - ToolsDependencies []*ToolsDependencies `protobuf:"bytes,10,rep,name=toolsDependencies,proto3" json:"toolsDependencies,omitempty"` - // The board's custom configuration options. - ConfigOptions []*ConfigOption `protobuf:"bytes,11,rep,name=config_options,json=configOptions,proto3" json:"config_options,omitempty"` - // Identifying information for the board (e.g., USB VID/PID). - IdentificationPref []*IdentificationPref `protobuf:"bytes,12,rep,name=identification_pref,json=identificationPref,proto3" json:"identification_pref,omitempty"` - // List of programmers supported by the board - Programmers []*Programmer `protobuf:"bytes,13,rep,name=programmers,proto3" json:"programmers,omitempty"` - // Set to true if the board supports debugging - DebuggingSupported bool `protobuf:"varint,14,opt,name=debugging_supported,json=debuggingSupported,proto3" json:"debugging_supported,omitempty"` - // If a board with the specified FQBN is connected returns its serial number too - SerialNumber string `protobuf:"bytes,15,opt,name=serialNumber,proto3" json:"serialNumber,omitempty"` -} - -func (x *BoardDetailsResp) Reset() { - *x = BoardDetailsResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardDetailsResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardDetailsResp) ProtoMessage() {} - -func (x *BoardDetailsResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardDetailsResp.ProtoReflect.Descriptor instead. -func (*BoardDetailsResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{1} -} - -func (x *BoardDetailsResp) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *BoardDetailsResp) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *BoardDetailsResp) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *BoardDetailsResp) GetPropertiesId() string { - if x != nil { - return x.PropertiesId - } - return "" -} - -func (x *BoardDetailsResp) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -func (x *BoardDetailsResp) GetOfficial() bool { - if x != nil { - return x.Official - } - return false -} - -func (x *BoardDetailsResp) GetPinout() string { - if x != nil { - return x.Pinout - } - return "" -} - -func (x *BoardDetailsResp) GetPackage() *Package { - if x != nil { - return x.Package - } - return nil -} - -func (x *BoardDetailsResp) GetPlatform() *BoardPlatform { - if x != nil { - return x.Platform - } - return nil -} - -func (x *BoardDetailsResp) GetToolsDependencies() []*ToolsDependencies { - if x != nil { - return x.ToolsDependencies - } - return nil -} - -func (x *BoardDetailsResp) GetConfigOptions() []*ConfigOption { - if x != nil { - return x.ConfigOptions - } - return nil -} - -func (x *BoardDetailsResp) GetIdentificationPref() []*IdentificationPref { - if x != nil { - return x.IdentificationPref - } - return nil -} - -func (x *BoardDetailsResp) GetProgrammers() []*Programmer { - if x != nil { - return x.Programmers - } - return nil -} - -func (x *BoardDetailsResp) GetDebuggingSupported() bool { - if x != nil { - return x.DebuggingSupported - } - return false -} - -func (x *BoardDetailsResp) GetSerialNumber() string { - if x != nil { - return x.SerialNumber - } - return "" -} - -type IdentificationPref struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifying information for USB-connected boards. - UsbID *USBID `protobuf:"bytes,1,opt,name=usbID,proto3" json:"usbID,omitempty"` -} - -func (x *IdentificationPref) Reset() { - *x = IdentificationPref{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdentificationPref) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdentificationPref) ProtoMessage() {} - -func (x *IdentificationPref) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdentificationPref.ProtoReflect.Descriptor instead. -func (*IdentificationPref) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{2} -} - -func (x *IdentificationPref) GetUsbID() *USBID { - if x != nil { - return x.UsbID - } - return nil -} - -type USBID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // USB vendor ID. - VID string `protobuf:"bytes,1,opt,name=VID,proto3" json:"VID,omitempty"` - // USB product ID. - PID string `protobuf:"bytes,2,opt,name=PID,proto3" json:"PID,omitempty"` -} - -func (x *USBID) Reset() { - *x = USBID{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *USBID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*USBID) ProtoMessage() {} - -func (x *USBID) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use USBID.ProtoReflect.Descriptor instead. -func (*USBID) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{3} -} - -func (x *USBID) GetVID() string { - if x != nil { - return x.VID - } - return "" -} - -func (x *USBID) GetPID() string { - if x != nil { - return x.PID - } - return "" -} - -type Package struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Maintainer of the package. - Maintainer string `protobuf:"bytes,1,opt,name=maintainer,proto3" json:"maintainer,omitempty"` - // The URL of the platforms index file - // (e.g., https://downloads.arduino.cc/packages/package_index.json). - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - // A URL provided by the package author, intended to point to their website. - WebsiteURL string `protobuf:"bytes,3,opt,name=websiteURL,proto3" json:"websiteURL,omitempty"` - // Email address of the package maintainer. - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - // Package vendor name. - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Resources for getting help about using the package. - Help *Help `protobuf:"bytes,6,opt,name=help,proto3" json:"help,omitempty"` -} - -func (x *Package) Reset() { - *x = Package{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Package) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Package) ProtoMessage() {} - -func (x *Package) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Package.ProtoReflect.Descriptor instead. -func (*Package) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{4} -} - -func (x *Package) GetMaintainer() string { - if x != nil { - return x.Maintainer - } - return "" -} - -func (x *Package) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *Package) GetWebsiteURL() string { - if x != nil { - return x.WebsiteURL - } - return "" -} - -func (x *Package) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *Package) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Package) GetHelp() *Help { - if x != nil { - return x.Help - } - return nil -} - -type Help struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // URL for getting online help. - Online string `protobuf:"bytes,1,opt,name=online,proto3" json:"online,omitempty"` -} - -func (x *Help) Reset() { - *x = Help{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Help) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Help) ProtoMessage() {} - -func (x *Help) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Help.ProtoReflect.Descriptor instead. -func (*Help) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{5} -} - -func (x *Help) GetOnline() string { - if x != nil { - return x.Online - } - return "" -} - -type BoardPlatform struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Architecture of the platform (e.g., `avr`). - Architecture string `protobuf:"bytes,1,opt,name=architecture,proto3" json:"architecture,omitempty"` - // Category of the platform. Set to `Contributed` for 3rd party platforms. - Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` - // Download URL of the platform archive file. - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - // File name of the platform archive. - ArchiveFileName string `protobuf:"bytes,4,opt,name=archiveFileName,proto3" json:"archiveFileName,omitempty"` - // Checksum of the platform archive. - Checksum string `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` - // File size of the platform archive. - Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - // Name used to identify the platform to humans. - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *BoardPlatform) Reset() { - *x = BoardPlatform{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardPlatform) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardPlatform) ProtoMessage() {} - -func (x *BoardPlatform) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardPlatform.ProtoReflect.Descriptor instead. -func (*BoardPlatform) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{6} -} - -func (x *BoardPlatform) GetArchitecture() string { - if x != nil { - return x.Architecture - } - return "" -} - -func (x *BoardPlatform) GetCategory() string { - if x != nil { - return x.Category - } - return "" -} - -func (x *BoardPlatform) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *BoardPlatform) GetArchiveFileName() string { - if x != nil { - return x.ArchiveFileName - } - return "" -} - -func (x *BoardPlatform) GetChecksum() string { - if x != nil { - return x.Checksum - } - return "" -} - -func (x *BoardPlatform) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *BoardPlatform) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ToolsDependencies struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Vendor name of the package containing the tool definition. - Packager string `protobuf:"bytes,1,opt,name=packager,proto3" json:"packager,omitempty"` - // Tool name. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Tool version. - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - // Data for the operating system-specific builds of the tool. - Systems []*Systems `protobuf:"bytes,4,rep,name=systems,proto3" json:"systems,omitempty"` -} - -func (x *ToolsDependencies) Reset() { - *x = ToolsDependencies{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ToolsDependencies) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ToolsDependencies) ProtoMessage() {} - -func (x *ToolsDependencies) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ToolsDependencies.ProtoReflect.Descriptor instead. -func (*ToolsDependencies) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{7} -} - -func (x *ToolsDependencies) GetPackager() string { - if x != nil { - return x.Packager - } - return "" -} - -func (x *ToolsDependencies) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ToolsDependencies) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *ToolsDependencies) GetSystems() []*Systems { - if x != nil { - return x.Systems - } - return nil -} - -type Systems struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Checksum of the tool archive. - Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` - // Operating system identifier. - Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` - // File name of the tool archive. - ArchiveFileName string `protobuf:"bytes,3,opt,name=archiveFileName,proto3" json:"archiveFileName,omitempty"` - // Download URL of the tool archive. - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` - // File size of the tool archive. - Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` -} - -func (x *Systems) Reset() { - *x = Systems{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Systems) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Systems) ProtoMessage() {} - -func (x *Systems) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Systems.ProtoReflect.Descriptor instead. -func (*Systems) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{8} -} - -func (x *Systems) GetChecksum() string { - if x != nil { - return x.Checksum - } - return "" -} - -func (x *Systems) GetHost() string { - if x != nil { - return x.Host - } - return "" -} - -func (x *Systems) GetArchiveFileName() string { - if x != nil { - return x.ArchiveFileName - } - return "" -} - -func (x *Systems) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *Systems) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -type ConfigOption struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ID of the configuration option. For identifying the option to machines. - Option string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"` - // Name of the configuration option for identifying the option to humans. - OptionLabel string `protobuf:"bytes,2,opt,name=option_label,json=optionLabel,proto3" json:"option_label,omitempty"` - // Possible values of the configuration option. - Values []*ConfigValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` -} - -func (x *ConfigOption) Reset() { - *x = ConfigOption{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConfigOption) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConfigOption) ProtoMessage() {} - -func (x *ConfigOption) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConfigOption.ProtoReflect.Descriptor instead. -func (*ConfigOption) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{9} -} - -func (x *ConfigOption) GetOption() string { - if x != nil { - return x.Option - } - return "" -} - -func (x *ConfigOption) GetOptionLabel() string { - if x != nil { - return x.OptionLabel - } - return "" -} - -func (x *ConfigOption) GetValues() []*ConfigValue { - if x != nil { - return x.Values - } - return nil -} - -type ConfigValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The configuration option value. - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // Label to identify the configuration option to humans. - ValueLabel string `protobuf:"bytes,2,opt,name=value_label,json=valueLabel,proto3" json:"value_label,omitempty"` - // Whether the configuration option is selected. - Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"` -} - -func (x *ConfigValue) Reset() { - *x = ConfigValue{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConfigValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConfigValue) ProtoMessage() {} - -func (x *ConfigValue) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConfigValue.ProtoReflect.Descriptor instead. -func (*ConfigValue) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{10} -} - -func (x *ConfigValue) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -func (x *ConfigValue) GetValueLabel() string { - if x != nil { - return x.ValueLabel - } - return "" -} - -func (x *ConfigValue) GetSelected() bool { - if x != nil { - return x.Selected - } - return false -} - -type BoardAttachReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // The board's URI (e.g., /dev/ttyACM0). - BoardUri string `protobuf:"bytes,2,opt,name=board_uri,json=boardUri,proto3" json:"board_uri,omitempty"` - // Path of the sketch to attach the board to. The board attachment - // metadata will be saved to `{sketch_path}/sketch.json`. - SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` - // Duration in seconds to search the given URI for a connected board before - // timing out. The default value is 5 seconds. - SearchTimeout string `protobuf:"bytes,4,opt,name=search_timeout,json=searchTimeout,proto3" json:"search_timeout,omitempty"` -} - -func (x *BoardAttachReq) Reset() { - *x = BoardAttachReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardAttachReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardAttachReq) ProtoMessage() {} - -func (x *BoardAttachReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardAttachReq.ProtoReflect.Descriptor instead. -func (*BoardAttachReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{11} -} - -func (x *BoardAttachReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BoardAttachReq) GetBoardUri() string { - if x != nil { - return x.BoardUri - } - return "" -} - -func (x *BoardAttachReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *BoardAttachReq) GetSearchTimeout() string { - if x != nil { - return x.SearchTimeout - } - return "" -} - -type BoardAttachResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Description of the current stage of the board attachment. - TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *BoardAttachResp) Reset() { - *x = BoardAttachResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardAttachResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardAttachResp) ProtoMessage() {} - -func (x *BoardAttachResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardAttachResp.ProtoReflect.Descriptor instead. -func (*BoardAttachResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{12} -} - -func (x *BoardAttachResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type BoardListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *BoardListReq) Reset() { - *x = BoardListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListReq) ProtoMessage() {} - -func (x *BoardListReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListReq.ProtoReflect.Descriptor instead. -func (*BoardListReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{13} -} - -func (x *BoardListReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type BoardListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of ports and the boards detected on those ports. - Ports []*DetectedPort `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` -} - -func (x *BoardListResp) Reset() { - *x = BoardListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListResp) ProtoMessage() {} - -func (x *BoardListResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListResp.ProtoReflect.Descriptor instead. -func (*BoardListResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{14} -} - -func (x *BoardListResp) GetPorts() []*DetectedPort { - if x != nil { - return x.Ports - } - return nil -} - -type DetectedPort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Address of the port (e.g., `serial:///dev/ttyACM0`). - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Protocol of the port (e.g., `serial`). - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - // A human friendly description of the protocol (e.g., "Serial Port (USB)"). - ProtocolLabel string `protobuf:"bytes,3,opt,name=protocol_label,json=protocolLabel,proto3" json:"protocol_label,omitempty"` - // The boards attached to the port. - Boards []*BoardListItem `protobuf:"bytes,4,rep,name=boards,proto3" json:"boards,omitempty"` - // Serial number of connected board - SerialNumber string `protobuf:"bytes,5,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` -} - -func (x *DetectedPort) Reset() { - *x = DetectedPort{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DetectedPort) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DetectedPort) ProtoMessage() {} - -func (x *DetectedPort) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DetectedPort.ProtoReflect.Descriptor instead. -func (*DetectedPort) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{15} -} - -func (x *DetectedPort) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *DetectedPort) GetProtocol() string { - if x != nil { - return x.Protocol - } - return "" -} - -func (x *DetectedPort) GetProtocolLabel() string { - if x != nil { - return x.ProtocolLabel - } - return "" -} - -func (x *DetectedPort) GetBoards() []*BoardListItem { - if x != nil { - return x.Boards - } - return nil -} - -func (x *DetectedPort) GetSerialNumber() string { - if x != nil { - return x.SerialNumber - } - return "" -} - -type BoardListAllReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // The search query to filter the board list by. - SearchArgs []string `protobuf:"bytes,2,rep,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` - // Set to true to get also the boards marked as "hidden" in the platform - IncludeHiddenBoards bool `protobuf:"varint,3,opt,name=include_hidden_boards,json=includeHiddenBoards,proto3" json:"include_hidden_boards,omitempty"` -} - -func (x *BoardListAllReq) Reset() { - *x = BoardListAllReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListAllReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListAllReq) ProtoMessage() {} - -func (x *BoardListAllReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListAllReq.ProtoReflect.Descriptor instead. -func (*BoardListAllReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{16} -} - -func (x *BoardListAllReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BoardListAllReq) GetSearchArgs() []string { - if x != nil { - return x.SearchArgs - } - return nil -} - -func (x *BoardListAllReq) GetIncludeHiddenBoards() bool { - if x != nil { - return x.IncludeHiddenBoards - } - return false -} - -type BoardListAllResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of installed boards. - Boards []*BoardListItem `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"` -} - -func (x *BoardListAllResp) Reset() { - *x = BoardListAllResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListAllResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListAllResp) ProtoMessage() {} - -func (x *BoardListAllResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListAllResp.ProtoReflect.Descriptor instead. -func (*BoardListAllResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{17} -} - -func (x *BoardListAllResp) GetBoards() []*BoardListItem { - if x != nil { - return x.Boards - } - return nil -} - -type BoardListWatchReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Set this to true to stop the discovery process - Interrupt bool `protobuf:"varint,2,opt,name=interrupt,proto3" json:"interrupt,omitempty"` -} - -func (x *BoardListWatchReq) Reset() { - *x = BoardListWatchReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListWatchReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListWatchReq) ProtoMessage() {} - -func (x *BoardListWatchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListWatchReq.ProtoReflect.Descriptor instead. -func (*BoardListWatchReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{18} -} - -func (x *BoardListWatchReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BoardListWatchReq) GetInterrupt() bool { - if x != nil { - return x.Interrupt - } - return false -} - -type BoardListWatchResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Event type as received from the serial discovery tool - EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` - // Information about the port - Port *DetectedPort `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"` - // Eventual errors when detecting connected boards - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *BoardListWatchResp) Reset() { - *x = BoardListWatchResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListWatchResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListWatchResp) ProtoMessage() {} - -func (x *BoardListWatchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListWatchResp.ProtoReflect.Descriptor instead. -func (*BoardListWatchResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{19} -} - -func (x *BoardListWatchResp) GetEventType() string { - if x != nil { - return x.EventType - } - return "" -} - -func (x *BoardListWatchResp) GetPort() *DetectedPort { - if x != nil { - return x.Port - } - return nil -} - -func (x *BoardListWatchResp) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -type BoardListItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name for use when identifying the board to a human. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The fully qualified board name. Used to identify the board to a machine. - FQBN string `protobuf:"bytes,2,opt,name=FQBN,proto3" json:"FQBN,omitempty"` - // If the board is marked as "hidden" in the platform - IsHidden bool `protobuf:"varint,3,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"` - // Vendor ID - VID string `protobuf:"bytes,4,opt,name=VID,proto3" json:"VID,omitempty"` - // Product ID - PID string `protobuf:"bytes,5,opt,name=PID,proto3" json:"PID,omitempty"` - // Platform this board belongs to - Platform *Platform `protobuf:"bytes,6,opt,name=platform,proto3" json:"platform,omitempty"` -} - -func (x *BoardListItem) Reset() { - *x = BoardListItem{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardListItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardListItem) ProtoMessage() {} - -func (x *BoardListItem) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardListItem.ProtoReflect.Descriptor instead. -func (*BoardListItem) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{20} -} - -func (x *BoardListItem) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *BoardListItem) GetFQBN() string { - if x != nil { - return x.FQBN - } - return "" -} - -func (x *BoardListItem) GetIsHidden() bool { - if x != nil { - return x.IsHidden - } - return false -} - -func (x *BoardListItem) GetVID() string { - if x != nil { - return x.VID - } - return "" -} - -func (x *BoardListItem) GetPID() string { - if x != nil { - return x.PID - } - return "" -} - -func (x *BoardListItem) GetPlatform() *Platform { - if x != nil { - return x.Platform - } - return nil -} - -type BoardSearchReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // The search query to filter the board list by. - SearchArgs string `protobuf:"bytes,2,opt,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` - // Set to true to get also the boards marked as "hidden" in installed platforms - IncludeHiddenBoards bool `protobuf:"varint,3,opt,name=include_hidden_boards,json=includeHiddenBoards,proto3" json:"include_hidden_boards,omitempty"` -} - -func (x *BoardSearchReq) Reset() { - *x = BoardSearchReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardSearchReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardSearchReq) ProtoMessage() {} - -func (x *BoardSearchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardSearchReq.ProtoReflect.Descriptor instead. -func (*BoardSearchReq) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{21} -} - -func (x *BoardSearchReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BoardSearchReq) GetSearchArgs() string { - if x != nil { - return x.SearchArgs - } - return "" -} - -func (x *BoardSearchReq) GetIncludeHiddenBoards() bool { - if x != nil { - return x.IncludeHiddenBoards - } - return false -} - -type BoardSearchResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of installed and installable boards. - Boards []*BoardListItem `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"` -} - -func (x *BoardSearchResp) Reset() { - *x = BoardSearchResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_board_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoardSearchResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoardSearchResp) ProtoMessage() {} - -func (x *BoardSearchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_board_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BoardSearchResp.ProtoReflect.Descriptor instead. -func (*BoardSearchResp) Descriptor() ([]byte, []int) { - return file_commands_board_proto_rawDescGZIP(), []int{22} -} - -func (x *BoardSearchResp) GetBoards() []*BoardListItem { - if x != nil { - return x.Boards - } - return nil -} - -var File_commands_board_proto protoreflect.FileDescriptor - -var file_commands_board_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x1a, - 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x0f, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0xe4, 0x05, 0x0a, - 0x10, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, - 0x73, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x69, 0x65, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, - 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6f, 0x75, - 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, - 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x50, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x12, 0x58, 0x0a, 0x11, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, - 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x11, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x44, - 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x0e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5c, 0x0a, 0x13, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, - 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x65, 0x66, 0x52, 0x12, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x45, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, - 0x72, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x12, 0x2f, - 0x0a, 0x13, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x75, 0x70, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x64, 0x65, 0x62, - 0x75, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, - 0x22, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x22, 0x4a, 0x0a, 0x12, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x12, 0x34, 0x0a, 0x05, 0x75, 0x73, 0x62, - 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x55, 0x53, 0x42, 0x49, 0x44, 0x52, 0x05, 0x75, 0x73, 0x62, 0x49, 0x44, 0x22, - 0x2b, 0x0a, 0x05, 0x55, 0x53, 0x42, 0x49, 0x44, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x49, 0x44, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x49, 0x44, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x49, - 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x50, 0x49, 0x44, 0x22, 0xb8, 0x01, 0x0a, - 0x07, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, - 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x65, - 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x48, 0x65, 0x6c, - 0x70, 0x52, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x22, 0x1e, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, 0x12, - 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x0d, 0x42, 0x6f, 0x61, 0x72, - 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, - 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x61, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, - 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, - 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x54, 0x6f, - 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x07, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x07, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, - 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x72, 0x63, 0x68, - 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x22, 0x87, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3c, 0x0a, - 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xb4, 0x01, - 0x0a, 0x0e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x72, 0x69, 0x12, 0x1f, 0x0a, 0x0b, - 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, - 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x69, 0x6d, - 0x65, 0x6f, 0x75, 0x74, 0x22, 0x5d, 0x0a, 0x0f, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x74, 0x74, - 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x22, 0x4c, 0x0a, 0x0d, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x65, 0x74, - 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x22, 0xd0, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x72, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3e, - 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, - 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x23, - 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x22, 0xa5, 0x01, 0x0a, 0x0f, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x41, 0x72, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, - 0x64, 0x65, 0x5f, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x48, - 0x69, 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, 0x52, 0x0a, 0x10, 0x42, - 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x3e, 0x0a, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, - 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, - 0x70, 0x0a, 0x11, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, - 0x74, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, - 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xb7, 0x01, 0x0a, 0x0d, 0x42, 0x6f, 0x61, - 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x46, 0x51, 0x42, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x46, 0x51, - 0x42, 0x4e, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x48, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, - 0x10, 0x0a, 0x03, 0x56, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x49, - 0x44, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x50, 0x49, 0x44, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x22, 0xa4, 0x01, 0x0a, 0x0e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x41, 0x72, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x5f, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x48, 0x69, 0x64, - 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x22, 0x51, 0x0a, 0x0f, 0x42, 0x6f, 0x61, - 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x06, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x42, 0x2d, 0x5a, 0x2b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, - 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_commands_board_proto_rawDescOnce sync.Once - file_commands_board_proto_rawDescData = file_commands_board_proto_rawDesc -) - -func file_commands_board_proto_rawDescGZIP() []byte { - file_commands_board_proto_rawDescOnce.Do(func() { - file_commands_board_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_board_proto_rawDescData) - }) - return file_commands_board_proto_rawDescData -} - -var file_commands_board_proto_msgTypes = make([]protoimpl.MessageInfo, 23) -var file_commands_board_proto_goTypes = []interface{}{ - (*BoardDetailsReq)(nil), // 0: cc.arduino.cli.commands.BoardDetailsReq - (*BoardDetailsResp)(nil), // 1: cc.arduino.cli.commands.BoardDetailsResp - (*IdentificationPref)(nil), // 2: cc.arduino.cli.commands.IdentificationPref - (*USBID)(nil), // 3: cc.arduino.cli.commands.USBID - (*Package)(nil), // 4: cc.arduino.cli.commands.Package - (*Help)(nil), // 5: cc.arduino.cli.commands.Help - (*BoardPlatform)(nil), // 6: cc.arduino.cli.commands.BoardPlatform - (*ToolsDependencies)(nil), // 7: cc.arduino.cli.commands.ToolsDependencies - (*Systems)(nil), // 8: cc.arduino.cli.commands.Systems - (*ConfigOption)(nil), // 9: cc.arduino.cli.commands.ConfigOption - (*ConfigValue)(nil), // 10: cc.arduino.cli.commands.ConfigValue - (*BoardAttachReq)(nil), // 11: cc.arduino.cli.commands.BoardAttachReq - (*BoardAttachResp)(nil), // 12: cc.arduino.cli.commands.BoardAttachResp - (*BoardListReq)(nil), // 13: cc.arduino.cli.commands.BoardListReq - (*BoardListResp)(nil), // 14: cc.arduino.cli.commands.BoardListResp - (*DetectedPort)(nil), // 15: cc.arduino.cli.commands.DetectedPort - (*BoardListAllReq)(nil), // 16: cc.arduino.cli.commands.BoardListAllReq - (*BoardListAllResp)(nil), // 17: cc.arduino.cli.commands.BoardListAllResp - (*BoardListWatchReq)(nil), // 18: cc.arduino.cli.commands.BoardListWatchReq - (*BoardListWatchResp)(nil), // 19: cc.arduino.cli.commands.BoardListWatchResp - (*BoardListItem)(nil), // 20: cc.arduino.cli.commands.BoardListItem - (*BoardSearchReq)(nil), // 21: cc.arduino.cli.commands.BoardSearchReq - (*BoardSearchResp)(nil), // 22: cc.arduino.cli.commands.BoardSearchResp - (*Instance)(nil), // 23: cc.arduino.cli.commands.Instance - (*Programmer)(nil), // 24: cc.arduino.cli.commands.Programmer - (*TaskProgress)(nil), // 25: cc.arduino.cli.commands.TaskProgress - (*Platform)(nil), // 26: cc.arduino.cli.commands.Platform -} -var file_commands_board_proto_depIdxs = []int32{ - 23, // 0: cc.arduino.cli.commands.BoardDetailsReq.instance:type_name -> cc.arduino.cli.commands.Instance - 4, // 1: cc.arduino.cli.commands.BoardDetailsResp.package:type_name -> cc.arduino.cli.commands.Package - 6, // 2: cc.arduino.cli.commands.BoardDetailsResp.platform:type_name -> cc.arduino.cli.commands.BoardPlatform - 7, // 3: cc.arduino.cli.commands.BoardDetailsResp.toolsDependencies:type_name -> cc.arduino.cli.commands.ToolsDependencies - 9, // 4: cc.arduino.cli.commands.BoardDetailsResp.config_options:type_name -> cc.arduino.cli.commands.ConfigOption - 2, // 5: cc.arduino.cli.commands.BoardDetailsResp.identification_pref:type_name -> cc.arduino.cli.commands.IdentificationPref - 24, // 6: cc.arduino.cli.commands.BoardDetailsResp.programmers:type_name -> cc.arduino.cli.commands.Programmer - 3, // 7: cc.arduino.cli.commands.IdentificationPref.usbID:type_name -> cc.arduino.cli.commands.USBID - 5, // 8: cc.arduino.cli.commands.Package.help:type_name -> cc.arduino.cli.commands.Help - 8, // 9: cc.arduino.cli.commands.ToolsDependencies.systems:type_name -> cc.arduino.cli.commands.Systems - 10, // 10: cc.arduino.cli.commands.ConfigOption.values:type_name -> cc.arduino.cli.commands.ConfigValue - 23, // 11: cc.arduino.cli.commands.BoardAttachReq.instance:type_name -> cc.arduino.cli.commands.Instance - 25, // 12: cc.arduino.cli.commands.BoardAttachResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 23, // 13: cc.arduino.cli.commands.BoardListReq.instance:type_name -> cc.arduino.cli.commands.Instance - 15, // 14: cc.arduino.cli.commands.BoardListResp.ports:type_name -> cc.arduino.cli.commands.DetectedPort - 20, // 15: cc.arduino.cli.commands.DetectedPort.boards:type_name -> cc.arduino.cli.commands.BoardListItem - 23, // 16: cc.arduino.cli.commands.BoardListAllReq.instance:type_name -> cc.arduino.cli.commands.Instance - 20, // 17: cc.arduino.cli.commands.BoardListAllResp.boards:type_name -> cc.arduino.cli.commands.BoardListItem - 23, // 18: cc.arduino.cli.commands.BoardListWatchReq.instance:type_name -> cc.arduino.cli.commands.Instance - 15, // 19: cc.arduino.cli.commands.BoardListWatchResp.port:type_name -> cc.arduino.cli.commands.DetectedPort - 26, // 20: cc.arduino.cli.commands.BoardListItem.platform:type_name -> cc.arduino.cli.commands.Platform - 23, // 21: cc.arduino.cli.commands.BoardSearchReq.instance:type_name -> cc.arduino.cli.commands.Instance - 20, // 22: cc.arduino.cli.commands.BoardSearchResp.boards:type_name -> cc.arduino.cli.commands.BoardListItem - 23, // [23:23] is the sub-list for method output_type - 23, // [23:23] is the sub-list for method input_type - 23, // [23:23] is the sub-list for extension type_name - 23, // [23:23] is the sub-list for extension extendee - 0, // [0:23] is the sub-list for field type_name -} - -func init() { file_commands_board_proto_init() } -func file_commands_board_proto_init() { - if File_commands_board_proto != nil { - return - } - file_commands_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_commands_board_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardDetailsReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardDetailsResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdentificationPref); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*USBID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Package); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Help); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardPlatform); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ToolsDependencies); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Systems); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigOption); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardAttachReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardAttachResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DetectedPort); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListAllReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListAllResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListWatchReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListWatchResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardListItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardSearchReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_board_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoardSearchResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_board_proto_rawDesc, - NumEnums: 0, - NumMessages: 23, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_commands_board_proto_goTypes, - DependencyIndexes: file_commands_board_proto_depIdxs, - MessageInfos: file_commands_board_proto_msgTypes, - }.Build() - File_commands_board_proto = out.File - file_commands_board_proto_rawDesc = nil - file_commands_board_proto_goTypes = nil - file_commands_board_proto_depIdxs = nil -} diff --git a/rpc/commands/board.proto b/rpc/commands/board.proto deleted file mode 100644 index 9183eee594e..00000000000 --- a/rpc/commands/board.proto +++ /dev/null @@ -1,258 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -import "commands/common.proto"; - -message BoardDetailsReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // The fully qualified board name of the board you want information about - // (e.g., `arduino:avr:uno`). - string fqbn = 2; -} - -message BoardDetailsResp { - // The fully qualified board name of the board. - string fqbn = 1; - // Name used to identify the board to humans (e.g., Arduino Uno). - string name = 2; - // Installed version of the board's platform. - string version = 3; - // The board ID component of the FQBN (e.g., `uno`). - string propertiesId = 4; - // Board alias that can be used as a more user friendly alternative to the - // FQBN. - string alias = 5; - // Whether this is an official or 3rd party board. - bool official = 6; - // URL of the board's pinout documentation. - string pinout = 7; - // Data about the package that contains the board's platform. - Package package = 8; - // Data about the board's platform. - BoardPlatform platform = 9; - // Tool dependencies of the board. - repeated ToolsDependencies toolsDependencies = 10; - // The board's custom configuration options. - repeated ConfigOption config_options = 11; - // Identifying information for the board (e.g., USB VID/PID). - repeated IdentificationPref identification_pref = 12; - // List of programmers supported by the board - repeated Programmer programmers = 13; - // Set to true if the board supports debugging - bool debugging_supported = 14; - // If a board with the specified FQBN is connected returns its serial number too - string serialNumber = 15; -} - -message IdentificationPref { - // Identifying information for USB-connected boards. - USBID usbID = 1; -} - -message USBID { - // USB vendor ID. - string VID = 1; - // USB product ID. - string PID = 2; -} - -message Package { - // Maintainer of the package. - string maintainer = 1; - // The URL of the platforms index file - // (e.g., https://downloads.arduino.cc/packages/package_index.json). - string url = 2; - // A URL provided by the package author, intended to point to their website. - string websiteURL = 3; - // Email address of the package maintainer. - string email = 4; - // Package vendor name. - string name = 5; - // Resources for getting help about using the package. - Help help = 6; -} - -message Help { - // URL for getting online help. - string online = 1; -} - -message BoardPlatform { - // Architecture of the platform (e.g., `avr`). - string architecture = 1; - // Category of the platform. Set to `Contributed` for 3rd party platforms. - string category = 2; - // Download URL of the platform archive file. - string url = 3; - // File name of the platform archive. - string archiveFileName = 4; - // Checksum of the platform archive. - string checksum = 5; - // File size of the platform archive. - int64 size = 6; - // Name used to identify the platform to humans. - string name = 7; -} - - -message ToolsDependencies { - // Vendor name of the package containing the tool definition. - string packager = 1; - // Tool name. - string name = 2; - // Tool version. - string version = 3; - // Data for the operating system-specific builds of the tool. - repeated Systems systems = 4; -} - -message Systems { - // Checksum of the tool archive. - string checksum = 1; - // Operating system identifier. - string host = 2; - // File name of the tool archive. - string archiveFileName = 3; - // Download URL of the tool archive. - string url = 4; - // File size of the tool archive. - int64 size = 5; -} - - -message ConfigOption { - // ID of the configuration option. For identifying the option to machines. - string option = 1; - // Name of the configuration option for identifying the option to humans. - string option_label = 2; - // Possible values of the configuration option. - repeated ConfigValue values = 3; -} - -message ConfigValue { - // The configuration option value. - string value = 1; - // Label to identify the configuration option to humans. - string value_label = 2; - // Whether the configuration option is selected. - bool selected = 3; -} - -message BoardAttachReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // The board's URI (e.g., /dev/ttyACM0). - string board_uri = 2; - // Path of the sketch to attach the board to. The board attachment - // metadata will be saved to `{sketch_path}/sketch.json`. - string sketch_path = 3; - // Duration in seconds to search the given URI for a connected board before - // timing out. The default value is 5 seconds. - string search_timeout = 4; -} - -message BoardAttachResp { - // Description of the current stage of the board attachment. - TaskProgress task_progress = 1; -} - -message BoardListReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; -} - -message BoardListResp { - // List of ports and the boards detected on those ports. - repeated DetectedPort ports = 1; -} - -message DetectedPort { - // Address of the port (e.g., `serial:///dev/ttyACM0`). - string address = 1; - // Protocol of the port (e.g., `serial`). - string protocol = 2; - // A human friendly description of the protocol (e.g., "Serial Port (USB)"). - string protocol_label = 3; - // The boards attached to the port. - repeated BoardListItem boards = 4; - // Serial number of connected board - string serial_number = 5; -} - -message BoardListAllReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // The search query to filter the board list by. - repeated string search_args = 2; - // Set to true to get also the boards marked as "hidden" in the platform - bool include_hidden_boards = 3; -} - -message BoardListAllResp { - // List of installed boards. - repeated BoardListItem boards = 1; -} - -message BoardListWatchReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Set this to true to stop the discovery process - bool interrupt = 2; -} - -message BoardListWatchResp { - // Event type as received from the serial discovery tool - string event_type = 1; - // Information about the port - DetectedPort port = 2; - // Eventual errors when detecting connected boards - string error = 3; -} - -message BoardListItem { - // The name for use when identifying the board to a human. - string name = 1; - // The fully qualified board name. Used to identify the board to a machine. - string FQBN = 2; - // If the board is marked as "hidden" in the platform - bool is_hidden = 3; - // Vendor ID - string VID = 4; - // Product ID - string PID = 5; - // Platform this board belongs to - Platform platform = 6; -} - -message BoardSearchReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // The search query to filter the board list by. - string search_args = 2; - // Set to true to get also the boards marked as "hidden" in installed platforms - bool include_hidden_boards = 3; -} - -message BoardSearchResp { - // List of installed and installable boards. - repeated BoardListItem boards = 1; -} diff --git a/rpc/commands/commands.pb.go b/rpc/commands/commands.pb.go deleted file mode 100644 index 983c1cdf25d..00000000000 --- a/rpc/commands/commands.pb.go +++ /dev/null @@ -1,4154 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: commands/commands.proto - -package commands - -import ( - context "context" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type InitReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Start a Arduino Core Service instance that will provide only Library - // Manager functionality. - LibraryManagerOnly bool `protobuf:"varint,2,opt,name=library_manager_only,json=libraryManagerOnly,proto3" json:"library_manager_only,omitempty"` -} - -func (x *InitReq) Reset() { - *x = InitReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitReq) ProtoMessage() {} - -func (x *InitReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitReq.ProtoReflect.Descriptor instead. -func (*InitReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{0} -} - -func (x *InitReq) GetLibraryManagerOnly() bool { - if x != nil { - return x.LibraryManagerOnly - } - return false -} - -type InitResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An Arduino Core Service instance. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Error messages related to any problems encountered while parsing the - // platforms index files. - PlatformsIndexErrors []string `protobuf:"bytes,2,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"` - // Error message if a problem was encountered while parsing the libraries - // index file. - LibrariesIndexError string `protobuf:"bytes,3,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"` - // Progress of the downloads of platforms and libraries index files. - DownloadProgress *DownloadProgress `protobuf:"bytes,4,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` - // Describes the current stage of the initialization. - TaskProgress *TaskProgress `protobuf:"bytes,5,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *InitResp) Reset() { - *x = InitResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitResp) ProtoMessage() {} - -func (x *InitResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitResp.ProtoReflect.Descriptor instead. -func (*InitResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{1} -} - -func (x *InitResp) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *InitResp) GetPlatformsIndexErrors() []string { - if x != nil { - return x.PlatformsIndexErrors - } - return nil -} - -func (x *InitResp) GetLibrariesIndexError() string { - if x != nil { - return x.LibrariesIndexError - } - return "" -} - -func (x *InitResp) GetDownloadProgress() *DownloadProgress { - if x != nil { - return x.DownloadProgress - } - return nil -} - -func (x *InitResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type DestroyReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The Arduino Core Service instance to destroy. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *DestroyReq) Reset() { - *x = DestroyReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DestroyReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DestroyReq) ProtoMessage() {} - -func (x *DestroyReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DestroyReq.ProtoReflect.Descriptor instead. -func (*DestroyReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{2} -} - -func (x *DestroyReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type DestroyResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DestroyResp) Reset() { - *x = DestroyResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DestroyResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DestroyResp) ProtoMessage() {} - -func (x *DestroyResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DestroyResp.ProtoReflect.Descriptor instead. -func (*DestroyResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{3} -} - -type RescanReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *RescanReq) Reset() { - *x = RescanReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RescanReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RescanReq) ProtoMessage() {} - -func (x *RescanReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RescanReq.ProtoReflect.Descriptor instead. -func (*RescanReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{4} -} - -func (x *RescanReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type RescanResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Error messages related to any problems encountered while parsing the - // platforms index file. - PlatformsIndexErrors []string `protobuf:"bytes,1,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"` - // Error message if a problem was encountered while parsing the libraries - // index file. - LibrariesIndexError string `protobuf:"bytes,2,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"` -} - -func (x *RescanResp) Reset() { - *x = RescanResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RescanResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RescanResp) ProtoMessage() {} - -func (x *RescanResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RescanResp.ProtoReflect.Descriptor instead. -func (*RescanResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{5} -} - -func (x *RescanResp) GetPlatformsIndexErrors() []string { - if x != nil { - return x.PlatformsIndexErrors - } - return nil -} - -func (x *RescanResp) GetLibrariesIndexError() string { - if x != nil { - return x.LibrariesIndexError - } - return "" -} - -type UpdateIndexReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *UpdateIndexReq) Reset() { - *x = UpdateIndexReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateIndexReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateIndexReq) ProtoMessage() {} - -func (x *UpdateIndexReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateIndexReq.ProtoReflect.Descriptor instead. -func (*UpdateIndexReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateIndexReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type UpdateIndexResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the platforms index download. - DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` -} - -func (x *UpdateIndexResp) Reset() { - *x = UpdateIndexResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateIndexResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateIndexResp) ProtoMessage() {} - -func (x *UpdateIndexResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateIndexResp.ProtoReflect.Descriptor instead. -func (*UpdateIndexResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateIndexResp) GetDownloadProgress() *DownloadProgress { - if x != nil { - return x.DownloadProgress - } - return nil -} - -type UpdateLibrariesIndexReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *UpdateLibrariesIndexReq) Reset() { - *x = UpdateLibrariesIndexReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateLibrariesIndexReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateLibrariesIndexReq) ProtoMessage() {} - -func (x *UpdateLibrariesIndexReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateLibrariesIndexReq.ProtoReflect.Descriptor instead. -func (*UpdateLibrariesIndexReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{8} -} - -func (x *UpdateLibrariesIndexReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type UpdateLibrariesIndexResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the libraries index download. - DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` -} - -func (x *UpdateLibrariesIndexResp) Reset() { - *x = UpdateLibrariesIndexResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateLibrariesIndexResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateLibrariesIndexResp) ProtoMessage() {} - -func (x *UpdateLibrariesIndexResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateLibrariesIndexResp.ProtoReflect.Descriptor instead. -func (*UpdateLibrariesIndexResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{9} -} - -func (x *UpdateLibrariesIndexResp) GetDownloadProgress() *DownloadProgress { - if x != nil { - return x.DownloadProgress - } - return nil -} - -type UpdateCoreLibrariesIndexReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *UpdateCoreLibrariesIndexReq) Reset() { - *x = UpdateCoreLibrariesIndexReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateCoreLibrariesIndexReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateCoreLibrariesIndexReq) ProtoMessage() {} - -func (x *UpdateCoreLibrariesIndexReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateCoreLibrariesIndexReq.ProtoReflect.Descriptor instead. -func (*UpdateCoreLibrariesIndexReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{10} -} - -func (x *UpdateCoreLibrariesIndexReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type UpdateCoreLibrariesIndexResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the index download. - DownloadProgress *DownloadProgress `protobuf:"bytes,1,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"` -} - -func (x *UpdateCoreLibrariesIndexResp) Reset() { - *x = UpdateCoreLibrariesIndexResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateCoreLibrariesIndexResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateCoreLibrariesIndexResp) ProtoMessage() {} - -func (x *UpdateCoreLibrariesIndexResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateCoreLibrariesIndexResp.ProtoReflect.Descriptor instead. -func (*UpdateCoreLibrariesIndexResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{11} -} - -func (x *UpdateCoreLibrariesIndexResp) GetDownloadProgress() *DownloadProgress { - if x != nil { - return x.DownloadProgress - } - return nil -} - -type OutdatedReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` -} - -func (x *OutdatedReq) Reset() { - *x = OutdatedReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OutdatedReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OutdatedReq) ProtoMessage() {} - -func (x *OutdatedReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OutdatedReq.ProtoReflect.Descriptor instead. -func (*OutdatedReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{12} -} - -func (x *OutdatedReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -type OutdatedResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of installed libraries that can be updated. - OutdatedLibrary []*InstalledLibrary `protobuf:"bytes,1,rep,name=outdated_library,json=outdatedLibrary,proto3" json:"outdated_library,omitempty"` - // List of installed cores that can be updated. - OutdatedPlatform []*Platform `protobuf:"bytes,2,rep,name=outdated_platform,json=outdatedPlatform,proto3" json:"outdated_platform,omitempty"` -} - -func (x *OutdatedResp) Reset() { - *x = OutdatedResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OutdatedResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OutdatedResp) ProtoMessage() {} - -func (x *OutdatedResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OutdatedResp.ProtoReflect.Descriptor instead. -func (*OutdatedResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{13} -} - -func (x *OutdatedResp) GetOutdatedLibrary() []*InstalledLibrary { - if x != nil { - return x.OutdatedLibrary - } - return nil -} - -func (x *OutdatedResp) GetOutdatedPlatform() []*Platform { - if x != nil { - return x.OutdatedPlatform - } - return nil -} - -type UpgradeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Set to true to not run (eventual) post install scripts - SkipPostInstall bool `protobuf:"varint,2,opt,name=skipPostInstall,proto3" json:"skipPostInstall,omitempty"` -} - -func (x *UpgradeReq) Reset() { - *x = UpgradeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpgradeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpgradeReq) ProtoMessage() {} - -func (x *UpgradeReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpgradeReq.ProtoReflect.Descriptor instead. -func (*UpgradeReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{14} -} - -func (x *UpgradeReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *UpgradeReq) GetSkipPostInstall() bool { - if x != nil { - return x.SkipPostInstall - } - return false -} - -type UpgradeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the downloads of the platforms and libraries files. - Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` - // Description of the current stage of the upgrade. - TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *UpgradeResp) Reset() { - *x = UpgradeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpgradeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpgradeResp) ProtoMessage() {} - -func (x *UpgradeResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpgradeResp.ProtoReflect.Descriptor instead. -func (*UpgradeResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{15} -} - -func (x *UpgradeResp) GetProgress() *DownloadProgress { - if x != nil { - return x.Progress - } - return nil -} - -func (x *UpgradeResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type VersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *VersionReq) Reset() { - *x = VersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VersionReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VersionReq) ProtoMessage() {} - -func (x *VersionReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VersionReq.ProtoReflect.Descriptor instead. -func (*VersionReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{16} -} - -type VersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version of Arduino CLI in use. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *VersionResp) Reset() { - *x = VersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VersionResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VersionResp) ProtoMessage() {} - -func (x *VersionResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VersionResp.ProtoReflect.Descriptor instead. -func (*VersionResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{17} -} - -func (x *VersionResp) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type LoadSketchReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the Init response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Absolute path to single sketch file or a sketch folder - SketchPath string `protobuf:"bytes,2,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` -} - -func (x *LoadSketchReq) Reset() { - *x = LoadSketchReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadSketchReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadSketchReq) ProtoMessage() {} - -func (x *LoadSketchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadSketchReq.ProtoReflect.Descriptor instead. -func (*LoadSketchReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{18} -} - -func (x *LoadSketchReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *LoadSketchReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -type LoadSketchResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Absolute path to a main sketch files - MainFile string `protobuf:"bytes,1,opt,name=main_file,json=mainFile,proto3" json:"main_file,omitempty"` - // Absolute path to folder that contains main_file - LocationPath string `protobuf:"bytes,2,opt,name=location_path,json=locationPath,proto3" json:"location_path,omitempty"` - // List of absolute paths to other sketch files - OtherSketchFiles []string `protobuf:"bytes,3,rep,name=other_sketch_files,json=otherSketchFiles,proto3" json:"other_sketch_files,omitempty"` - // List of absolute paths to additional sketch files - AdditionalFiles []string `protobuf:"bytes,4,rep,name=additional_files,json=additionalFiles,proto3" json:"additional_files,omitempty"` - // List of absolute paths to supported files in the sketch root folder, main file excluded - RootFolderFiles []string `protobuf:"bytes,5,rep,name=root_folder_files,json=rootFolderFiles,proto3" json:"root_folder_files,omitempty"` -} - -func (x *LoadSketchResp) Reset() { - *x = LoadSketchResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadSketchResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadSketchResp) ProtoMessage() {} - -func (x *LoadSketchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadSketchResp.ProtoReflect.Descriptor instead. -func (*LoadSketchResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{19} -} - -func (x *LoadSketchResp) GetMainFile() string { - if x != nil { - return x.MainFile - } - return "" -} - -func (x *LoadSketchResp) GetLocationPath() string { - if x != nil { - return x.LocationPath - } - return "" -} - -func (x *LoadSketchResp) GetOtherSketchFiles() []string { - if x != nil { - return x.OtherSketchFiles - } - return nil -} - -func (x *LoadSketchResp) GetAdditionalFiles() []string { - if x != nil { - return x.AdditionalFiles - } - return nil -} - -func (x *LoadSketchResp) GetRootFolderFiles() []string { - if x != nil { - return x.RootFolderFiles - } - return nil -} - -type ArchiveSketchReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Absolute path to Sketch file or folder containing Sketch file - SketchPath string `protobuf:"bytes,1,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` - // Absolute path to archive that will be created or folder that will contain it - ArchivePath string `protobuf:"bytes,2,opt,name=archive_path,json=archivePath,proto3" json:"archive_path,omitempty"` - // Specifies if build directory should be included in the archive - IncludeBuildDir bool `protobuf:"varint,3,opt,name=include_build_dir,json=includeBuildDir,proto3" json:"include_build_dir,omitempty"` -} - -func (x *ArchiveSketchReq) Reset() { - *x = ArchiveSketchReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArchiveSketchReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArchiveSketchReq) ProtoMessage() {} - -func (x *ArchiveSketchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArchiveSketchReq.ProtoReflect.Descriptor instead. -func (*ArchiveSketchReq) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{20} -} - -func (x *ArchiveSketchReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *ArchiveSketchReq) GetArchivePath() string { - if x != nil { - return x.ArchivePath - } - return "" -} - -func (x *ArchiveSketchReq) GetIncludeBuildDir() bool { - if x != nil { - return x.IncludeBuildDir - } - return false -} - -type ArchiveSketchResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ArchiveSketchResp) Reset() { - *x = ArchiveSketchResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_commands_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArchiveSketchResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArchiveSketchResp) ProtoMessage() {} - -func (x *ArchiveSketchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_commands_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArchiveSketchResp.ProtoReflect.Descriptor instead. -func (*ArchiveSketchResp) Descriptor() ([]byte, []int) { - return file_commands_commands_proto_rawDescGZIP(), []int{21} -} - -var File_commands_commands_proto protoreflect.FileDescriptor - -var file_commands_commands_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2f, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x6c, 0x69, - 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x07, 0x49, 0x6e, 0x69, 0x74, 0x52, - 0x65, 0x71, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x12, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xd7, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x34, 0x0a, 0x16, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x5f, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x14, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x69, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x4b, - 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x44, - 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4a, 0x0a, 0x09, 0x52, 0x65, - 0x73, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x63, 0x61, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x4f, - 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, - 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, - 0x69, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, - 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x58, 0x0a, 0x17, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x22, 0x72, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x56, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5c, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, - 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x10, 0x64, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x4c, - 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, - 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb4, 0x01, 0x0a, - 0x0c, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, - 0x10, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, - 0x72, 0x79, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, - 0x61, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x22, 0x75, 0x0a, 0x0a, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, - 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x50, - 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x22, 0xa0, 0x01, 0x0a, 0x0b, 0x55, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x0c, 0x0a, - 0x0a, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x27, 0x0a, 0x0b, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x0d, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, 0x65, 0x74, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, - 0x68, 0x50, 0x61, 0x74, 0x68, 0x22, 0xd7, 0x01, 0x0a, 0x0e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, - 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, - 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x69, - 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x74, - 0x68, 0x65, 0x72, 0x5f, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x53, 0x6b, 0x65, - 0x74, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x46, 0x69, - 0x6c, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, - 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, - 0x72, 0x6f, 0x6f, 0x74, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, - 0x82, 0x01, 0x0a, 0x10, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, - 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, - 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x63, - 0x68, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x42, 0x75, 0x69, 0x6c, - 0x64, 0x44, 0x69, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, - 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x32, 0x9a, 0x1f, 0x0a, 0x0b, 0x41, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x43, 0x6f, 0x72, 0x65, 0x12, 0x4f, 0x0a, 0x04, 0x49, 0x6e, 0x69, - 0x74, 0x12, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x69, 0x74, - 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, - 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x07, 0x44, 0x65, - 0x73, 0x74, 0x72, 0x6f, 0x79, 0x12, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x00, 0x12, 0x53, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x63, 0x61, 0x6e, 0x12, 0x22, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x71, - 0x1a, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, - 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x63, 0x61, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x1a, - 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x30, 0x01, 0x12, 0x7f, 0x0a, - 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x1a, 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x30, 0x01, 0x12, 0x8b, - 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, - 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x34, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, - 0x71, 0x1a, 0x35, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x72, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x08, - 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x25, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x07, 0x55, 0x70, 0x67, 0x72, 0x61, - 0x64, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x67, - 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x30, - 0x01, 0x12, 0x56, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x1a, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x0a, 0x4c, 0x6f, 0x61, - 0x64, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x12, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, - 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6b, - 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x68, 0x0a, 0x0d, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x12, 0x29, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x0c, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, - 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x29, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x62, 0x0a, 0x0b, 0x42, 0x6f, 0x61, - 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x12, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, - 0x71, 0x1a, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, - 0x64, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x5a, 0x0a, - 0x09, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x1a, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, - 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x63, 0x0a, 0x0c, 0x42, 0x6f, 0x61, - 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x1a, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, - 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, - 0x0a, 0x0b, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x27, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x6d, 0x0a, 0x0e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, - 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x2b, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, - 0x73, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x28, 0x01, 0x30, 0x01, 0x12, - 0x56, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, - 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x71, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2c, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x74, 0x0a, 0x11, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, - 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2e, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, - 0x12, 0x6e, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, - 0x1a, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, - 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, - 0x12, 0x53, 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x23, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x12, - 0x31, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x1a, 0x32, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0xa2, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, - 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3d, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x3e, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x6b, 0x0a, - 0x0e, 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, - 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, - 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x0e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x2a, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x63, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, - 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x6e, 0x0a, 0x0f, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, - 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x2c, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x6b, 0x0a, 0x0e, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2a, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x74, 0x0a, 0x11, 0x5a, 0x69, 0x70, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2e, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x5a, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x74, 0x0a, - 0x11, 0x47, 0x69, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x47, 0x69, 0x74, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x1a, 0x2e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x47, 0x69, 0x74, 0x4c, - 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x30, 0x01, 0x12, 0x71, 0x0a, 0x10, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2c, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2d, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x74, 0x0a, 0x11, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, - 0x79, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, - 0x72, 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x2e, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x55, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x8d, 0x01, 0x0a, - 0x1a, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, - 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x36, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x1a, 0x37, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x44, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x66, 0x0a, 0x0d, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x29, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x2a, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x0b, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, - 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_commands_commands_proto_rawDescOnce sync.Once - file_commands_commands_proto_rawDescData = file_commands_commands_proto_rawDesc -) - -func file_commands_commands_proto_rawDescGZIP() []byte { - file_commands_commands_proto_rawDescOnce.Do(func() { - file_commands_commands_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_commands_proto_rawDescData) - }) - return file_commands_commands_proto_rawDescData -} - -var file_commands_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_commands_commands_proto_goTypes = []interface{}{ - (*InitReq)(nil), // 0: cc.arduino.cli.commands.InitReq - (*InitResp)(nil), // 1: cc.arduino.cli.commands.InitResp - (*DestroyReq)(nil), // 2: cc.arduino.cli.commands.DestroyReq - (*DestroyResp)(nil), // 3: cc.arduino.cli.commands.DestroyResp - (*RescanReq)(nil), // 4: cc.arduino.cli.commands.RescanReq - (*RescanResp)(nil), // 5: cc.arduino.cli.commands.RescanResp - (*UpdateIndexReq)(nil), // 6: cc.arduino.cli.commands.UpdateIndexReq - (*UpdateIndexResp)(nil), // 7: cc.arduino.cli.commands.UpdateIndexResp - (*UpdateLibrariesIndexReq)(nil), // 8: cc.arduino.cli.commands.UpdateLibrariesIndexReq - (*UpdateLibrariesIndexResp)(nil), // 9: cc.arduino.cli.commands.UpdateLibrariesIndexResp - (*UpdateCoreLibrariesIndexReq)(nil), // 10: cc.arduino.cli.commands.UpdateCoreLibrariesIndexReq - (*UpdateCoreLibrariesIndexResp)(nil), // 11: cc.arduino.cli.commands.UpdateCoreLibrariesIndexResp - (*OutdatedReq)(nil), // 12: cc.arduino.cli.commands.OutdatedReq - (*OutdatedResp)(nil), // 13: cc.arduino.cli.commands.OutdatedResp - (*UpgradeReq)(nil), // 14: cc.arduino.cli.commands.UpgradeReq - (*UpgradeResp)(nil), // 15: cc.arduino.cli.commands.UpgradeResp - (*VersionReq)(nil), // 16: cc.arduino.cli.commands.VersionReq - (*VersionResp)(nil), // 17: cc.arduino.cli.commands.VersionResp - (*LoadSketchReq)(nil), // 18: cc.arduino.cli.commands.LoadSketchReq - (*LoadSketchResp)(nil), // 19: cc.arduino.cli.commands.LoadSketchResp - (*ArchiveSketchReq)(nil), // 20: cc.arduino.cli.commands.ArchiveSketchReq - (*ArchiveSketchResp)(nil), // 21: cc.arduino.cli.commands.ArchiveSketchResp - (*Instance)(nil), // 22: cc.arduino.cli.commands.Instance - (*DownloadProgress)(nil), // 23: cc.arduino.cli.commands.DownloadProgress - (*TaskProgress)(nil), // 24: cc.arduino.cli.commands.TaskProgress - (*InstalledLibrary)(nil), // 25: cc.arduino.cli.commands.InstalledLibrary - (*Platform)(nil), // 26: cc.arduino.cli.commands.Platform - (*BoardDetailsReq)(nil), // 27: cc.arduino.cli.commands.BoardDetailsReq - (*BoardAttachReq)(nil), // 28: cc.arduino.cli.commands.BoardAttachReq - (*BoardListReq)(nil), // 29: cc.arduino.cli.commands.BoardListReq - (*BoardListAllReq)(nil), // 30: cc.arduino.cli.commands.BoardListAllReq - (*BoardSearchReq)(nil), // 31: cc.arduino.cli.commands.BoardSearchReq - (*BoardListWatchReq)(nil), // 32: cc.arduino.cli.commands.BoardListWatchReq - (*CompileReq)(nil), // 33: cc.arduino.cli.commands.CompileReq - (*PlatformInstallReq)(nil), // 34: cc.arduino.cli.commands.PlatformInstallReq - (*PlatformDownloadReq)(nil), // 35: cc.arduino.cli.commands.PlatformDownloadReq - (*PlatformUninstallReq)(nil), // 36: cc.arduino.cli.commands.PlatformUninstallReq - (*PlatformUpgradeReq)(nil), // 37: cc.arduino.cli.commands.PlatformUpgradeReq - (*UploadReq)(nil), // 38: cc.arduino.cli.commands.UploadReq - (*UploadUsingProgrammerReq)(nil), // 39: cc.arduino.cli.commands.UploadUsingProgrammerReq - (*ListProgrammersAvailableForUploadReq)(nil), // 40: cc.arduino.cli.commands.ListProgrammersAvailableForUploadReq - (*BurnBootloaderReq)(nil), // 41: cc.arduino.cli.commands.BurnBootloaderReq - (*PlatformSearchReq)(nil), // 42: cc.arduino.cli.commands.PlatformSearchReq - (*PlatformListReq)(nil), // 43: cc.arduino.cli.commands.PlatformListReq - (*LibraryDownloadReq)(nil), // 44: cc.arduino.cli.commands.LibraryDownloadReq - (*LibraryInstallReq)(nil), // 45: cc.arduino.cli.commands.LibraryInstallReq - (*ZipLibraryInstallReq)(nil), // 46: cc.arduino.cli.commands.ZipLibraryInstallReq - (*GitLibraryInstallReq)(nil), // 47: cc.arduino.cli.commands.GitLibraryInstallReq - (*LibraryUninstallReq)(nil), // 48: cc.arduino.cli.commands.LibraryUninstallReq - (*LibraryUpgradeAllReq)(nil), // 49: cc.arduino.cli.commands.LibraryUpgradeAllReq - (*LibraryResolveDependenciesReq)(nil), // 50: cc.arduino.cli.commands.LibraryResolveDependenciesReq - (*LibrarySearchReq)(nil), // 51: cc.arduino.cli.commands.LibrarySearchReq - (*LibraryListReq)(nil), // 52: cc.arduino.cli.commands.LibraryListReq - (*BoardDetailsResp)(nil), // 53: cc.arduino.cli.commands.BoardDetailsResp - (*BoardAttachResp)(nil), // 54: cc.arduino.cli.commands.BoardAttachResp - (*BoardListResp)(nil), // 55: cc.arduino.cli.commands.BoardListResp - (*BoardListAllResp)(nil), // 56: cc.arduino.cli.commands.BoardListAllResp - (*BoardSearchResp)(nil), // 57: cc.arduino.cli.commands.BoardSearchResp - (*BoardListWatchResp)(nil), // 58: cc.arduino.cli.commands.BoardListWatchResp - (*CompileResp)(nil), // 59: cc.arduino.cli.commands.CompileResp - (*PlatformInstallResp)(nil), // 60: cc.arduino.cli.commands.PlatformInstallResp - (*PlatformDownloadResp)(nil), // 61: cc.arduino.cli.commands.PlatformDownloadResp - (*PlatformUninstallResp)(nil), // 62: cc.arduino.cli.commands.PlatformUninstallResp - (*PlatformUpgradeResp)(nil), // 63: cc.arduino.cli.commands.PlatformUpgradeResp - (*UploadResp)(nil), // 64: cc.arduino.cli.commands.UploadResp - (*UploadUsingProgrammerResp)(nil), // 65: cc.arduino.cli.commands.UploadUsingProgrammerResp - (*ListProgrammersAvailableForUploadResp)(nil), // 66: cc.arduino.cli.commands.ListProgrammersAvailableForUploadResp - (*BurnBootloaderResp)(nil), // 67: cc.arduino.cli.commands.BurnBootloaderResp - (*PlatformSearchResp)(nil), // 68: cc.arduino.cli.commands.PlatformSearchResp - (*PlatformListResp)(nil), // 69: cc.arduino.cli.commands.PlatformListResp - (*LibraryDownloadResp)(nil), // 70: cc.arduino.cli.commands.LibraryDownloadResp - (*LibraryInstallResp)(nil), // 71: cc.arduino.cli.commands.LibraryInstallResp - (*ZipLibraryInstallResp)(nil), // 72: cc.arduino.cli.commands.ZipLibraryInstallResp - (*GitLibraryInstallResp)(nil), // 73: cc.arduino.cli.commands.GitLibraryInstallResp - (*LibraryUninstallResp)(nil), // 74: cc.arduino.cli.commands.LibraryUninstallResp - (*LibraryUpgradeAllResp)(nil), // 75: cc.arduino.cli.commands.LibraryUpgradeAllResp - (*LibraryResolveDependenciesResp)(nil), // 76: cc.arduino.cli.commands.LibraryResolveDependenciesResp - (*LibrarySearchResp)(nil), // 77: cc.arduino.cli.commands.LibrarySearchResp - (*LibraryListResp)(nil), // 78: cc.arduino.cli.commands.LibraryListResp -} -var file_commands_commands_proto_depIdxs = []int32{ - 22, // 0: cc.arduino.cli.commands.InitResp.instance:type_name -> cc.arduino.cli.commands.Instance - 23, // 1: cc.arduino.cli.commands.InitResp.download_progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 24, // 2: cc.arduino.cli.commands.InitResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 22, // 3: cc.arduino.cli.commands.DestroyReq.instance:type_name -> cc.arduino.cli.commands.Instance - 22, // 4: cc.arduino.cli.commands.RescanReq.instance:type_name -> cc.arduino.cli.commands.Instance - 22, // 5: cc.arduino.cli.commands.UpdateIndexReq.instance:type_name -> cc.arduino.cli.commands.Instance - 23, // 6: cc.arduino.cli.commands.UpdateIndexResp.download_progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 22, // 7: cc.arduino.cli.commands.UpdateLibrariesIndexReq.instance:type_name -> cc.arduino.cli.commands.Instance - 23, // 8: cc.arduino.cli.commands.UpdateLibrariesIndexResp.download_progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 22, // 9: cc.arduino.cli.commands.UpdateCoreLibrariesIndexReq.instance:type_name -> cc.arduino.cli.commands.Instance - 23, // 10: cc.arduino.cli.commands.UpdateCoreLibrariesIndexResp.download_progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 22, // 11: cc.arduino.cli.commands.OutdatedReq.instance:type_name -> cc.arduino.cli.commands.Instance - 25, // 12: cc.arduino.cli.commands.OutdatedResp.outdated_library:type_name -> cc.arduino.cli.commands.InstalledLibrary - 26, // 13: cc.arduino.cli.commands.OutdatedResp.outdated_platform:type_name -> cc.arduino.cli.commands.Platform - 22, // 14: cc.arduino.cli.commands.UpgradeReq.instance:type_name -> cc.arduino.cli.commands.Instance - 23, // 15: cc.arduino.cli.commands.UpgradeResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 24, // 16: cc.arduino.cli.commands.UpgradeResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 22, // 17: cc.arduino.cli.commands.LoadSketchReq.instance:type_name -> cc.arduino.cli.commands.Instance - 0, // 18: cc.arduino.cli.commands.ArduinoCore.Init:input_type -> cc.arduino.cli.commands.InitReq - 2, // 19: cc.arduino.cli.commands.ArduinoCore.Destroy:input_type -> cc.arduino.cli.commands.DestroyReq - 4, // 20: cc.arduino.cli.commands.ArduinoCore.Rescan:input_type -> cc.arduino.cli.commands.RescanReq - 6, // 21: cc.arduino.cli.commands.ArduinoCore.UpdateIndex:input_type -> cc.arduino.cli.commands.UpdateIndexReq - 8, // 22: cc.arduino.cli.commands.ArduinoCore.UpdateLibrariesIndex:input_type -> cc.arduino.cli.commands.UpdateLibrariesIndexReq - 10, // 23: cc.arduino.cli.commands.ArduinoCore.UpdateCoreLibrariesIndex:input_type -> cc.arduino.cli.commands.UpdateCoreLibrariesIndexReq - 12, // 24: cc.arduino.cli.commands.ArduinoCore.Outdated:input_type -> cc.arduino.cli.commands.OutdatedReq - 14, // 25: cc.arduino.cli.commands.ArduinoCore.Upgrade:input_type -> cc.arduino.cli.commands.UpgradeReq - 16, // 26: cc.arduino.cli.commands.ArduinoCore.Version:input_type -> cc.arduino.cli.commands.VersionReq - 18, // 27: cc.arduino.cli.commands.ArduinoCore.LoadSketch:input_type -> cc.arduino.cli.commands.LoadSketchReq - 20, // 28: cc.arduino.cli.commands.ArduinoCore.ArchiveSketch:input_type -> cc.arduino.cli.commands.ArchiveSketchReq - 27, // 29: cc.arduino.cli.commands.ArduinoCore.BoardDetails:input_type -> cc.arduino.cli.commands.BoardDetailsReq - 28, // 30: cc.arduino.cli.commands.ArduinoCore.BoardAttach:input_type -> cc.arduino.cli.commands.BoardAttachReq - 29, // 31: cc.arduino.cli.commands.ArduinoCore.BoardList:input_type -> cc.arduino.cli.commands.BoardListReq - 30, // 32: cc.arduino.cli.commands.ArduinoCore.BoardListAll:input_type -> cc.arduino.cli.commands.BoardListAllReq - 31, // 33: cc.arduino.cli.commands.ArduinoCore.BoardSearch:input_type -> cc.arduino.cli.commands.BoardSearchReq - 32, // 34: cc.arduino.cli.commands.ArduinoCore.BoardListWatch:input_type -> cc.arduino.cli.commands.BoardListWatchReq - 33, // 35: cc.arduino.cli.commands.ArduinoCore.Compile:input_type -> cc.arduino.cli.commands.CompileReq - 34, // 36: cc.arduino.cli.commands.ArduinoCore.PlatformInstall:input_type -> cc.arduino.cli.commands.PlatformInstallReq - 35, // 37: cc.arduino.cli.commands.ArduinoCore.PlatformDownload:input_type -> cc.arduino.cli.commands.PlatformDownloadReq - 36, // 38: cc.arduino.cli.commands.ArduinoCore.PlatformUninstall:input_type -> cc.arduino.cli.commands.PlatformUninstallReq - 37, // 39: cc.arduino.cli.commands.ArduinoCore.PlatformUpgrade:input_type -> cc.arduino.cli.commands.PlatformUpgradeReq - 38, // 40: cc.arduino.cli.commands.ArduinoCore.Upload:input_type -> cc.arduino.cli.commands.UploadReq - 39, // 41: cc.arduino.cli.commands.ArduinoCore.UploadUsingProgrammer:input_type -> cc.arduino.cli.commands.UploadUsingProgrammerReq - 40, // 42: cc.arduino.cli.commands.ArduinoCore.ListProgrammersAvailableForUpload:input_type -> cc.arduino.cli.commands.ListProgrammersAvailableForUploadReq - 41, // 43: cc.arduino.cli.commands.ArduinoCore.BurnBootloader:input_type -> cc.arduino.cli.commands.BurnBootloaderReq - 42, // 44: cc.arduino.cli.commands.ArduinoCore.PlatformSearch:input_type -> cc.arduino.cli.commands.PlatformSearchReq - 43, // 45: cc.arduino.cli.commands.ArduinoCore.PlatformList:input_type -> cc.arduino.cli.commands.PlatformListReq - 44, // 46: cc.arduino.cli.commands.ArduinoCore.LibraryDownload:input_type -> cc.arduino.cli.commands.LibraryDownloadReq - 45, // 47: cc.arduino.cli.commands.ArduinoCore.LibraryInstall:input_type -> cc.arduino.cli.commands.LibraryInstallReq - 46, // 48: cc.arduino.cli.commands.ArduinoCore.ZipLibraryInstall:input_type -> cc.arduino.cli.commands.ZipLibraryInstallReq - 47, // 49: cc.arduino.cli.commands.ArduinoCore.GitLibraryInstall:input_type -> cc.arduino.cli.commands.GitLibraryInstallReq - 48, // 50: cc.arduino.cli.commands.ArduinoCore.LibraryUninstall:input_type -> cc.arduino.cli.commands.LibraryUninstallReq - 49, // 51: cc.arduino.cli.commands.ArduinoCore.LibraryUpgradeAll:input_type -> cc.arduino.cli.commands.LibraryUpgradeAllReq - 50, // 52: cc.arduino.cli.commands.ArduinoCore.LibraryResolveDependencies:input_type -> cc.arduino.cli.commands.LibraryResolveDependenciesReq - 51, // 53: cc.arduino.cli.commands.ArduinoCore.LibrarySearch:input_type -> cc.arduino.cli.commands.LibrarySearchReq - 52, // 54: cc.arduino.cli.commands.ArduinoCore.LibraryList:input_type -> cc.arduino.cli.commands.LibraryListReq - 1, // 55: cc.arduino.cli.commands.ArduinoCore.Init:output_type -> cc.arduino.cli.commands.InitResp - 3, // 56: cc.arduino.cli.commands.ArduinoCore.Destroy:output_type -> cc.arduino.cli.commands.DestroyResp - 5, // 57: cc.arduino.cli.commands.ArduinoCore.Rescan:output_type -> cc.arduino.cli.commands.RescanResp - 7, // 58: cc.arduino.cli.commands.ArduinoCore.UpdateIndex:output_type -> cc.arduino.cli.commands.UpdateIndexResp - 9, // 59: cc.arduino.cli.commands.ArduinoCore.UpdateLibrariesIndex:output_type -> cc.arduino.cli.commands.UpdateLibrariesIndexResp - 11, // 60: cc.arduino.cli.commands.ArduinoCore.UpdateCoreLibrariesIndex:output_type -> cc.arduino.cli.commands.UpdateCoreLibrariesIndexResp - 13, // 61: cc.arduino.cli.commands.ArduinoCore.Outdated:output_type -> cc.arduino.cli.commands.OutdatedResp - 15, // 62: cc.arduino.cli.commands.ArduinoCore.Upgrade:output_type -> cc.arduino.cli.commands.UpgradeResp - 17, // 63: cc.arduino.cli.commands.ArduinoCore.Version:output_type -> cc.arduino.cli.commands.VersionResp - 19, // 64: cc.arduino.cli.commands.ArduinoCore.LoadSketch:output_type -> cc.arduino.cli.commands.LoadSketchResp - 21, // 65: cc.arduino.cli.commands.ArduinoCore.ArchiveSketch:output_type -> cc.arduino.cli.commands.ArchiveSketchResp - 53, // 66: cc.arduino.cli.commands.ArduinoCore.BoardDetails:output_type -> cc.arduino.cli.commands.BoardDetailsResp - 54, // 67: cc.arduino.cli.commands.ArduinoCore.BoardAttach:output_type -> cc.arduino.cli.commands.BoardAttachResp - 55, // 68: cc.arduino.cli.commands.ArduinoCore.BoardList:output_type -> cc.arduino.cli.commands.BoardListResp - 56, // 69: cc.arduino.cli.commands.ArduinoCore.BoardListAll:output_type -> cc.arduino.cli.commands.BoardListAllResp - 57, // 70: cc.arduino.cli.commands.ArduinoCore.BoardSearch:output_type -> cc.arduino.cli.commands.BoardSearchResp - 58, // 71: cc.arduino.cli.commands.ArduinoCore.BoardListWatch:output_type -> cc.arduino.cli.commands.BoardListWatchResp - 59, // 72: cc.arduino.cli.commands.ArduinoCore.Compile:output_type -> cc.arduino.cli.commands.CompileResp - 60, // 73: cc.arduino.cli.commands.ArduinoCore.PlatformInstall:output_type -> cc.arduino.cli.commands.PlatformInstallResp - 61, // 74: cc.arduino.cli.commands.ArduinoCore.PlatformDownload:output_type -> cc.arduino.cli.commands.PlatformDownloadResp - 62, // 75: cc.arduino.cli.commands.ArduinoCore.PlatformUninstall:output_type -> cc.arduino.cli.commands.PlatformUninstallResp - 63, // 76: cc.arduino.cli.commands.ArduinoCore.PlatformUpgrade:output_type -> cc.arduino.cli.commands.PlatformUpgradeResp - 64, // 77: cc.arduino.cli.commands.ArduinoCore.Upload:output_type -> cc.arduino.cli.commands.UploadResp - 65, // 78: cc.arduino.cli.commands.ArduinoCore.UploadUsingProgrammer:output_type -> cc.arduino.cli.commands.UploadUsingProgrammerResp - 66, // 79: cc.arduino.cli.commands.ArduinoCore.ListProgrammersAvailableForUpload:output_type -> cc.arduino.cli.commands.ListProgrammersAvailableForUploadResp - 67, // 80: cc.arduino.cli.commands.ArduinoCore.BurnBootloader:output_type -> cc.arduino.cli.commands.BurnBootloaderResp - 68, // 81: cc.arduino.cli.commands.ArduinoCore.PlatformSearch:output_type -> cc.arduino.cli.commands.PlatformSearchResp - 69, // 82: cc.arduino.cli.commands.ArduinoCore.PlatformList:output_type -> cc.arduino.cli.commands.PlatformListResp - 70, // 83: cc.arduino.cli.commands.ArduinoCore.LibraryDownload:output_type -> cc.arduino.cli.commands.LibraryDownloadResp - 71, // 84: cc.arduino.cli.commands.ArduinoCore.LibraryInstall:output_type -> cc.arduino.cli.commands.LibraryInstallResp - 72, // 85: cc.arduino.cli.commands.ArduinoCore.ZipLibraryInstall:output_type -> cc.arduino.cli.commands.ZipLibraryInstallResp - 73, // 86: cc.arduino.cli.commands.ArduinoCore.GitLibraryInstall:output_type -> cc.arduino.cli.commands.GitLibraryInstallResp - 74, // 87: cc.arduino.cli.commands.ArduinoCore.LibraryUninstall:output_type -> cc.arduino.cli.commands.LibraryUninstallResp - 75, // 88: cc.arduino.cli.commands.ArduinoCore.LibraryUpgradeAll:output_type -> cc.arduino.cli.commands.LibraryUpgradeAllResp - 76, // 89: cc.arduino.cli.commands.ArduinoCore.LibraryResolveDependencies:output_type -> cc.arduino.cli.commands.LibraryResolveDependenciesResp - 77, // 90: cc.arduino.cli.commands.ArduinoCore.LibrarySearch:output_type -> cc.arduino.cli.commands.LibrarySearchResp - 78, // 91: cc.arduino.cli.commands.ArduinoCore.LibraryList:output_type -> cc.arduino.cli.commands.LibraryListResp - 55, // [55:92] is the sub-list for method output_type - 18, // [18:55] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_commands_commands_proto_init() } -func file_commands_commands_proto_init() { - if File_commands_commands_proto != nil { - return - } - file_commands_common_proto_init() - file_commands_board_proto_init() - file_commands_compile_proto_init() - file_commands_core_proto_init() - file_commands_upload_proto_init() - file_commands_lib_proto_init() - if !protoimpl.UnsafeEnabled { - file_commands_commands_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DestroyReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DestroyResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RescanReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RescanResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateIndexReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateIndexResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateLibrariesIndexReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateLibrariesIndexResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateCoreLibrariesIndexReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateCoreLibrariesIndexResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutdatedReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutdatedResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadSketchReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadSketchResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveSketchReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_commands_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveSketchResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_commands_proto_rawDesc, - NumEnums: 0, - NumMessages: 22, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_commands_commands_proto_goTypes, - DependencyIndexes: file_commands_commands_proto_depIdxs, - MessageInfos: file_commands_commands_proto_msgTypes, - }.Build() - File_commands_commands_proto = out.File - file_commands_commands_proto_rawDesc = nil - file_commands_commands_proto_goTypes = nil - file_commands_commands_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ArduinoCoreClient is the client API for ArduinoCore service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ArduinoCoreClient interface { - // Start a new instance of the Arduino Core Service - Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (ArduinoCore_InitClient, error) - // Destroy an instance of the Arduino Core Service - Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error) - // Rescan instance of the Arduino Core Service - Rescan(ctx context.Context, in *RescanReq, opts ...grpc.CallOption) (*RescanResp, error) - // Update package index of the Arduino Core Service - UpdateIndex(ctx context.Context, in *UpdateIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateIndexClient, error) - // Update libraries index - UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateLibrariesIndexClient, error) - // Update packages indexes for both Cores and Libraries - UpdateCoreLibrariesIndex(ctx context.Context, in *UpdateCoreLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateCoreLibrariesIndexClient, error) - // Outdated returns a message with a list of outdated Cores and Libraries - Outdated(ctx context.Context, in *OutdatedReq, opts ...grpc.CallOption) (*OutdatedResp, error) - // Upgrade both Cores and Libraries - Upgrade(ctx context.Context, in *UpgradeReq, opts ...grpc.CallOption) (ArduinoCore_UpgradeClient, error) - // Get the version of Arduino CLI in use. - Version(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error) - // Returns all files composing a Sketch - LoadSketch(ctx context.Context, in *LoadSketchReq, opts ...grpc.CallOption) (*LoadSketchResp, error) - // Creates a zip file containing all files of specified Sketch - ArchiveSketch(ctx context.Context, in *ArchiveSketchReq, opts ...grpc.CallOption) (*ArchiveSketchResp, error) - // Requests details about a board - BoardDetails(ctx context.Context, in *BoardDetailsReq, opts ...grpc.CallOption) (*BoardDetailsResp, error) - // Attach a board to a sketch. When the `fqbn` field of a request is not - // provided, the FQBN of the attached board will be used. - BoardAttach(ctx context.Context, in *BoardAttachReq, opts ...grpc.CallOption) (ArduinoCore_BoardAttachClient, error) - // List the boards currently connected to the computer. - BoardList(ctx context.Context, in *BoardListReq, opts ...grpc.CallOption) (*BoardListResp, error) - // List all the boards provided by installed platforms. - BoardListAll(ctx context.Context, in *BoardListAllReq, opts ...grpc.CallOption) (*BoardListAllResp, error) - // Search boards in installed and not installed Platforms. - BoardSearch(ctx context.Context, in *BoardSearchReq, opts ...grpc.CallOption) (*BoardSearchResp, error) - // List boards connection and disconnected events. - BoardListWatch(ctx context.Context, opts ...grpc.CallOption) (ArduinoCore_BoardListWatchClient, error) - // Compile an Arduino sketch. - Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) - // Download and install a platform and its tool dependencies. - PlatformInstall(ctx context.Context, in *PlatformInstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformInstallClient, error) - // Download a platform and its tool dependencies to the `staging/packages` - // subdirectory of the data directory. - PlatformDownload(ctx context.Context, in *PlatformDownloadReq, opts ...grpc.CallOption) (ArduinoCore_PlatformDownloadClient, error) - // Uninstall a platform as well as its tool dependencies that are not used by - // other installed platforms. - PlatformUninstall(ctx context.Context, in *PlatformUninstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUninstallClient, error) - // Upgrade an installed platform to the latest version. - PlatformUpgrade(ctx context.Context, in *PlatformUpgradeReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUpgradeClient, error) - // Upload a compiled sketch to a board. - Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (ArduinoCore_UploadClient, error) - // Upload a compiled sketch to a board using a programmer. - UploadUsingProgrammer(ctx context.Context, in *UploadUsingProgrammerReq, opts ...grpc.CallOption) (ArduinoCore_UploadUsingProgrammerClient, error) - // List programmers available for a board. - ListProgrammersAvailableForUpload(ctx context.Context, in *ListProgrammersAvailableForUploadReq, opts ...grpc.CallOption) (*ListProgrammersAvailableForUploadResp, error) - // Burn bootloader to a board. - BurnBootloader(ctx context.Context, in *BurnBootloaderReq, opts ...grpc.CallOption) (ArduinoCore_BurnBootloaderClient, error) - // Search for a platform in the platforms indexes. - PlatformSearch(ctx context.Context, in *PlatformSearchReq, opts ...grpc.CallOption) (*PlatformSearchResp, error) - // List all installed platforms. - PlatformList(ctx context.Context, in *PlatformListReq, opts ...grpc.CallOption) (*PlatformListResp, error) - // Download the archive file of an Arduino library in the libraries index to - // the staging directory. - LibraryDownload(ctx context.Context, in *LibraryDownloadReq, opts ...grpc.CallOption) (ArduinoCore_LibraryDownloadClient, error) - // Download and install an Arduino library from the libraries index. - LibraryInstall(ctx context.Context, in *LibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryInstallClient, error) - // Install a library from a Zip File - ZipLibraryInstall(ctx context.Context, in *ZipLibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_ZipLibraryInstallClient, error) - // Download and install a library from a git url - GitLibraryInstall(ctx context.Context, in *GitLibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_GitLibraryInstallClient, error) - // Uninstall an Arduino library. - LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) - // Upgrade all installed Arduino libraries to the newest version available. - LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) - // List the recursive dependencies of a library, as defined by the `depends` - // field of the library.properties files. - LibraryResolveDependencies(ctx context.Context, in *LibraryResolveDependenciesReq, opts ...grpc.CallOption) (*LibraryResolveDependenciesResp, error) - // Search the Arduino libraries index for libraries. - LibrarySearch(ctx context.Context, in *LibrarySearchReq, opts ...grpc.CallOption) (*LibrarySearchResp, error) - // List the installed libraries. - LibraryList(ctx context.Context, in *LibraryListReq, opts ...grpc.CallOption) (*LibraryListResp, error) -} - -type arduinoCoreClient struct { - cc grpc.ClientConnInterface -} - -func NewArduinoCoreClient(cc grpc.ClientConnInterface) ArduinoCoreClient { - return &arduinoCoreClient{cc} -} - -func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (ArduinoCore_InitClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.cli.commands.ArduinoCore/Init", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreInitClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_InitClient interface { - Recv() (*InitResp, error) - grpc.ClientStream -} - -type arduinoCoreInitClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreInitClient) Recv() (*InitResp, error) { - m := new(InitResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error) { - out := new(DestroyResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Destroy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...grpc.CallOption) (*RescanResp, error) { - out := new(RescanResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Rescan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) UpdateIndex(ctx context.Context, in *UpdateIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.cli.commands.ArduinoCore/UpdateIndex", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUpdateIndexClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UpdateIndexClient interface { - Recv() (*UpdateIndexResp, error) - grpc.ClientStream -} - -type arduinoCoreUpdateIndexClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUpdateIndexClient) Recv() (*UpdateIndexResp, error) { - m := new(UpdateIndexResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateLibrariesIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.cli.commands.ArduinoCore/UpdateLibrariesIndex", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUpdateLibrariesIndexClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UpdateLibrariesIndexClient interface { - Recv() (*UpdateLibrariesIndexResp, error) - grpc.ClientStream -} - -type arduinoCoreUpdateLibrariesIndexClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUpdateLibrariesIndexClient) Recv() (*UpdateLibrariesIndexResp, error) { - m := new(UpdateLibrariesIndexResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) UpdateCoreLibrariesIndex(ctx context.Context, in *UpdateCoreLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateCoreLibrariesIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.cli.commands.ArduinoCore/UpdateCoreLibrariesIndex", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUpdateCoreLibrariesIndexClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UpdateCoreLibrariesIndexClient interface { - Recv() (*UpdateCoreLibrariesIndexResp, error) - grpc.ClientStream -} - -type arduinoCoreUpdateCoreLibrariesIndexClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUpdateCoreLibrariesIndexClient) Recv() (*UpdateCoreLibrariesIndexResp, error) { - m := new(UpdateCoreLibrariesIndexResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) Outdated(ctx context.Context, in *OutdatedReq, opts ...grpc.CallOption) (*OutdatedResp, error) { - out := new(OutdatedResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Outdated", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) Upgrade(ctx context.Context, in *UpgradeReq, opts ...grpc.CallOption) (ArduinoCore_UpgradeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.cli.commands.ArduinoCore/Upgrade", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUpgradeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UpgradeClient interface { - Recv() (*UpgradeResp, error) - grpc.ClientStream -} - -type arduinoCoreUpgradeClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUpgradeClient) Recv() (*UpgradeResp, error) { - m := new(UpgradeResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) Version(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error) { - out := new(VersionResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Version", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) LoadSketch(ctx context.Context, in *LoadSketchReq, opts ...grpc.CallOption) (*LoadSketchResp, error) { - out := new(LoadSketchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LoadSketch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) ArchiveSketch(ctx context.Context, in *ArchiveSketchReq, opts ...grpc.CallOption) (*ArchiveSketchResp, error) { - out := new(ArchiveSketchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/ArchiveSketch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BoardDetails(ctx context.Context, in *BoardDetailsReq, opts ...grpc.CallOption) (*BoardDetailsResp, error) { - out := new(BoardDetailsResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardDetails", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BoardAttach(ctx context.Context, in *BoardAttachReq, opts ...grpc.CallOption) (ArduinoCore_BoardAttachClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.cli.commands.ArduinoCore/BoardAttach", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreBoardAttachClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_BoardAttachClient interface { - Recv() (*BoardAttachResp, error) - grpc.ClientStream -} - -type arduinoCoreBoardAttachClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreBoardAttachClient) Recv() (*BoardAttachResp, error) { - m := new(BoardAttachResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) BoardList(ctx context.Context, in *BoardListReq, opts ...grpc.CallOption) (*BoardListResp, error) { - out := new(BoardListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BoardListAll(ctx context.Context, in *BoardListAllReq, opts ...grpc.CallOption) (*BoardListAllResp, error) { - out := new(BoardListAllResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardListAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BoardSearch(ctx context.Context, in *BoardSearchReq, opts ...grpc.CallOption) (*BoardSearchResp, error) { - out := new(BoardSearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardSearch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BoardListWatch(ctx context.Context, opts ...grpc.CallOption) (ArduinoCore_BoardListWatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.cli.commands.ArduinoCore/BoardListWatch", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreBoardListWatchClient{stream} - return x, nil -} - -type ArduinoCore_BoardListWatchClient interface { - Send(*BoardListWatchReq) error - Recv() (*BoardListWatchResp, error) - grpc.ClientStream -} - -type arduinoCoreBoardListWatchClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreBoardListWatchClient) Send(m *BoardListWatchReq) error { - return x.ClientStream.SendMsg(m) -} - -func (x *arduinoCoreBoardListWatchClient) Recv() (*BoardListWatchResp, error) { - m := new(BoardListWatchResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.cli.commands.ArduinoCore/Compile", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreCompileClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_CompileClient interface { - Recv() (*CompileResp, error) - grpc.ClientStream -} - -type arduinoCoreCompileClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreCompileClient) Recv() (*CompileResp, error) { - m := new(CompileResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) PlatformInstall(ctx context.Context, in *PlatformInstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.cli.commands.ArduinoCore/PlatformInstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCorePlatformInstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_PlatformInstallClient interface { - Recv() (*PlatformInstallResp, error) - grpc.ClientStream -} - -type arduinoCorePlatformInstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCorePlatformInstallClient) Recv() (*PlatformInstallResp, error) { - m := new(PlatformInstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) PlatformDownload(ctx context.Context, in *PlatformDownloadReq, opts ...grpc.CallOption) (ArduinoCore_PlatformDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.cli.commands.ArduinoCore/PlatformDownload", opts...) - if err != nil { - return nil, err - } - x := &arduinoCorePlatformDownloadClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_PlatformDownloadClient interface { - Recv() (*PlatformDownloadResp, error) - grpc.ClientStream -} - -type arduinoCorePlatformDownloadClient struct { - grpc.ClientStream -} - -func (x *arduinoCorePlatformDownloadClient) Recv() (*PlatformDownloadResp, error) { - m := new(PlatformDownloadResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) PlatformUninstall(ctx context.Context, in *PlatformUninstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.cli.commands.ArduinoCore/PlatformUninstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCorePlatformUninstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_PlatformUninstallClient interface { - Recv() (*PlatformUninstallResp, error) - grpc.ClientStream -} - -type arduinoCorePlatformUninstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCorePlatformUninstallClient) Recv() (*PlatformUninstallResp, error) { - m := new(PlatformUninstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) PlatformUpgrade(ctx context.Context, in *PlatformUpgradeReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUpgradeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[11], "/cc.arduino.cli.commands.ArduinoCore/PlatformUpgrade", opts...) - if err != nil { - return nil, err - } - x := &arduinoCorePlatformUpgradeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_PlatformUpgradeClient interface { - Recv() (*PlatformUpgradeResp, error) - grpc.ClientStream -} - -type arduinoCorePlatformUpgradeClient struct { - grpc.ClientStream -} - -func (x *arduinoCorePlatformUpgradeClient) Recv() (*PlatformUpgradeResp, error) { - m := new(PlatformUpgradeResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (ArduinoCore_UploadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[12], "/cc.arduino.cli.commands.ArduinoCore/Upload", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUploadClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UploadClient interface { - Recv() (*UploadResp, error) - grpc.ClientStream -} - -type arduinoCoreUploadClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUploadClient) Recv() (*UploadResp, error) { - m := new(UploadResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) UploadUsingProgrammer(ctx context.Context, in *UploadUsingProgrammerReq, opts ...grpc.CallOption) (ArduinoCore_UploadUsingProgrammerClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[13], "/cc.arduino.cli.commands.ArduinoCore/UploadUsingProgrammer", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreUploadUsingProgrammerClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_UploadUsingProgrammerClient interface { - Recv() (*UploadUsingProgrammerResp, error) - grpc.ClientStream -} - -type arduinoCoreUploadUsingProgrammerClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreUploadUsingProgrammerClient) Recv() (*UploadUsingProgrammerResp, error) { - m := new(UploadUsingProgrammerResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) ListProgrammersAvailableForUpload(ctx context.Context, in *ListProgrammersAvailableForUploadReq, opts ...grpc.CallOption) (*ListProgrammersAvailableForUploadResp, error) { - out := new(ListProgrammersAvailableForUploadResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/ListProgrammersAvailableForUpload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) BurnBootloader(ctx context.Context, in *BurnBootloaderReq, opts ...grpc.CallOption) (ArduinoCore_BurnBootloaderClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[14], "/cc.arduino.cli.commands.ArduinoCore/BurnBootloader", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreBurnBootloaderClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_BurnBootloaderClient interface { - Recv() (*BurnBootloaderResp, error) - grpc.ClientStream -} - -type arduinoCoreBurnBootloaderClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreBurnBootloaderClient) Recv() (*BurnBootloaderResp, error) { - m := new(BurnBootloaderResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) PlatformSearch(ctx context.Context, in *PlatformSearchReq, opts ...grpc.CallOption) (*PlatformSearchResp, error) { - out := new(PlatformSearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/PlatformSearch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListReq, opts ...grpc.CallOption) (*PlatformListResp, error) { - out := new(PlatformListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/PlatformList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) LibraryDownload(ctx context.Context, in *LibraryDownloadReq, opts ...grpc.CallOption) (ArduinoCore_LibraryDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[15], "/cc.arduino.cli.commands.ArduinoCore/LibraryDownload", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreLibraryDownloadClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_LibraryDownloadClient interface { - Recv() (*LibraryDownloadResp, error) - grpc.ClientStream -} - -type arduinoCoreLibraryDownloadClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreLibraryDownloadClient) Recv() (*LibraryDownloadResp, error) { - m := new(LibraryDownloadResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) LibraryInstall(ctx context.Context, in *LibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[16], "/cc.arduino.cli.commands.ArduinoCore/LibraryInstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreLibraryInstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_LibraryInstallClient interface { - Recv() (*LibraryInstallResp, error) - grpc.ClientStream -} - -type arduinoCoreLibraryInstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreLibraryInstallClient) Recv() (*LibraryInstallResp, error) { - m := new(LibraryInstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) ZipLibraryInstall(ctx context.Context, in *ZipLibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_ZipLibraryInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[17], "/cc.arduino.cli.commands.ArduinoCore/ZipLibraryInstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreZipLibraryInstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_ZipLibraryInstallClient interface { - Recv() (*ZipLibraryInstallResp, error) - grpc.ClientStream -} - -type arduinoCoreZipLibraryInstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreZipLibraryInstallClient) Recv() (*ZipLibraryInstallResp, error) { - m := new(ZipLibraryInstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) GitLibraryInstall(ctx context.Context, in *GitLibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_GitLibraryInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[18], "/cc.arduino.cli.commands.ArduinoCore/GitLibraryInstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreGitLibraryInstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_GitLibraryInstallClient interface { - Recv() (*GitLibraryInstallResp, error) - grpc.ClientStream -} - -type arduinoCoreGitLibraryInstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreGitLibraryInstallClient) Recv() (*GitLibraryInstallResp, error) { - m := new(GitLibraryInstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[19], "/cc.arduino.cli.commands.ArduinoCore/LibraryUninstall", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreLibraryUninstallClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_LibraryUninstallClient interface { - Recv() (*LibraryUninstallResp, error) - grpc.ClientStream -} - -type arduinoCoreLibraryUninstallClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreLibraryUninstallClient) Recv() (*LibraryUninstallResp, error) { - m := new(LibraryUninstallResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[20], "/cc.arduino.cli.commands.ArduinoCore/LibraryUpgradeAll", opts...) - if err != nil { - return nil, err - } - x := &arduinoCoreLibraryUpgradeAllClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArduinoCore_LibraryUpgradeAllClient interface { - Recv() (*LibraryUpgradeAllResp, error) - grpc.ClientStream -} - -type arduinoCoreLibraryUpgradeAllClient struct { - grpc.ClientStream -} - -func (x *arduinoCoreLibraryUpgradeAllClient) Recv() (*LibraryUpgradeAllResp, error) { - m := new(LibraryUpgradeAllResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *arduinoCoreClient) LibraryResolveDependencies(ctx context.Context, in *LibraryResolveDependenciesReq, opts ...grpc.CallOption) (*LibraryResolveDependenciesResp, error) { - out := new(LibraryResolveDependenciesResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LibraryResolveDependencies", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) LibrarySearch(ctx context.Context, in *LibrarySearchReq, opts ...grpc.CallOption) (*LibrarySearchResp, error) { - out := new(LibrarySearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LibrarySearch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *arduinoCoreClient) LibraryList(ctx context.Context, in *LibraryListReq, opts ...grpc.CallOption) (*LibraryListResp, error) { - out := new(LibraryListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LibraryList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ArduinoCoreServer is the server API for ArduinoCore service. -type ArduinoCoreServer interface { - // Start a new instance of the Arduino Core Service - Init(*InitReq, ArduinoCore_InitServer) error - // Destroy an instance of the Arduino Core Service - Destroy(context.Context, *DestroyReq) (*DestroyResp, error) - // Rescan instance of the Arduino Core Service - Rescan(context.Context, *RescanReq) (*RescanResp, error) - // Update package index of the Arduino Core Service - UpdateIndex(*UpdateIndexReq, ArduinoCore_UpdateIndexServer) error - // Update libraries index - UpdateLibrariesIndex(*UpdateLibrariesIndexReq, ArduinoCore_UpdateLibrariesIndexServer) error - // Update packages indexes for both Cores and Libraries - UpdateCoreLibrariesIndex(*UpdateCoreLibrariesIndexReq, ArduinoCore_UpdateCoreLibrariesIndexServer) error - // Outdated returns a message with a list of outdated Cores and Libraries - Outdated(context.Context, *OutdatedReq) (*OutdatedResp, error) - // Upgrade both Cores and Libraries - Upgrade(*UpgradeReq, ArduinoCore_UpgradeServer) error - // Get the version of Arduino CLI in use. - Version(context.Context, *VersionReq) (*VersionResp, error) - // Returns all files composing a Sketch - LoadSketch(context.Context, *LoadSketchReq) (*LoadSketchResp, error) - // Creates a zip file containing all files of specified Sketch - ArchiveSketch(context.Context, *ArchiveSketchReq) (*ArchiveSketchResp, error) - // Requests details about a board - BoardDetails(context.Context, *BoardDetailsReq) (*BoardDetailsResp, error) - // Attach a board to a sketch. When the `fqbn` field of a request is not - // provided, the FQBN of the attached board will be used. - BoardAttach(*BoardAttachReq, ArduinoCore_BoardAttachServer) error - // List the boards currently connected to the computer. - BoardList(context.Context, *BoardListReq) (*BoardListResp, error) - // List all the boards provided by installed platforms. - BoardListAll(context.Context, *BoardListAllReq) (*BoardListAllResp, error) - // Search boards in installed and not installed Platforms. - BoardSearch(context.Context, *BoardSearchReq) (*BoardSearchResp, error) - // List boards connection and disconnected events. - BoardListWatch(ArduinoCore_BoardListWatchServer) error - // Compile an Arduino sketch. - Compile(*CompileReq, ArduinoCore_CompileServer) error - // Download and install a platform and its tool dependencies. - PlatformInstall(*PlatformInstallReq, ArduinoCore_PlatformInstallServer) error - // Download a platform and its tool dependencies to the `staging/packages` - // subdirectory of the data directory. - PlatformDownload(*PlatformDownloadReq, ArduinoCore_PlatformDownloadServer) error - // Uninstall a platform as well as its tool dependencies that are not used by - // other installed platforms. - PlatformUninstall(*PlatformUninstallReq, ArduinoCore_PlatformUninstallServer) error - // Upgrade an installed platform to the latest version. - PlatformUpgrade(*PlatformUpgradeReq, ArduinoCore_PlatformUpgradeServer) error - // Upload a compiled sketch to a board. - Upload(*UploadReq, ArduinoCore_UploadServer) error - // Upload a compiled sketch to a board using a programmer. - UploadUsingProgrammer(*UploadUsingProgrammerReq, ArduinoCore_UploadUsingProgrammerServer) error - // List programmers available for a board. - ListProgrammersAvailableForUpload(context.Context, *ListProgrammersAvailableForUploadReq) (*ListProgrammersAvailableForUploadResp, error) - // Burn bootloader to a board. - BurnBootloader(*BurnBootloaderReq, ArduinoCore_BurnBootloaderServer) error - // Search for a platform in the platforms indexes. - PlatformSearch(context.Context, *PlatformSearchReq) (*PlatformSearchResp, error) - // List all installed platforms. - PlatformList(context.Context, *PlatformListReq) (*PlatformListResp, error) - // Download the archive file of an Arduino library in the libraries index to - // the staging directory. - LibraryDownload(*LibraryDownloadReq, ArduinoCore_LibraryDownloadServer) error - // Download and install an Arduino library from the libraries index. - LibraryInstall(*LibraryInstallReq, ArduinoCore_LibraryInstallServer) error - // Install a library from a Zip File - ZipLibraryInstall(*ZipLibraryInstallReq, ArduinoCore_ZipLibraryInstallServer) error - // Download and install a library from a git url - GitLibraryInstall(*GitLibraryInstallReq, ArduinoCore_GitLibraryInstallServer) error - // Uninstall an Arduino library. - LibraryUninstall(*LibraryUninstallReq, ArduinoCore_LibraryUninstallServer) error - // Upgrade all installed Arduino libraries to the newest version available. - LibraryUpgradeAll(*LibraryUpgradeAllReq, ArduinoCore_LibraryUpgradeAllServer) error - // List the recursive dependencies of a library, as defined by the `depends` - // field of the library.properties files. - LibraryResolveDependencies(context.Context, *LibraryResolveDependenciesReq) (*LibraryResolveDependenciesResp, error) - // Search the Arduino libraries index for libraries. - LibrarySearch(context.Context, *LibrarySearchReq) (*LibrarySearchResp, error) - // List the installed libraries. - LibraryList(context.Context, *LibraryListReq) (*LibraryListResp, error) -} - -// UnimplementedArduinoCoreServer can be embedded to have forward compatible implementations. -type UnimplementedArduinoCoreServer struct { -} - -func (*UnimplementedArduinoCoreServer) Init(*InitReq, ArduinoCore_InitServer) error { - return status.Errorf(codes.Unimplemented, "method Init not implemented") -} -func (*UnimplementedArduinoCoreServer) Destroy(context.Context, *DestroyReq) (*DestroyResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Destroy not implemented") -} -func (*UnimplementedArduinoCoreServer) Rescan(context.Context, *RescanReq) (*RescanResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Rescan not implemented") -} -func (*UnimplementedArduinoCoreServer) UpdateIndex(*UpdateIndexReq, ArduinoCore_UpdateIndexServer) error { - return status.Errorf(codes.Unimplemented, "method UpdateIndex not implemented") -} -func (*UnimplementedArduinoCoreServer) UpdateLibrariesIndex(*UpdateLibrariesIndexReq, ArduinoCore_UpdateLibrariesIndexServer) error { - return status.Errorf(codes.Unimplemented, "method UpdateLibrariesIndex not implemented") -} -func (*UnimplementedArduinoCoreServer) UpdateCoreLibrariesIndex(*UpdateCoreLibrariesIndexReq, ArduinoCore_UpdateCoreLibrariesIndexServer) error { - return status.Errorf(codes.Unimplemented, "method UpdateCoreLibrariesIndex not implemented") -} -func (*UnimplementedArduinoCoreServer) Outdated(context.Context, *OutdatedReq) (*OutdatedResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Outdated not implemented") -} -func (*UnimplementedArduinoCoreServer) Upgrade(*UpgradeReq, ArduinoCore_UpgradeServer) error { - return status.Errorf(codes.Unimplemented, "method Upgrade not implemented") -} -func (*UnimplementedArduinoCoreServer) Version(context.Context, *VersionReq) (*VersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") -} -func (*UnimplementedArduinoCoreServer) LoadSketch(context.Context, *LoadSketchReq) (*LoadSketchResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadSketch not implemented") -} -func (*UnimplementedArduinoCoreServer) ArchiveSketch(context.Context, *ArchiveSketchReq) (*ArchiveSketchResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ArchiveSketch not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardDetails(context.Context, *BoardDetailsReq) (*BoardDetailsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoardDetails not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardAttach(*BoardAttachReq, ArduinoCore_BoardAttachServer) error { - return status.Errorf(codes.Unimplemented, "method BoardAttach not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardList(context.Context, *BoardListReq) (*BoardListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoardList not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardListAll(context.Context, *BoardListAllReq) (*BoardListAllResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoardListAll not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardSearch(context.Context, *BoardSearchReq) (*BoardSearchResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoardSearch not implemented") -} -func (*UnimplementedArduinoCoreServer) BoardListWatch(ArduinoCore_BoardListWatchServer) error { - return status.Errorf(codes.Unimplemented, "method BoardListWatch not implemented") -} -func (*UnimplementedArduinoCoreServer) Compile(*CompileReq, ArduinoCore_CompileServer) error { - return status.Errorf(codes.Unimplemented, "method Compile not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformInstall(*PlatformInstallReq, ArduinoCore_PlatformInstallServer) error { - return status.Errorf(codes.Unimplemented, "method PlatformInstall not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformDownload(*PlatformDownloadReq, ArduinoCore_PlatformDownloadServer) error { - return status.Errorf(codes.Unimplemented, "method PlatformDownload not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformUninstall(*PlatformUninstallReq, ArduinoCore_PlatformUninstallServer) error { - return status.Errorf(codes.Unimplemented, "method PlatformUninstall not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformUpgrade(*PlatformUpgradeReq, ArduinoCore_PlatformUpgradeServer) error { - return status.Errorf(codes.Unimplemented, "method PlatformUpgrade not implemented") -} -func (*UnimplementedArduinoCoreServer) Upload(*UploadReq, ArduinoCore_UploadServer) error { - return status.Errorf(codes.Unimplemented, "method Upload not implemented") -} -func (*UnimplementedArduinoCoreServer) UploadUsingProgrammer(*UploadUsingProgrammerReq, ArduinoCore_UploadUsingProgrammerServer) error { - return status.Errorf(codes.Unimplemented, "method UploadUsingProgrammer not implemented") -} -func (*UnimplementedArduinoCoreServer) ListProgrammersAvailableForUpload(context.Context, *ListProgrammersAvailableForUploadReq) (*ListProgrammersAvailableForUploadResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListProgrammersAvailableForUpload not implemented") -} -func (*UnimplementedArduinoCoreServer) BurnBootloader(*BurnBootloaderReq, ArduinoCore_BurnBootloaderServer) error { - return status.Errorf(codes.Unimplemented, "method BurnBootloader not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformSearch(context.Context, *PlatformSearchReq) (*PlatformSearchResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlatformSearch not implemented") -} -func (*UnimplementedArduinoCoreServer) PlatformList(context.Context, *PlatformListReq) (*PlatformListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlatformList not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryDownload(*LibraryDownloadReq, ArduinoCore_LibraryDownloadServer) error { - return status.Errorf(codes.Unimplemented, "method LibraryDownload not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryInstall(*LibraryInstallReq, ArduinoCore_LibraryInstallServer) error { - return status.Errorf(codes.Unimplemented, "method LibraryInstall not implemented") -} -func (*UnimplementedArduinoCoreServer) ZipLibraryInstall(*ZipLibraryInstallReq, ArduinoCore_ZipLibraryInstallServer) error { - return status.Errorf(codes.Unimplemented, "method ZipLibraryInstall not implemented") -} -func (*UnimplementedArduinoCoreServer) GitLibraryInstall(*GitLibraryInstallReq, ArduinoCore_GitLibraryInstallServer) error { - return status.Errorf(codes.Unimplemented, "method GitLibraryInstall not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryUninstall(*LibraryUninstallReq, ArduinoCore_LibraryUninstallServer) error { - return status.Errorf(codes.Unimplemented, "method LibraryUninstall not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryUpgradeAll(*LibraryUpgradeAllReq, ArduinoCore_LibraryUpgradeAllServer) error { - return status.Errorf(codes.Unimplemented, "method LibraryUpgradeAll not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryResolveDependencies(context.Context, *LibraryResolveDependenciesReq) (*LibraryResolveDependenciesResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method LibraryResolveDependencies not implemented") -} -func (*UnimplementedArduinoCoreServer) LibrarySearch(context.Context, *LibrarySearchReq) (*LibrarySearchResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method LibrarySearch not implemented") -} -func (*UnimplementedArduinoCoreServer) LibraryList(context.Context, *LibraryListReq) (*LibraryListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method LibraryList not implemented") -} - -func RegisterArduinoCoreServer(s *grpc.Server, srv ArduinoCoreServer) { - s.RegisterService(&_ArduinoCore_serviceDesc, srv) -} - -func _ArduinoCore_Init_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InitReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).Init(m, &arduinoCoreInitServer{stream}) -} - -type ArduinoCore_InitServer interface { - Send(*InitResp) error - grpc.ServerStream -} - -type arduinoCoreInitServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreInitServer) Send(m *InitResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_Destroy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DestroyReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).Destroy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Destroy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).Destroy(ctx, req.(*DestroyReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_Rescan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RescanReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).Rescan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Rescan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).Rescan(ctx, req.(*RescanReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_UpdateIndex_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UpdateIndexReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).UpdateIndex(m, &arduinoCoreUpdateIndexServer{stream}) -} - -type ArduinoCore_UpdateIndexServer interface { - Send(*UpdateIndexResp) error - grpc.ServerStream -} - -type arduinoCoreUpdateIndexServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUpdateIndexServer) Send(m *UpdateIndexResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_UpdateLibrariesIndex_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UpdateLibrariesIndexReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).UpdateLibrariesIndex(m, &arduinoCoreUpdateLibrariesIndexServer{stream}) -} - -type ArduinoCore_UpdateLibrariesIndexServer interface { - Send(*UpdateLibrariesIndexResp) error - grpc.ServerStream -} - -type arduinoCoreUpdateLibrariesIndexServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUpdateLibrariesIndexServer) Send(m *UpdateLibrariesIndexResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_UpdateCoreLibrariesIndex_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UpdateCoreLibrariesIndexReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).UpdateCoreLibrariesIndex(m, &arduinoCoreUpdateCoreLibrariesIndexServer{stream}) -} - -type ArduinoCore_UpdateCoreLibrariesIndexServer interface { - Send(*UpdateCoreLibrariesIndexResp) error - grpc.ServerStream -} - -type arduinoCoreUpdateCoreLibrariesIndexServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUpdateCoreLibrariesIndexServer) Send(m *UpdateCoreLibrariesIndexResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_Outdated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OutdatedReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).Outdated(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Outdated", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).Outdated(ctx, req.(*OutdatedReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_Upgrade_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UpgradeReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).Upgrade(m, &arduinoCoreUpgradeServer{stream}) -} - -type ArduinoCore_UpgradeServer interface { - Send(*UpgradeResp) error - grpc.ServerStream -} - -type arduinoCoreUpgradeServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUpgradeServer) Send(m *UpgradeResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).Version(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Version", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).Version(ctx, req.(*VersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_LoadSketch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadSketchReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).LoadSketch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LoadSketch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).LoadSketch(ctx, req.(*LoadSketchReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_ArchiveSketch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ArchiveSketchReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).ArchiveSketch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/ArchiveSketch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).ArchiveSketch(ctx, req.(*ArchiveSketchReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BoardDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BoardDetailsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).BoardDetails(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardDetails", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).BoardDetails(ctx, req.(*BoardDetailsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BoardAttach_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(BoardAttachReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).BoardAttach(m, &arduinoCoreBoardAttachServer{stream}) -} - -type ArduinoCore_BoardAttachServer interface { - Send(*BoardAttachResp) error - grpc.ServerStream -} - -type arduinoCoreBoardAttachServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreBoardAttachServer) Send(m *BoardAttachResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_BoardList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BoardListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).BoardList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).BoardList(ctx, req.(*BoardListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BoardListAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BoardListAllReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).BoardListAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardListAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).BoardListAll(ctx, req.(*BoardListAllReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BoardSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BoardSearchReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).BoardSearch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardSearch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).BoardSearch(ctx, req.(*BoardSearchReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BoardListWatch_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ArduinoCoreServer).BoardListWatch(&arduinoCoreBoardListWatchServer{stream}) -} - -type ArduinoCore_BoardListWatchServer interface { - Send(*BoardListWatchResp) error - Recv() (*BoardListWatchReq, error) - grpc.ServerStream -} - -type arduinoCoreBoardListWatchServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreBoardListWatchServer) Send(m *BoardListWatchResp) error { - return x.ServerStream.SendMsg(m) -} - -func (x *arduinoCoreBoardListWatchServer) Recv() (*BoardListWatchReq, error) { - m := new(BoardListWatchReq) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _ArduinoCore_Compile_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CompileReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).Compile(m, &arduinoCoreCompileServer{stream}) -} - -type ArduinoCore_CompileServer interface { - Send(*CompileResp) error - grpc.ServerStream -} - -type arduinoCoreCompileServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreCompileServer) Send(m *CompileResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_PlatformInstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PlatformInstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).PlatformInstall(m, &arduinoCorePlatformInstallServer{stream}) -} - -type ArduinoCore_PlatformInstallServer interface { - Send(*PlatformInstallResp) error - grpc.ServerStream -} - -type arduinoCorePlatformInstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCorePlatformInstallServer) Send(m *PlatformInstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_PlatformDownload_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PlatformDownloadReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).PlatformDownload(m, &arduinoCorePlatformDownloadServer{stream}) -} - -type ArduinoCore_PlatformDownloadServer interface { - Send(*PlatformDownloadResp) error - grpc.ServerStream -} - -type arduinoCorePlatformDownloadServer struct { - grpc.ServerStream -} - -func (x *arduinoCorePlatformDownloadServer) Send(m *PlatformDownloadResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_PlatformUninstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PlatformUninstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).PlatformUninstall(m, &arduinoCorePlatformUninstallServer{stream}) -} - -type ArduinoCore_PlatformUninstallServer interface { - Send(*PlatformUninstallResp) error - grpc.ServerStream -} - -type arduinoCorePlatformUninstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCorePlatformUninstallServer) Send(m *PlatformUninstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_PlatformUpgrade_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PlatformUpgradeReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).PlatformUpgrade(m, &arduinoCorePlatformUpgradeServer{stream}) -} - -type ArduinoCore_PlatformUpgradeServer interface { - Send(*PlatformUpgradeResp) error - grpc.ServerStream -} - -type arduinoCorePlatformUpgradeServer struct { - grpc.ServerStream -} - -func (x *arduinoCorePlatformUpgradeServer) Send(m *PlatformUpgradeResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_Upload_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UploadReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).Upload(m, &arduinoCoreUploadServer{stream}) -} - -type ArduinoCore_UploadServer interface { - Send(*UploadResp) error - grpc.ServerStream -} - -type arduinoCoreUploadServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUploadServer) Send(m *UploadResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_UploadUsingProgrammer_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UploadUsingProgrammerReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).UploadUsingProgrammer(m, &arduinoCoreUploadUsingProgrammerServer{stream}) -} - -type ArduinoCore_UploadUsingProgrammerServer interface { - Send(*UploadUsingProgrammerResp) error - grpc.ServerStream -} - -type arduinoCoreUploadUsingProgrammerServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreUploadUsingProgrammerServer) Send(m *UploadUsingProgrammerResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_ListProgrammersAvailableForUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListProgrammersAvailableForUploadReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).ListProgrammersAvailableForUpload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/ListProgrammersAvailableForUpload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).ListProgrammersAvailableForUpload(ctx, req.(*ListProgrammersAvailableForUploadReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_BurnBootloader_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(BurnBootloaderReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).BurnBootloader(m, &arduinoCoreBurnBootloaderServer{stream}) -} - -type ArduinoCore_BurnBootloaderServer interface { - Send(*BurnBootloaderResp) error - grpc.ServerStream -} - -type arduinoCoreBurnBootloaderServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreBurnBootloaderServer) Send(m *BurnBootloaderResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_PlatformSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlatformSearchReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).PlatformSearch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/PlatformSearch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).PlatformSearch(ctx, req.(*PlatformSearchReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_PlatformList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlatformListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).PlatformList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/PlatformList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).PlatformList(ctx, req.(*PlatformListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_LibraryDownload_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LibraryDownloadReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).LibraryDownload(m, &arduinoCoreLibraryDownloadServer{stream}) -} - -type ArduinoCore_LibraryDownloadServer interface { - Send(*LibraryDownloadResp) error - grpc.ServerStream -} - -type arduinoCoreLibraryDownloadServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreLibraryDownloadServer) Send(m *LibraryDownloadResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_LibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LibraryInstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).LibraryInstall(m, &arduinoCoreLibraryInstallServer{stream}) -} - -type ArduinoCore_LibraryInstallServer interface { - Send(*LibraryInstallResp) error - grpc.ServerStream -} - -type arduinoCoreLibraryInstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreLibraryInstallServer) Send(m *LibraryInstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_ZipLibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ZipLibraryInstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).ZipLibraryInstall(m, &arduinoCoreZipLibraryInstallServer{stream}) -} - -type ArduinoCore_ZipLibraryInstallServer interface { - Send(*ZipLibraryInstallResp) error - grpc.ServerStream -} - -type arduinoCoreZipLibraryInstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreZipLibraryInstallServer) Send(m *ZipLibraryInstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_GitLibraryInstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GitLibraryInstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).GitLibraryInstall(m, &arduinoCoreGitLibraryInstallServer{stream}) -} - -type ArduinoCore_GitLibraryInstallServer interface { - Send(*GitLibraryInstallResp) error - grpc.ServerStream -} - -type arduinoCoreGitLibraryInstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreGitLibraryInstallServer) Send(m *GitLibraryInstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_LibraryUninstall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LibraryUninstallReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).LibraryUninstall(m, &arduinoCoreLibraryUninstallServer{stream}) -} - -type ArduinoCore_LibraryUninstallServer interface { - Send(*LibraryUninstallResp) error - grpc.ServerStream -} - -type arduinoCoreLibraryUninstallServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreLibraryUninstallServer) Send(m *LibraryUninstallResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_LibraryUpgradeAll_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LibraryUpgradeAllReq) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ArduinoCoreServer).LibraryUpgradeAll(m, &arduinoCoreLibraryUpgradeAllServer{stream}) -} - -type ArduinoCore_LibraryUpgradeAllServer interface { - Send(*LibraryUpgradeAllResp) error - grpc.ServerStream -} - -type arduinoCoreLibraryUpgradeAllServer struct { - grpc.ServerStream -} - -func (x *arduinoCoreLibraryUpgradeAllServer) Send(m *LibraryUpgradeAllResp) error { - return x.ServerStream.SendMsg(m) -} - -func _ArduinoCore_LibraryResolveDependencies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LibraryResolveDependenciesReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).LibraryResolveDependencies(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LibraryResolveDependencies", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).LibraryResolveDependencies(ctx, req.(*LibraryResolveDependenciesReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_LibrarySearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LibrarySearchReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).LibrarySearch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LibrarySearch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).LibrarySearch(ctx, req.(*LibrarySearchReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArduinoCore_LibraryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LibraryListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArduinoCoreServer).LibraryList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LibraryList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArduinoCoreServer).LibraryList(ctx, req.(*LibraryListReq)) - } - return interceptor(ctx, in, info, handler) -} - -var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cc.arduino.cli.commands.ArduinoCore", - HandlerType: (*ArduinoCoreServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Destroy", - Handler: _ArduinoCore_Destroy_Handler, - }, - { - MethodName: "Rescan", - Handler: _ArduinoCore_Rescan_Handler, - }, - { - MethodName: "Outdated", - Handler: _ArduinoCore_Outdated_Handler, - }, - { - MethodName: "Version", - Handler: _ArduinoCore_Version_Handler, - }, - { - MethodName: "LoadSketch", - Handler: _ArduinoCore_LoadSketch_Handler, - }, - { - MethodName: "ArchiveSketch", - Handler: _ArduinoCore_ArchiveSketch_Handler, - }, - { - MethodName: "BoardDetails", - Handler: _ArduinoCore_BoardDetails_Handler, - }, - { - MethodName: "BoardList", - Handler: _ArduinoCore_BoardList_Handler, - }, - { - MethodName: "BoardListAll", - Handler: _ArduinoCore_BoardListAll_Handler, - }, - { - MethodName: "BoardSearch", - Handler: _ArduinoCore_BoardSearch_Handler, - }, - { - MethodName: "ListProgrammersAvailableForUpload", - Handler: _ArduinoCore_ListProgrammersAvailableForUpload_Handler, - }, - { - MethodName: "PlatformSearch", - Handler: _ArduinoCore_PlatformSearch_Handler, - }, - { - MethodName: "PlatformList", - Handler: _ArduinoCore_PlatformList_Handler, - }, - { - MethodName: "LibraryResolveDependencies", - Handler: _ArduinoCore_LibraryResolveDependencies_Handler, - }, - { - MethodName: "LibrarySearch", - Handler: _ArduinoCore_LibrarySearch_Handler, - }, - { - MethodName: "LibraryList", - Handler: _ArduinoCore_LibraryList_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Init", - Handler: _ArduinoCore_Init_Handler, - ServerStreams: true, - }, - { - StreamName: "UpdateIndex", - Handler: _ArduinoCore_UpdateIndex_Handler, - ServerStreams: true, - }, - { - StreamName: "UpdateLibrariesIndex", - Handler: _ArduinoCore_UpdateLibrariesIndex_Handler, - ServerStreams: true, - }, - { - StreamName: "UpdateCoreLibrariesIndex", - Handler: _ArduinoCore_UpdateCoreLibrariesIndex_Handler, - ServerStreams: true, - }, - { - StreamName: "Upgrade", - Handler: _ArduinoCore_Upgrade_Handler, - ServerStreams: true, - }, - { - StreamName: "BoardAttach", - Handler: _ArduinoCore_BoardAttach_Handler, - ServerStreams: true, - }, - { - StreamName: "BoardListWatch", - Handler: _ArduinoCore_BoardListWatch_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "Compile", - Handler: _ArduinoCore_Compile_Handler, - ServerStreams: true, - }, - { - StreamName: "PlatformInstall", - Handler: _ArduinoCore_PlatformInstall_Handler, - ServerStreams: true, - }, - { - StreamName: "PlatformDownload", - Handler: _ArduinoCore_PlatformDownload_Handler, - ServerStreams: true, - }, - { - StreamName: "PlatformUninstall", - Handler: _ArduinoCore_PlatformUninstall_Handler, - ServerStreams: true, - }, - { - StreamName: "PlatformUpgrade", - Handler: _ArduinoCore_PlatformUpgrade_Handler, - ServerStreams: true, - }, - { - StreamName: "Upload", - Handler: _ArduinoCore_Upload_Handler, - ServerStreams: true, - }, - { - StreamName: "UploadUsingProgrammer", - Handler: _ArduinoCore_UploadUsingProgrammer_Handler, - ServerStreams: true, - }, - { - StreamName: "BurnBootloader", - Handler: _ArduinoCore_BurnBootloader_Handler, - ServerStreams: true, - }, - { - StreamName: "LibraryDownload", - Handler: _ArduinoCore_LibraryDownload_Handler, - ServerStreams: true, - }, - { - StreamName: "LibraryInstall", - Handler: _ArduinoCore_LibraryInstall_Handler, - ServerStreams: true, - }, - { - StreamName: "ZipLibraryInstall", - Handler: _ArduinoCore_ZipLibraryInstall_Handler, - ServerStreams: true, - }, - { - StreamName: "GitLibraryInstall", - Handler: _ArduinoCore_GitLibraryInstall_Handler, - ServerStreams: true, - }, - { - StreamName: "LibraryUninstall", - Handler: _ArduinoCore_LibraryUninstall_Handler, - ServerStreams: true, - }, - { - StreamName: "LibraryUpgradeAll", - Handler: _ArduinoCore_LibraryUpgradeAll_Handler, - ServerStreams: true, - }, - }, - Metadata: "commands/commands.proto", -} diff --git a/rpc/commands/common.proto b/rpc/commands/common.proto deleted file mode 100644 index fc31624529a..00000000000 --- a/rpc/commands/common.proto +++ /dev/null @@ -1,87 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -message Instance { - // The ID of the instance. - int32 id = 1; -} - -message DownloadProgress { - // URL of the download. - string url = 1; - // The file being downloaded. - string file = 2; - // Total size of the file being downloaded. - int64 total_size = 3; - // Size of the downloaded portion of the file. - int64 downloaded = 4; - // Whether the download is complete. - bool completed = 5; -} - -message TaskProgress { - // Description of the task. - string name = 1; - // Additional information about the task. - string message = 2; - // Whether the task is complete. - bool completed = 3; -} - -message Programmer { - string platform = 1; - string id = 2; - string name = 3; -} - -message Platform { - // Platform ID (e.g., `arduino:avr`). - string ID = 1; - // Version of the platform. - string Installed = 2; - // Newest available version of the platform. - string Latest = 3; - // Name used to identify the platform to humans (e.g., "Arduino AVR Boards"). - string Name = 4; - // Maintainer of the platform's package. - string Maintainer = 5; - // A URL provided by the author of the platform's package, intended to point - // to their website. - string Website = 6; - // Email of the maintainer of the platform's package. - string Email = 7; - // List of boards provided by the platform. If the platform is installed, - // this is the boards listed in the platform's boards.txt. If the platform is - // not installed, this is an arbitrary list of board names provided by the - // platform author for display and may not match boards.txt. - repeated Board Boards = 8; - // If true this Platform has been installed manually in the user' sketchbook - // hardware folder - bool ManuallyInstalled = 9; -} - -message Board { - // Name used to identify the board to humans. - string name = 1; - // Fully qualified board name used to identify the board to machines. The FQBN - // is only available for installed boards. - string fqbn = 2; -} \ No newline at end of file diff --git a/rpc/commands/compile.pb.go b/rpc/commands/compile.pb.go deleted file mode 100644 index 6d01bf99982..00000000000 --- a/rpc/commands/compile.pb.go +++ /dev/null @@ -1,578 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: commands/compile.proto - -package commands - -import ( - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type CompileReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Arduino Core Service instance from the `Init` response. - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` // Fully Qualified Board Name, e.g.: `arduino:avr:uno`. If this field is not defined, the FQBN of the board attached to the sketch via the `BoardAttach` method is used. - SketchPath string `protobuf:"bytes,3,opt,name=sketchPath,proto3" json:"sketchPath,omitempty"` // The path where the sketch is stored. - ShowProperties bool `protobuf:"varint,4,opt,name=showProperties,proto3" json:"showProperties,omitempty"` // Show all build preferences used instead of compiling. - Preprocess bool `protobuf:"varint,5,opt,name=preprocess,proto3" json:"preprocess,omitempty"` // Print preprocessed code to stdout instead of compiling. - BuildCachePath string `protobuf:"bytes,6,opt,name=buildCachePath,proto3" json:"buildCachePath,omitempty"` // Builds of 'core.a' are saved into this path to be cached and reused. - BuildPath string `protobuf:"bytes,7,opt,name=buildPath,proto3" json:"buildPath,omitempty"` // Path to use to store the files used for the compilation. If omitted, a directory will be created in the operating system's default temporary path. - BuildProperties []string `protobuf:"bytes,8,rep,name=buildProperties,proto3" json:"buildProperties,omitempty"` // List of custom build properties separated by commas. - Warnings string `protobuf:"bytes,9,opt,name=warnings,proto3" json:"warnings,omitempty"` // Used to tell gcc which warning level to use. The level names are: "none", "default", "more" and "all". - Verbose bool `protobuf:"varint,10,opt,name=verbose,proto3" json:"verbose,omitempty"` // Turns on verbose mode. - Quiet bool `protobuf:"varint,11,opt,name=quiet,proto3" json:"quiet,omitempty"` // Suppresses almost every output. - VidPid string `protobuf:"bytes,12,opt,name=vidPid,proto3" json:"vidPid,omitempty"` // VID/PID specific build properties. - Jobs int32 `protobuf:"varint,14,opt,name=jobs,proto3" json:"jobs,omitempty"` // The max number of concurrent compiler instances to run (as `make -jx`). If jobs is set to 0, it will use the number of available CPUs as the maximum. - Libraries []string `protobuf:"bytes,15,rep,name=libraries,proto3" json:"libraries,omitempty"` // List of custom libraries paths separated by commas. - OptimizeForDebug bool `protobuf:"varint,16,opt,name=optimizeForDebug,proto3" json:"optimizeForDebug,omitempty"` // Optimize compile output for debug, not for release. - ExportDir string `protobuf:"bytes,18,opt,name=export_dir,json=exportDir,proto3" json:"export_dir,omitempty"` // Optional: save the build artifacts in this directory, the directory must exist. - Clean bool `protobuf:"varint,19,opt,name=clean,proto3" json:"clean,omitempty"` // Optional: cleanup the build folder and do not use any previously cached build - CreateCompilationDatabaseOnly bool `protobuf:"varint,21,opt,name=create_compilation_database_only,json=createCompilationDatabaseOnly,proto3" json:"create_compilation_database_only,omitempty"` // When set to `true` only the compilation database will be produced and no actual build will be performed. - SourceOverride map[string]string `protobuf:"bytes,22,rep,name=source_override,json=sourceOverride,proto3" json:"source_override,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // This map (source file -> new content) let the builder use the provided content instead of reading the corresponding file on disk. This is useful for IDE that have unsaved changes in memory. The path must be relative to the sketch directory. Only files from the sketch are allowed. - ExportBinaries *wrappers.BoolValue `protobuf:"bytes,23,opt,name=export_binaries,json=exportBinaries,proto3" json:"export_binaries,omitempty"` // When set to `true` the compiled binary will be copied to the export directory. -} - -func (x *CompileReq) Reset() { - *x = CompileReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_compile_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompileReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompileReq) ProtoMessage() {} - -func (x *CompileReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_compile_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompileReq.ProtoReflect.Descriptor instead. -func (*CompileReq) Descriptor() ([]byte, []int) { - return file_commands_compile_proto_rawDescGZIP(), []int{0} -} - -func (x *CompileReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *CompileReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *CompileReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *CompileReq) GetShowProperties() bool { - if x != nil { - return x.ShowProperties - } - return false -} - -func (x *CompileReq) GetPreprocess() bool { - if x != nil { - return x.Preprocess - } - return false -} - -func (x *CompileReq) GetBuildCachePath() string { - if x != nil { - return x.BuildCachePath - } - return "" -} - -func (x *CompileReq) GetBuildPath() string { - if x != nil { - return x.BuildPath - } - return "" -} - -func (x *CompileReq) GetBuildProperties() []string { - if x != nil { - return x.BuildProperties - } - return nil -} - -func (x *CompileReq) GetWarnings() string { - if x != nil { - return x.Warnings - } - return "" -} - -func (x *CompileReq) GetVerbose() bool { - if x != nil { - return x.Verbose - } - return false -} - -func (x *CompileReq) GetQuiet() bool { - if x != nil { - return x.Quiet - } - return false -} - -func (x *CompileReq) GetVidPid() string { - if x != nil { - return x.VidPid - } - return "" -} - -func (x *CompileReq) GetJobs() int32 { - if x != nil { - return x.Jobs - } - return 0 -} - -func (x *CompileReq) GetLibraries() []string { - if x != nil { - return x.Libraries - } - return nil -} - -func (x *CompileReq) GetOptimizeForDebug() bool { - if x != nil { - return x.OptimizeForDebug - } - return false -} - -func (x *CompileReq) GetExportDir() string { - if x != nil { - return x.ExportDir - } - return "" -} - -func (x *CompileReq) GetClean() bool { - if x != nil { - return x.Clean - } - return false -} - -func (x *CompileReq) GetCreateCompilationDatabaseOnly() bool { - if x != nil { - return x.CreateCompilationDatabaseOnly - } - return false -} - -func (x *CompileReq) GetSourceOverride() map[string]string { - if x != nil { - return x.SourceOverride - } - return nil -} - -func (x *CompileReq) GetExportBinaries() *wrappers.BoolValue { - if x != nil { - return x.ExportBinaries - } - return nil -} - -type CompileResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` // The output of the compilation process. - ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` // The error output of the compilation process. - BuildPath string `protobuf:"bytes,3,opt,name=build_path,json=buildPath,proto3" json:"build_path,omitempty"` // The compiler build path - UsedLibraries []*Library `protobuf:"bytes,4,rep,name=used_libraries,json=usedLibraries,proto3" json:"used_libraries,omitempty"` // The libraries used in the build - ExecutableSectionsSize []*ExecutableSectionSize `protobuf:"bytes,5,rep,name=executable_sections_size,json=executableSectionsSize,proto3" json:"executable_sections_size,omitempty"` // The size of the executable split by sections -} - -func (x *CompileResp) Reset() { - *x = CompileResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_compile_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompileResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompileResp) ProtoMessage() {} - -func (x *CompileResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_compile_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompileResp.ProtoReflect.Descriptor instead. -func (*CompileResp) Descriptor() ([]byte, []int) { - return file_commands_compile_proto_rawDescGZIP(), []int{1} -} - -func (x *CompileResp) GetOutStream() []byte { - if x != nil { - return x.OutStream - } - return nil -} - -func (x *CompileResp) GetErrStream() []byte { - if x != nil { - return x.ErrStream - } - return nil -} - -func (x *CompileResp) GetBuildPath() string { - if x != nil { - return x.BuildPath - } - return "" -} - -func (x *CompileResp) GetUsedLibraries() []*Library { - if x != nil { - return x.UsedLibraries - } - return nil -} - -func (x *CompileResp) GetExecutableSectionsSize() []*ExecutableSectionSize { - if x != nil { - return x.ExecutableSectionsSize - } - return nil -} - -type ExecutableSectionSize struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - MaxSize int64 `protobuf:"varint,3,opt,name=maxSize,proto3" json:"maxSize,omitempty"` -} - -func (x *ExecutableSectionSize) Reset() { - *x = ExecutableSectionSize{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_compile_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutableSectionSize) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutableSectionSize) ProtoMessage() {} - -func (x *ExecutableSectionSize) ProtoReflect() protoreflect.Message { - mi := &file_commands_compile_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutableSectionSize.ProtoReflect.Descriptor instead. -func (*ExecutableSectionSize) Descriptor() ([]byte, []int) { - return file_commands_compile_proto_rawDescGZIP(), []int{2} -} - -func (x *ExecutableSectionSize) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExecutableSectionSize) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *ExecutableSectionSize) GetMaxSize() int64 { - if x != nil { - return x.MaxSize - } - return 0 -} - -var File_commands_compile_proto protoreflect.FileDescriptor - -var file_commands_compile_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2f, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x06, 0x0a, - 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, - 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1e, - 0x0a, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x26, - 0x0a, 0x0e, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x70, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, - 0x61, 0x63, 0x68, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1c, - 0x0a, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x0f, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, - 0x67, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, - 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x71, 0x75, 0x69, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x71, 0x75, 0x69, - 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x69, 0x64, 0x50, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x76, 0x69, 0x64, 0x50, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x6f, - 0x62, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x1c, - 0x0a, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, - 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x62, 0x75, 0x67, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, - 0x46, 0x6f, 0x72, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x65, 0x61, 0x6e, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x47, 0x0a, - 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, - 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x60, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x37, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x41, 0x0a, - 0x13, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x9d, 0x02, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, - 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, - 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x47, 0x0a, - 0x0e, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x64, 0x4c, 0x69, 0x62, - 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x68, 0x0a, 0x18, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x69, 0x7a, 0x65, - 0x22, 0x59, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_commands_compile_proto_rawDescOnce sync.Once - file_commands_compile_proto_rawDescData = file_commands_compile_proto_rawDesc -) - -func file_commands_compile_proto_rawDescGZIP() []byte { - file_commands_compile_proto_rawDescOnce.Do(func() { - file_commands_compile_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_compile_proto_rawDescData) - }) - return file_commands_compile_proto_rawDescData -} - -var file_commands_compile_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_commands_compile_proto_goTypes = []interface{}{ - (*CompileReq)(nil), // 0: cc.arduino.cli.commands.CompileReq - (*CompileResp)(nil), // 1: cc.arduino.cli.commands.CompileResp - (*ExecutableSectionSize)(nil), // 2: cc.arduino.cli.commands.ExecutableSectionSize - nil, // 3: cc.arduino.cli.commands.CompileReq.SourceOverrideEntry - (*Instance)(nil), // 4: cc.arduino.cli.commands.Instance - (*wrappers.BoolValue)(nil), // 5: google.protobuf.BoolValue - (*Library)(nil), // 6: cc.arduino.cli.commands.Library -} -var file_commands_compile_proto_depIdxs = []int32{ - 4, // 0: cc.arduino.cli.commands.CompileReq.instance:type_name -> cc.arduino.cli.commands.Instance - 3, // 1: cc.arduino.cli.commands.CompileReq.source_override:type_name -> cc.arduino.cli.commands.CompileReq.SourceOverrideEntry - 5, // 2: cc.arduino.cli.commands.CompileReq.export_binaries:type_name -> google.protobuf.BoolValue - 6, // 3: cc.arduino.cli.commands.CompileResp.used_libraries:type_name -> cc.arduino.cli.commands.Library - 2, // 4: cc.arduino.cli.commands.CompileResp.executable_sections_size:type_name -> cc.arduino.cli.commands.ExecutableSectionSize - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_commands_compile_proto_init() } -func file_commands_compile_proto_init() { - if File_commands_compile_proto != nil { - return - } - file_commands_common_proto_init() - file_commands_lib_proto_init() - if !protoimpl.UnsafeEnabled { - file_commands_compile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompileReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_compile_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompileResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_compile_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutableSectionSize); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_compile_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_commands_compile_proto_goTypes, - DependencyIndexes: file_commands_compile_proto_depIdxs, - MessageInfos: file_commands_compile_proto_msgTypes, - }.Build() - File_commands_compile_proto = out.File - file_commands_compile_proto_rawDesc = nil - file_commands_compile_proto_goTypes = nil - file_commands_compile_proto_depIdxs = nil -} diff --git a/rpc/commands/compile.proto b/rpc/commands/compile.proto deleted file mode 100644 index 0bf0d8c68fd..00000000000 --- a/rpc/commands/compile.proto +++ /dev/null @@ -1,61 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -import "google/protobuf/wrappers.proto"; -import "commands/common.proto"; -import "commands/lib.proto"; - -message CompileReq { - Instance instance = 1; // Arduino Core Service instance from the `Init` response. - string fqbn = 2; // Fully Qualified Board Name, e.g.: `arduino:avr:uno`. If this field is not defined, the FQBN of the board attached to the sketch via the `BoardAttach` method is used. - string sketchPath = 3; // The path where the sketch is stored. - bool showProperties = 4; // Show all build preferences used instead of compiling. - bool preprocess = 5; // Print preprocessed code to stdout instead of compiling. - string buildCachePath = 6; // Builds of 'core.a' are saved into this path to be cached and reused. - string buildPath = 7; // Path to use to store the files used for the compilation. If omitted, a directory will be created in the operating system's default temporary path. - repeated string buildProperties = 8; // List of custom build properties separated by commas. - string warnings = 9; // Used to tell gcc which warning level to use. The level names are: "none", "default", "more" and "all". - bool verbose = 10; // Turns on verbose mode. - bool quiet = 11; // Suppresses almost every output. - string vidPid = 12; // VID/PID specific build properties. - int32 jobs = 14; // The max number of concurrent compiler instances to run (as `make -jx`). If jobs is set to 0, it will use the number of available CPUs as the maximum. - repeated string libraries = 15; // List of custom libraries paths separated by commas. - bool optimizeForDebug = 16; // Optimize compile output for debug, not for release. - string export_dir = 18; // Optional: save the build artifacts in this directory, the directory must exist. - bool clean = 19; // Optional: cleanup the build folder and do not use any previously cached build - bool create_compilation_database_only = 21; // When set to `true` only the compilation database will be produced and no actual build will be performed. - map source_override = 22; // This map (source file -> new content) let the builder use the provided content instead of reading the corresponding file on disk. This is useful for IDE that have unsaved changes in memory. The path must be relative to the sketch directory. Only files from the sketch are allowed. - google.protobuf.BoolValue export_binaries = 23; // When set to `true` the compiled binary will be copied to the export directory. -} - -message CompileResp { - bytes out_stream = 1; // The output of the compilation process. - bytes err_stream = 2; // The error output of the compilation process. - string build_path = 3; // The compiler build path - repeated Library used_libraries = 4; // The libraries used in the build - repeated ExecutableSectionSize executable_sections_size = 5; // The size of the executable split by sections -} - -message ExecutableSectionSize { - string name = 1; - int64 size = 2; - int64 maxSize = 3; -} \ No newline at end of file diff --git a/rpc/commands/core.pb.go b/rpc/commands/core.pb.go deleted file mode 100644 index 743e2cf01c1..00000000000 --- a/rpc/commands/core.pb.go +++ /dev/null @@ -1,1134 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: commands/core.proto - -package commands - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type PlatformInstallReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Vendor name of the platform (e.g., `arduino`). - PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` - // Architecture name of the platform (e.g., `avr`). - Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` - // Platform version to install. - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - // Set to true to not run (eventual) post install scripts for trusted platforms - SkipPostInstall bool `protobuf:"varint,5,opt,name=skipPostInstall,proto3" json:"skipPostInstall,omitempty"` -} - -func (x *PlatformInstallReq) Reset() { - *x = PlatformInstallReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformInstallReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformInstallReq) ProtoMessage() {} - -func (x *PlatformInstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformInstallReq.ProtoReflect.Descriptor instead. -func (*PlatformInstallReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{0} -} - -func (x *PlatformInstallReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformInstallReq) GetPlatformPackage() string { - if x != nil { - return x.PlatformPackage - } - return "" -} - -func (x *PlatformInstallReq) GetArchitecture() string { - if x != nil { - return x.Architecture - } - return "" -} - -func (x *PlatformInstallReq) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *PlatformInstallReq) GetSkipPostInstall() bool { - if x != nil { - return x.SkipPostInstall - } - return false -} - -type PlatformInstallResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the downloads of the platform and tool files. - Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` - // Description of the current stage of the installation. - TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *PlatformInstallResp) Reset() { - *x = PlatformInstallResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformInstallResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformInstallResp) ProtoMessage() {} - -func (x *PlatformInstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformInstallResp.ProtoReflect.Descriptor instead. -func (*PlatformInstallResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{1} -} - -func (x *PlatformInstallResp) GetProgress() *DownloadProgress { - if x != nil { - return x.Progress - } - return nil -} - -func (x *PlatformInstallResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type PlatformDownloadReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` - // Architecture name of the platform (e.g., `avr`). - Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` - // Platform version to download. - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *PlatformDownloadReq) Reset() { - *x = PlatformDownloadReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformDownloadReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformDownloadReq) ProtoMessage() {} - -func (x *PlatformDownloadReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformDownloadReq.ProtoReflect.Descriptor instead. -func (*PlatformDownloadReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{2} -} - -func (x *PlatformDownloadReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformDownloadReq) GetPlatformPackage() string { - if x != nil { - return x.PlatformPackage - } - return "" -} - -func (x *PlatformDownloadReq) GetArchitecture() string { - if x != nil { - return x.Architecture - } - return "" -} - -func (x *PlatformDownloadReq) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type PlatformDownloadResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the downloads of platform and tool files. - Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` -} - -func (x *PlatformDownloadResp) Reset() { - *x = PlatformDownloadResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformDownloadResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformDownloadResp) ProtoMessage() {} - -func (x *PlatformDownloadResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformDownloadResp.ProtoReflect.Descriptor instead. -func (*PlatformDownloadResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{3} -} - -func (x *PlatformDownloadResp) GetProgress() *DownloadProgress { - if x != nil { - return x.Progress - } - return nil -} - -type PlatformUninstallReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Vendor name of the platform (e.g., `arduino`). - PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` - // Architecture name of the platform (e.g., `avr`). - Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` -} - -func (x *PlatformUninstallReq) Reset() { - *x = PlatformUninstallReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformUninstallReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformUninstallReq) ProtoMessage() {} - -func (x *PlatformUninstallReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformUninstallReq.ProtoReflect.Descriptor instead. -func (*PlatformUninstallReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{4} -} - -func (x *PlatformUninstallReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformUninstallReq) GetPlatformPackage() string { - if x != nil { - return x.PlatformPackage - } - return "" -} - -func (x *PlatformUninstallReq) GetArchitecture() string { - if x != nil { - return x.Architecture - } - return "" -} - -type PlatformUninstallResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Description of the current stage of the uninstall. - TaskProgress *TaskProgress `protobuf:"bytes,1,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *PlatformUninstallResp) Reset() { - *x = PlatformUninstallResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformUninstallResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformUninstallResp) ProtoMessage() {} - -func (x *PlatformUninstallResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformUninstallResp.ProtoReflect.Descriptor instead. -func (*PlatformUninstallResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{5} -} - -func (x *PlatformUninstallResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type PlatformUpgradeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Vendor name of the platform (e.g., `arduino`). - PlatformPackage string `protobuf:"bytes,2,opt,name=platform_package,json=platformPackage,proto3" json:"platform_package,omitempty"` - // Architecture name of the platform (e.g., `avr`). - Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` - // Set to true to not run (eventual) post install scripts for trusted platforms - SkipPostInstall bool `protobuf:"varint,4,opt,name=skipPostInstall,proto3" json:"skipPostInstall,omitempty"` -} - -func (x *PlatformUpgradeReq) Reset() { - *x = PlatformUpgradeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformUpgradeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformUpgradeReq) ProtoMessage() {} - -func (x *PlatformUpgradeReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformUpgradeReq.ProtoReflect.Descriptor instead. -func (*PlatformUpgradeReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{6} -} - -func (x *PlatformUpgradeReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformUpgradeReq) GetPlatformPackage() string { - if x != nil { - return x.PlatformPackage - } - return "" -} - -func (x *PlatformUpgradeReq) GetArchitecture() string { - if x != nil { - return x.Architecture - } - return "" -} - -func (x *PlatformUpgradeReq) GetSkipPostInstall() bool { - if x != nil { - return x.SkipPostInstall - } - return false -} - -type PlatformUpgradeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Progress of the downloads of the platform and tool files. - Progress *DownloadProgress `protobuf:"bytes,1,opt,name=progress,proto3" json:"progress,omitempty"` - // Description of the current stage of the upgrade. - TaskProgress *TaskProgress `protobuf:"bytes,2,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"` -} - -func (x *PlatformUpgradeResp) Reset() { - *x = PlatformUpgradeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformUpgradeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformUpgradeResp) ProtoMessage() {} - -func (x *PlatformUpgradeResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformUpgradeResp.ProtoReflect.Descriptor instead. -func (*PlatformUpgradeResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{7} -} - -func (x *PlatformUpgradeResp) GetProgress() *DownloadProgress { - if x != nil { - return x.Progress - } - return nil -} - -func (x *PlatformUpgradeResp) GetTaskProgress() *TaskProgress { - if x != nil { - return x.TaskProgress - } - return nil -} - -type PlatformSearchReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Keywords for the search. - SearchArgs string `protobuf:"bytes,2,opt,name=search_args,json=searchArgs,proto3" json:"search_args,omitempty"` - // Whether to show all available versions. `false` causes only the newest - // versions of the cores to be listed in the search results. - AllVersions bool `protobuf:"varint,3,opt,name=all_versions,json=allVersions,proto3" json:"all_versions,omitempty"` -} - -func (x *PlatformSearchReq) Reset() { - *x = PlatformSearchReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformSearchReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformSearchReq) ProtoMessage() {} - -func (x *PlatformSearchReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformSearchReq.ProtoReflect.Descriptor instead. -func (*PlatformSearchReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{8} -} - -func (x *PlatformSearchReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformSearchReq) GetSearchArgs() string { - if x != nil { - return x.SearchArgs - } - return "" -} - -func (x *PlatformSearchReq) GetAllVersions() bool { - if x != nil { - return x.AllVersions - } - return false -} - -type PlatformSearchResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Results of the search. - SearchOutput []*Platform `protobuf:"bytes,1,rep,name=search_output,json=searchOutput,proto3" json:"search_output,omitempty"` -} - -func (x *PlatformSearchResp) Reset() { - *x = PlatformSearchResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformSearchResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformSearchResp) ProtoMessage() {} - -func (x *PlatformSearchResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformSearchResp.ProtoReflect.Descriptor instead. -func (*PlatformSearchResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{9} -} - -func (x *PlatformSearchResp) GetSearchOutput() []*Platform { - if x != nil { - return x.SearchOutput - } - return nil -} - -type PlatformListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Set to true to only list platforms which have a newer version available - // than the one currently installed. - UpdatableOnly bool `protobuf:"varint,2,opt,name=updatable_only,json=updatableOnly,proto3" json:"updatable_only,omitempty"` - // Set to true to list platforms installed manually in the user' sketchbook - // hardware folder, installed with the PlatformManager through the CLI or IDE - // and that are available to install - All bool `protobuf:"varint,3,opt,name=all,proto3" json:"all,omitempty"` -} - -func (x *PlatformListReq) Reset() { - *x = PlatformListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformListReq) ProtoMessage() {} - -func (x *PlatformListReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformListReq.ProtoReflect.Descriptor instead. -func (*PlatformListReq) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{10} -} - -func (x *PlatformListReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *PlatformListReq) GetUpdatableOnly() bool { - if x != nil { - return x.UpdatableOnly - } - return false -} - -func (x *PlatformListReq) GetAll() bool { - if x != nil { - return x.All - } - return false -} - -type PlatformListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The installed platforms. - InstalledPlatform []*Platform `protobuf:"bytes,1,rep,name=installed_platform,json=installedPlatform,proto3" json:"installed_platform,omitempty"` -} - -func (x *PlatformListResp) Reset() { - *x = PlatformListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_core_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlatformListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlatformListResp) ProtoMessage() {} - -func (x *PlatformListResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_core_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlatformListResp.ProtoReflect.Descriptor instead. -func (*PlatformListResp) Descriptor() ([]byte, []int) { - return file_commands_core_proto_rawDescGZIP(), []int{11} -} - -func (x *PlatformListResp) GetInstalledPlatform() []*Platform { - if x != nil { - return x.InstalledPlatform - } - return nil -} - -var File_commands_core_proto protoreflect.FileDescriptor - -var file_commands_core_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x1a, 0x15, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x01, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, - 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, - 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, - 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x22, 0xa8, - 0x01, 0x0a, 0x13, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, - 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, - 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x13, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, - 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, - 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x0a, 0x14, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x14, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, - 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, - 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, - 0x63, 0x0a, 0x15, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x6e, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, - 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, - 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x6b, 0x69, - 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x22, 0xa8, 0x01, 0x0a, 0x13, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x08, 0x70, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x96, - 0x01, 0x0a, 0x11, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x41, 0x72, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x6c, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x61, 0x6c, 0x6c, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5c, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x46, 0x0a, - 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0c, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, - 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, - 0x6c, 0x22, 0x64, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x50, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x50, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_commands_core_proto_rawDescOnce sync.Once - file_commands_core_proto_rawDescData = file_commands_core_proto_rawDesc -) - -func file_commands_core_proto_rawDescGZIP() []byte { - file_commands_core_proto_rawDescOnce.Do(func() { - file_commands_core_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_core_proto_rawDescData) - }) - return file_commands_core_proto_rawDescData -} - -var file_commands_core_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_commands_core_proto_goTypes = []interface{}{ - (*PlatformInstallReq)(nil), // 0: cc.arduino.cli.commands.PlatformInstallReq - (*PlatformInstallResp)(nil), // 1: cc.arduino.cli.commands.PlatformInstallResp - (*PlatformDownloadReq)(nil), // 2: cc.arduino.cli.commands.PlatformDownloadReq - (*PlatformDownloadResp)(nil), // 3: cc.arduino.cli.commands.PlatformDownloadResp - (*PlatformUninstallReq)(nil), // 4: cc.arduino.cli.commands.PlatformUninstallReq - (*PlatformUninstallResp)(nil), // 5: cc.arduino.cli.commands.PlatformUninstallResp - (*PlatformUpgradeReq)(nil), // 6: cc.arduino.cli.commands.PlatformUpgradeReq - (*PlatformUpgradeResp)(nil), // 7: cc.arduino.cli.commands.PlatformUpgradeResp - (*PlatformSearchReq)(nil), // 8: cc.arduino.cli.commands.PlatformSearchReq - (*PlatformSearchResp)(nil), // 9: cc.arduino.cli.commands.PlatformSearchResp - (*PlatformListReq)(nil), // 10: cc.arduino.cli.commands.PlatformListReq - (*PlatformListResp)(nil), // 11: cc.arduino.cli.commands.PlatformListResp - (*Instance)(nil), // 12: cc.arduino.cli.commands.Instance - (*DownloadProgress)(nil), // 13: cc.arduino.cli.commands.DownloadProgress - (*TaskProgress)(nil), // 14: cc.arduino.cli.commands.TaskProgress - (*Platform)(nil), // 15: cc.arduino.cli.commands.Platform -} -var file_commands_core_proto_depIdxs = []int32{ - 12, // 0: cc.arduino.cli.commands.PlatformInstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 13, // 1: cc.arduino.cli.commands.PlatformInstallResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 14, // 2: cc.arduino.cli.commands.PlatformInstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 12, // 3: cc.arduino.cli.commands.PlatformDownloadReq.instance:type_name -> cc.arduino.cli.commands.Instance - 13, // 4: cc.arduino.cli.commands.PlatformDownloadResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 12, // 5: cc.arduino.cli.commands.PlatformUninstallReq.instance:type_name -> cc.arduino.cli.commands.Instance - 14, // 6: cc.arduino.cli.commands.PlatformUninstallResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 12, // 7: cc.arduino.cli.commands.PlatformUpgradeReq.instance:type_name -> cc.arduino.cli.commands.Instance - 13, // 8: cc.arduino.cli.commands.PlatformUpgradeResp.progress:type_name -> cc.arduino.cli.commands.DownloadProgress - 14, // 9: cc.arduino.cli.commands.PlatformUpgradeResp.task_progress:type_name -> cc.arduino.cli.commands.TaskProgress - 12, // 10: cc.arduino.cli.commands.PlatformSearchReq.instance:type_name -> cc.arduino.cli.commands.Instance - 15, // 11: cc.arduino.cli.commands.PlatformSearchResp.search_output:type_name -> cc.arduino.cli.commands.Platform - 12, // 12: cc.arduino.cli.commands.PlatformListReq.instance:type_name -> cc.arduino.cli.commands.Instance - 15, // 13: cc.arduino.cli.commands.PlatformListResp.installed_platform:type_name -> cc.arduino.cli.commands.Platform - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_commands_core_proto_init() } -func file_commands_core_proto_init() { - if File_commands_core_proto != nil { - return - } - file_commands_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_commands_core_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformInstallReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformInstallResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformDownloadReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformDownloadResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformUninstallReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformUninstallResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformUpgradeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformUpgradeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformSearchReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformSearchResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_core_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlatformListResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_core_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_commands_core_proto_goTypes, - DependencyIndexes: file_commands_core_proto_depIdxs, - MessageInfos: file_commands_core_proto_msgTypes, - }.Build() - File_commands_core_proto = out.File - file_commands_core_proto_rawDesc = nil - file_commands_core_proto_goTypes = nil - file_commands_core_proto_depIdxs = nil -} diff --git a/rpc/commands/core.proto b/rpc/commands/core.proto deleted file mode 100644 index 89032875927..00000000000 --- a/rpc/commands/core.proto +++ /dev/null @@ -1,121 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -import "commands/common.proto"; - -message PlatformInstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Vendor name of the platform (e.g., `arduino`). - string platform_package = 2; - // Architecture name of the platform (e.g., `avr`). - string architecture = 3; - // Platform version to install. - string version = 4; - // Set to true to not run (eventual) post install scripts for trusted platforms - bool skipPostInstall = 5; -} - -message PlatformInstallResp { - // Progress of the downloads of the platform and tool files. - DownloadProgress progress = 1; - // Description of the current stage of the installation. - TaskProgress task_progress = 2; -} - -message PlatformDownloadReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - string platform_package = 2; - // Architecture name of the platform (e.g., `avr`). - string architecture = 3; - // Platform version to download. - string version = 4; -} - -message PlatformDownloadResp { - // Progress of the downloads of platform and tool files. - DownloadProgress progress = 1; -} - -message PlatformUninstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Vendor name of the platform (e.g., `arduino`). - string platform_package = 2; - // Architecture name of the platform (e.g., `avr`). - string architecture = 3; -} - -message PlatformUninstallResp { - // Description of the current stage of the uninstall. - TaskProgress task_progress = 1; -} - -message PlatformUpgradeReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Vendor name of the platform (e.g., `arduino`). - string platform_package = 2; - // Architecture name of the platform (e.g., `avr`). - string architecture = 3; - // Set to true to not run (eventual) post install scripts for trusted platforms - bool skipPostInstall = 4; -} - -message PlatformUpgradeResp { - // Progress of the downloads of the platform and tool files. - DownloadProgress progress = 1; - // Description of the current stage of the upgrade. - TaskProgress task_progress = 2; -} - -message PlatformSearchReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Keywords for the search. - string search_args = 2; - // Whether to show all available versions. `false` causes only the newest - // versions of the cores to be listed in the search results. - bool all_versions = 3; -} - -message PlatformSearchResp { - // Results of the search. - repeated Platform search_output = 1; -} - -message PlatformListReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Set to true to only list platforms which have a newer version available - // than the one currently installed. - bool updatable_only = 2; - // Set to true to list platforms installed manually in the user' sketchbook - // hardware folder, installed with the PlatformManager through the CLI or IDE - // and that are available to install - bool all = 3; -} - -message PlatformListResp { - // The installed platforms. - repeated Platform installed_platform = 1; -} diff --git a/rpc/commands/lib.proto b/rpc/commands/lib.proto deleted file mode 100644 index e5d5c54eaac..00000000000 --- a/rpc/commands/lib.proto +++ /dev/null @@ -1,326 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -import "commands/common.proto"; - -message LibraryDownloadReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Name of the library. - string name = 2; - // The version of the library to download. - string version = 3; -} - -message LibraryDownloadResp { - // Progress of the library download. - DownloadProgress progress = 1; -} - -message LibraryInstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Name of the library. - string name = 2; - // The version of the library to install. - string version = 3; - // Set to true to skip installation of specified library's dependencies, defaults to false. - bool noDeps = 4; -} - -message LibraryInstallResp { - // Progress of the library download. - DownloadProgress progress = 1; - // Description of the current stage of the installation. - TaskProgress task_progress = 2; -} - -message LibraryUninstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Name of the library. - string name = 2; - // The version of the library to uninstall. - string version = 3; -} - -message LibraryUninstallResp { - // Description of the current stage of the uninstallation. - TaskProgress task_progress = 1; -} - -message LibraryUpgradeAllReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; -} - -message LibraryUpgradeAllResp { - // Progress of the downloads of files needed for the upgrades. - DownloadProgress progress = 1; - // Description of the current stage of the upgrade. - TaskProgress task_progress = 2; -} - -message LibraryResolveDependenciesReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Name of the library. - string name = 2; - // The version of the library to check dependencies of. If no version is - // specified, dependencies of the newest version will be listed. - string version = 3; -} - -message LibraryResolveDependenciesResp { - // Dependencies of the library. - repeated LibraryDependencyStatus dependencies = 1; -} - -message LibraryDependencyStatus { - // The name of the library dependency. - string name = 1; - // The required version of the library dependency. - string versionRequired = 2; - // Version of the library dependency currently installed. - string versionInstalled = 3; -} - -message LibrarySearchReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // The search query. - string query = 2; -} - -enum LibrarySearchStatus { - // No search results were found. - failed = 0; - // Search results were found. - success = 1; -} - -message LibrarySearchResp { - // The results of the search. - repeated SearchedLibrary libraries = 1; - // Whether the search yielded results. - LibrarySearchStatus status = 2; -} - -message SearchedLibrary { - // Library name. - string name = 1; - // The index data for the available versions of the library. The key of the - // map is the library version. - map releases = 2; - // The index data for the latest version of the library. - LibraryRelease latest = 3; -} - -message LibraryRelease { - // Value of the `author` field in library.properties. - string author = 1; - // Value of the `version` field in library.properties. - string version = 2; - // Value of the `maintainer` field in library.properties. - string maintainer = 3; - // Value of the `sentence` field in library.properties. - string sentence = 4; - // Value of the `paragraph` field in library.properties. - string paragraph = 5; - // Value of the `url` field in library.properties. - string website = 6; - // Value of the `category` field in library.properties. - string category = 7; - // Value of the `architectures` field in library.properties. - repeated string architectures = 8; - // The type categories of the library, as defined in the libraries index. - // Possible values: `Arduino`, `Partner`, `Recommended`, `Contributed`, - // `Retired`. - repeated string types = 9; - // Information about the library archive file. - DownloadResource resources = 10; - // Value of the `license` field in library.properties. - string license = 11; - // Value of the `includes` field in library.properties. - repeated string provides_includes = 12; - // The names of the library's dependencies, as defined by the 'depends' - // field of library.properties. - repeated LibraryDependency dependencies = 13; -} - -message LibraryDependency { - // Library name of the dependency. - string name = 1; - // Version constraint of the dependency. - string version_constraint = 2; -} - -message DownloadResource { - // Download URL of the library archive. - string url = 1; - // Filename of the library archive. - string archivefilename = 2; - // Checksum of the library archive. - string checksum = 3; - // File size of the library archive. - int64 size = 4; - // The directory under the staging subdirectory of the data directory the - // library archive file will be downloaded to. - string cachepath = 5; -} - -message LibraryListReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Whether to include built-in libraries (from platforms and the Arduino - // IDE) in the listing. - bool all = 2; - // Whether to list only libraries for which there is a newer version than - // the installed version available in the libraries index. - bool updatable = 3; - // If set filters out the libraries not matching name - string name = 4; - // By setting this field all duplicate libraries are filtered out leaving - // only the libraries that will be used to compile for the specified board FQBN. - string fqbn = 5; -} - -message LibraryListResp { - // List of installed libraries. - repeated InstalledLibrary installed_library = 1; -} - -message InstalledLibrary { - // Information about the library. - Library library = 1; - // When the `updatable` field of the `LibraryList` request is set to `true`, - // this will contain information on the latest version of the library in the - // libraries index. - LibraryRelease release = 2; -} - -message Library { - // The library's directory name. - string name = 1; - // Value of the `author` field in library.properties. - string author = 2; - // Value of the `maintainer` field in library.properties. - string maintainer = 3; - // Value of the `sentence` field in library.properties. - string sentence = 4; - // Value of the `paragraph` field in library.properties. - string paragraph = 5; - // Value of the `url` field in library.properties. - string website = 6; - // Value of the `category` field in library.properties. - string category = 7; - // Value of the `architectures` field in library.properties. - repeated string architectures = 8; - // The type categories of the library. Possible values: `Arduino`, - // `Partner`, `Recommended`, `Contributed`, `Retired`. - repeated string types = 9; - // The path of the library directory. - string install_dir = 10; - // The location of the library's source files. - string source_dir = 11; - // The location of the library's `utility` directory. - string utility_dir = 12; - // If `location` is `platform_builtin` or `referenced_platform_builtin`, the - // identifying string for the platform containing the library - // (e.g., `arduino:avr@1.8.2`). - string container_platform = 14; - // Value of the `name` field in library.properties. - string real_name = 16; - // Value of the `dot_a_linkage` field in library.properties. - bool dot_a_linkage = 17; - // Value of the `precompiled` field in library.properties. - bool precompiled = 18; - // Value of the `ldflags` field in library.properties. - string ld_flags = 19; - // A library.properties file is not present in the library's root directory. - bool is_legacy = 20; - // Value of the `version` field in library.properties. - string version = 21; - // Value of the `license` field in library.properties. - string license = 22; - // The data from the library's library.properties file, including unused - // fields. - map properties = 23; - // The location type of the library installation. - LibraryLocation location = 24; - // The library format type. - LibraryLayout layout = 25; - // The example sketches provided by the library - repeated string examples = 26; - // Value of the `includes` field in library.properties or, if missing, the list of - // include files available on the library source root directory. - repeated string provides_includes = 27; - // Map of FQBNs that specifies if library is compatible with this library - map compatible_with = 28; -} - -enum LibraryLayout { - // Library is in the 1.0 Arduino library format. - flat_layout = 0; - // Library is in the 1.5 Arduino library format. - recursive_layout = 1; -} - -enum LibraryLocation { - // In the `libraries` subdirectory of the Arduino IDE installation. - ide_builtin = 0; - // In the `libraries` subdirectory of the user directory (sketchbook). - user = 1; - // In the `libraries` subdirectory of a platform. - platform_builtin = 2; - // When `LibraryLocation` is used in a context where a board is specified, - // this indicates the library is in the `libraries` subdirectory of a - // platform referenced by the board's platform. - referenced_platform_builtin = 3; -} - -message ZipLibraryInstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - //Path to the archived library - string Path = 2; - // Set to true to overwrite an already installed library with the same name. Defaults to false. - bool overwrite = 3; -} - -message ZipLibraryInstallResp { - // Description of the current stage of the installation. - TaskProgress task_progress = 1; -} - -message GitLibraryInstallReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // URL to the repository containing the library - string url = 2; - // Set to true to overwrite an already installed library with the same name. Defaults to false. - bool overwrite = 3; -} - -message GitLibraryInstallResp { - // Description of the current stage of the installation. - TaskProgress task_progress = 1; -} diff --git a/rpc/commands/upload.pb.go b/rpc/commands/upload.pb.go deleted file mode 100644 index 6dbc72c540d..00000000000 --- a/rpc/commands/upload.pb.go +++ /dev/null @@ -1,921 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: commands/upload.proto - -package commands - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type UploadReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - // If this field is not defined, the FQBN of the board attached to the sketch - // via the `BoardAttach` method is used. - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` - // Path where the sketch to be uploaded is stored. Unless the `import_file` - // field is defined, the compiled binary is assumed to be at the location and - // filename under this path where it is saved by the `Compile` method. - SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` - // The port of the board. - Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` - // Whether to turn on verbose output during the upload. - Verbose bool `protobuf:"varint,5,opt,name=verbose,proto3" json:"verbose,omitempty"` - // After upload, verify that the contents of the memory on the board match the - // uploaded binary. - Verify bool `protobuf:"varint,6,opt,name=verify,proto3" json:"verify,omitempty"` - // When `import_file` is specified, it overrides the `import_dir` and `sketch_path` - // params. - ImportFile string `protobuf:"bytes,7,opt,name=import_file,json=importFile,proto3" json:"import_file,omitempty"` - // Custom path to a directory containing compiled files. When `import_dir` is - // not specified, the standard build directory under `sketch_path` is used. - ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` - // The programmer to use for upload. If set an UploadUsingProgrammer is triggered - // instead of a normal upload. The UploadUsingProgrammer call may also be used for - // explicit error check. - Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` -} - -func (x *UploadReq) Reset() { - *x = UploadReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadReq) ProtoMessage() {} - -func (x *UploadReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UploadReq.ProtoReflect.Descriptor instead. -func (*UploadReq) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{0} -} - -func (x *UploadReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *UploadReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *UploadReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *UploadReq) GetPort() string { - if x != nil { - return x.Port - } - return "" -} - -func (x *UploadReq) GetVerbose() bool { - if x != nil { - return x.Verbose - } - return false -} - -func (x *UploadReq) GetVerify() bool { - if x != nil { - return x.Verify - } - return false -} - -func (x *UploadReq) GetImportFile() string { - if x != nil { - return x.ImportFile - } - return "" -} - -func (x *UploadReq) GetImportDir() string { - if x != nil { - return x.ImportDir - } - return "" -} - -func (x *UploadReq) GetProgrammer() string { - if x != nil { - return x.Programmer - } - return "" -} - -type UploadResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The output of the upload process. - OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` - // The error output of the upload process. - ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` -} - -func (x *UploadResp) Reset() { - *x = UploadResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadResp) ProtoMessage() {} - -func (x *UploadResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UploadResp.ProtoReflect.Descriptor instead. -func (*UploadResp) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{1} -} - -func (x *UploadResp) GetOutStream() []byte { - if x != nil { - return x.OutStream - } - return nil -} - -func (x *UploadResp) GetErrStream() []byte { - if x != nil { - return x.ErrStream - } - return nil -} - -type UploadUsingProgrammerReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - // If this field is not defined, the FQBN of the board attached to the sketch - // via the `BoardAttach` method is used. - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` - // Path where the sketch to be uploaded is stored. Unless the `import_file` - // field is defined, the compiled binary is assumed to be at the location and - // filename under this path where it is saved by the `Compile` method. - SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` - // The port of the board. - Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` - // Whether to turn on verbose output during the upload. - Verbose bool `protobuf:"varint,5,opt,name=verbose,proto3" json:"verbose,omitempty"` - // After upload, verify that the contents of the memory on the board match the - // uploaded binary. - Verify bool `protobuf:"varint,6,opt,name=verify,proto3" json:"verify,omitempty"` - // When `import_file` is specified, it overrides the `import_dir` and `sketch_path` - // params. - ImportFile string `protobuf:"bytes,7,opt,name=import_file,json=importFile,proto3" json:"import_file,omitempty"` - // Custom path to a directory containing compiled files. When `import_dir` is - // not specified, the standard build directory under `sketch_path` is used. - ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` - // The programmer to use for upload. - Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` -} - -func (x *UploadUsingProgrammerReq) Reset() { - *x = UploadUsingProgrammerReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadUsingProgrammerReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadUsingProgrammerReq) ProtoMessage() {} - -func (x *UploadUsingProgrammerReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UploadUsingProgrammerReq.ProtoReflect.Descriptor instead. -func (*UploadUsingProgrammerReq) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{2} -} - -func (x *UploadUsingProgrammerReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *UploadUsingProgrammerReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *UploadUsingProgrammerReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *UploadUsingProgrammerReq) GetPort() string { - if x != nil { - return x.Port - } - return "" -} - -func (x *UploadUsingProgrammerReq) GetVerbose() bool { - if x != nil { - return x.Verbose - } - return false -} - -func (x *UploadUsingProgrammerReq) GetVerify() bool { - if x != nil { - return x.Verify - } - return false -} - -func (x *UploadUsingProgrammerReq) GetImportFile() string { - if x != nil { - return x.ImportFile - } - return "" -} - -func (x *UploadUsingProgrammerReq) GetImportDir() string { - if x != nil { - return x.ImportDir - } - return "" -} - -func (x *UploadUsingProgrammerReq) GetProgrammer() string { - if x != nil { - return x.Programmer - } - return "" -} - -type UploadUsingProgrammerResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The output of the upload process. - OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` - // The error output of the upload process. - ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` -} - -func (x *UploadUsingProgrammerResp) Reset() { - *x = UploadUsingProgrammerResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadUsingProgrammerResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadUsingProgrammerResp) ProtoMessage() {} - -func (x *UploadUsingProgrammerResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UploadUsingProgrammerResp.ProtoReflect.Descriptor instead. -func (*UploadUsingProgrammerResp) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{3} -} - -func (x *UploadUsingProgrammerResp) GetOutStream() []byte { - if x != nil { - return x.OutStream - } - return nil -} - -func (x *UploadUsingProgrammerResp) GetErrStream() []byte { - if x != nil { - return x.ErrStream - } - return nil -} - -type BurnBootloaderReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` - // The port of the programmer used to program the bootloader. - Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` - // Whether to turn on verbose output during the programming. - Verbose bool `protobuf:"varint,4,opt,name=verbose,proto3" json:"verbose,omitempty"` - // After programming, verify the contents of the memory on the board match the - // uploaded binary. - Verify bool `protobuf:"varint,5,opt,name=verify,proto3" json:"verify,omitempty"` - // The programmer to use for burning bootloader. - Programmer string `protobuf:"bytes,6,opt,name=programmer,proto3" json:"programmer,omitempty"` -} - -func (x *BurnBootloaderReq) Reset() { - *x = BurnBootloaderReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BurnBootloaderReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BurnBootloaderReq) ProtoMessage() {} - -func (x *BurnBootloaderReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BurnBootloaderReq.ProtoReflect.Descriptor instead. -func (*BurnBootloaderReq) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{4} -} - -func (x *BurnBootloaderReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *BurnBootloaderReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *BurnBootloaderReq) GetPort() string { - if x != nil { - return x.Port - } - return "" -} - -func (x *BurnBootloaderReq) GetVerbose() bool { - if x != nil { - return x.Verbose - } - return false -} - -func (x *BurnBootloaderReq) GetVerify() bool { - if x != nil { - return x.Verify - } - return false -} - -func (x *BurnBootloaderReq) GetProgrammer() string { - if x != nil { - return x.Programmer - } - return "" -} - -type BurnBootloaderResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The output of the burn bootloader process. - OutStream []byte `protobuf:"bytes,1,opt,name=out_stream,json=outStream,proto3" json:"out_stream,omitempty"` - // The error output of the burn bootloader process. - ErrStream []byte `protobuf:"bytes,2,opt,name=err_stream,json=errStream,proto3" json:"err_stream,omitempty"` -} - -func (x *BurnBootloaderResp) Reset() { - *x = BurnBootloaderResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BurnBootloaderResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BurnBootloaderResp) ProtoMessage() {} - -func (x *BurnBootloaderResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BurnBootloaderResp.ProtoReflect.Descriptor instead. -func (*BurnBootloaderResp) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{5} -} - -func (x *BurnBootloaderResp) GetOutStream() []byte { - if x != nil { - return x.OutStream - } - return nil -} - -func (x *BurnBootloaderResp) GetErrStream() []byte { - if x != nil { - return x.ErrStream - } - return nil -} - -type ListProgrammersAvailableForUploadReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` -} - -func (x *ListProgrammersAvailableForUploadReq) Reset() { - *x = ListProgrammersAvailableForUploadReq{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListProgrammersAvailableForUploadReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListProgrammersAvailableForUploadReq) ProtoMessage() {} - -func (x *ListProgrammersAvailableForUploadReq) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListProgrammersAvailableForUploadReq.ProtoReflect.Descriptor instead. -func (*ListProgrammersAvailableForUploadReq) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{6} -} - -func (x *ListProgrammersAvailableForUploadReq) GetInstance() *Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *ListProgrammersAvailableForUploadReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -type ListProgrammersAvailableForUploadResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Programmers []*Programmer `protobuf:"bytes,1,rep,name=programmers,proto3" json:"programmers,omitempty"` -} - -func (x *ListProgrammersAvailableForUploadResp) Reset() { - *x = ListProgrammersAvailableForUploadResp{} - if protoimpl.UnsafeEnabled { - mi := &file_commands_upload_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListProgrammersAvailableForUploadResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListProgrammersAvailableForUploadResp) ProtoMessage() {} - -func (x *ListProgrammersAvailableForUploadResp) ProtoReflect() protoreflect.Message { - mi := &file_commands_upload_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListProgrammersAvailableForUploadResp.ProtoReflect.Descriptor instead. -func (*ListProgrammersAvailableForUploadResp) Descriptor() ([]byte, []int) { - return file_commands_upload_proto_rawDescGZIP(), []int{7} -} - -func (x *ListProgrammersAvailableForUploadResp) GetProgrammers() []*Programmer { - if x != nil { - return x.Programmers - } - return nil -} - -var File_commands_upload_proto protoreflect.FileDescriptor - -var file_commands_upload_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, - 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x02, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, - 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, - 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, - 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, - 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, - 0x4a, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, - 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, - 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0xb4, 0x02, 0x0a, 0x18, - 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x46, - 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, - 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, - 0x69, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, - 0x65, 0x72, 0x22, 0x59, 0x0a, 0x19, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x69, 0x6e, - 0x67, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, - 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0xcc, 0x01, - 0x0a, 0x11, 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, - 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x62, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1e, 0x0a, 0x0a, - 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, 0x52, 0x0a, 0x12, - 0x42, 0x75, 0x72, 0x6e, 0x42, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x22, 0x79, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, - 0x65, 0x72, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, - 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, 0x22, 0x6e, 0x0a, 0x25, 0x4c, - 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, - 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x52, 0x0b, - 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x73, 0x42, 0x2d, 0x5a, 0x2b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_commands_upload_proto_rawDescOnce sync.Once - file_commands_upload_proto_rawDescData = file_commands_upload_proto_rawDesc -) - -func file_commands_upload_proto_rawDescGZIP() []byte { - file_commands_upload_proto_rawDescOnce.Do(func() { - file_commands_upload_proto_rawDescData = protoimpl.X.CompressGZIP(file_commands_upload_proto_rawDescData) - }) - return file_commands_upload_proto_rawDescData -} - -var file_commands_upload_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_commands_upload_proto_goTypes = []interface{}{ - (*UploadReq)(nil), // 0: cc.arduino.cli.commands.UploadReq - (*UploadResp)(nil), // 1: cc.arduino.cli.commands.UploadResp - (*UploadUsingProgrammerReq)(nil), // 2: cc.arduino.cli.commands.UploadUsingProgrammerReq - (*UploadUsingProgrammerResp)(nil), // 3: cc.arduino.cli.commands.UploadUsingProgrammerResp - (*BurnBootloaderReq)(nil), // 4: cc.arduino.cli.commands.BurnBootloaderReq - (*BurnBootloaderResp)(nil), // 5: cc.arduino.cli.commands.BurnBootloaderResp - (*ListProgrammersAvailableForUploadReq)(nil), // 6: cc.arduino.cli.commands.ListProgrammersAvailableForUploadReq - (*ListProgrammersAvailableForUploadResp)(nil), // 7: cc.arduino.cli.commands.ListProgrammersAvailableForUploadResp - (*Instance)(nil), // 8: cc.arduino.cli.commands.Instance - (*Programmer)(nil), // 9: cc.arduino.cli.commands.Programmer -} -var file_commands_upload_proto_depIdxs = []int32{ - 8, // 0: cc.arduino.cli.commands.UploadReq.instance:type_name -> cc.arduino.cli.commands.Instance - 8, // 1: cc.arduino.cli.commands.UploadUsingProgrammerReq.instance:type_name -> cc.arduino.cli.commands.Instance - 8, // 2: cc.arduino.cli.commands.BurnBootloaderReq.instance:type_name -> cc.arduino.cli.commands.Instance - 8, // 3: cc.arduino.cli.commands.ListProgrammersAvailableForUploadReq.instance:type_name -> cc.arduino.cli.commands.Instance - 9, // 4: cc.arduino.cli.commands.ListProgrammersAvailableForUploadResp.programmers:type_name -> cc.arduino.cli.commands.Programmer - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_commands_upload_proto_init() } -func file_commands_upload_proto_init() { - if File_commands_upload_proto != nil { - return - } - file_commands_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_commands_upload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadUsingProgrammerReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadUsingProgrammerResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BurnBootloaderReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BurnBootloaderResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListProgrammersAvailableForUploadReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commands_upload_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListProgrammersAvailableForUploadResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commands_upload_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_commands_upload_proto_goTypes, - DependencyIndexes: file_commands_upload_proto_depIdxs, - MessageInfos: file_commands_upload_proto_msgTypes, - }.Build() - File_commands_upload_proto = out.File - file_commands_upload_proto_rawDesc = nil - file_commands_upload_proto_goTypes = nil - file_commands_upload_proto_depIdxs = nil -} diff --git a/rpc/commands/upload.proto b/rpc/commands/upload.proto deleted file mode 100644 index aacdf5b4f3b..00000000000 --- a/rpc/commands/upload.proto +++ /dev/null @@ -1,126 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.commands; - -option go_package = "github.com/arduino/arduino-cli/rpc/commands"; - -import "commands/common.proto"; - -message UploadReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - // If this field is not defined, the FQBN of the board attached to the sketch - // via the `BoardAttach` method is used. - string fqbn = 2; - // Path where the sketch to be uploaded is stored. Unless the `import_file` - // field is defined, the compiled binary is assumed to be at the location and - // filename under this path where it is saved by the `Compile` method. - string sketch_path = 3; - // The port of the board. - string port = 4; - // Whether to turn on verbose output during the upload. - bool verbose = 5; - // After upload, verify that the contents of the memory on the board match the - // uploaded binary. - bool verify = 6; - // When `import_file` is specified, it overrides the `import_dir` and `sketch_path` - // params. - string import_file = 7; - // Custom path to a directory containing compiled files. When `import_dir` is - // not specified, the standard build directory under `sketch_path` is used. - string import_dir = 8; - // The programmer to use for upload. If set an UploadUsingProgrammer is triggered - // instead of a normal upload. The UploadUsingProgrammer call may also be used for - // explicit error check. - string programmer = 9; -} - -message UploadResp { - // The output of the upload process. - bytes out_stream = 1; - // The error output of the upload process. - bytes err_stream = 2; -} - -message UploadUsingProgrammerReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - // If this field is not defined, the FQBN of the board attached to the sketch - // via the `BoardAttach` method is used. - string fqbn = 2; - // Path where the sketch to be uploaded is stored. Unless the `import_file` - // field is defined, the compiled binary is assumed to be at the location and - // filename under this path where it is saved by the `Compile` method. - string sketch_path = 3; - // The port of the board. - string port = 4; - // Whether to turn on verbose output during the upload. - bool verbose = 5; - // After upload, verify that the contents of the memory on the board match the - // uploaded binary. - bool verify = 6; - // When `import_file` is specified, it overrides the `import_dir` and `sketch_path` - // params. - string import_file = 7; - // Custom path to a directory containing compiled files. When `import_dir` is - // not specified, the standard build directory under `sketch_path` is used. - string import_dir = 8; - // The programmer to use for upload. - string programmer = 9; -} - -message UploadUsingProgrammerResp { - // The output of the upload process. - bytes out_stream = 1; - // The error output of the upload process. - bytes err_stream = 2; -} - -message BurnBootloaderReq { - // Arduino Core Service instance from the `Init` response. - Instance instance = 1; - // Fully qualified board name of the target board (e.g., `arduino:avr:uno`). - string fqbn = 2; - // The port of the programmer used to program the bootloader. - string port = 3; - // Whether to turn on verbose output during the programming. - bool verbose = 4; - // After programming, verify the contents of the memory on the board match the - // uploaded binary. - bool verify = 5; - // The programmer to use for burning bootloader. - string programmer = 6; -} - -message BurnBootloaderResp { - // The output of the burn bootloader process. - bytes out_stream = 1; - // The error output of the burn bootloader process. - bytes err_stream = 2; -} - -message ListProgrammersAvailableForUploadReq { - Instance instance = 1; - string fqbn = 2; -} - -message ListProgrammersAvailableForUploadResp { - repeated Programmer programmers = 1; -} diff --git a/rpc/debug/debug.pb.go b/rpc/debug/debug.pb.go deleted file mode 100644 index 30f042c2af2..00000000000 --- a/rpc/debug/debug.pb.go +++ /dev/null @@ -1,750 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: debug/debug.proto - -package debug - -import ( - context "context" - commands "github.com/arduino/arduino-cli/rpc/commands" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The top-level message sent by the client for the `Debug` method. -// Multiple `DebugReq` messages can be sent but the first message -// must contain a `DebugConfigReq` message to initialize the debug session. -// All subsequent messages must contain bytes to be sent to the debug session -// and must not contain a `DebugReq` message. -type DebugReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Provides information to the debug that specifies which is the target. - // The first `StreamingOpenReq` message must contain a `DebugReq` - // message. - DebugReq *DebugConfigReq `protobuf:"bytes,1,opt,name=debugReq,proto3" json:"debugReq,omitempty"` - // The data to be sent to the target being monitored. - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // Set this to true to send and Interrupt signal to the debugger process - SendInterrupt bool `protobuf:"varint,3,opt,name=send_interrupt,json=sendInterrupt,proto3" json:"send_interrupt,omitempty"` -} - -func (x *DebugReq) Reset() { - *x = DebugReq{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugReq) ProtoMessage() {} - -func (x *DebugReq) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugReq.ProtoReflect.Descriptor instead. -func (*DebugReq) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{0} -} - -func (x *DebugReq) GetDebugReq() *DebugConfigReq { - if x != nil { - return x.DebugReq - } - return nil -} - -func (x *DebugReq) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -func (x *DebugReq) GetSendInterrupt() bool { - if x != nil { - return x.SendInterrupt - } - return false -} - -type DebugConfigReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Arduino Core Service instance from the `Init` response. - Instance *commands.Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - // Fully qualified board name of the board in use - // (e.g., `arduino:samd:mkr1000`). If this is omitted, the FQBN attached to - // the sketch will be used. - Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` - // Path to the sketch that is running on the board. The compiled executable - // is expected to be located under this path. - SketchPath string `protobuf:"bytes,3,opt,name=sketch_path,json=sketchPath,proto3" json:"sketch_path,omitempty"` - // Port of the debugger (optional). - Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` - // Which GDB command interpreter to use. - Interpreter string `protobuf:"bytes,5,opt,name=interpreter,proto3" json:"interpreter,omitempty"` - // Directory containing the compiled executable. If `import_dir` is not - // specified, the executable is assumed to be in - // `{sketch_path}/build/{fqbn}/`. - ImportDir string `protobuf:"bytes,8,opt,name=import_dir,json=importDir,proto3" json:"import_dir,omitempty"` - // The programmer to use for debugging. - Programmer string `protobuf:"bytes,9,opt,name=programmer,proto3" json:"programmer,omitempty"` -} - -func (x *DebugConfigReq) Reset() { - *x = DebugConfigReq{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugConfigReq) ProtoMessage() {} - -func (x *DebugConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugConfigReq.ProtoReflect.Descriptor instead. -func (*DebugConfigReq) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{1} -} - -func (x *DebugConfigReq) GetInstance() *commands.Instance { - if x != nil { - return x.Instance - } - return nil -} - -func (x *DebugConfigReq) GetFqbn() string { - if x != nil { - return x.Fqbn - } - return "" -} - -func (x *DebugConfigReq) GetSketchPath() string { - if x != nil { - return x.SketchPath - } - return "" -} - -func (x *DebugConfigReq) GetPort() string { - if x != nil { - return x.Port - } - return "" -} - -func (x *DebugConfigReq) GetInterpreter() string { - if x != nil { - return x.Interpreter - } - return "" -} - -func (x *DebugConfigReq) GetImportDir() string { - if x != nil { - return x.ImportDir - } - return "" -} - -func (x *DebugConfigReq) GetProgrammer() string { - if x != nil { - return x.Programmer - } - return "" -} - -// -type DebugResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Incoming data from the debugger tool. - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - // Incoming error output from the debugger tool. - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *DebugResp) Reset() { - *x = DebugResp{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugResp) ProtoMessage() {} - -func (x *DebugResp) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugResp.ProtoReflect.Descriptor instead. -func (*DebugResp) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{2} -} - -func (x *DebugResp) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -func (x *DebugResp) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -type GetDebugConfigResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The executable binary to debug - Executable string `protobuf:"bytes,1,opt,name=executable,proto3" json:"executable,omitempty"` - // The toolchain type used for the build (for example "gcc") - Toolchain string `protobuf:"bytes,2,opt,name=toolchain,proto3" json:"toolchain,omitempty"` - // The toolchain directory - ToolchainPath string `protobuf:"bytes,3,opt,name=toolchain_path,json=toolchainPath,proto3" json:"toolchain_path,omitempty"` - // The toolchain architecture prefix (for example "arm-none-eabi-") - ToolchainPrefix string `protobuf:"bytes,4,opt,name=toolchain_prefix,json=toolchainPrefix,proto3" json:"toolchain_prefix,omitempty"` - // The GDB server type used to connect to the programmer/board (for example "openocd") - Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` - // The GDB server directory - ServerPath string `protobuf:"bytes,6,opt,name=server_path,json=serverPath,proto3" json:"server_path,omitempty"` - // Extra configuration parameters wrt toolchain - ToolchainConfiguration map[string]string `protobuf:"bytes,7,rep,name=toolchain_configuration,json=toolchainConfiguration,proto3" json:"toolchain_configuration,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Extra configuration parameters wrt GDB server - ServerConfiguration map[string]string `protobuf:"bytes,8,rep,name=server_configuration,json=serverConfiguration,proto3" json:"server_configuration,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *GetDebugConfigResp) Reset() { - *x = GetDebugConfigResp{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDebugConfigResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDebugConfigResp) ProtoMessage() {} - -func (x *GetDebugConfigResp) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDebugConfigResp.ProtoReflect.Descriptor instead. -func (*GetDebugConfigResp) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{3} -} - -func (x *GetDebugConfigResp) GetExecutable() string { - if x != nil { - return x.Executable - } - return "" -} - -func (x *GetDebugConfigResp) GetToolchain() string { - if x != nil { - return x.Toolchain - } - return "" -} - -func (x *GetDebugConfigResp) GetToolchainPath() string { - if x != nil { - return x.ToolchainPath - } - return "" -} - -func (x *GetDebugConfigResp) GetToolchainPrefix() string { - if x != nil { - return x.ToolchainPrefix - } - return "" -} - -func (x *GetDebugConfigResp) GetServer() string { - if x != nil { - return x.Server - } - return "" -} - -func (x *GetDebugConfigResp) GetServerPath() string { - if x != nil { - return x.ServerPath - } - return "" -} - -func (x *GetDebugConfigResp) GetToolchainConfiguration() map[string]string { - if x != nil { - return x.ToolchainConfiguration - } - return nil -} - -func (x *GetDebugConfigResp) GetServerConfiguration() map[string]string { - if x != nil { - return x.ServerConfiguration - } - return nil -} - -var File_debug_debug_proto protoreflect.FileDescriptor - -var file_debug_debug_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x87, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x12, 0x40, 0x0a, - 0x08, 0x64, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x52, 0x65, 0x71, 0x52, 0x08, 0x64, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x72, 0x75, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x65, 0x6e, - 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x22, 0xf9, 0x01, 0x0a, 0x0e, 0x44, - 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, - 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x66, 0x71, 0x62, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x62, 0x6e, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6b, 0x65, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, - 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, - 0x65, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, - 0x6d, 0x6d, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x61, 0x6d, 0x6d, 0x65, 0x72, 0x22, 0x35, 0x0a, 0x09, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xe5, 0x04, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x6f, 0x6c, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, 0x6f, - 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, - 0x65, 0x66, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x7d, 0x0a, - 0x17, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x74, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x74, 0x0a, 0x14, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x63, 0x63, 0x2e, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, - 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x1a, 0x49, 0x0a, 0x1b, 0x54, 0x6f, 0x6f, 0x6c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x46, 0x0a, - 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xbb, 0x01, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, - 0x4e, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x1e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, - 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, - 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, - 0x62, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x24, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, - 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x47, - 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_debug_debug_proto_rawDescOnce sync.Once - file_debug_debug_proto_rawDescData = file_debug_debug_proto_rawDesc -) - -func file_debug_debug_proto_rawDescGZIP() []byte { - file_debug_debug_proto_rawDescOnce.Do(func() { - file_debug_debug_proto_rawDescData = protoimpl.X.CompressGZIP(file_debug_debug_proto_rawDescData) - }) - return file_debug_debug_proto_rawDescData -} - -var file_debug_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_debug_debug_proto_goTypes = []interface{}{ - (*DebugReq)(nil), // 0: cc.arduino.cli.debug.DebugReq - (*DebugConfigReq)(nil), // 1: cc.arduino.cli.debug.DebugConfigReq - (*DebugResp)(nil), // 2: cc.arduino.cli.debug.DebugResp - (*GetDebugConfigResp)(nil), // 3: cc.arduino.cli.debug.GetDebugConfigResp - nil, // 4: cc.arduino.cli.debug.GetDebugConfigResp.ToolchainConfigurationEntry - nil, // 5: cc.arduino.cli.debug.GetDebugConfigResp.ServerConfigurationEntry - (*commands.Instance)(nil), // 6: cc.arduino.cli.commands.Instance -} -var file_debug_debug_proto_depIdxs = []int32{ - 1, // 0: cc.arduino.cli.debug.DebugReq.debugReq:type_name -> cc.arduino.cli.debug.DebugConfigReq - 6, // 1: cc.arduino.cli.debug.DebugConfigReq.instance:type_name -> cc.arduino.cli.commands.Instance - 4, // 2: cc.arduino.cli.debug.GetDebugConfigResp.toolchain_configuration:type_name -> cc.arduino.cli.debug.GetDebugConfigResp.ToolchainConfigurationEntry - 5, // 3: cc.arduino.cli.debug.GetDebugConfigResp.server_configuration:type_name -> cc.arduino.cli.debug.GetDebugConfigResp.ServerConfigurationEntry - 0, // 4: cc.arduino.cli.debug.Debug.Debug:input_type -> cc.arduino.cli.debug.DebugReq - 1, // 5: cc.arduino.cli.debug.Debug.GetDebugConfig:input_type -> cc.arduino.cli.debug.DebugConfigReq - 2, // 6: cc.arduino.cli.debug.Debug.Debug:output_type -> cc.arduino.cli.debug.DebugResp - 3, // 7: cc.arduino.cli.debug.Debug.GetDebugConfig:output_type -> cc.arduino.cli.debug.GetDebugConfigResp - 6, // [6:8] is the sub-list for method output_type - 4, // [4:6] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_debug_debug_proto_init() } -func file_debug_debug_proto_init() { - if File_debug_debug_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_debug_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_debug_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugConfigReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_debug_debug_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_debug_debug_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDebugConfigResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_debug_debug_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_debug_debug_proto_goTypes, - DependencyIndexes: file_debug_debug_proto_depIdxs, - MessageInfos: file_debug_debug_proto_msgTypes, - }.Build() - File_debug_debug_proto = out.File - file_debug_debug_proto_rawDesc = nil - file_debug_debug_proto_goTypes = nil - file_debug_debug_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// DebugClient is the client API for Debug service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DebugClient interface { - // Start a debug session and communicate with the debugger tool. - Debug(ctx context.Context, opts ...grpc.CallOption) (Debug_DebugClient, error) - GetDebugConfig(ctx context.Context, in *DebugConfigReq, opts ...grpc.CallOption) (*GetDebugConfigResp, error) -} - -type debugClient struct { - cc grpc.ClientConnInterface -} - -func NewDebugClient(cc grpc.ClientConnInterface) DebugClient { - return &debugClient{cc} -} - -func (c *debugClient) Debug(ctx context.Context, opts ...grpc.CallOption) (Debug_DebugClient, error) { - stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/cc.arduino.cli.debug.Debug/Debug", opts...) - if err != nil { - return nil, err - } - x := &debugDebugClient{stream} - return x, nil -} - -type Debug_DebugClient interface { - Send(*DebugReq) error - Recv() (*DebugResp, error) - grpc.ClientStream -} - -type debugDebugClient struct { - grpc.ClientStream -} - -func (x *debugDebugClient) Send(m *DebugReq) error { - return x.ClientStream.SendMsg(m) -} - -func (x *debugDebugClient) Recv() (*DebugResp, error) { - m := new(DebugResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *debugClient) GetDebugConfig(ctx context.Context, in *DebugConfigReq, opts ...grpc.CallOption) (*GetDebugConfigResp, error) { - out := new(GetDebugConfigResp) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.debug.Debug/GetDebugConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DebugServer is the server API for Debug service. -type DebugServer interface { - // Start a debug session and communicate with the debugger tool. - Debug(Debug_DebugServer) error - GetDebugConfig(context.Context, *DebugConfigReq) (*GetDebugConfigResp, error) -} - -// UnimplementedDebugServer can be embedded to have forward compatible implementations. -type UnimplementedDebugServer struct { -} - -func (*UnimplementedDebugServer) Debug(Debug_DebugServer) error { - return status.Errorf(codes.Unimplemented, "method Debug not implemented") -} -func (*UnimplementedDebugServer) GetDebugConfig(context.Context, *DebugConfigReq) (*GetDebugConfigResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDebugConfig not implemented") -} - -func RegisterDebugServer(s *grpc.Server, srv DebugServer) { - s.RegisterService(&_Debug_serviceDesc, srv) -} - -func _Debug_Debug_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(DebugServer).Debug(&debugDebugServer{stream}) -} - -type Debug_DebugServer interface { - Send(*DebugResp) error - Recv() (*DebugReq, error) - grpc.ServerStream -} - -type debugDebugServer struct { - grpc.ServerStream -} - -func (x *debugDebugServer) Send(m *DebugResp) error { - return x.ServerStream.SendMsg(m) -} - -func (x *debugDebugServer) Recv() (*DebugReq, error) { - m := new(DebugReq) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Debug_GetDebugConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DebugConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DebugServer).GetDebugConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.debug.Debug/GetDebugConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DebugServer).GetDebugConfig(ctx, req.(*DebugConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -var _Debug_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cc.arduino.cli.debug.Debug", - HandlerType: (*DebugServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetDebugConfig", - Handler: _Debug_GetDebugConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Debug", - Handler: _Debug_Debug_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "debug/debug.proto", -} diff --git a/rpc/debug/debug.proto b/rpc/debug/debug.proto deleted file mode 100644 index 087022173a3..00000000000 --- a/rpc/debug/debug.proto +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -syntax = "proto3"; - -package cc.arduino.cli.debug; - -option go_package = "github.com/arduino/arduino-cli/rpc/debug"; - -import "commands/common.proto"; - -// Service that abstract a debug Session usage -service Debug { - // Start a debug session and communicate with the debugger tool. - rpc Debug (stream DebugReq) returns (stream DebugResp) { - } - - rpc GetDebugConfig(DebugConfigReq) returns (GetDebugConfigResp) {} -} - -// The top-level message sent by the client for the `Debug` method. -// Multiple `DebugReq` messages can be sent but the first message -// must contain a `DebugConfigReq` message to initialize the debug session. -// All subsequent messages must contain bytes to be sent to the debug session -// and must not contain a `DebugReq` message. -message DebugReq { - // Content must be either a debug session config or data to be sent. - - // Provides information to the debug that specifies which is the target. - // The first `StreamingOpenReq` message must contain a `DebugReq` - // message. - DebugConfigReq debugReq = 1; - - // The data to be sent to the target being monitored. - bytes data = 2; - - // Set this to true to send and Interrupt signal to the debugger process - bool send_interrupt = 3; -} - -message DebugConfigReq { - // Arduino Core Service instance from the `Init` response. - cc.arduino.cli.commands.Instance instance = 1; - // Fully qualified board name of the board in use - // (e.g., `arduino:samd:mkr1000`). If this is omitted, the FQBN attached to - // the sketch will be used. - string fqbn = 2; - // Path to the sketch that is running on the board. The compiled executable - // is expected to be located under this path. - string sketch_path = 3; - // Port of the debugger (optional). - string port = 4; - // Which GDB command interpreter to use. - string interpreter = 5; - // Directory containing the compiled executable. If `import_dir` is not - // specified, the executable is assumed to be in - // `{sketch_path}/build/{fqbn}/`. - string import_dir = 8; - // The programmer to use for debugging. - string programmer = 9; -} - -// -message DebugResp { - // Incoming data from the debugger tool. - bytes data = 1; - // Incoming error output from the debugger tool. - string error = 2; -} - -message GetDebugConfigResp { - // The executable binary to debug - string executable = 1; - // The toolchain type used for the build (for example "gcc") - string toolchain = 2; - // The toolchain directory - string toolchain_path = 3; - // The toolchain architecture prefix (for example "arm-none-eabi-") - string toolchain_prefix = 4; - // The GDB server type used to connect to the programmer/board (for example "openocd") - string server = 5; - // The GDB server directory - string server_path = 6; - // Extra configuration parameters wrt toolchain - map toolchain_configuration = 7; - // Extra configuration parameters wrt GDB server - map server_configuration = 8; -} diff --git a/rpc/monitor/monitor.pb.go b/rpc/monitor/monitor.pb.go deleted file mode 100644 index dfb912d6e1c..00000000000 --- a/rpc/monitor/monitor.pb.go +++ /dev/null @@ -1,612 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: monitor/monitor.proto - -package monitor - -import ( - context "context" - proto "github.com/golang/protobuf/proto" - _struct "github.com/golang/protobuf/ptypes/struct" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type MonitorConfig_TargetType int32 - -const ( - MonitorConfig_SERIAL MonitorConfig_TargetType = 0 - MonitorConfig_NULL MonitorConfig_TargetType = 99 -) - -// Enum value maps for MonitorConfig_TargetType. -var ( - MonitorConfig_TargetType_name = map[int32]string{ - 0: "SERIAL", - 99: "NULL", - } - MonitorConfig_TargetType_value = map[string]int32{ - "SERIAL": 0, - "NULL": 99, - } -) - -func (x MonitorConfig_TargetType) Enum() *MonitorConfig_TargetType { - p := new(MonitorConfig_TargetType) - *p = x - return p -} - -func (x MonitorConfig_TargetType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MonitorConfig_TargetType) Descriptor() protoreflect.EnumDescriptor { - return file_monitor_monitor_proto_enumTypes[0].Descriptor() -} - -func (MonitorConfig_TargetType) Type() protoreflect.EnumType { - return &file_monitor_monitor_proto_enumTypes[0] -} - -func (x MonitorConfig_TargetType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MonitorConfig_TargetType.Descriptor instead. -func (MonitorConfig_TargetType) EnumDescriptor() ([]byte, []int) { - return file_monitor_monitor_proto_rawDescGZIP(), []int{1, 0} -} - -// The top-level message sent by the client for the `StreamingOpen` method. -// Multiple `StreamingOpenReq` messages can be sent but the first message -// must contain a `monitor_config` message to initialize the monitor target. -// All subsequent messages must contain bytes to be sent to the target -// and must not contain a `monitor_config` message. -type StreamingOpenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Content must be either a monitor config or data to be sent. - // - // Types that are assignable to Content: - // *StreamingOpenReq_MonitorConfig - // *StreamingOpenReq_Data - // *StreamingOpenReq_RecvAcknowledge - Content isStreamingOpenReq_Content `protobuf_oneof:"content"` -} - -func (x *StreamingOpenReq) Reset() { - *x = StreamingOpenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_monitor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamingOpenReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamingOpenReq) ProtoMessage() {} - -func (x *StreamingOpenReq) ProtoReflect() protoreflect.Message { - mi := &file_monitor_monitor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamingOpenReq.ProtoReflect.Descriptor instead. -func (*StreamingOpenReq) Descriptor() ([]byte, []int) { - return file_monitor_monitor_proto_rawDescGZIP(), []int{0} -} - -func (m *StreamingOpenReq) GetContent() isStreamingOpenReq_Content { - if m != nil { - return m.Content - } - return nil -} - -func (x *StreamingOpenReq) GetMonitorConfig() *MonitorConfig { - if x, ok := x.GetContent().(*StreamingOpenReq_MonitorConfig); ok { - return x.MonitorConfig - } - return nil -} - -func (x *StreamingOpenReq) GetData() []byte { - if x, ok := x.GetContent().(*StreamingOpenReq_Data); ok { - return x.Data - } - return nil -} - -func (x *StreamingOpenReq) GetRecvAcknowledge() int32 { - if x, ok := x.GetContent().(*StreamingOpenReq_RecvAcknowledge); ok { - return x.RecvAcknowledge - } - return 0 -} - -type isStreamingOpenReq_Content interface { - isStreamingOpenReq_Content() -} - -type StreamingOpenReq_MonitorConfig struct { - // Provides information to the monitor that specifies which is the target. - // The first `StreamingOpenReq` message must contain a `monitor_config` - // message. - MonitorConfig *MonitorConfig `protobuf:"bytes,1,opt,name=monitorConfig,proto3,oneof"` -} - -type StreamingOpenReq_Data struct { - // The data to be sent to the target being monitored. - Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"` -} - -type StreamingOpenReq_RecvAcknowledge struct { - // When the rate limiter is enabled, this parameter is used to report the - // number of successfully processed StreamingOpenResp messages (with data). - RecvAcknowledge int32 `protobuf:"varint,3,opt,name=recv_acknowledge,json=recvAcknowledge,proto3,oneof"` -} - -func (*StreamingOpenReq_MonitorConfig) isStreamingOpenReq_Content() {} - -func (*StreamingOpenReq_Data) isStreamingOpenReq_Content() {} - -func (*StreamingOpenReq_RecvAcknowledge) isStreamingOpenReq_Content() {} - -// Tells the monitor which target to open and provides additional parameters -// that might be needed to configure the target or the monitor itself. -type MonitorConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The target name. - Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - Type MonitorConfig_TargetType `protobuf:"varint,2,opt,name=type,proto3,enum=cc.arduino.cli.monitor.MonitorConfig_TargetType" json:"type,omitempty"` - // Additional parameters that might be needed to configure the target or the - // monitor itself. - AdditionalConfig *_struct.Struct `protobuf:"bytes,3,opt,name=additionalConfig,proto3" json:"additionalConfig,omitempty"` - // This parameter indicates how many bytes should be buffered on the server side - // before dropping. If >0 then the server will enable a rate limiter and will send - // incoming data to the client only when the client allows it: see the - // StreamingOpenReq.recv_acknowledge parameter for details. - RecvRateLimitBuffer int32 `protobuf:"varint,4,opt,name=recv_rate_limit_buffer,json=recvRateLimitBuffer,proto3" json:"recv_rate_limit_buffer,omitempty"` -} - -func (x *MonitorConfig) Reset() { - *x = MonitorConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_monitor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MonitorConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MonitorConfig) ProtoMessage() {} - -func (x *MonitorConfig) ProtoReflect() protoreflect.Message { - mi := &file_monitor_monitor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MonitorConfig.ProtoReflect.Descriptor instead. -func (*MonitorConfig) Descriptor() ([]byte, []int) { - return file_monitor_monitor_proto_rawDescGZIP(), []int{1} -} - -func (x *MonitorConfig) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *MonitorConfig) GetType() MonitorConfig_TargetType { - if x != nil { - return x.Type - } - return MonitorConfig_SERIAL -} - -func (x *MonitorConfig) GetAdditionalConfig() *_struct.Struct { - if x != nil { - return x.AdditionalConfig - } - return nil -} - -func (x *MonitorConfig) GetRecvRateLimitBuffer() int32 { - if x != nil { - return x.RecvRateLimitBuffer - } - return 0 -} - -// -type StreamingOpenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The data received from the target. - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - // The number of bytes dropped. - // During regular updates this number should be 0, but in case the - // client is not able to process the recv window quickly enough this - // parameter will report the number of dropped bytes. - Dropped int32 `protobuf:"varint,2,opt,name=dropped,proto3" json:"dropped,omitempty"` -} - -func (x *StreamingOpenResp) Reset() { - *x = StreamingOpenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_monitor_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamingOpenResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamingOpenResp) ProtoMessage() {} - -func (x *StreamingOpenResp) ProtoReflect() protoreflect.Message { - mi := &file_monitor_monitor_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamingOpenResp.ProtoReflect.Descriptor instead. -func (*StreamingOpenResp) Descriptor() ([]byte, []int) { - return file_monitor_monitor_proto_rawDescGZIP(), []int{2} -} - -func (x *StreamingOpenResp) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -func (x *StreamingOpenResp) GetDropped() int32 { - if x != nil { - return x.Dropped - } - return 0 -} - -var File_monitor_monitor_proto protoreflect.FileDescriptor - -var file_monitor_monitor_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x1a, - 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, - 0x0a, 0x10, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, - 0x65, 0x71, 0x12, 0x4d, 0x0a, 0x0d, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, - 0x6f, 0x72, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, - 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x76, 0x5f, - 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x76, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, - 0x8b, 0x02, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x43, 0x0a, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x16, 0x72, 0x65, 0x63, 0x76, 0x5f, 0x72, 0x61, 0x74, - 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x72, 0x65, 0x63, 0x76, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x52, 0x49, 0x41, - 0x4c, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x63, 0x22, 0x41, 0x0a, - 0x11, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, - 0x32, 0x75, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x6a, 0x0a, 0x0d, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x28, 0x2e, 0x63, - 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, - 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, - 0x70, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x29, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, - 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x6d, 0x6f, - 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_monitor_monitor_proto_rawDescOnce sync.Once - file_monitor_monitor_proto_rawDescData = file_monitor_monitor_proto_rawDesc -) - -func file_monitor_monitor_proto_rawDescGZIP() []byte { - file_monitor_monitor_proto_rawDescOnce.Do(func() { - file_monitor_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_monitor_monitor_proto_rawDescData) - }) - return file_monitor_monitor_proto_rawDescData -} - -var file_monitor_monitor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_monitor_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_monitor_monitor_proto_goTypes = []interface{}{ - (MonitorConfig_TargetType)(0), // 0: cc.arduino.cli.monitor.MonitorConfig.TargetType - (*StreamingOpenReq)(nil), // 1: cc.arduino.cli.monitor.StreamingOpenReq - (*MonitorConfig)(nil), // 2: cc.arduino.cli.monitor.MonitorConfig - (*StreamingOpenResp)(nil), // 3: cc.arduino.cli.monitor.StreamingOpenResp - (*_struct.Struct)(nil), // 4: google.protobuf.Struct -} -var file_monitor_monitor_proto_depIdxs = []int32{ - 2, // 0: cc.arduino.cli.monitor.StreamingOpenReq.monitorConfig:type_name -> cc.arduino.cli.monitor.MonitorConfig - 0, // 1: cc.arduino.cli.monitor.MonitorConfig.type:type_name -> cc.arduino.cli.monitor.MonitorConfig.TargetType - 4, // 2: cc.arduino.cli.monitor.MonitorConfig.additionalConfig:type_name -> google.protobuf.Struct - 1, // 3: cc.arduino.cli.monitor.Monitor.StreamingOpen:input_type -> cc.arduino.cli.monitor.StreamingOpenReq - 3, // 4: cc.arduino.cli.monitor.Monitor.StreamingOpen:output_type -> cc.arduino.cli.monitor.StreamingOpenResp - 4, // [4:5] is the sub-list for method output_type - 3, // [3:4] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_monitor_monitor_proto_init() } -func file_monitor_monitor_proto_init() { - if File_monitor_monitor_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_monitor_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StreamingOpenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MonitorConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_monitor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StreamingOpenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_monitor_monitor_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*StreamingOpenReq_MonitorConfig)(nil), - (*StreamingOpenReq_Data)(nil), - (*StreamingOpenReq_RecvAcknowledge)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_monitor_monitor_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_monitor_monitor_proto_goTypes, - DependencyIndexes: file_monitor_monitor_proto_depIdxs, - EnumInfos: file_monitor_monitor_proto_enumTypes, - MessageInfos: file_monitor_monitor_proto_msgTypes, - }.Build() - File_monitor_monitor_proto = out.File - file_monitor_monitor_proto_rawDesc = nil - file_monitor_monitor_proto_goTypes = nil - file_monitor_monitor_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// MonitorClient is the client API for Monitor service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MonitorClient interface { - // Open a bidirectional monitor stream. This can be used to implement - // something similar to the Arduino IDE's Serial Monitor. - StreamingOpen(ctx context.Context, opts ...grpc.CallOption) (Monitor_StreamingOpenClient, error) -} - -type monitorClient struct { - cc grpc.ClientConnInterface -} - -func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient { - return &monitorClient{cc} -} - -func (c *monitorClient) StreamingOpen(ctx context.Context, opts ...grpc.CallOption) (Monitor_StreamingOpenClient, error) { - stream, err := c.cc.NewStream(ctx, &_Monitor_serviceDesc.Streams[0], "/cc.arduino.cli.monitor.Monitor/StreamingOpen", opts...) - if err != nil { - return nil, err - } - x := &monitorStreamingOpenClient{stream} - return x, nil -} - -type Monitor_StreamingOpenClient interface { - Send(*StreamingOpenReq) error - Recv() (*StreamingOpenResp, error) - grpc.ClientStream -} - -type monitorStreamingOpenClient struct { - grpc.ClientStream -} - -func (x *monitorStreamingOpenClient) Send(m *StreamingOpenReq) error { - return x.ClientStream.SendMsg(m) -} - -func (x *monitorStreamingOpenClient) Recv() (*StreamingOpenResp, error) { - m := new(StreamingOpenResp) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// MonitorServer is the server API for Monitor service. -type MonitorServer interface { - // Open a bidirectional monitor stream. This can be used to implement - // something similar to the Arduino IDE's Serial Monitor. - StreamingOpen(Monitor_StreamingOpenServer) error -} - -// UnimplementedMonitorServer can be embedded to have forward compatible implementations. -type UnimplementedMonitorServer struct { -} - -func (*UnimplementedMonitorServer) StreamingOpen(Monitor_StreamingOpenServer) error { - return status.Errorf(codes.Unimplemented, "method StreamingOpen not implemented") -} - -func RegisterMonitorServer(s *grpc.Server, srv MonitorServer) { - s.RegisterService(&_Monitor_serviceDesc, srv) -} - -func _Monitor_StreamingOpen_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(MonitorServer).StreamingOpen(&monitorStreamingOpenServer{stream}) -} - -type Monitor_StreamingOpenServer interface { - Send(*StreamingOpenResp) error - Recv() (*StreamingOpenReq, error) - grpc.ServerStream -} - -type monitorStreamingOpenServer struct { - grpc.ServerStream -} - -func (x *monitorStreamingOpenServer) Send(m *StreamingOpenResp) error { - return x.ServerStream.SendMsg(m) -} - -func (x *monitorStreamingOpenServer) Recv() (*StreamingOpenReq, error) { - m := new(StreamingOpenReq) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _Monitor_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cc.arduino.cli.monitor.Monitor", - HandlerType: (*MonitorServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamingOpen", - Handler: _Monitor_StreamingOpen_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "monitor/monitor.proto", -} diff --git a/rpc/settings/settings.pb.go b/rpc/settings/settings.pb.go deleted file mode 100644 index 7242b11d8d1..00000000000 --- a/rpc/settings/settings.pb.go +++ /dev/null @@ -1,851 +0,0 @@ -// 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.12.4 -// source: settings/settings.proto - -package settings - -import ( - context "context" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type RawData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The settings, in JSON format. - JsonData string `protobuf:"bytes,1,opt,name=jsonData,proto3" json:"jsonData,omitempty"` -} - -func (x *RawData) Reset() { - *x = RawData{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RawData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RawData) ProtoMessage() {} - -func (x *RawData) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RawData.ProtoReflect.Descriptor instead. -func (*RawData) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{0} -} - -func (x *RawData) GetJsonData() string { - if x != nil { - return x.JsonData - } - return "" -} - -type Value struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The key of the setting. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // The setting, in JSON format. - JsonData string `protobuf:"bytes,2,opt,name=jsonData,proto3" json:"jsonData,omitempty"` -} - -func (x *Value) Reset() { - *x = Value{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Value) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Value) ProtoMessage() {} - -func (x *Value) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Value.ProtoReflect.Descriptor instead. -func (*Value) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{1} -} - -func (x *Value) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Value) GetJsonData() string { - if x != nil { - return x.JsonData - } - return "" -} - -type GetAllRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetAllRequest) Reset() { - *x = GetAllRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllRequest) ProtoMessage() {} - -func (x *GetAllRequest) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead. -func (*GetAllRequest) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{2} -} - -type GetValueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The key of the setting. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *GetValueRequest) Reset() { - *x = GetValueRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetValueRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetValueRequest) ProtoMessage() {} - -func (x *GetValueRequest) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetValueRequest.ProtoReflect.Descriptor instead. -func (*GetValueRequest) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{3} -} - -func (x *GetValueRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type MergeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MergeResponse) Reset() { - *x = MergeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MergeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MergeResponse) ProtoMessage() {} - -func (x *MergeResponse) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MergeResponse.ProtoReflect.Descriptor instead. -func (*MergeResponse) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{4} -} - -type SetValueResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetValueResponse) Reset() { - *x = SetValueResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetValueResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetValueResponse) ProtoMessage() {} - -func (x *SetValueResponse) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetValueResponse.ProtoReflect.Descriptor instead. -func (*SetValueResponse) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{5} -} - -type WriteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Path to settings file (e.g. /path/to/arduino-cli.yaml) - FilePath string `protobuf:"bytes,1,opt,name=filePath,proto3" json:"filePath,omitempty"` -} - -func (x *WriteRequest) Reset() { - *x = WriteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteRequest) ProtoMessage() {} - -func (x *WriteRequest) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. -func (*WriteRequest) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{6} -} - -func (x *WriteRequest) GetFilePath() string { - if x != nil { - return x.FilePath - } - return "" -} - -type WriteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WriteResponse) Reset() { - *x = WriteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_settings_settings_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteResponse) ProtoMessage() {} - -func (x *WriteResponse) ProtoReflect() protoreflect.Message { - mi := &file_settings_settings_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. -func (*WriteResponse) Descriptor() ([]byte, []int) { - return file_settings_settings_proto_rawDescGZIP(), []int{7} -} - -var File_settings_settings_proto protoreflect.FileDescriptor - -var file_settings_settings_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x22, 0x25, 0x0a, 0x07, 0x52, 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, - 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x05, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x22, 0x0f, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x23, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x0f, 0x0a, 0x0d, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x0c, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, - 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, - 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x0f, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb6, 0x03, 0x0a, 0x08, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x52, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x12, - 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, - 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, - 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x73, 0x2e, 0x52, 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x51, 0x0a, 0x05, 0x4d, 0x65, 0x72, - 0x67, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x77, - 0x44, 0x61, 0x74, 0x61, 0x1a, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, - 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4d, - 0x65, 0x72, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, - 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, - 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1e, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x29, - 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, - 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x05, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x12, 0x25, 0x2e, 0x63, 0x63, 0x2e, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, - 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x63, 0x2e, 0x61, - 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x73, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x2d, - 0x63, 0x6c, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_settings_settings_proto_rawDescOnce sync.Once - file_settings_settings_proto_rawDescData = file_settings_settings_proto_rawDesc -) - -func file_settings_settings_proto_rawDescGZIP() []byte { - file_settings_settings_proto_rawDescOnce.Do(func() { - file_settings_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_settings_settings_proto_rawDescData) - }) - return file_settings_settings_proto_rawDescData -} - -var file_settings_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_settings_settings_proto_goTypes = []interface{}{ - (*RawData)(nil), // 0: cc.arduino.cli.settings.RawData - (*Value)(nil), // 1: cc.arduino.cli.settings.Value - (*GetAllRequest)(nil), // 2: cc.arduino.cli.settings.GetAllRequest - (*GetValueRequest)(nil), // 3: cc.arduino.cli.settings.GetValueRequest - (*MergeResponse)(nil), // 4: cc.arduino.cli.settings.MergeResponse - (*SetValueResponse)(nil), // 5: cc.arduino.cli.settings.SetValueResponse - (*WriteRequest)(nil), // 6: cc.arduino.cli.settings.WriteRequest - (*WriteResponse)(nil), // 7: cc.arduino.cli.settings.WriteResponse -} -var file_settings_settings_proto_depIdxs = []int32{ - 2, // 0: cc.arduino.cli.settings.Settings.GetAll:input_type -> cc.arduino.cli.settings.GetAllRequest - 0, // 1: cc.arduino.cli.settings.Settings.Merge:input_type -> cc.arduino.cli.settings.RawData - 3, // 2: cc.arduino.cli.settings.Settings.GetValue:input_type -> cc.arduino.cli.settings.GetValueRequest - 1, // 3: cc.arduino.cli.settings.Settings.SetValue:input_type -> cc.arduino.cli.settings.Value - 6, // 4: cc.arduino.cli.settings.Settings.Write:input_type -> cc.arduino.cli.settings.WriteRequest - 0, // 5: cc.arduino.cli.settings.Settings.GetAll:output_type -> cc.arduino.cli.settings.RawData - 4, // 6: cc.arduino.cli.settings.Settings.Merge:output_type -> cc.arduino.cli.settings.MergeResponse - 1, // 7: cc.arduino.cli.settings.Settings.GetValue:output_type -> cc.arduino.cli.settings.Value - 5, // 8: cc.arduino.cli.settings.Settings.SetValue:output_type -> cc.arduino.cli.settings.SetValueResponse - 7, // 9: cc.arduino.cli.settings.Settings.Write:output_type -> cc.arduino.cli.settings.WriteResponse - 5, // [5:10] is the sub-list for method output_type - 0, // [0:5] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_settings_settings_proto_init() } -func file_settings_settings_proto_init() { - if File_settings_settings_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_settings_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RawData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Value); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetValueRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MergeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetValueResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_settings_settings_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_settings_settings_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_settings_settings_proto_goTypes, - DependencyIndexes: file_settings_settings_proto_depIdxs, - MessageInfos: file_settings_settings_proto_msgTypes, - }.Build() - File_settings_settings_proto = out.File - file_settings_settings_proto_rawDesc = nil - file_settings_settings_proto_goTypes = nil - file_settings_settings_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// SettingsClient is the client API for Settings service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SettingsClient interface { - // List all the settings. - GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*RawData, error) - // Set multiple settings values at once. - Merge(ctx context.Context, in *RawData, opts ...grpc.CallOption) (*MergeResponse, error) - // Get the value of a specific setting. - GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*Value, error) - // Set the value of a specific setting. - SetValue(ctx context.Context, in *Value, opts ...grpc.CallOption) (*SetValueResponse, error) - // Writes to file settings currently stored in memory - Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) -} - -type settingsClient struct { - cc grpc.ClientConnInterface -} - -func NewSettingsClient(cc grpc.ClientConnInterface) SettingsClient { - return &settingsClient{cc} -} - -func (c *settingsClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*RawData, error) { - out := new(RawData) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.Settings/GetAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsClient) Merge(ctx context.Context, in *RawData, opts ...grpc.CallOption) (*MergeResponse, error) { - out := new(MergeResponse) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.Settings/Merge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsClient) GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*Value, error) { - out := new(Value) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.Settings/GetValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsClient) SetValue(ctx context.Context, in *Value, opts ...grpc.CallOption) (*SetValueResponse, error) { - out := new(SetValueResponse) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.Settings/SetValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { - out := new(WriteResponse) - err := c.cc.Invoke(ctx, "/cc.arduino.cli.settings.Settings/Write", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SettingsServer is the server API for Settings service. -type SettingsServer interface { - // List all the settings. - GetAll(context.Context, *GetAllRequest) (*RawData, error) - // Set multiple settings values at once. - Merge(context.Context, *RawData) (*MergeResponse, error) - // Get the value of a specific setting. - GetValue(context.Context, *GetValueRequest) (*Value, error) - // Set the value of a specific setting. - SetValue(context.Context, *Value) (*SetValueResponse, error) - // Writes to file settings currently stored in memory - Write(context.Context, *WriteRequest) (*WriteResponse, error) -} - -// UnimplementedSettingsServer can be embedded to have forward compatible implementations. -type UnimplementedSettingsServer struct { -} - -func (*UnimplementedSettingsServer) GetAll(context.Context, *GetAllRequest) (*RawData, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAll not implemented") -} -func (*UnimplementedSettingsServer) Merge(context.Context, *RawData) (*MergeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Merge not implemented") -} -func (*UnimplementedSettingsServer) GetValue(context.Context, *GetValueRequest) (*Value, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetValue not implemented") -} -func (*UnimplementedSettingsServer) SetValue(context.Context, *Value) (*SetValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetValue not implemented") -} -func (*UnimplementedSettingsServer) Write(context.Context, *WriteRequest) (*WriteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Write not implemented") -} - -func RegisterSettingsServer(s *grpc.Server, srv SettingsServer) { - s.RegisterService(&_Settings_serviceDesc, srv) -} - -func _Settings_GetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServer).GetAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.settings.Settings/GetAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServer).GetAll(ctx, req.(*GetAllRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Settings_Merge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RawData) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServer).Merge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.settings.Settings/Merge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServer).Merge(ctx, req.(*RawData)) - } - return interceptor(ctx, in, info, handler) -} - -func _Settings_GetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServer).GetValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.settings.Settings/GetValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServer).GetValue(ctx, req.(*GetValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Settings_SetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Value) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServer).SetValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.settings.Settings/SetValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServer).SetValue(ctx, req.(*Value)) - } - return interceptor(ctx, in, info, handler) -} - -func _Settings_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServer).Write(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cc.arduino.cli.settings.Settings/Write", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServer).Write(ctx, req.(*WriteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Settings_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cc.arduino.cli.settings.Settings", - HandlerType: (*SettingsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAll", - Handler: _Settings_GetAll_Handler, - }, - { - MethodName: "Merge", - Handler: _Settings_Merge_Handler, - }, - { - MethodName: "GetValue", - Handler: _Settings_GetValue_Handler, - }, - { - MethodName: "SetValue", - Handler: _Settings_SetValue_Handler, - }, - { - MethodName: "Write", - Handler: _Settings_Write_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "settings/settings.proto", -} diff --git a/test/test_board.py b/test/test_board.py index 32c7152e783..41d3361b751 100644 --- a/test/test_board.py +++ b/test/test_board.py @@ -22,12 +22,12 @@ "fqbn": "arduino:samd:nano_33_iot", "name": "Arduino NANO 33 IoT", "version": "1.8.6", - "propertiesId": "nano_33_iot", + "properties_id": "nano_33_iot", "official": true, "package": { "maintainer": "Arduino", "url": "https://downloads.arduino.cc/packages/package_index.json", - "websiteURL": "http://www.arduino.cc/", + "website_url": "http://www.arduino.cc/", "email": "packages@arduino.cc", "name": "arduino", "help": { @@ -38,7 +38,7 @@ "architecture": "samd", "category": "Arduino", "url": "http://downloads.arduino.cc/cores/samd-1.8.6.tar.bz2", - "archiveFileName": "samd-1.8.6.tar.bz2", + "archive_filename": "samd-1.8.6.tar.bz2", "checksum": "SHA-256:68a4fffa6fe6aa7886aab2e69dff7d3f94c02935bbbeb42de37f692d7daf823b", "size": 2980953, "name": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" @@ -52,42 +52,42 @@ { "checksum": "SHA-256:34180943d95f759c66444a40b032f7dd9159a562670fc334f049567de140c51b", "host": "arm-linux-gnueabihf", - "archiveFileName": "gcc-arm-none-eabi-7-2019-q4-major-linuxarm.tar.bz2", + "archive_filename": "gcc-arm-none-eabi-7-2019-q4-major-linuxarm.tar.bz2", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2019-q4-major-linuxarm.tar.bz2", "size": 96613739 }, { "checksum": "SHA-256:6fb5752fb4d11012bd0a1ceb93a19d0641ff7cf29d289b3e6b86b99768e66f76", "host": "aarch64-linux-gnu", - "archiveFileName": "gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2", + "archive_filename": "gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2", "size": 99558726 }, { "checksum": "SHA-256:96dd0091856f4d2eb21046eba571321feecf7d50b9c156f708b2a8b683903382", "host": "i686-mingw32", - "archiveFileName": "gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip", + "archive_filename": "gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip", "size": 131761924 }, { "checksum": "SHA-256:89b776c7cf0591c810b5b60067e4dc113b5b71bc50084a536e71b894a97fdccb", "host": "x86_64-apple-darwin", - "archiveFileName": "gcc-arm-none-eabi-7-2017-q4-major-mac.tar.bz2", + "archive_filename": "gcc-arm-none-eabi-7-2017-q4-major-mac.tar.bz2", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2017-q4-major-mac.tar.bz2", "size": 104550003 }, { "checksum": "SHA-256:96a029e2ae130a1210eaa69e309ea40463028eab18ba19c1086e4c2dafe69a6a", "host": "x86_64-pc-linux-gnu", - "archiveFileName": "gcc-arm-none-eabi-7-2017-q4-major-linux64.tar.bz2", + "archive_filename": "gcc-arm-none-eabi-7-2017-q4-major-linux64.tar.bz2", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2017-q4-major-linux64.tar.bz2", "size": 99857645 }, { "checksum": "SHA-256:090a0bc2b1956bc49392dff924a6c30fa57c88130097b1972204d67a45ce3cf3", "host": "i686-pc-linux-gnu", - "archiveFileName": "gcc-arm-none-eabi-7-2018-q2-update-linux32.tar.bz2", + "archive_filename": "gcc-arm-none-eabi-7-2018-q2-update-linux32.tar.bz2", "url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2018-q2-update-linux32.tar.bz2", "size": 97427309 } @@ -101,42 +101,42 @@ { "checksum": "SHA-256:62745cc5a98c26949ec9041ef20420643c561ec43e99dae659debf44e6836526", "host": "i686-mingw32", - "archiveFileName": "bossac-1.7.0-arduino3-windows.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-windows.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-windows.tar.gz", "size": 3607421 }, { "checksum": "SHA-256:adb3c14debd397d8135e9e970215c6972f0e592c7af7532fa15f9ce5e64b991f", "host": "x86_64-apple-darwin", - "archiveFileName": "bossac-1.7.0-arduino3-osx.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-osx.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-osx.tar.gz", "size": 75510 }, { "checksum": "SHA-256:1ae54999c1f97234a5c603eb99ad39313b11746a4ca517269a9285afa05f9100", "host": "x86_64-pc-linux-gnu", - "archiveFileName": "bossac-1.7.0-arduino3-linux64.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-linux64.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-linux64.tar.gz", "size": 207271 }, { "checksum": "SHA-256:4ac4354746d1a09258f49a43ef4d1baf030d81c022f8434774268b00f55d3ec3", "host": "i686-pc-linux-gnu", - "archiveFileName": "bossac-1.7.0-arduino3-linux32.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-linux32.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-linux32.tar.gz", "size": 193577 }, { "checksum": "SHA-256:626c6cc548046901143037b782bf019af1663bae0d78cf19181a876fb9abbb90", "host": "arm-linux-gnueabihf", - "archiveFileName": "bossac-1.7.0-arduino3-linuxarm.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-linuxarm.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-linuxarm.tar.gz", "size": 193941 }, { "checksum": "SHA-256:a098b2cc23e29f0dc468416210d097c4a808752cd5da1a7b9b8b7b931a04180b", "host": "aarch64-linux-gnu", - "archiveFileName": "bossac-1.7.0-arduino3-linuxaarch64.tar.gz", + "archive_filename": "bossac-1.7.0-arduino3-linuxaarch64.tar.gz", "url": "http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-linuxaarch64.tar.gz", "size": 268365 } @@ -150,42 +150,42 @@ { "checksum": "SHA-256:f8e0d783e80a3d5f75ee82e9542315871d46e1e283a97447735f1cbcd8986b06", "host": "arm-linux-gnueabihf", - "archiveFileName": "openocd-0.10.0-arduino7-static-arm-linux-gnueabihf.tar.bz2", + "archive_filename": "openocd-0.10.0-arduino7-static-arm-linux-gnueabihf.tar.bz2", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-arm-linux-gnueabihf.tar.bz2", "size": 1638575 }, { "checksum": "SHA-256:d47d728a9a8d98f28dc22e31d7127ced9de0d5e268292bf935e050ef1d2bdfd0", "host": "aarch64-linux-gnu", - "archiveFileName": "openocd-0.10.0-arduino7-static-aarch64-linux-gnu.tar.bz2", + "archive_filename": "openocd-0.10.0-arduino7-static-aarch64-linux-gnu.tar.bz2", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-aarch64-linux-gnu.tar.bz2", "size": 1580739 }, { "checksum": "SHA-256:1e539a587a0c54a551ce0dc542af10a2520b1c93bbfe2ca4ebaef4c83411df1a", "host": "i386-apple-darwin11", - "archiveFileName": "openocd-0.10.0-arduino7-static-x86_64-apple-darwin13.tar.bz2", + "archive_filename": "openocd-0.10.0-arduino7-static-x86_64-apple-darwin13.tar.bz2", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-x86_64-apple-darwin13.tar.bz2", "size": 1498970 }, { "checksum": "SHA-256:91d418bd309ec1e98795c622cd25c936aa537c0b3828fa5bcb191389378a1b27", "host": "x86_64-linux-gnu", - "archiveFileName": "openocd-0.10.0-arduino7-static-x86_64-ubuntu12.04-linux-gnu.tar.bz2", + "archive_filename": "openocd-0.10.0-arduino7-static-x86_64-ubuntu12.04-linux-gnu.tar.bz2", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-x86_64-ubuntu12.04-linux-gnu.tar.bz2", "size": 1701581 }, { "checksum": "SHA-256:08a18f39d72a5626383503053a30a5da89eed7fdccb6f514b20b77403eb1b2b4", "host": "i686-linux-gnu", - "archiveFileName": "openocd-0.10.0-arduino7-static-i686-ubuntu12.04-linux-gnu.tar.bz2", + "archive_filename": "openocd-0.10.0-arduino7-static-i686-ubuntu12.04-linux-gnu.tar.bz2", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-ubuntu12.04-linux-gnu.tar.bz2", "size": 1626347 }, { "checksum": "SHA-256:f251aec5471296e18aa540c3078d66475357a76a77c16c06a2d9345f4e12b3d5", "host": "i686-mingw32", - "archiveFileName": "openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip", + "archive_filename": "openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip", "url": "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip", "size": 2016965 } @@ -199,49 +199,49 @@ { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "i686-mingw32", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "x86_64-apple-darwin", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "x86_64-pc-linux-gnu", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "i686-pc-linux-gnu", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "arm-linux-gnueabihf", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "aarch64-linux-gnu", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 }, { "checksum": "SHA-256:cd8f7eae9fc7c8b4a1b5e40b89b9666d33953b47d3d2eb81844f5af729fa224d", "host": "all", - "archiveFileName": "CMSIS-4.5.0.tar.bz2", + "archive_filename": "CMSIS-4.5.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-4.5.0.tar.bz2", "size": 31525196 } @@ -255,49 +255,49 @@ { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "i686-mingw32", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "x86_64-apple-darwin", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "http://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "x86_64-pc-linux-gnu", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "https://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "i686-pc-linux-gnu", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "https://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "arm-linux-gnueabihf", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "https://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "aarch64-linux-gnu", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "https://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 }, { "checksum": "SHA-256:5e02670be7e36be9691d059bee0b04ee8b249404687531f33893922d116b19a5", "host": "all", - "archiveFileName": "CMSIS-Atmel-1.2.0.tar.bz2", + "archive_filename": "CMSIS-Atmel-1.2.0.tar.bz2", "url": "https://downloads.arduino.cc/CMSIS-Atmel-1.2.0.tar.bz2", "size": 2221805 } @@ -311,59 +311,59 @@ { "checksum": "SHA-256:2ffdf64b78486c1d0bf28dc23d0ca36ab75ca92e84b9487246da01888abea6d4", "host": "i686-linux-gnu", - "archiveFileName": "arduinoOTA-1.2.1-linux_386.tar.bz2", + "archive_filename": "arduinoOTA-1.2.1-linux_386.tar.bz2", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-linux_386.tar.bz2", "size": 2133779 }, { "checksum": "SHA-256:5b82310d53688480f34a916aac31cd8f2dd2be65dd8fa6c2445262262e1948f9", "host": "x86_64-linux-gnu", - "archiveFileName": "arduinoOTA-1.2.1-linux_amd64.tar.bz2", + "archive_filename": "arduinoOTA-1.2.1-linux_amd64.tar.bz2", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-linux_amd64.tar.bz2", "size": 2257689 }, { "checksum": "SHA-256:ad54b3dcd586212941fd992bab573b53d13207a419a3f2981c970a085ae0e9e0", "host": "arm-linux-gnueabihf", - "archiveFileName": "arduinoOTA-1.2.1-linux_arm.tar.bz2", + "archive_filename": "arduinoOTA-1.2.1-linux_arm.tar.bz2", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-linux_arm.tar.bz2", "size": 2093132 }, { "checksum": "SHA-256:ad54b3dcd586212941fd992bab573b53d13207a419a3f2981c970a085ae0e9e0", "host": "aarch64-linux-gnu", - "archiveFileName": "arduinoOTA-1.2.1-linux_arm.tar.bz2", + "archive_filename": "arduinoOTA-1.2.1-linux_arm.tar.bz2", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-linux_arm.tar.bz2", "size": 2093132 }, { "checksum": "SHA-256:93a6d9f9c0c765d237be1665bf7a0a8e2b0b6d2a8531eae92db807f5515088a7", "host": "i386-apple-darwin11", - "archiveFileName": "arduinoOTA-1.2.1-darwin_amd64.tar.bz2", + "archive_filename": "arduinoOTA-1.2.1-darwin_amd64.tar.bz2", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-darwin_amd64.tar.bz2", "size": 2244088 }, { "checksum": "SHA-256:e1ebf21f2c073fce25c09548c656da90d4ef6c078401ec6f323e0c58335115e5", "host": "i686-mingw32", - "archiveFileName": "arduinoOTA-1.2.1-windows_386.zip", + "archive_filename": "arduinoOTA-1.2.1-windows_386.zip", "url": "http://downloads.arduino.cc/tools/arduinoOTA-1.2.1-windows_386.zip", "size": 2237511 } ] } ], - "identification_pref": [ + "identification_prefs": [ { - "usbID": { - "VID": "0x2341", - "PID": "0x8057" + "usb_id": { + "vid": "0x2341", + "pid": "0x8057" } }, { - "usbID": { - "VID": "0x2341", - "PID": "0x0057" + "usb_id": { + "vid": "0x2341", + "pid": "0x0057" } } ], @@ -406,23 +406,23 @@ def test_board_listall(run_command): res = run_command("board listall --format json") assert res.ok data = json.loads(res.stdout) - boards = {b["FQBN"]: b for b in data["boards"]} + boards = {b["fqbn"]: b for b in data["boards"]} assert len(boards) == 26 assert "arduino:avr:yun" in boards assert "Arduino Yún" == boards["arduino:avr:yun"]["name"] platform = boards["arduino:avr:yun"]["platform"] - assert "arduino:avr" == platform["ID"] - assert "1.8.3" == platform["Installed"] - assert "" != platform["Latest"] - assert "Arduino AVR Boards" == platform["Name"] + assert "arduino:avr" == platform["id"] + assert "1.8.3" == platform["installed"] + assert "" != platform["latest"] + assert "Arduino AVR Boards" == platform["name"] assert "arduino:avr:uno" in boards assert "Arduino Uno" == boards["arduino:avr:uno"]["name"] platform = boards["arduino:avr:uno"]["platform"] - assert "arduino:avr" == platform["ID"] - assert "1.8.3" == platform["Installed"] - assert "" != platform["Latest"] - assert "Arduino AVR Boards" == platform["Name"] + assert "arduino:avr" == platform["id"] + assert "1.8.3" == platform["installed"] + assert "" != platform["latest"] + assert "Arduino AVR Boards" == platform["name"] def test_board_listall_with_manually_installed_platform(run_command, data_dir): @@ -436,23 +436,23 @@ def test_board_listall_with_manually_installed_platform(run_command, data_dir): res = run_command("board listall --format json") assert res.ok data = json.loads(res.stdout) - boards = {b["FQBN"]: b for b in data["boards"]} + boards = {b["fqbn"]: b for b in data["boards"]} assert len(boards) == 17 assert "arduino-beta-development:samd:nano_33_iot" in boards assert "Arduino NANO 33 IoT" == boards["arduino-beta-development:samd:nano_33_iot"]["name"] platform = boards["arduino-beta-development:samd:nano_33_iot"]["platform"] - assert "arduino-beta-development:samd" == platform["ID"] - assert "1.8.11" == platform["Installed"] - assert "1.8.11" == platform["Latest"] - assert "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" == platform["Name"] + assert "arduino-beta-development:samd" == platform["id"] + assert "1.8.11" == platform["installed"] + assert "1.8.11" == platform["latest"] + assert "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" == platform["name"] assert "arduino-beta-development:samd:mkr1000" in boards assert "Arduino MKR1000" == boards["arduino-beta-development:samd:mkr1000"]["name"] platform = boards["arduino-beta-development:samd:mkr1000"]["platform"] - assert "arduino-beta-development:samd" == platform["ID"] - assert "1.8.11" == platform["Installed"] - assert "1.8.11" == platform["Latest"] - assert "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" == platform["Name"] + assert "arduino-beta-development:samd" == platform["id"] + assert "1.8.11" == platform["installed"] + assert "1.8.11" == platform["latest"] + assert "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" == platform["name"] def test_board_details(run_command): @@ -479,12 +479,12 @@ def test_board_details(run_command): assert result["fqbn"] == gold_board_details["fqbn"] assert result["name"] == gold_board_details["name"] assert result["version"] == gold_board_details["version"] - assert result["propertiesId"] == gold_board_details["propertiesId"] + assert result["properties_id"] == gold_board_details["properties_id"] assert result["official"] == gold_board_details["official"] assert result["package"] == gold_board_details["package"] assert result["platform"] == gold_board_details["platform"] - for usb_id in gold_board_details["identification_pref"]: - assert usb_id in result["identification_pref"] + for usb_id in gold_board_details["identification_prefs"]: + assert usb_id in result["identification_prefs"] for programmer in gold_board_details["programmers"]: assert programmer in result["programmers"] @@ -511,12 +511,12 @@ def test_board_details_old(run_command): assert result["fqbn"] == gold_board_details["fqbn"] assert result["name"] == gold_board_details["name"] assert result["version"] == gold_board_details["version"] - assert result["propertiesId"] == gold_board_details["propertiesId"] + assert result["properties_id"] == gold_board_details["properties_id"] assert result["official"] == gold_board_details["official"] assert result["package"] == gold_board_details["package"] assert result["platform"] == gold_board_details["platform"] - for usb_id in gold_board_details["identification_pref"]: - assert usb_id in result["identification_pref"] + for usb_id in gold_board_details["identification_prefs"]: + assert usb_id in result["identification_prefs"] for programmer in gold_board_details["programmers"]: assert programmer in result["programmers"] @@ -570,7 +570,7 @@ def test_board_search(run_command, data_dir): # Verifies boards are returned assert len(data) > 0 # Verifies no board has FQBN set since no platform is installed - assert len([board["FQBN"] for board in data if "FQBN" in board]) == 0 + assert len([board["fqbn"] for board in data if "fqbn" in board]) == 0 names = [board["name"] for board in data if "name" in board] assert "Arduino Uno" in names assert "Arduino Yún" in names @@ -585,7 +585,7 @@ def test_board_search(run_command, data_dir): # Verifies boards are returned assert len(data) > 0 # Verifies no board has FQBN set since no platform is installed - assert len([board["FQBN"] for board in data if "FQBN" in board]) == 0 + assert len([board["fqbn"] for board in data if "fqbn" in board]) == 0 names = [board["name"] for board in data if "name" in board] assert "Arduino Nano 33 BLE" in names assert "Arduino Nano 33 IoT" in names @@ -598,8 +598,8 @@ def test_board_search(run_command, data_dir): data = json.loads(res.stdout) assert len(data) > 0 # Verifies some FQBNs are now returned after installing a platform - assert len([board["FQBN"] for board in data if "FQBN" in board]) == 26 - installed_boards = {board["FQBN"]: board for board in data if "FQBN" in board} + assert len([board["fqbn"] for board in data if "fqbn" in board]) == 26 + installed_boards = {board["fqbn"]: board for board in data if "fqbn" in board} assert "arduino:avr:uno" in installed_boards assert "Arduino Uno" == installed_boards["arduino:avr:uno"]["name"] assert "arduino:avr:yun" in installed_boards @@ -609,7 +609,7 @@ def test_board_search(run_command, data_dir): assert res.ok data = json.loads(res.stdout) assert len(data) > 0 - installed_boards = {board["FQBN"]: board for board in data if "FQBN" in board} + installed_boards = {board["fqbn"]: board for board in data if "fqbn" in board} assert "arduino:avr:yun" in installed_boards assert "Arduino Yún" == installed_boards["arduino:avr:yun"]["name"] @@ -623,8 +623,8 @@ def test_board_search(run_command, data_dir): data = json.loads(res.stdout) assert len(data) > 0 # Verifies some FQBNs are now returned after installing a platform - assert len([board["FQBN"] for board in data if "FQBN" in board]) == 43 - installed_boards = {board["FQBN"]: board for board in data if "FQBN" in board} + assert len([board["fqbn"] for board in data if "fqbn" in board]) == 43 + installed_boards = {board["fqbn"]: board for board in data if "fqbn" in board} assert "arduino:avr:uno" in installed_boards assert "Arduino Uno" == installed_boards["arduino:avr:uno"]["name"] assert "arduino:avr:yun" in installed_boards @@ -644,6 +644,6 @@ def test_board_search(run_command, data_dir): data = json.loads(res.stdout) assert len(data) > 0 # Verifies some FQBNs are now returned after installing a platform - installed_boards = {board["FQBN"]: board for board in data if "FQBN" in board} + installed_boards = {board["fqbn"]: board for board in data if "fqbn" in board} assert "arduino-beta-development:samd:mkr1000" in installed_boards assert "Arduino MKR1000" == installed_boards["arduino-beta-development:samd:mkr1000"]["name"] diff --git a/test/test_core.py b/test/test_core.py index 87bc523d326..708a556ea07 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -50,9 +50,9 @@ def test_core_search(run_command, httpserver): def get_platforms(stdout): data = json.loads(stdout) - platforms = {p["ID"]: [] for p in data} + platforms = {p["id"]: [] for p in data} for p in data: - platforms[p["ID"]].append(p["Latest"]) + platforms[p["id"]].append(p["latest"]) return platforms # Search all Retrokit platforms @@ -86,7 +86,7 @@ def run_search(search_args, expected_ids): res = run_command(f"core search --format json {search_args}") assert res.ok data = json.loads(res.stdout) - platform_ids = [p["ID"] for p in data] + platform_ids = [p["id"] for p in data] for platform_id in expected_ids: assert platform_id in platform_ids @@ -139,7 +139,7 @@ def test_core_search_no_args(run_command, httpserver): result = run_command("core search --format json") assert result.ok platforms = json.loads(result.stdout) - assert 1 == len([e for e in platforms if e.get("Name") == "test_core"]) + assert 1 == len([e for e in platforms if e.get("name") == "test_core"]) assert len(platforms) == num_platforms # list all with additional urls, check the test core is there @@ -163,7 +163,7 @@ def test_core_search_no_args(run_command, httpserver): result = run_command(f"core search --format json --additional-urls={url}") assert result.ok platforms = json.loads(result.stdout) - assert 1 == len([e for e in platforms if e.get("Name") == "test_core"]) + assert 1 == len([e for e in platforms if e.get("name") == "test_core"]) assert len(platforms) == num_platforms @@ -240,10 +240,10 @@ def test_core_download(run_command, downloads_dir): def _in(jsondata, name, version=None): installed_cores = json.loads(jsondata) for c in installed_cores: - if name == c.get("ID"): + if name == c.get("id"): if version is None: return True - elif version == c.get("Installed"): + elif version == c.get("installed"): return True return False @@ -378,7 +378,7 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir) assert res.ok cores = json.loads(res.stdout) assert num_cores == len(cores) - mapped = {core["ID"]: core for core in cores} + mapped = {core["id"]: core for core in cores} core_id = "arduino-beta-development:avr" assert core_id not in mapped @@ -403,11 +403,11 @@ def test_core_list_all_manually_installed_core(run_command, data_dir): assert res.ok cores = json.loads(res.stdout) assert num_cores + 1 == len(cores) - mapped = {core["ID"]: core for core in cores} + mapped = {core["id"]: core for core in cores} expected_core_id = "arduino-beta-development:avr" assert expected_core_id in mapped - assert "Arduino AVR Boards" == mapped[expected_core_id]["Name"] - assert "1.8.3" == mapped[expected_core_id]["Latest"] + assert "Arduino AVR Boards" == mapped[expected_core_id]["name"] + assert "1.8.3" == mapped[expected_core_id]["latest"] def test_core_list_updatable_all_flags(run_command, data_dir): @@ -430,11 +430,11 @@ def test_core_list_updatable_all_flags(run_command, data_dir): assert res.ok cores = json.loads(res.stdout) assert num_cores + 1 == len(cores) - mapped = {core["ID"]: core for core in cores} + mapped = {core["id"]: core for core in cores} expected_core_id = "arduino-beta-development:avr" assert expected_core_id in mapped - assert "Arduino AVR Boards" == mapped[expected_core_id]["Name"] - assert "1.8.3" == mapped[expected_core_id]["Latest"] + assert "Arduino AVR Boards" == mapped[expected_core_id]["name"] + assert "1.8.3" == mapped[expected_core_id]["latest"] def test_core_upgrade_removes_unused_tools(run_command, data_dir): @@ -483,10 +483,10 @@ def test_core_list_with_installed_json(run_command, data_dir): res = run_command("core list --format json") assert res.ok cores = json.loads(res.stdout) - mapped = {core["ID"]: core for core in cores} + mapped = {core["id"]: core for core in cores} assert len(mapped) == 1 assert "adafruit:avr" in mapped - assert mapped["adafruit:avr"]["Name"] == "Adafruit AVR Boards" + assert mapped["adafruit:avr"]["name"] == "Adafruit AVR Boards" # Deletes installed.json file, this file stores information about the core, # that is used mostly when removing package indexes and their cores are still installed; @@ -500,10 +500,10 @@ def test_core_list_with_installed_json(run_command, data_dir): res = run_command("core list --format json") assert res.ok cores = json.loads(res.stdout) - mapped = {core["ID"]: core for core in cores} + mapped = {core["id"]: core for core in cores} assert len(mapped) == 1 assert "adafruit:avr" in mapped # Name for this core changes since if there's installed.json file we read it from # platform.txt, turns out that this core has different names used in different files # thus the change. - assert mapped["adafruit:avr"]["Name"] == "Adafruit Boards" + assert mapped["adafruit:avr"]["name"] == "Adafruit Boards"