diff --git a/arduino/cores/packagemanager/install_uninstall.go b/arduino/cores/packagemanager/install_uninstall.go index de17edc0cab..eb3b883d986 100644 --- a/arduino/cores/packagemanager/install_uninstall.go +++ b/arduino/cores/packagemanager/install_uninstall.go @@ -21,6 +21,7 @@ import ( "fmt" "github.com/arduino/arduino-cli/arduino/cores" + "github.com/sirupsen/logrus" ) // InstallPlatform installs a specific release of a platform. @@ -82,6 +83,7 @@ func (pm *PackageManager) InstallTool(toolRelease *cores.ToolRelease) error { "tools", toolRelease.Tool.Name, toolRelease.Version.String()) + logrus.WithField("destDir", destDir).WithField("tool", toolRelease.Tool.Name).Debug("Installing tool") return toolResource.Install(pm.DownloadDir, pm.TempDir, destDir) } diff --git a/arduino/cores/packagemanager/package_manager.go b/arduino/cores/packagemanager/package_manager.go index a8b455aed6c..bb9ca33122f 100644 --- a/arduino/cores/packagemanager/package_manager.go +++ b/arduino/cores/packagemanager/package_manager.go @@ -29,7 +29,7 @@ import ( "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" "github.com/sirupsen/logrus" - "go.bug.st/relaxed-semver" + semver "go.bug.st/relaxed-semver" ) // PackageManager defines the superior oracle which understands all about diff --git a/cli/daemon/daemon.go b/cli/daemon/daemon.go index f11406346bc..ced1d6d6283 100644 --- a/cli/daemon/daemon.go +++ b/cli/daemon/daemon.go @@ -44,7 +44,7 @@ func InitCommand() *cobra.Command { } const ( - port = ":50051" + port = "localhost:50051" ) func runDaemonCommand(cmd *cobra.Command, args []string) { diff --git a/commands/board/list.go b/commands/board/list.go new file mode 100644 index 00000000000..69d25b87773 --- /dev/null +++ b/commands/board/list.go @@ -0,0 +1,94 @@ +package board + +import ( + "context" + "errors" + "time" + + "github.com/arduino/arduino-cli/arduino/cores" + "github.com/arduino/arduino-cli/arduino/cores/packagemanager" + "github.com/arduino/arduino-cli/commands" + "github.com/arduino/arduino-cli/rpc" + discovery "github.com/arduino/board-discovery" + log "github.com/sirupsen/logrus" +) + +// List lists all attached boards and matches them with installed platforms +func List(ctx context.Context, req *rpc.BoardListReq) (*rpc.BoardListResp, error) { + pm := commands.GetPackageManager(req) + if pm == nil { + return nil, errors.New("invalid instance") + } + + monitor := discovery.New(time.Millisecond) + + // This is a bit of a hack, but akin to how the list command does it. + // TODO: check if this function gets called in a Go routine of the main handler + monitor.Start() + time.Sleep(5 * time.Second) + monitor.Stop() + + sd := monitor.Serial() + serial := make([]*rpc.AttachedSerialBoard, len(sd)) + i := 0 + for _, s := range sd { + b := &rpc.AttachedSerialBoard{ + Port: s.Port, + SerialNumber: s.SerialNumber, + ProductID: s.ProductID, + VendorID: s.VendorID, + } + completeInfoForSerial(pm, b) + + serial[i] = b + i++ + } + + nd := monitor.Network() + network := make([]*rpc.AttachedNetworkBoard, len(nd)) + i = 0 + for _, s := range nd { + network[i] = &rpc.AttachedNetworkBoard{ + Name: s.Name, + Info: s.Info, + Address: s.Address, + Port: uint64(s.Port), + } + i++ + } + + return &rpc.BoardListResp{ + Serial: serial, + Network: network, + }, nil +} + +func completeInfoForSerial(pm *packagemanager.PackageManager, b *rpc.AttachedSerialBoard) { + log.SetLevel(log.DebugLevel) + var matchingBoard *cores.Board + for _, pkg := range pm.GetPackages().Packages { + for _, platform := range pkg.Platforms { + platformRelease := pm.GetInstalledPlatformRelease(platform) + if platformRelease == nil { + continue + } + + for _, brd := range platformRelease.Boards { + if !brd.HasUsbID(b.VendorID, b.ProductID) { + continue + } + + matchingBoard = brd + break + } + } + } + + if matchingBoard == nil { + log.WithField("port", b.Port).Debug("did not find installed package") + return + } + + b.Fqbn = matchingBoard.FQBN() + b.Name = matchingBoard.Name() +} diff --git a/commands/compile/compile.go b/commands/compile/compile.go index 528a1c36533..e02f4bc75db 100644 --- a/commands/compile/compile.go +++ b/commands/compile/compile.go @@ -58,12 +58,14 @@ func Compile(ctx context.Context, req *rpc.CompileReq, loadBuiltinCtagsMetadata(pm) ctags, _ := getBuiltinCtagsTool(pm) if !ctags.IsInstalled() { + logrus.Info("Downloading missing tool " + ctags.String()) taskCB(&rpc.TaskProgress{Name: "Downloading missing tool " + ctags.String()}) core.DownloadToolRelease(pm, ctags, downloadCB) taskCB(&rpc.TaskProgress{Completed: true}) core.InstallToolRelease(pm, ctags, taskCB) - if err := pm.LoadHardware(cli.Config); err != nil { + cfg := commands.GetConfig(req) + if err := pm.LoadHardware(cfg); err != nil { return nil, fmt.Errorf("loading hardware packages: %s", err) } ctags, _ = getBuiltinCtagsTool(pm) diff --git a/commands/core/list.go b/commands/core/list.go index 75992641650..e129c1bcee4 100644 --- a/commands/core/list.go +++ b/commands/core/list.go @@ -40,6 +40,7 @@ func PlatformList(ctx context.Context, req *rpc.PlatformListReq) (*rpc.PlatformL continue } } + p := &rpc.InstalledPlatform{ ID: platformRelease.String(), Installed: platformRelease.Version.String(), diff --git a/commands/core/search.go b/commands/core/search.go index ae75738d644..89d91bf2ff9 100644 --- a/commands/core/search.go +++ b/commands/core/search.go @@ -28,6 +28,11 @@ import ( "github.com/arduino/arduino-cli/rpc" ) +type platformSearchResult struct { + Release *cores.PlatformRelease + Package *cores.Package +} + func PlatformSearch(ctx context.Context, req *rpc.PlatformSearchReq) (*rpc.PlatformSearchResp, error) { pm := commands.GetPackageManager(req) if pm == nil { @@ -36,10 +41,13 @@ func PlatformSearch(ctx context.Context, req *rpc.PlatformSearchReq) (*rpc.Platf search := req.SearchArgs - res := []*cores.PlatformRelease{} + res := make([]platformSearchResult, 0) if isUsb, _ := regexp.MatchString("[0-9a-f]{4}:[0-9a-f]{4}", search); isUsb { vid, pid := search[:4], search[5:] - res = pm.FindPlatformReleaseProvidingBoardsWithVidPid(vid, pid) + boards := pm.FindPlatformReleaseProvidingBoardsWithVidPid(vid, pid) + for _, b := range boards { + res = append(res, platformSearchResult{Release: b}) + } } else { match := func(line string) bool { return strings.Contains(strings.ToLower(line), search) @@ -51,12 +59,18 @@ func PlatformSearch(ctx context.Context, req *rpc.PlatformSearchReq) (*rpc.Platf continue } if match(platform.Name) || match(platform.Architecture) { - res = append(res, platformRelease) + res = append(res, platformSearchResult{ + Release: platformRelease, + Package: targetPackage, + }) continue } for _, board := range platformRelease.BoardsManifest { if match(board.Name) { - res = append(res, platformRelease) + res = append(res, platformSearchResult{ + Release: platformRelease, + Package: targetPackage, + }) break } } @@ -65,12 +79,28 @@ func PlatformSearch(ctx context.Context, req *rpc.PlatformSearchReq) (*rpc.Platf } out := []*rpc.SearchOutput{} - for _, platformRelease := range res { - out = append(out, &rpc.SearchOutput{ - ID: platformRelease.Platform.String(), - Name: platformRelease.Platform.Name, - Version: platformRelease.Version.String(), - }) + for _, r := range res { + plt := &rpc.SearchOutput{ + ID: r.Release.Platform.String(), + Name: r.Release.Platform.Name, + Version: r.Release.Version.String(), + } + + i := 0 + boards := make([]*rpc.SearchOutputBoard, len(r.Release.Boards)) + for _, b := range r.Release.Boards { + boards[i] = &rpc.SearchOutputBoard{ + Name: b.Name(), + Fqbn: b.FQBN(), + } + i++ + } + plt.Boards = boards + + if r.Package != nil { + plt.Author = r.Package.Maintainer + } + out = append(out, plt) } return &rpc.PlatformSearchResp{SearchOutput: out}, nil } diff --git a/commands/instances.go b/commands/instances.go index 18ff7523f20..80f74abc046 100644 --- a/commands/instances.go +++ b/commands/instances.go @@ -72,6 +72,14 @@ func GetLibraryManager(req InstanceContainer) *librariesmanager.LibrariesManager return i.lm } +func GetConfig(req InstanceContainer) *configs.Configuration { + i, ok := instances[req.GetInstance().GetId()] + if !ok { + return nil + } + return i.config +} + func Init(ctx context.Context, req *rpc.InitReq) (*rpc.InitResp, error) { inConfig := req.GetConfiguration() if inConfig == nil { @@ -146,6 +154,15 @@ func UpdateIndex(ctx context.Context, req *rpc.UpdateIndexReq, downloadCB Downlo return nil, fmt.Errorf("invalid handle") } + ld, err := coreInstance.lm.UpdateIndex() + if err != nil { + return nil, fmt.Errorf("downloading library index: %s", err) + } + Download(ld, "libraries", downloadCB) + if ld.Error() != nil { + return nil, fmt.Errorf("downloading library index: %s", ld.Error()) + } + indexpath := coreInstance.config.IndexesDir() for _, URL := range coreInstance.config.BoardManagerAdditionalUrls { logrus.WithField("url", URL).Print("Updating index") diff --git a/commands/lib/list.go b/commands/lib/list.go index 126178ea738..228cc90708b 100644 --- a/commands/lib/list.go +++ b/commands/lib/list.go @@ -18,9 +18,14 @@ package lib import ( + "context" + "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" + "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter/output" + "github.com/arduino/arduino-cli/rpc" + log "github.com/sirupsen/logrus" ) // ListLibraries returns the list of installed libraries. If updatable is true it @@ -44,3 +49,34 @@ func ListLibraries(lm *librariesmanager.LibrariesManager, updatable bool) *outpu } return res } + +func List(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryListResp, error) { + log.SetLevel(log.DebugLevel) + + lm := commands.GetLibraryManager(req) + + res := make([]*rpc.InstalledLibrary, 0) + for _, libAlternatives := range lm.Libraries { + for _, lib := range libAlternatives.Alternatives { + librelease := &rpc.LibraryRelease{ + Author: lib.Author, + Version: lib.Version.String(), + Maintainer: lib.Maintainer, + Sentence: lib.Sentence, + Paragraph: lib.Paragraph, + Website: lib.Website, + Category: lib.Category, + Architectures: lib.Architectures, + Types: lib.Types, + } + + res = append(res, &rpc.InstalledLibrary{ + Name: lib.Name, + Installed: librelease, + }) + } + } + return &rpc.LibraryListResp{ + Libraries: res, + }, nil +} diff --git a/commands/lib/search.go b/commands/lib/search.go index c2a750164d3..a3beec42eea 100644 --- a/commands/lib/search.go +++ b/commands/lib/search.go @@ -35,7 +35,6 @@ func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.Library } res := []*rpc.SearchLibraryOutput{} - for _, lib := range lm.Index.Libraries { if strings.Contains(strings.ToLower(lib.Name), strings.ToLower(req.GetQuery())) { releases := map[string]*rpc.LibraryRelease{} @@ -50,6 +49,11 @@ func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.Library Latest: latest, } res = append(res, searchedlib) + + if len(res) > 100 { + // enough libraries - at some point we hit the gRPC message size limit + break + } } } diff --git a/daemon/daemon.go b/daemon/daemon.go index e7d331cf017..5f0a901ff5e 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -17,7 +17,7 @@ package daemon -//go:generate protoc -I arduino --go_out=plugins=grpc:arduino arduino/arduino.proto +//DONOTgo:generate protoc -I arduino --go_out=plugins=grpc:arduino arduino/arduino.proto import ( "context" @@ -38,7 +38,7 @@ import ( ) const ( - port = ":50051" + port = "localhost:50051" ) func runDaemonCommand(cmd *cobra.Command, args []string) { @@ -60,6 +60,10 @@ func (s *ArduinoCoreServerImpl) BoardDetails(ctx context.Context, req *rpc.Board return board.BoardDetails(ctx, req) } +func (s *ArduinoCoreServerImpl) BoardList(ctx context.Context, req *rpc.BoardListReq) (*rpc.BoardListResp, error) { + return board.List(ctx, req) +} + func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyReq) (*rpc.DestroyResp, error) { return commands.Destroy(ctx, req) } @@ -88,8 +92,12 @@ func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileReq, stream rpc.ArduinoC func(p *rpc.TaskProgress) { stream.Send(&rpc.CompileResp{TaskProgress: p}) }, func(p *rpc.DownloadProgress) { stream.Send(&rpc.CompileResp{DownloadProgress: p}) }, ) + if err != nil { + return err + } + stream.Send(resp) - return err + return nil } func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallReq, stream rpc.ArduinoCore_PlatformInstallServer) error { @@ -220,3 +228,7 @@ func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllReq, func (s *ArduinoCoreServerImpl) LibrarySearch(ctx context.Context, req *rpc.LibrarySearchReq) (*rpc.LibrarySearchResp, error) { return lib.LibrarySearch(ctx, req) } + +func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.LibraryListReq) (*rpc.LibraryListResp, error) { + return lib.List(ctx, req) +} diff --git a/rpc/board.pb.go b/rpc/board.pb.go index 04cb1cd601b..c81df46c912 100644 --- a/rpc/board.pb.go +++ b/rpc/board.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: board.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type BoardDetailsReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -30,16 +32,17 @@ func (m *BoardDetailsReq) Reset() { *m = BoardDetailsReq{} } func (m *BoardDetailsReq) String() string { return proto.CompactTextString(m) } func (*BoardDetailsReq) ProtoMessage() {} func (*BoardDetailsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_board_f3bfb990d0990ad4, []int{0} + return fileDescriptor_937f74b042f92c0f, []int{0} } + func (m *BoardDetailsReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardDetailsReq.Unmarshal(m, b) } func (m *BoardDetailsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardDetailsReq.Marshal(b, m, deterministic) } -func (dst *BoardDetailsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardDetailsReq.Merge(dst, src) +func (m *BoardDetailsReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardDetailsReq.Merge(m, src) } func (m *BoardDetailsReq) XXX_Size() int { return xxx_messageInfo_BoardDetailsReq.Size(m) @@ -77,16 +80,17 @@ func (m *BoardDetailsResp) Reset() { *m = BoardDetailsResp{} } func (m *BoardDetailsResp) String() string { return proto.CompactTextString(m) } func (*BoardDetailsResp) ProtoMessage() {} func (*BoardDetailsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_board_f3bfb990d0990ad4, []int{1} + return fileDescriptor_937f74b042f92c0f, []int{1} } + func (m *BoardDetailsResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardDetailsResp.Unmarshal(m, b) } func (m *BoardDetailsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardDetailsResp.Marshal(b, m, deterministic) } -func (dst *BoardDetailsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardDetailsResp.Merge(dst, src) +func (m *BoardDetailsResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardDetailsResp.Merge(m, src) } func (m *BoardDetailsResp) XXX_Size() int { return xxx_messageInfo_BoardDetailsResp.Size(m) @@ -131,16 +135,17 @@ func (m *ConfigOption) Reset() { *m = ConfigOption{} } func (m *ConfigOption) String() string { return proto.CompactTextString(m) } func (*ConfigOption) ProtoMessage() {} func (*ConfigOption) Descriptor() ([]byte, []int) { - return fileDescriptor_board_f3bfb990d0990ad4, []int{2} + return fileDescriptor_937f74b042f92c0f, []int{2} } + func (m *ConfigOption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConfigOption.Unmarshal(m, b) } func (m *ConfigOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfigOption.Marshal(b, m, deterministic) } -func (dst *ConfigOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigOption.Merge(dst, src) +func (m *ConfigOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigOption.Merge(m, src) } func (m *ConfigOption) XXX_Size() int { return xxx_messageInfo_ConfigOption.Size(m) @@ -185,16 +190,17 @@ func (m *ConfigValue) Reset() { *m = ConfigValue{} } func (m *ConfigValue) String() string { return proto.CompactTextString(m) } func (*ConfigValue) ProtoMessage() {} func (*ConfigValue) Descriptor() ([]byte, []int) { - return fileDescriptor_board_f3bfb990d0990ad4, []int{3} + return fileDescriptor_937f74b042f92c0f, []int{3} } + func (m *ConfigValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConfigValue.Unmarshal(m, b) } func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfigValue.Marshal(b, m, deterministic) } -func (dst *ConfigValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigValue.Merge(dst, src) +func (m *ConfigValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigValue.Merge(m, src) } func (m *ConfigValue) XXX_Size() int { return xxx_messageInfo_ConfigValue.Size(m) @@ -239,16 +245,17 @@ func (m *RequiredTool) Reset() { *m = RequiredTool{} } func (m *RequiredTool) String() string { return proto.CompactTextString(m) } func (*RequiredTool) ProtoMessage() {} func (*RequiredTool) Descriptor() ([]byte, []int) { - return fileDescriptor_board_f3bfb990d0990ad4, []int{4} + return fileDescriptor_937f74b042f92c0f, []int{4} } + func (m *RequiredTool) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RequiredTool.Unmarshal(m, b) } func (m *RequiredTool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RequiredTool.Marshal(b, m, deterministic) } -func (dst *RequiredTool) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequiredTool.Merge(dst, src) +func (m *RequiredTool) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequiredTool.Merge(m, src) } func (m *RequiredTool) XXX_Size() int { return xxx_messageInfo_RequiredTool.Size(m) @@ -280,40 +287,290 @@ func (m *RequiredTool) GetPackager() string { return "" } +type BoardListReq struct { + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BoardListReq) Reset() { *m = BoardListReq{} } +func (m *BoardListReq) String() string { return proto.CompactTextString(m) } +func (*BoardListReq) ProtoMessage() {} +func (*BoardListReq) Descriptor() ([]byte, []int) { + return fileDescriptor_937f74b042f92c0f, []int{5} +} + +func (m *BoardListReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BoardListReq.Unmarshal(m, b) +} +func (m *BoardListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BoardListReq.Marshal(b, m, deterministic) +} +func (m *BoardListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListReq.Merge(m, src) +} +func (m *BoardListReq) XXX_Size() int { + return xxx_messageInfo_BoardListReq.Size(m) +} +func (m *BoardListReq) XXX_DiscardUnknown() { + xxx_messageInfo_BoardListReq.DiscardUnknown(m) +} + +var xxx_messageInfo_BoardListReq proto.InternalMessageInfo + +func (m *BoardListReq) GetInstance() *Instance { + if m != nil { + return m.Instance + } + return nil +} + +type BoardListResp struct { + Serial []*AttachedSerialBoard `protobuf:"bytes,1,rep,name=serial,proto3" json:"serial,omitempty"` + Network []*AttachedNetworkBoard `protobuf:"bytes,2,rep,name=network,proto3" json:"network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BoardListResp) Reset() { *m = BoardListResp{} } +func (m *BoardListResp) String() string { return proto.CompactTextString(m) } +func (*BoardListResp) ProtoMessage() {} +func (*BoardListResp) Descriptor() ([]byte, []int) { + return fileDescriptor_937f74b042f92c0f, []int{6} +} + +func (m *BoardListResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BoardListResp.Unmarshal(m, b) +} +func (m *BoardListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BoardListResp.Marshal(b, m, deterministic) +} +func (m *BoardListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListResp.Merge(m, src) +} +func (m *BoardListResp) XXX_Size() int { + return xxx_messageInfo_BoardListResp.Size(m) +} +func (m *BoardListResp) XXX_DiscardUnknown() { + xxx_messageInfo_BoardListResp.DiscardUnknown(m) +} + +var xxx_messageInfo_BoardListResp proto.InternalMessageInfo + +func (m *BoardListResp) GetSerial() []*AttachedSerialBoard { + if m != nil { + return m.Serial + } + return nil +} + +func (m *BoardListResp) GetNetwork() []*AttachedNetworkBoard { + if m != nil { + return m.Network + } + return nil +} + +type AttachedNetworkBoard struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + Port uint64 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttachedNetworkBoard) Reset() { *m = AttachedNetworkBoard{} } +func (m *AttachedNetworkBoard) String() string { return proto.CompactTextString(m) } +func (*AttachedNetworkBoard) ProtoMessage() {} +func (*AttachedNetworkBoard) Descriptor() ([]byte, []int) { + return fileDescriptor_937f74b042f92c0f, []int{7} +} + +func (m *AttachedNetworkBoard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttachedNetworkBoard.Unmarshal(m, b) +} +func (m *AttachedNetworkBoard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttachedNetworkBoard.Marshal(b, m, deterministic) +} +func (m *AttachedNetworkBoard) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttachedNetworkBoard.Merge(m, src) +} +func (m *AttachedNetworkBoard) XXX_Size() int { + return xxx_messageInfo_AttachedNetworkBoard.Size(m) +} +func (m *AttachedNetworkBoard) XXX_DiscardUnknown() { + xxx_messageInfo_AttachedNetworkBoard.DiscardUnknown(m) +} + +var xxx_messageInfo_AttachedNetworkBoard proto.InternalMessageInfo + +func (m *AttachedNetworkBoard) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttachedNetworkBoard) GetFqbn() string { + if m != nil { + return m.Fqbn + } + return "" +} + +func (m *AttachedNetworkBoard) GetInfo() string { + if m != nil { + return m.Info + } + return "" +} + +func (m *AttachedNetworkBoard) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *AttachedNetworkBoard) GetPort() uint64 { + if m != nil { + return m.Port + } + return 0 +} + +type AttachedSerialBoard struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` + SerialNumber string `protobuf:"bytes,4,opt,name=serialNumber,proto3" json:"serialNumber,omitempty"` + ProductID string `protobuf:"bytes,5,opt,name=productID,proto3" json:"productID,omitempty"` + VendorID string `protobuf:"bytes,6,opt,name=vendorID,proto3" json:"vendorID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AttachedSerialBoard) Reset() { *m = AttachedSerialBoard{} } +func (m *AttachedSerialBoard) String() string { return proto.CompactTextString(m) } +func (*AttachedSerialBoard) ProtoMessage() {} +func (*AttachedSerialBoard) Descriptor() ([]byte, []int) { + return fileDescriptor_937f74b042f92c0f, []int{8} +} + +func (m *AttachedSerialBoard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AttachedSerialBoard.Unmarshal(m, b) +} +func (m *AttachedSerialBoard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AttachedSerialBoard.Marshal(b, m, deterministic) +} +func (m *AttachedSerialBoard) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttachedSerialBoard.Merge(m, src) +} +func (m *AttachedSerialBoard) XXX_Size() int { + return xxx_messageInfo_AttachedSerialBoard.Size(m) +} +func (m *AttachedSerialBoard) XXX_DiscardUnknown() { + xxx_messageInfo_AttachedSerialBoard.DiscardUnknown(m) +} + +var xxx_messageInfo_AttachedSerialBoard proto.InternalMessageInfo + +func (m *AttachedSerialBoard) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttachedSerialBoard) GetFqbn() string { + if m != nil { + return m.Fqbn + } + return "" +} + +func (m *AttachedSerialBoard) GetPort() string { + if m != nil { + return m.Port + } + return "" +} + +func (m *AttachedSerialBoard) GetSerialNumber() string { + if m != nil { + return m.SerialNumber + } + return "" +} + +func (m *AttachedSerialBoard) GetProductID() string { + if m != nil { + return m.ProductID + } + return "" +} + +func (m *AttachedSerialBoard) GetVendorID() string { + if m != nil { + return m.VendorID + } + return "" +} + func init() { - proto.RegisterType((*BoardDetailsReq)(nil), "cc.arduino.core.rpc.BoardDetailsReq") - proto.RegisterType((*BoardDetailsResp)(nil), "cc.arduino.core.rpc.BoardDetailsResp") - proto.RegisterType((*ConfigOption)(nil), "cc.arduino.core.rpc.ConfigOption") - proto.RegisterType((*ConfigValue)(nil), "cc.arduino.core.rpc.ConfigValue") - proto.RegisterType((*RequiredTool)(nil), "cc.arduino.core.rpc.RequiredTool") -} - -func init() { proto.RegisterFile("board.proto", fileDescriptor_board_f3bfb990d0990ad4) } - -var fileDescriptor_board_f3bfb990d0990ad4 = []byte{ - // 381 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x92, 0xdf, 0x6a, 0xdb, 0x30, - 0x14, 0xc6, 0xf1, 0x92, 0x65, 0xc9, 0xb1, 0xb3, 0x0d, 0x6d, 0x0c, 0x13, 0x18, 0x4b, 0xcc, 0x2e, - 0x72, 0x33, 0x07, 0xd6, 0x9b, 0xf6, 0x36, 0xed, 0x45, 0x0b, 0x85, 0x82, 0x28, 0xa5,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0xe8, 0x17, 0x0c, 0xaa, 0xed, 0xdc, 0xd5, 0x8c, 0x70, 0xad, 0xd0, - 0x0c, 0x82, 0xaa, 0x5a, 0xa5, 0x24, 0x61, 0x69, 0x1d, 0xcc, 0xaf, 0x7a, 0xb7, 0xb6, 0x85, 0xce, - 0x61, 0xb0, 0x27, 0x69, 0xc9, 0x9a, 0x5c, 0xd3, 0x13, 0xb9, 0x1e, 0x2c, 0x88, 0x6b, 0xde, 0x3c, - 0x92, 0xdf, 0x69, 0xa3, 0x9f, 0xf0, 0xd9, 0xfd, 0x51, 0xaf, 0x50, 0x09, 0xf4, 0x07, 0x7c, 0x57, - 0x1c, 0x2c, 0x00, 0xae, 0x55, 0xcd, 0x9f, 0xc0, 0x50, 0xb3, 0x94, 0xd1, 0x82, 0xad, 0xcd, 0x06, - 0xde, 0x7c, 0x88, 0x5b, 0x1d, 0x3d, 0x42, 0xd0, 0xbd, 0x86, 0xf6, 0x7d, 0xbc, 0xce, 0xfb, 0x84, - 0xf0, 0x65, 0xcf, 0x94, 0xb6, 0xd9, 0x2b, 0xf3, 0x46, 0x5a, 0xe7, 0x9c, 0xd0, 0x57, 0xb2, 0x65, - 0xca, 0x39, 0x8f, 0x70, 0xab, 0x97, 0x7f, 0x9f, 0xa2, 0x2d, 0x2f, 0x5e, 0xca, 0xc4, 0x44, 0xcc, - 0x16, 0x75, 0xdc, 0xe6, 0xf7, 0x1f, 0x4d, 0xf9, 0xc2, 0xa4, 0x4e, 0x06, 0xee, 0x6b, 0x3c, 0xfb, - 0x08, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x6a, 0xe5, 0xd5, 0xbf, 0x02, 0x00, 0x00, + proto.RegisterType((*BoardDetailsReq)(nil), "arduino.BoardDetailsReq") + proto.RegisterType((*BoardDetailsResp)(nil), "arduino.BoardDetailsResp") + proto.RegisterType((*ConfigOption)(nil), "arduino.ConfigOption") + proto.RegisterType((*ConfigValue)(nil), "arduino.ConfigValue") + proto.RegisterType((*RequiredTool)(nil), "arduino.RequiredTool") + proto.RegisterType((*BoardListReq)(nil), "arduino.BoardListReq") + proto.RegisterType((*BoardListResp)(nil), "arduino.BoardListResp") + proto.RegisterType((*AttachedNetworkBoard)(nil), "arduino.AttachedNetworkBoard") + proto.RegisterType((*AttachedSerialBoard)(nil), "arduino.AttachedSerialBoard") +} + +func init() { proto.RegisterFile("board.proto", fileDescriptor_937f74b042f92c0f) } + +var fileDescriptor_937f74b042f92c0f = []byte{ + // 541 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4b, 0x6f, 0xd3, 0x40, + 0x10, 0x96, 0xfb, 0xc8, 0x63, 0xec, 0xf0, 0x58, 0x02, 0xb2, 0xaa, 0x22, 0x82, 0xc5, 0x21, 0x07, + 0x9a, 0x4a, 0x05, 0x89, 0x0b, 0x1c, 0x28, 0xb9, 0x44, 0xaa, 0x8a, 0xb4, 0x54, 0x08, 0x71, 0x09, + 0x6b, 0x7b, 0x93, 0xae, 0xea, 0xec, 0x3a, 0xbb, 0xeb, 0xf4, 0x86, 0xf8, 0x2d, 0xfc, 0x01, 0xfe, + 0x22, 0xda, 0x87, 0x8d, 0x53, 0x72, 0xe9, 0xc9, 0xf3, 0xcd, 0x7c, 0xdf, 0xec, 0xcc, 0xb7, 0x2b, + 0x43, 0x98, 0x0a, 0x22, 0xf3, 0x49, 0x29, 0x85, 0x16, 0xa8, 0x4b, 0x64, 0x5e, 0x31, 0x2e, 0x8e, + 0xa2, 0x4c, 0xac, 0x56, 0x82, 0xbb, 0x74, 0x72, 0x05, 0x0f, 0xcf, 0x0d, 0x6b, 0x4a, 0x35, 0x61, + 0x85, 0xc2, 0x74, 0x8d, 0x4e, 0xa0, 0xc7, 0xb8, 0xd2, 0x84, 0x67, 0x34, 0x0e, 0x46, 0xc1, 0x38, + 0x3c, 0x7b, 0x3c, 0xf1, 0xe2, 0xc9, 0xcc, 0x17, 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x7f, 0xf5, 0x3d, 0x59, 0x32, 0x7d, 0x5d, 0xa5, 0x93, 0x4c, 0xac, 0x4e, + 0xbd, 0xd1, 0xf5, 0xf7, 0x24, 0x2b, 0xd8, 0xa9, 0x2c, 0xb3, 0xb4, 0x63, 0x7f, 0x28, 0x6f, 0xfe, + 0x06, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x9e, 0x7a, 0xa4, 0x76, 0x04, 0x00, 0x00, } diff --git a/rpc/board.proto b/rpc/board.proto index f10193e71f4..8135c44f39e 100644 --- a/rpc/board.proto +++ b/rpc/board.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; @@ -51,3 +51,29 @@ message RequiredTool { string version = 2; string packager = 3; } + +message BoardListReq { + Instance instance = 1; +} + +message BoardListResp { + repeated AttachedSerialBoard serial = 1; + repeated AttachedNetworkBoard network = 2; +} + +message AttachedNetworkBoard { + string name = 1; + string fqbn = 2; + string info = 3; + string address = 4; + uint64 port = 5; +} + +message AttachedSerialBoard { + string name = 1; + string fqbn = 2; + string port = 3; + string serialNumber = 4; + string productID = 5; + string vendorID = 6; +} diff --git a/rpc/commands.pb.go b/rpc/commands.pb.go index f540b5abe3e..ad02ac0c388 100644 --- a/rpc/commands.pb.go +++ b/rpc/commands.pb.go @@ -1,15 +1,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: commands.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package rpc import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -21,7 +22,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Configuration contains information to instantiate an Arduino Platform Service type Configuration struct { @@ -46,16 +47,17 @@ func (m *Configuration) Reset() { *m = Configuration{} } func (m *Configuration) String() string { return proto.CompactTextString(m) } func (*Configuration) ProtoMessage() {} func (*Configuration) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{0} + return fileDescriptor_0dff099eb2e3dfdb, []int{0} } + func (m *Configuration) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Configuration.Unmarshal(m, b) } func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Configuration.Marshal(b, m, deterministic) } -func (dst *Configuration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Configuration.Merge(dst, src) +func (m *Configuration) XXX_Merge(src proto.Message) { + xxx_messageInfo_Configuration.Merge(m, src) } func (m *Configuration) XXX_Size() int { return xxx_messageInfo_Configuration.Size(m) @@ -106,16 +108,17 @@ func (m *InitReq) Reset() { *m = InitReq{} } func (m *InitReq) String() string { return proto.CompactTextString(m) } func (*InitReq) ProtoMessage() {} func (*InitReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{1} + return fileDescriptor_0dff099eb2e3dfdb, []int{1} } + func (m *InitReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InitReq.Unmarshal(m, b) } func (m *InitReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InitReq.Marshal(b, m, deterministic) } -func (dst *InitReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_InitReq.Merge(dst, src) +func (m *InitReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitReq.Merge(m, src) } func (m *InitReq) XXX_Size() int { return xxx_messageInfo_InitReq.Size(m) @@ -153,16 +156,17 @@ func (m *InitResp) Reset() { *m = InitResp{} } func (m *InitResp) String() string { return proto.CompactTextString(m) } func (*InitResp) ProtoMessage() {} func (*InitResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{2} + return fileDescriptor_0dff099eb2e3dfdb, []int{2} } + func (m *InitResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InitResp.Unmarshal(m, b) } func (m *InitResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InitResp.Marshal(b, m, deterministic) } -func (dst *InitResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_InitResp.Merge(dst, src) +func (m *InitResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitResp.Merge(m, src) } func (m *InitResp) XXX_Size() int { return xxx_messageInfo_InitResp.Size(m) @@ -205,16 +209,17 @@ func (m *DestroyReq) Reset() { *m = DestroyReq{} } func (m *DestroyReq) String() string { return proto.CompactTextString(m) } func (*DestroyReq) ProtoMessage() {} func (*DestroyReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{3} + return fileDescriptor_0dff099eb2e3dfdb, []int{3} } + func (m *DestroyReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DestroyReq.Unmarshal(m, b) } func (m *DestroyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DestroyReq.Marshal(b, m, deterministic) } -func (dst *DestroyReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyReq.Merge(dst, src) +func (m *DestroyReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyReq.Merge(m, src) } func (m *DestroyReq) XXX_Size() int { return xxx_messageInfo_DestroyReq.Size(m) @@ -242,16 +247,17 @@ func (m *DestroyResp) Reset() { *m = DestroyResp{} } func (m *DestroyResp) String() string { return proto.CompactTextString(m) } func (*DestroyResp) ProtoMessage() {} func (*DestroyResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{4} + return fileDescriptor_0dff099eb2e3dfdb, []int{4} } + func (m *DestroyResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DestroyResp.Unmarshal(m, b) } func (m *DestroyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DestroyResp.Marshal(b, m, deterministic) } -func (dst *DestroyResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyResp.Merge(dst, src) +func (m *DestroyResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyResp.Merge(m, src) } func (m *DestroyResp) XXX_Size() int { return xxx_messageInfo_DestroyResp.Size(m) @@ -273,16 +279,17 @@ func (m *RescanReq) Reset() { *m = RescanReq{} } func (m *RescanReq) String() string { return proto.CompactTextString(m) } func (*RescanReq) ProtoMessage() {} func (*RescanReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{5} + return fileDescriptor_0dff099eb2e3dfdb, []int{5} } + func (m *RescanReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RescanReq.Unmarshal(m, b) } func (m *RescanReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RescanReq.Marshal(b, m, deterministic) } -func (dst *RescanReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_RescanReq.Merge(dst, src) +func (m *RescanReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_RescanReq.Merge(m, src) } func (m *RescanReq) XXX_Size() int { return xxx_messageInfo_RescanReq.Size(m) @@ -312,16 +319,17 @@ func (m *RescanResp) Reset() { *m = RescanResp{} } func (m *RescanResp) String() string { return proto.CompactTextString(m) } func (*RescanResp) ProtoMessage() {} func (*RescanResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{6} + return fileDescriptor_0dff099eb2e3dfdb, []int{6} } + func (m *RescanResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RescanResp.Unmarshal(m, b) } func (m *RescanResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RescanResp.Marshal(b, m, deterministic) } -func (dst *RescanResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_RescanResp.Merge(dst, src) +func (m *RescanResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_RescanResp.Merge(m, src) } func (m *RescanResp) XXX_Size() int { return xxx_messageInfo_RescanResp.Size(m) @@ -357,16 +365,17 @@ func (m *UpdateIndexReq) Reset() { *m = UpdateIndexReq{} } func (m *UpdateIndexReq) String() string { return proto.CompactTextString(m) } func (*UpdateIndexReq) ProtoMessage() {} func (*UpdateIndexReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{7} + return fileDescriptor_0dff099eb2e3dfdb, []int{7} } + func (m *UpdateIndexReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateIndexReq.Unmarshal(m, b) } func (m *UpdateIndexReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateIndexReq.Marshal(b, m, deterministic) } -func (dst *UpdateIndexReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateIndexReq.Merge(dst, src) +func (m *UpdateIndexReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateIndexReq.Merge(m, src) } func (m *UpdateIndexReq) XXX_Size() int { return xxx_messageInfo_UpdateIndexReq.Size(m) @@ -395,16 +404,17 @@ func (m *UpdateIndexResp) Reset() { *m = UpdateIndexResp{} } func (m *UpdateIndexResp) String() string { return proto.CompactTextString(m) } func (*UpdateIndexResp) ProtoMessage() {} func (*UpdateIndexResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_90fc8083f3d9fcd2, []int{8} + return fileDescriptor_0dff099eb2e3dfdb, []int{8} } + func (m *UpdateIndexResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateIndexResp.Unmarshal(m, b) } func (m *UpdateIndexResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateIndexResp.Marshal(b, m, deterministic) } -func (dst *UpdateIndexResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateIndexResp.Merge(dst, src) +func (m *UpdateIndexResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateIndexResp.Merge(m, src) } func (m *UpdateIndexResp) XXX_Size() int { return xxx_messageInfo_UpdateIndexResp.Size(m) @@ -423,15 +433,72 @@ func (m *UpdateIndexResp) GetDownloadProgress() *DownloadProgress { } func init() { - proto.RegisterType((*Configuration)(nil), "cc.arduino.core.rpc.Configuration") - proto.RegisterType((*InitReq)(nil), "cc.arduino.core.rpc.InitReq") - proto.RegisterType((*InitResp)(nil), "cc.arduino.core.rpc.InitResp") - proto.RegisterType((*DestroyReq)(nil), "cc.arduino.core.rpc.DestroyReq") - proto.RegisterType((*DestroyResp)(nil), "cc.arduino.core.rpc.DestroyResp") - proto.RegisterType((*RescanReq)(nil), "cc.arduino.core.rpc.RescanReq") - proto.RegisterType((*RescanResp)(nil), "cc.arduino.core.rpc.RescanResp") - proto.RegisterType((*UpdateIndexReq)(nil), "cc.arduino.core.rpc.UpdateIndexReq") - proto.RegisterType((*UpdateIndexResp)(nil), "cc.arduino.core.rpc.UpdateIndexResp") + proto.RegisterType((*Configuration)(nil), "arduino.Configuration") + proto.RegisterType((*InitReq)(nil), "arduino.InitReq") + proto.RegisterType((*InitResp)(nil), "arduino.InitResp") + proto.RegisterType((*DestroyReq)(nil), "arduino.DestroyReq") + proto.RegisterType((*DestroyResp)(nil), "arduino.DestroyResp") + proto.RegisterType((*RescanReq)(nil), "arduino.RescanReq") + proto.RegisterType((*RescanResp)(nil), "arduino.RescanResp") + proto.RegisterType((*UpdateIndexReq)(nil), "arduino.UpdateIndexReq") + proto.RegisterType((*UpdateIndexResp)(nil), "arduino.UpdateIndexResp") +} + +func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) } + +var fileDescriptor_0dff099eb2e3dfdb = []byte{ + // 816 bytes of a gzipped FileDescriptorProto + 0x1f,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x4b, + 0x1e, 0x7c, 0x80, 0x46, 0x48, 0x64, 0x84, 0xd3, 0x27, 0xa4, 0xfa, 0x13, 0xc0, 0xc6, 0x4a, 0xbe, + 0x63, 0xfe, 0xda, 0x53, 0xe6, 0xdf, 0xdb, 0x3e, 0xff, 0x37, 0xd0, 0x19, 0xf3, 0x18, 0x67, 0x44, + 0x63, 0x4f, 0x68, 0xfc, 0x37, 0x78, 0x51, 0x48, 0x20, 0x39, 0xba, 0x81, 0xae, 0x35, 0xf1, 0x84, + 0x0b, 0x36, 0x13, 0x44, 0x4a, 0x93, 0xaa, 0xe7, 0x52, 0x0d, 0x8d, 0xe2, 0xce, 0x08, 0xc2, 0xc3, + 0xb8, 0x84, 0x5c, 0xfc, 0xd3, 0x84, 0xe6, 0x55, 0x2e, 0x1f, 0x30, 0x41, 0xd0, 0x19, 0x3c, 0x57, + 0x86, 0x42, 0x87, 0x6b, 0xfd, 0x68, 0x6f, 0xfb, 0xdd, 0x12, 0x22, 0x79, 0xf0, 0x09, 0xfa, 0x02, + 0xea, 0xe6, 0x3a, 0xe8, 0x68, 0x55, 0xd6, 0x1d, 0xdb, 0x3f, 0xae, 0x82, 0x3a, 0xee, 0x12, 0xf6, + 0xf3, 0x53, 0x20, 0xe4, 0x14, 0xee, 0xae, 0xfe, 0x51, 0x05, 0xd3, 0x41, 0x43, 0x68, 0xae, 0xad, + 0x01, 0xbd, 0x72, 0xaa, 0xe2, 0x76, 0x7d, 0x6f, 0x33, 0xa1, 0x72, 0x9c, 0xd7, 0xd0, 0x07, 0x68, + 0x5c, 0xab, 0x5f, 0xe6, 0x5b, 0x2a, 0x33, 0xf4, 0xd2, 0x49, 0x1d, 0xa6, 0x32, 0x9c, 0x6c, 0x82, + 0x25, 0x47, 0x03, 0x68, 0x69, 0x60, 0x48, 0x32, 0x4c, 0x13, 0x89, 0xbc, 0xa2, 0xce, 0xc0, 0x2a, + 0x43, 0x6f, 0x0b, 0x23, 0xb9, 0xda, 0xd9, 0x20, 0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ac, 0x55, + 0xe1, 0x8a, 0xd6, 0xda, 0x40, 0xeb, 0xac, 0x37, 0xd0, 0x36, 0x94, 0x39, 0x6a, 0xaf, 0x1c, 0xb2, + 0xba, 0xa9, 0xbf, 0x8d, 0x92, 0x1c, 0x7d, 0x0b, 0x4d, 0x03, 0xea, 0x8b, 0xbe, 0x2a, 0x4b, 0xed, + 0x41, 0xbd, 0xcd, 0x84, 0xe4, 0xd7, 0x6f, 0x7f, 0x0f, 0x66, 0x34, 0x7b, 0x58, 0x4c, 0xfb, 0x11, + 0x9b, 0xbf, 0x37, 0x2a, 0xfb, 0xf3, 0x2c, 0x4a, 0xe8, 0x7b, 0xc1, 0xa3, 0xe9, 0xbe, 0xfe, 0x47, + 0xe9, 0xf2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xbb, 0x7f, 0xde, 0x92, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -454,6 +521,7 @@ type ArduinoCoreClient interface { 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) + BoardList(ctx context.Context, in *BoardListReq, opts ...grpc.CallOption) (*BoardListResp, error) // Requests details about a board BoardDetails(ctx context.Context, in *BoardDetailsReq, opts ...grpc.CallOption) (*BoardDetailsResp, error) Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) @@ -469,6 +537,7 @@ type ArduinoCoreClient interface { LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) LibrarySearch(ctx context.Context, in *LibrarySearchReq, opts ...grpc.CallOption) (*LibrarySearchResp, error) + LibraryList(ctx context.Context, in *LibraryListReq, opts ...grpc.CallOption) (*LibraryListResp, error) } type arduinoCoreClient struct { @@ -481,7 +550,7 @@ func NewArduinoCoreClient(cc *grpc.ClientConn) ArduinoCoreClient { func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (*InitResp, error) { out := new(InitResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Init", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/Init", in, out, opts...) if err != nil { return nil, err } @@ -490,7 +559,7 @@ func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc. func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error) { out := new(DestroyResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Destroy", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/Destroy", in, out, opts...) if err != nil { return nil, err } @@ -499,7 +568,7 @@ func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts .. func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...grpc.CallOption) (*RescanResp, error) { out := new(RescanResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Rescan", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/Rescan", in, out, opts...) if err != nil { return nil, err } @@ -507,7 +576,7 @@ func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...g } func (c *arduinoCoreClient) UpdateIndex(ctx context.Context, in *UpdateIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.core.rpc.ArduinoCore/UpdateIndex", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/arduino.ArduinoCore/UpdateIndex", opts...) if err != nil { return nil, err } @@ -538,9 +607,18 @@ func (x *arduinoCoreUpdateIndexClient) Recv() (*UpdateIndexResp, error) { 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, "/arduino.ArduinoCore/BoardList", 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.core.rpc.ArduinoCore/BoardDetails", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/BoardDetails", in, out, opts...) if err != nil { return nil, err } @@ -548,7 +626,7 @@ func (c *arduinoCoreClient) BoardDetails(ctx context.Context, in *BoardDetailsRe } func (c *arduinoCoreClient) Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.core.rpc.ArduinoCore/Compile", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/arduino.ArduinoCore/Compile", opts...) if err != nil { return nil, err } @@ -580,7 +658,7 @@ func (x *arduinoCoreCompileClient) Recv() (*CompileResp, error) { } func (c *arduinoCoreClient) PlatformInstall(ctx context.Context, in *PlatformInstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.core.rpc.ArduinoCore/PlatformInstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/arduino.ArduinoCore/PlatformInstall", opts...) if err != nil { return nil, err } @@ -612,7 +690,7 @@ func (x *arduinoCorePlatformInstallClient) Recv() (*PlatformInstallResp, error) } func (c *arduinoCoreClient) PlatformDownload(ctx context.Context, in *PlatformDownloadReq, opts ...grpc.CallOption) (ArduinoCore_PlatformDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.core.rpc.ArduinoCore/PlatformDownload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/arduino.ArduinoCore/PlatformDownload", opts...) if err != nil { return nil, err } @@ -644,7 +722,7 @@ func (x *arduinoCorePlatformDownloadClient) Recv() (*PlatformDownloadResp, error } func (c *arduinoCoreClient) PlatformUninstall(ctx context.Context, in *PlatformUninstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.core.rpc.ArduinoCore/PlatformUninstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/arduino.ArduinoCore/PlatformUninstall", opts...) if err != nil { return nil, err } @@ -676,7 +754,7 @@ func (x *arduinoCorePlatformUninstallClient) Recv() (*PlatformUninstallResp, err } func (c *arduinoCoreClient) PlatformUpgrade(ctx context.Context, in *PlatformUpgradeReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUpgradeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.core.rpc.ArduinoCore/PlatformUpgrade", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/arduino.ArduinoCore/PlatformUpgrade", opts...) if err != nil { return nil, err } @@ -708,7 +786,7 @@ func (x *arduinoCorePlatformUpgradeClient) Recv() (*PlatformUpgradeResp, error) } func (c *arduinoCoreClient) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (ArduinoCore_UploadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.core.rpc.ArduinoCore/Upload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/arduino.ArduinoCore/Upload", opts...) if err != nil { return nil, err } @@ -741,7 +819,7 @@ func (x *arduinoCoreUploadClient) Recv() (*UploadResp, error) { func (c *arduinoCoreClient) PlatformSearch(ctx context.Context, in *PlatformSearchReq, opts ...grpc.CallOption) (*PlatformSearchResp, error) { out := new(PlatformSearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/PlatformSearch", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/PlatformSearch", in, out, opts...) if err != nil { return nil, err } @@ -750,7 +828,7 @@ func (c *arduinoCoreClient) PlatformSearch(ctx context.Context, in *PlatformSear func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListReq, opts ...grpc.CallOption) (*PlatformListResp, error) { out := new(PlatformListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/PlatformList", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.ArduinoCore/PlatformList", in, out, opts...) if err != nil { return nil, err } @@ -758,7 +836,7 @@ func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListRe } func (c *arduinoCoreClient) LibraryDownload(ctx context.Context, in *LibraryDownloadReq, opts ...grpc.CallOption) (ArduinoCore_LibraryDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.core.rpc.ArduinoCore/LibraryDownload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/arduino.ArduinoCore/LibraryDownload", opts...) if err != nil { return nil, err } @@ -790,7 +868,7 @@ func (x *arduinoCoreLibraryDownloadClient) Recv() (*LibraryDownloadResp, error) } func (c *arduinoCoreClient) LibraryInstall(ctx context.Context, in *LibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.core.rpc.ArduinoCore/LibraryInstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/arduino.ArduinoCore/LibraryInstall", opts...) if err != nil { return nil, err } @@ -822,7 +900,7 @@ func (x *arduinoCoreLibraryInstallClient) Recv() (*LibraryInstallResp, error) { } func (c *arduinoCoreClient) LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.core.rpc.ArduinoCore/LibraryUninstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/arduino.ArduinoCore/LibraryUninstall", opts...) if err != nil { return nil, err } @@ -854,7 +932,7 @@ func (x *arduinoCoreLibraryUninstallClient) Recv() (*LibraryUninstallResp, error } func (c *arduinoCoreClient) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.core.rpc.ArduinoCore/LibraryUpgradeAll", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/arduino.ArduinoCore/LibraryUpgradeAll", opts...) if err != nil { return nil, err } @@ -887,7 +965,16 @@ func (x *arduinoCoreLibraryUpgradeAllClient) Recv() (*LibraryUpgradeAllResp, err func (c *arduinoCoreClient) LibrarySearch(ctx context.Context, in *LibrarySearchReq, opts ...grpc.CallOption) (*LibrarySearchResp, error) { out := new(LibrarySearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/LibrarySearch", in, out, opts...) + err := c.cc.Invoke(ctx, "/arduino.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, "/arduino.ArduinoCore/LibraryList", in, out, opts...) if err != nil { return nil, err } @@ -904,6 +991,7 @@ type ArduinoCoreServer interface { Rescan(context.Context, *RescanReq) (*RescanResp, error) // Update package index of the Arduino Core Service UpdateIndex(*UpdateIndexReq, ArduinoCore_UpdateIndexServer) error + BoardList(context.Context, *BoardListReq) (*BoardListResp, error) // Requests details about a board BoardDetails(context.Context, *BoardDetailsReq) (*BoardDetailsResp, error) Compile(*CompileReq, ArduinoCore_CompileServer) error @@ -919,6 +1007,72 @@ type ArduinoCoreServer interface { LibraryUninstall(*LibraryUninstallReq, ArduinoCore_LibraryUninstallServer) error LibraryUpgradeAll(*LibraryUpgradeAllReq, ArduinoCore_LibraryUpgradeAllServer) error LibrarySearch(context.Context, *LibrarySearchReq) (*LibrarySearchResp, error) + LibraryList(context.Context, *LibraryListReq) (*LibraryListResp, error) +} + +// UnimplementedArduinoCoreServer can be embedded to have forward compatible implementations. +type UnimplementedArduinoCoreServer struct { +} + +func (*UnimplementedArduinoCoreServer) Init(ctx context.Context, req *InitReq) (*InitResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") +} +func (*UnimplementedArduinoCoreServer) Destroy(ctx context.Context, req *DestroyReq) (*DestroyResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Destroy not implemented") +} +func (*UnimplementedArduinoCoreServer) Rescan(ctx context.Context, req *RescanReq) (*RescanResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rescan not implemented") +} +func (*UnimplementedArduinoCoreServer) UpdateIndex(req *UpdateIndexReq, srv ArduinoCore_UpdateIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateIndex not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardList(ctx context.Context, req *BoardListReq) (*BoardListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardList not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardDetails(ctx context.Context, req *BoardDetailsReq) (*BoardDetailsResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardDetails not implemented") +} +func (*UnimplementedArduinoCoreServer) Compile(req *CompileReq, srv ArduinoCore_CompileServer) error { + return status.Errorf(codes.Unimplemented, "method Compile not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformInstall(req *PlatformInstallReq, srv ArduinoCore_PlatformInstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformInstall not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformDownload(req *PlatformDownloadReq, srv ArduinoCore_PlatformDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformDownload not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformUninstall(req *PlatformUninstallReq, srv ArduinoCore_PlatformUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUninstall not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformUpgrade(req *PlatformUpgradeReq, srv ArduinoCore_PlatformUpgradeServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUpgrade not implemented") +} +func (*UnimplementedArduinoCoreServer) Upload(req *UploadReq, srv ArduinoCore_UploadServer) error { + return status.Errorf(codes.Unimplemented, "method Upload not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformSearch(ctx context.Context, req *PlatformSearchReq) (*PlatformSearchResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformSearch not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformList(ctx context.Context, req *PlatformListReq) (*PlatformListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformList not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryDownload(req *LibraryDownloadReq, srv ArduinoCore_LibraryDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryDownload not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryInstall(req *LibraryInstallReq, srv ArduinoCore_LibraryInstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryInstall not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryUninstall(req *LibraryUninstallReq, srv ArduinoCore_LibraryUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUninstall not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryUpgradeAll(req *LibraryUpgradeAllReq, srv ArduinoCore_LibraryUpgradeAllServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUpgradeAll not implemented") +} +func (*UnimplementedArduinoCoreServer) LibrarySearch(ctx context.Context, req *LibrarySearchReq) (*LibrarySearchResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibrarySearch not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryList(ctx context.Context, req *LibraryListReq) (*LibraryListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibraryList not implemented") } func RegisterArduinoCoreServer(s *grpc.Server, srv ArduinoCoreServer) { @@ -935,7 +1089,7 @@ func _ArduinoCore_Init_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Init", + FullMethod: "/arduino.ArduinoCore/Init", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Init(ctx, req.(*InitReq)) @@ -953,7 +1107,7 @@ func _ArduinoCore_Destroy_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Destroy", + FullMethod: "/arduino.ArduinoCore/Destroy", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Destroy(ctx, req.(*DestroyReq)) @@ -971,7 +1125,7 @@ func _ArduinoCore_Rescan_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Rescan", + FullMethod: "/arduino.ArduinoCore/Rescan", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Rescan(ctx, req.(*RescanReq)) @@ -1000,6 +1154,24 @@ func (x *arduinoCoreUpdateIndexServer) Send(m *UpdateIndexResp) 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: "/arduino.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_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 { @@ -1010,7 +1182,7 @@ func _ArduinoCore_BoardDetails_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/BoardDetails", + FullMethod: "/arduino.ArduinoCore/BoardDetails", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).BoardDetails(ctx, req.(*BoardDetailsReq)) @@ -1154,7 +1326,7 @@ func _ArduinoCore_PlatformSearch_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/PlatformSearch", + FullMethod: "/arduino.ArduinoCore/PlatformSearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).PlatformSearch(ctx, req.(*PlatformSearchReq)) @@ -1172,7 +1344,7 @@ func _ArduinoCore_PlatformList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/PlatformList", + FullMethod: "/arduino.ArduinoCore/PlatformList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).PlatformList(ctx, req.(*PlatformListReq)) @@ -1274,7 +1446,7 @@ func _ArduinoCore_LibrarySearch_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/LibrarySearch", + FullMethod: "/arduino.ArduinoCore/LibrarySearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).LibrarySearch(ctx, req.(*LibrarySearchReq)) @@ -1282,8 +1454,26 @@ func _ArduinoCore_LibrarySearch_Handler(srv interface{}, ctx context.Context, de 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: "/arduino.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.core.rpc.ArduinoCore", + ServiceName: "arduino.ArduinoCore", HandlerType: (*ArduinoCoreServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1298,6 +1488,10 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ MethodName: "Rescan", Handler: _ArduinoCore_Rescan_Handler, }, + { + MethodName: "BoardList", + Handler: _ArduinoCore_BoardList_Handler, + }, { MethodName: "BoardDetails", Handler: _ArduinoCore_BoardDetails_Handler, @@ -1314,6 +1508,10 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ MethodName: "LibrarySearch", Handler: _ArduinoCore_LibrarySearch_Handler, }, + { + MethodName: "LibraryList", + Handler: _ArduinoCore_LibraryList_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -1374,60 +1572,3 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ }, Metadata: "commands.proto", } - -func init() { proto.RegisterFile("commands.proto", fileDescriptor_commands_90fc8083f3d9fcd2) } - -var fileDescriptor_commands_90fc8083f3d9fcd2 = []byte{ - // 810 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x96, 0x5b, 0x4f, 0x1b, 0x47, - 0x14, 0xc7, 0x6b, 0x40, 0x5c, 0x8e, 0x2f, 0xc0, 0x40, 0x2b, 0x64, 0x95, 0x82, 0xb6, 0x5c, 0x2b, - 0xd5, 0x20, 0xda, 0x97, 0xbe, 0x54, 0x02, 0x4c, 0x5b, 0x04, 0x4d, 0x90, 0x23, 0xbf, 0x24, 0x51, - 0xac, 0xf1, 0xee, 0x60, 0x46, 0xac, 0x77, 0x36, 0x33, 0xeb, 0x24, 0x7c, 0x80, 0x7c, 0x9e, 0x3c, - 0xe4, 0x25, 0x1f, 0x2f, 0x33, 0xb3, 0x33, 0x8b, 0xd7, 0xec, 0x2e, 0x2b, 0x78, 0xc2, 0x3b, 0xff, - 0xdf, 0xb9, 0xcc, 0x7f, 0xcf, 0xb1, 0x81, 0x86, 0xcb, 0x86, 0x43, 0x1c, 0x78, 0xa2, 0x15, 0x72, - 0x16, 0x31, 0xb4, 0xe2, 0xba, 0x2d, 0xcc, 0xbd, 0x11, 0x0d, 0x58, 0xcb, 0x65, 0x9c, 0xb4, 0x78, - 0xe8, 0x36, 0x6b, 0x0a, 0x62, 0x41, 0x8c, 0x34, 0xab, 0x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0x21, 0x95, 0x7c, 0xb7, 0x14, 0x27, - 0x07, 0x55, 0x6e, 0x81, 0x3d, 0xbd, 0xa4, 0x22, 0xca, 0xd9, 0x82, 0x71, 0x24, 0x7f, 0x0b, 0xd2, - 0x94, 0x4c, 0x2e, 0x4d, 0xbf, 0x8c, 0x7f, 0x48, 0x93, 0x61, 0xca, 0x6e, 0x6c, 0x82, 0xca, 0x37, - 0xfd, 0x01, 0xa8, 0x7d, 0x72, 0xa1, 0x61, 0x04, 0xbb, 0x1c, 0x3b, 0x45, 0xd1, 0x63, 0xbb, 0xb1, - 0x5b, 0x8a, 0xb3, 0xab, 0x61, 0xce, 0xef, 0xc7, 0xb5, 0xb0, 0xc9, 0xd4, 0xb4, 0xee, 0x97, 0x24, - 0xed, 0x6a, 0x58, 0x25, 0x1e, 0xae, 0xe3, 0xdc, 0xd5, 0x78, 0xc0, 0xe5, 0xaf, 0x46, 0x06, 0xaa, - 0xab, 0xbd, 0x83, 0xba, 0x91, 0xcc, 0x90, 0x6d, 0x17, 0x85, 0xdf, 0xcf, 0xd8, 0x4e, 0x19, 0x4c, - 0x84, 0x27, 0x5b, 0xaf, 0x9d, 0x01, 0x8d, 0x6e, 0x46, 0x7d, 0x09, 0x0d, 0x0f, 0x4c, 0x80, 0xfd, - 0xfb, 0xbb, 0xeb, 0xd3, 0x03, 0x19, 0xd7, 0x9f, 0xd5, 0xff, 0xa3, 0xfe, 0xf1, 0x3d, 0x00, 0x00, - 0xff, 0xff, 0x21, 0xba, 0xcb, 0x28, 0x19, 0x0b, 0x00, 0x00, -} diff --git a/rpc/commands.proto b/rpc/commands.proto index 5d872921287..2444d9b1e06 100644 --- a/rpc/commands.proto +++ b/rpc/commands.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; @@ -47,6 +47,8 @@ service ArduinoCore { // BOARD COMMANDS // -------------- + rpc BoardList(BoardListReq) returns (BoardListResp); + // Requests details about a board rpc BoardDetails(BoardDetailsReq) returns (BoardDetailsResp); @@ -75,6 +77,8 @@ service ArduinoCore { rpc LibraryUpgradeAll(LibraryUpgradeAllReq) returns (stream LibraryUpgradeAllResp); rpc LibrarySearch(LibrarySearchReq) returns (LibrarySearchResp); + + rpc LibraryList(LibraryListReq) returns (LibraryListResp); } // Configuration contains information to instantiate an Arduino Platform Service diff --git a/rpc/common.pb.go b/rpc/common.pb.go index 319ff23be3e..c19c8e52974 100644 --- a/rpc/common.pb.go +++ b/rpc/common.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: common.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Instance struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` @@ -29,16 +31,17 @@ func (m *Instance) Reset() { *m = Instance{} } func (m *Instance) String() string { return proto.CompactTextString(m) } func (*Instance) ProtoMessage() {} func (*Instance) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{0} + return fileDescriptor_555bd8c177793206, []int{0} } + func (m *Instance) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Instance.Unmarshal(m, b) } func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Instance.Marshal(b, m, deterministic) } -func (dst *Instance) XXX_Merge(src proto.Message) { - xxx_messageInfo_Instance.Merge(dst, src) +func (m *Instance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Instance.Merge(m, src) } func (m *Instance) XXX_Size() int { return xxx_messageInfo_Instance.Size(m) @@ -71,16 +74,17 @@ func (m *DownloadProgress) Reset() { *m = DownloadProgress{} } func (m *DownloadProgress) String() string { return proto.CompactTextString(m) } func (*DownloadProgress) ProtoMessage() {} func (*DownloadProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{1} + return fileDescriptor_555bd8c177793206, []int{1} } + func (m *DownloadProgress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DownloadProgress.Unmarshal(m, b) } func (m *DownloadProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DownloadProgress.Marshal(b, m, deterministic) } -func (dst *DownloadProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadProgress.Merge(dst, src) +func (m *DownloadProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadProgress.Merge(m, src) } func (m *DownloadProgress) XXX_Size() int { return xxx_messageInfo_DownloadProgress.Size(m) @@ -139,16 +143,17 @@ func (m *TaskProgress) Reset() { *m = TaskProgress{} } func (m *TaskProgress) String() string { return proto.CompactTextString(m) } func (*TaskProgress) ProtoMessage() {} func (*TaskProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{2} + return fileDescriptor_555bd8c177793206, []int{2} } + func (m *TaskProgress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskProgress.Unmarshal(m, b) } func (m *TaskProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskProgress.Marshal(b, m, deterministic) } -func (dst *TaskProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskProgress.Merge(dst, src) +func (m *TaskProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskProgress.Merge(m, src) } func (m *TaskProgress) XXX_Size() int { return xxx_messageInfo_TaskProgress.Size(m) @@ -181,29 +186,29 @@ func (m *TaskProgress) GetCompleted() bool { } func init() { - proto.RegisterType((*Instance)(nil), "cc.arduino.core.rpc.Instance") - proto.RegisterType((*DownloadProgress)(nil), "cc.arduino.core.rpc.DownloadProgress") - proto.RegisterType((*TaskProgress)(nil), "cc.arduino.core.rpc.TaskProgress") -} - -func init() { proto.RegisterFile("common.proto", fileDescriptor_common_2f2953b7902b8ec7) } - -var fileDescriptor_common_2f2953b7902b8ec7 = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x90, 0x4f, 0x4b, 0xc4, 0x30, - 0x14, 0xc4, 0xe9, 0x76, 0x57, 0xb7, 0x8f, 0x45, 0x96, 0x78, 0x09, 0xa2, 0x22, 0xc5, 0x83, 0x17, - 0xbb, 0x07, 0xbf, 0x81, 0x78, 0xf1, 0x26, 0xd5, 0xd3, 0x5e, 0x24, 0x9b, 0xc4, 0x1a, 0x4c, 0xf2, - 0x4a, 0x92, 0x22, 0xf8, 0x3d, 0xfc, 0xbe, 0x3e, 0x43, 0xeb, 0x9f, 0x3d, 0x65, 0x32, 0xf3, 0x18, - 0x7e, 0x0c, 0xac, 0x24, 0x3a, 0x87, 0xbe, 0xe9, 0x03, 0x26, 0x64, 0xc7, 0x52, 0x36, 0x22, 0xa8, - 0xc1, 0x78, 0x6c, 0x24, 0x06, 0xdd, 0x84, 0x5e, 0xd6, 0x27, 0xb0, 0xbc, 0xf7, 0x31, 0x09, 0x2f, - 0x35, 0x3b, 0x82, 0x99, 0x51, 0xbc, 0xb8, 0x28, 0xae, 0x16, 0x2d, 0xa9, 0xfa, 0xb3, 0x80, 0xf5, - 0x1d, 0xbe, 0x7b, 0x8b, 0x42, 0x3d, 0x04, 0xec, 0x82, 0x8e, 0x91, 0xad, 0xa1, 0x1c, 0x82, 0xcd, - 0x57, 0x55, 0xfb, 0x2d, 0x19, 0x83, 0xf9, 0x8b, 0xb1, 0x9a, 0xcf, 0xb2, 0x95, 0x35, 0x3b, 0x03, - 0x48, 0x98, 0x84, 0x7d, 0x8e, 0xe6, 0x43, 0xf3, 0x92, 0x92, 0xb2, 0xad, 0xb2, 0xf3, 0x48, 0x06, - 0x3b, 0x07, 0x50, 0x63, 0xb1, 0x56, 0x7c, 0x9e, 0xe3, 0x3f, 0x0e, 0x3b, 0x85, 0x8a, 0xd0, 0x7b, - 0xab, 0x13, 0xc5, 0x0b, 0x8a, 0x97, 0xed, 0xaf, 0x51, 0x6f, 0x61, 0xf5, 0x24, 0xe2, 0xdb, 0x0f, - 0x12, 0x01, 0x78, 0xe1, 0xf4, 0xc8, 0x94, 0x35, 0xe3, 0x70, 0xe8, 0x28, 0x13, 0xdd, 0xc4, 0x35, - 0x7d, 0xff, 0x77, 0x97, 0x7b, 0xdd, 0xb7, 0x97, 0xdb, 0xba, 0x33, 0xe9, 0x75, 0xd8, 0xd1, 0x44, - 0x6e, 0x33, 0xce, 0x35, 0xbd, 0xd7, 0xd2, 0x9a, 0x0d, 0xad, 0xb6, 0x3b, 0xc8, 0x8b, 0xde, 0x7c, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x72, 0xf8, 0x1e, 0x93, 0x61, 0x01, 0x00, 0x00, + proto.RegisterType((*Instance)(nil), "arduino.Instance") + proto.RegisterType((*DownloadProgress)(nil), "arduino.DownloadProgress") + proto.RegisterType((*TaskProgress)(nil), "arduino.TaskProgress") +} + +func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) } + +var fileDescriptor_555bd8c177793206 = []byte{ + // 249 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4f, 0x4b, 0xc4, 0x30, + 0x10, 0xc5, 0xe9, 0x9f, 0x75, 0xb7, 0xc3, 0x22, 0x4b, 0x4e, 0x41, 0x54, 0x4a, 0xf1, 0xd0, 0x8b, + 0xbb, 0x07, 0xbf, 0x81, 0x78, 0xf1, 0x26, 0xd5, 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, + 0xbc, 0x96, 0x46, 0xef, 0xfc, 0x20, 0x0f, 0x27, 0xa9, 0xc5, 0x9b, 0xcf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x63, 0x77, 0xb1, 0xae, 0x55, 0x01, 0x00, 0x00, } diff --git a/rpc/common.proto b/rpc/common.proto index e3bfa3ae29d..373adc7e521 100644 --- a/rpc/common.proto +++ b/rpc/common.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; diff --git a/rpc/compile.pb.go b/rpc/compile.pb.go index 85685b04e86..ad531a7c1aa 100644 --- a/rpc/compile.pb.go +++ b/rpc/compile.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: compile.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CompileReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -41,16 +43,17 @@ func (m *CompileReq) Reset() { *m = CompileReq{} } func (m *CompileReq) String() string { return proto.CompactTextString(m) } func (*CompileReq) ProtoMessage() {} func (*CompileReq) Descriptor() ([]byte, []int) { - return fileDescriptor_compile_cef1caa660007272, []int{0} + return fileDescriptor_9c90e492e3fe2f74, []int{0} } + func (m *CompileReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompileReq.Unmarshal(m, b) } func (m *CompileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompileReq.Marshal(b, m, deterministic) } -func (dst *CompileReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompileReq.Merge(dst, src) +func (m *CompileReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompileReq.Merge(m, src) } func (m *CompileReq) XXX_Size() int { return xxx_messageInfo_CompileReq.Size(m) @@ -166,16 +169,17 @@ func (m *CompileResp) Reset() { *m = CompileResp{} } func (m *CompileResp) String() string { return proto.CompactTextString(m) } func (*CompileResp) ProtoMessage() {} func (*CompileResp) Descriptor() ([]byte, []int) { - return fileDescriptor_compile_cef1caa660007272, []int{1} + return fileDescriptor_9c90e492e3fe2f74, []int{1} } + func (m *CompileResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompileResp.Unmarshal(m, b) } func (m *CompileResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompileResp.Marshal(b, m, deterministic) } -func (dst *CompileResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompileResp.Merge(dst, src) +func (m *CompileResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompileResp.Merge(m, src) } func (m *CompileResp) XXX_Size() int { return xxx_messageInfo_CompileResp.Size(m) @@ -215,39 +219,38 @@ func (m *CompileResp) GetTaskProgress() *TaskProgress { } func init() { - proto.RegisterType((*CompileReq)(nil), "cc.arduino.core.rpc.CompileReq") - proto.RegisterType((*CompileResp)(nil), "cc.arduino.core.rpc.CompileResp") -} - -func init() { proto.RegisterFile("compile.proto", fileDescriptor_compile_cef1caa660007272) } - -var fileDescriptor_compile_cef1caa660007272 = []byte{ - // 422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0x8e, 0xd3, 0x30, - 0x10, 0x87, 0xd5, 0x6d, 0xb7, 0xdb, 0x4e, 0x5b, 0xfe, 0x18, 0x84, 0xac, 0x15, 0x8b, 0x96, 0x0a, - 0xd0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 0xf2, 0xf0, 0xfb, 0x51, 0x6e, - 0xd4, 0x6d, 0x08, 0x48, 0xc6, 0x34, 0xd0, 0x9f, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x19, 0xa1, - 0xc2, 0xe4, 0x04, 0x03, 0x00, 0x00, + proto.RegisterType((*CompileReq)(nil), "arduino.CompileReq") + proto.RegisterType((*CompileResp)(nil), "arduino.CompileResp") +} + +func init() { proto.RegisterFile("compile.proto", fileDescriptor_9c90e492e3fe2f74) } + +var fileDescriptor_9c90e492e3fe2f74 = []byte{ + // 414 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x41, 0x8f, 0xd3, 0x30, + 0x10, 0x85, 0x95, 0x6d, 0xb7, 0x6d, 0xa6, 0x2d, 0xb0, 0x16, 0x20, 0xb3, 0x02, 0x54, 0x55, 0x08, + 0xe5, 0xb2, 0x5d, 0x09, 0x6e, 0x1c, 0x59, 0xb4, 0x12, 0xb7, 0x2a, 0x70, 0xe2, 0xb2, 0x4a, 0x1c, + 0xd3, 0x58, 0x4d, 0x32, 0xee, 0xd8, 0x69, 0xf9, 0x4f, 0xfc, 0x18, 0xfe, 0x12, 0xca, 0x24, 0x4d, + 0xab, 0x9e, 0x92, 0xf7, 0xbd, 0xe7, 0x67, 0xc7, 0x13, 0x98, 0x2b, 0x2c, 0xad, 0x29, 0xf4, 0xca, + 0x12, 0x7a, 0x14, 0xe3, 0x84, 0xb2, 0xda, 0x54, 0x78, 0x3b, 0x53, 0x58, 0x96, 0x58, 0xb5, 0x78, + 0xf9, 0x77, 0x00, 0xf0, 0xd0, 0x06, 0x63, 0xbd, 0x13, 0x77, 0x30, 0x31, 0x95, 0xf3, 0x49, 0xa5, + 0xb4, 0x0c, 0x16, 0x41, 0x34, 0xfd, 0x74, 0xb3, 0xea, 0x16, 0xae, 0xbe, 0x77, 0x46, 0xdc, 0x47, + 0x84, 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xc6, 0xd6, 0x44, 0x47, 0xfb, 0xaa, 0xb5, 0x35, + 0x51, 0x67, 0x3f, 0xc2, 0x4d, 0x86, 0x87, 0xaa, 0xc0, 0x24, 0x7b, 0xb2, 0x84, 0x1b, 0x6a, 0x2e, + 0x7a, 0xc0, 0x53, 0x7f, 0xd3, 0x4f, 0xfd, 0x5b, 0x97, 0x58, 0x77, 0x81, 0xf8, 0x45, 0x76, 0x41, + 0xc4, 0x17, 0x98, 0xfb, 0xc4, 0x6d, 0x4f, 0x1d, 0x43, 0xee, 0x78, 0xd5, 0x77, 0xfc, 0x4c, 0xdc, + 0xb6, 0x5f, 0x3f, 0xf3, 0x67, 0xea, 0xeb, 0x87, 0x5f, 0xcb, 0x8d, 0xf1, 0x79, 0x9d, 0xae, 0x14, + 0x96, 0xf7, 0xdd, 0x82, 0xe3, 0xf3, 0x4e, 0x15, 0xe6, 0x9e, 0xac, 0x4a, 0x47, 0xfc, 0xb3, 0x7e, + 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x7e, 0x3a, 0xba, 0x6b, 0xd4, 0x02, 0x00, 0x00, } diff --git a/rpc/compile.proto b/rpc/compile.proto index 2d2c6d7dac5..f7bdf8b660a 100644 --- a/rpc/compile.proto +++ b/rpc/compile.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; diff --git a/rpc/core.pb.go b/rpc/core.pb.go index d1fd3cb2c4e..3e000d28f82 100644 --- a/rpc/core.pb.go +++ b/rpc/core.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: core.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PlatformInstallReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -32,16 +34,17 @@ func (m *PlatformInstallReq) Reset() { *m = PlatformInstallReq{} } func (m *PlatformInstallReq) String() string { return proto.CompactTextString(m) } func (*PlatformInstallReq) ProtoMessage() {} func (*PlatformInstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{0} + return fileDescriptor_f7e43720d1edc0fe, []int{0} } + func (m *PlatformInstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformInstallReq.Unmarshal(m, b) } func (m *PlatformInstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformInstallReq.Marshal(b, m, deterministic) } -func (dst *PlatformInstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformInstallReq.Merge(dst, src) +func (m *PlatformInstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformInstallReq.Merge(m, src) } func (m *PlatformInstallReq) XXX_Size() int { return xxx_messageInfo_PlatformInstallReq.Size(m) @@ -92,16 +95,17 @@ func (m *PlatformInstallResp) Reset() { *m = PlatformInstallResp{} } func (m *PlatformInstallResp) String() string { return proto.CompactTextString(m) } func (*PlatformInstallResp) ProtoMessage() {} func (*PlatformInstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{1} + return fileDescriptor_f7e43720d1edc0fe, []int{1} } + func (m *PlatformInstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformInstallResp.Unmarshal(m, b) } func (m *PlatformInstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformInstallResp.Marshal(b, m, deterministic) } -func (dst *PlatformInstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformInstallResp.Merge(dst, src) +func (m *PlatformInstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformInstallResp.Merge(m, src) } func (m *PlatformInstallResp) XXX_Size() int { return xxx_messageInfo_PlatformInstallResp.Size(m) @@ -140,16 +144,17 @@ func (m *PlatformDownloadReq) Reset() { *m = PlatformDownloadReq{} } func (m *PlatformDownloadReq) String() string { return proto.CompactTextString(m) } func (*PlatformDownloadReq) ProtoMessage() {} func (*PlatformDownloadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{2} + return fileDescriptor_f7e43720d1edc0fe, []int{2} } + func (m *PlatformDownloadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformDownloadReq.Unmarshal(m, b) } func (m *PlatformDownloadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformDownloadReq.Marshal(b, m, deterministic) } -func (dst *PlatformDownloadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformDownloadReq.Merge(dst, src) +func (m *PlatformDownloadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformDownloadReq.Merge(m, src) } func (m *PlatformDownloadReq) XXX_Size() int { return xxx_messageInfo_PlatformDownloadReq.Size(m) @@ -199,16 +204,17 @@ func (m *PlatformDownloadResp) Reset() { *m = PlatformDownloadResp{} } func (m *PlatformDownloadResp) String() string { return proto.CompactTextString(m) } func (*PlatformDownloadResp) ProtoMessage() {} func (*PlatformDownloadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{3} + return fileDescriptor_f7e43720d1edc0fe, []int{3} } + func (m *PlatformDownloadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformDownloadResp.Unmarshal(m, b) } func (m *PlatformDownloadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformDownloadResp.Marshal(b, m, deterministic) } -func (dst *PlatformDownloadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformDownloadResp.Merge(dst, src) +func (m *PlatformDownloadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformDownloadResp.Merge(m, src) } func (m *PlatformDownloadResp) XXX_Size() int { return xxx_messageInfo_PlatformDownloadResp.Size(m) @@ -240,16 +246,17 @@ func (m *PlatformUninstallReq) Reset() { *m = PlatformUninstallReq{} } func (m *PlatformUninstallReq) String() string { return proto.CompactTextString(m) } func (*PlatformUninstallReq) ProtoMessage() {} func (*PlatformUninstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{4} + return fileDescriptor_f7e43720d1edc0fe, []int{4} } + func (m *PlatformUninstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUninstallReq.Unmarshal(m, b) } func (m *PlatformUninstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUninstallReq.Marshal(b, m, deterministic) } -func (dst *PlatformUninstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUninstallReq.Merge(dst, src) +func (m *PlatformUninstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUninstallReq.Merge(m, src) } func (m *PlatformUninstallReq) XXX_Size() int { return xxx_messageInfo_PlatformUninstallReq.Size(m) @@ -299,16 +306,17 @@ func (m *PlatformUninstallResp) Reset() { *m = PlatformUninstallResp{} } func (m *PlatformUninstallResp) String() string { return proto.CompactTextString(m) } func (*PlatformUninstallResp) ProtoMessage() {} func (*PlatformUninstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{5} + return fileDescriptor_f7e43720d1edc0fe, []int{5} } + func (m *PlatformUninstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUninstallResp.Unmarshal(m, b) } func (m *PlatformUninstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUninstallResp.Marshal(b, m, deterministic) } -func (dst *PlatformUninstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUninstallResp.Merge(dst, src) +func (m *PlatformUninstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUninstallResp.Merge(m, src) } func (m *PlatformUninstallResp) XXX_Size() int { return xxx_messageInfo_PlatformUninstallResp.Size(m) @@ -339,16 +347,17 @@ func (m *PlatformUpgradeReq) Reset() { *m = PlatformUpgradeReq{} } func (m *PlatformUpgradeReq) String() string { return proto.CompactTextString(m) } func (*PlatformUpgradeReq) ProtoMessage() {} func (*PlatformUpgradeReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{6} + return fileDescriptor_f7e43720d1edc0fe, []int{6} } + func (m *PlatformUpgradeReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUpgradeReq.Unmarshal(m, b) } func (m *PlatformUpgradeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUpgradeReq.Marshal(b, m, deterministic) } -func (dst *PlatformUpgradeReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUpgradeReq.Merge(dst, src) +func (m *PlatformUpgradeReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUpgradeReq.Merge(m, src) } func (m *PlatformUpgradeReq) XXX_Size() int { return xxx_messageInfo_PlatformUpgradeReq.Size(m) @@ -392,16 +401,17 @@ func (m *PlatformUpgradeResp) Reset() { *m = PlatformUpgradeResp{} } func (m *PlatformUpgradeResp) String() string { return proto.CompactTextString(m) } func (*PlatformUpgradeResp) ProtoMessage() {} func (*PlatformUpgradeResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{7} + return fileDescriptor_f7e43720d1edc0fe, []int{7} } + func (m *PlatformUpgradeResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUpgradeResp.Unmarshal(m, b) } func (m *PlatformUpgradeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUpgradeResp.Marshal(b, m, deterministic) } -func (dst *PlatformUpgradeResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUpgradeResp.Merge(dst, src) +func (m *PlatformUpgradeResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUpgradeResp.Merge(m, src) } func (m *PlatformUpgradeResp) XXX_Size() int { return xxx_messageInfo_PlatformUpgradeResp.Size(m) @@ -438,16 +448,17 @@ func (m *PlatformSearchReq) Reset() { *m = PlatformSearchReq{} } func (m *PlatformSearchReq) String() string { return proto.CompactTextString(m) } func (*PlatformSearchReq) ProtoMessage() {} func (*PlatformSearchReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{8} + return fileDescriptor_f7e43720d1edc0fe, []int{8} } + func (m *PlatformSearchReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformSearchReq.Unmarshal(m, b) } func (m *PlatformSearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformSearchReq.Marshal(b, m, deterministic) } -func (dst *PlatformSearchReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSearchReq.Merge(dst, src) +func (m *PlatformSearchReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformSearchReq.Merge(m, src) } func (m *PlatformSearchReq) XXX_Size() int { return xxx_messageInfo_PlatformSearchReq.Size(m) @@ -483,16 +494,17 @@ func (m *PlatformSearchResp) Reset() { *m = PlatformSearchResp{} } func (m *PlatformSearchResp) String() string { return proto.CompactTextString(m) } func (*PlatformSearchResp) ProtoMessage() {} func (*PlatformSearchResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{9} + return fileDescriptor_f7e43720d1edc0fe, []int{9} } + func (m *PlatformSearchResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformSearchResp.Unmarshal(m, b) } func (m *PlatformSearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformSearchResp.Marshal(b, m, deterministic) } -func (dst *PlatformSearchResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSearchResp.Merge(dst, src) +func (m *PlatformSearchResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformSearchResp.Merge(m, src) } func (m *PlatformSearchResp) XXX_Size() int { return xxx_messageInfo_PlatformSearchResp.Size(m) @@ -511,28 +523,31 @@ func (m *PlatformSearchResp) GetSearchOutput() []*SearchOutput { } type SearchOutput struct { - ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` - Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` - Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` + Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` + Author string `protobuf:"bytes,4,opt,name=Author,proto3" json:"Author,omitempty"` + Boards []*SearchOutputBoard `protobuf:"bytes,5,rep,name=Boards,proto3" json:"Boards,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SearchOutput) Reset() { *m = SearchOutput{} } func (m *SearchOutput) String() string { return proto.CompactTextString(m) } func (*SearchOutput) ProtoMessage() {} func (*SearchOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{10} + return fileDescriptor_f7e43720d1edc0fe, []int{10} } + func (m *SearchOutput) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchOutput.Unmarshal(m, b) } func (m *SearchOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchOutput.Marshal(b, m, deterministic) } -func (dst *SearchOutput) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchOutput.Merge(dst, src) +func (m *SearchOutput) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchOutput.Merge(m, src) } func (m *SearchOutput) XXX_Size() int { return xxx_messageInfo_SearchOutput.Size(m) @@ -564,6 +579,67 @@ func (m *SearchOutput) GetName() string { return "" } +func (m *SearchOutput) GetAuthor() string { + if m != nil { + return m.Author + } + return "" +} + +func (m *SearchOutput) GetBoards() []*SearchOutputBoard { + if m != nil { + return m.Boards + } + return nil +} + +type SearchOutputBoard struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Fqbn string `protobuf:"bytes,2,opt,name=fqbn,proto3" json:"fqbn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchOutputBoard) Reset() { *m = SearchOutputBoard{} } +func (m *SearchOutputBoard) String() string { return proto.CompactTextString(m) } +func (*SearchOutputBoard) ProtoMessage() {} +func (*SearchOutputBoard) Descriptor() ([]byte, []int) { + return fileDescriptor_f7e43720d1edc0fe, []int{11} +} + +func (m *SearchOutputBoard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchOutputBoard.Unmarshal(m, b) +} +func (m *SearchOutputBoard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchOutputBoard.Marshal(b, m, deterministic) +} +func (m *SearchOutputBoard) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchOutputBoard.Merge(m, src) +} +func (m *SearchOutputBoard) XXX_Size() int { + return xxx_messageInfo_SearchOutputBoard.Size(m) +} +func (m *SearchOutputBoard) XXX_DiscardUnknown() { + xxx_messageInfo_SearchOutputBoard.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchOutputBoard proto.InternalMessageInfo + +func (m *SearchOutputBoard) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SearchOutputBoard) GetFqbn() string { + if m != nil { + return m.Fqbn + } + return "" +} + type PlatformListReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` UpdatableOnly bool `protobuf:"varint,2,opt,name=updatable_only,json=updatableOnly,proto3" json:"updatable_only,omitempty"` @@ -576,16 +652,17 @@ func (m *PlatformListReq) Reset() { *m = PlatformListReq{} } func (m *PlatformListReq) String() string { return proto.CompactTextString(m) } func (*PlatformListReq) ProtoMessage() {} func (*PlatformListReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{11} + return fileDescriptor_f7e43720d1edc0fe, []int{12} } + func (m *PlatformListReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformListReq.Unmarshal(m, b) } func (m *PlatformListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformListReq.Marshal(b, m, deterministic) } -func (dst *PlatformListReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformListReq.Merge(dst, src) +func (m *PlatformListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformListReq.Merge(m, src) } func (m *PlatformListReq) XXX_Size() int { return xxx_messageInfo_PlatformListReq.Size(m) @@ -621,16 +698,17 @@ func (m *PlatformListResp) Reset() { *m = PlatformListResp{} } func (m *PlatformListResp) String() string { return proto.CompactTextString(m) } func (*PlatformListResp) ProtoMessage() {} func (*PlatformListResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{12} + return fileDescriptor_f7e43720d1edc0fe, []int{13} } + func (m *PlatformListResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformListResp.Unmarshal(m, b) } func (m *PlatformListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformListResp.Marshal(b, m, deterministic) } -func (dst *PlatformListResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformListResp.Merge(dst, src) +func (m *PlatformListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformListResp.Merge(m, src) } func (m *PlatformListResp) XXX_Size() int { return xxx_messageInfo_PlatformListResp.Size(m) @@ -662,16 +740,17 @@ func (m *InstalledPlatform) Reset() { *m = InstalledPlatform{} } func (m *InstalledPlatform) String() string { return proto.CompactTextString(m) } func (*InstalledPlatform) ProtoMessage() {} func (*InstalledPlatform) Descriptor() ([]byte, []int) { - return fileDescriptor_core_5d3e62c093bf77c2, []int{13} + return fileDescriptor_f7e43720d1edc0fe, []int{14} } + func (m *InstalledPlatform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstalledPlatform.Unmarshal(m, b) } func (m *InstalledPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InstalledPlatform.Marshal(b, m, deterministic) } -func (dst *InstalledPlatform) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstalledPlatform.Merge(dst, src) +func (m *InstalledPlatform) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstalledPlatform.Merge(m, src) } func (m *InstalledPlatform) XXX_Size() int { return xxx_messageInfo_InstalledPlatform.Size(m) @@ -711,57 +790,61 @@ func (m *InstalledPlatform) GetName() string { } func init() { - proto.RegisterType((*PlatformInstallReq)(nil), "cc.arduino.core.rpc.PlatformInstallReq") - proto.RegisterType((*PlatformInstallResp)(nil), "cc.arduino.core.rpc.PlatformInstallResp") - proto.RegisterType((*PlatformDownloadReq)(nil), "cc.arduino.core.rpc.PlatformDownloadReq") - proto.RegisterType((*PlatformDownloadResp)(nil), "cc.arduino.core.rpc.PlatformDownloadResp") - proto.RegisterType((*PlatformUninstallReq)(nil), "cc.arduino.core.rpc.PlatformUninstallReq") - proto.RegisterType((*PlatformUninstallResp)(nil), "cc.arduino.core.rpc.PlatformUninstallResp") - proto.RegisterType((*PlatformUpgradeReq)(nil), "cc.arduino.core.rpc.PlatformUpgradeReq") - proto.RegisterType((*PlatformUpgradeResp)(nil), "cc.arduino.core.rpc.PlatformUpgradeResp") - proto.RegisterType((*PlatformSearchReq)(nil), "cc.arduino.core.rpc.PlatformSearchReq") - proto.RegisterType((*PlatformSearchResp)(nil), "cc.arduino.core.rpc.PlatformSearchResp") - proto.RegisterType((*SearchOutput)(nil), "cc.arduino.core.rpc.SearchOutput") - proto.RegisterType((*PlatformListReq)(nil), "cc.arduino.core.rpc.PlatformListReq") - proto.RegisterType((*PlatformListResp)(nil), "cc.arduino.core.rpc.PlatformListResp") - proto.RegisterType((*InstalledPlatform)(nil), "cc.arduino.core.rpc.InstalledPlatform") -} - -func init() { proto.RegisterFile("core.proto", fileDescriptor_core_5d3e62c093bf77c2) } - -var fileDescriptor_core_5d3e62c093bf77c2 = []byte{ - // 527 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x55, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x55, 0xba, 0x6a, 0xb4, 0x77, 0xdd, 0x47, 0x3d, 0x40, 0x15, 0x02, 0x01, 0x16, 0x43, 0xf0, - 0x40, 0x27, 0xc1, 0x13, 0x8f, 0x43, 0x13, 0x52, 0xa5, 0x8a, 0x55, 0x81, 0x22, 0x81, 0x90, 0x22, - 0xd7, 0x35, 0x99, 0xb5, 0x24, 0x0e, 0xb6, 0x03, 0xe2, 0xcf, 0x20, 0x7e, 0x06, 0xf0, 0xeb, 0x70, - 0x1d, 0x3b, 0x4d, 0x49, 0xf7, 0xc2, 0xf6, 0xb0, 0x3d, 0x35, 0xf7, 0xe4, 0xf8, 0xdc, 0xe3, 0x93, - 0x7b, 0x55, 0x00, 0x2a, 0x24, 0x1b, 0xe6, 0x52, 0x68, 0x81, 0xf6, 0x29, 0x1d, 0x12, 0x39, 0x2f, - 0x78, 0x26, 0x86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x0b, 0xdd, 0x8a, 0xe4, 0x42, 0x5b, 0x02, 0xe8, 0x36, 0x6c, 0x8e, 0x89, 0x66, 0x4a, 0xbb, 0xe0, - 0x5c, 0x55, 0xc5, 0xd9, 0x5e, 0xc6, 0xf9, 0xea, 0xd1, 0x47, 0x1c, 0x73, 0x7d, 0x5a, 0xcc, 0x8c, - 0xcd, 0xf4, 0xd0, 0x59, 0xf6, 0xbf, 0xcf, 0x68, 0xc2, 0x0f, 0x8d, 0xf3, 0xd9, 0xa6, 0xfd, 0xbf, - 0x7d, 0xf1, 0x37, 0x00, 0x00, 0xff, 0xff, 0xce, 0x4d, 0x0d, 0x2c, 0xa0, 0x07, 0x00, 0x00, + proto.RegisterType((*PlatformInstallReq)(nil), "arduino.PlatformInstallReq") + proto.RegisterType((*PlatformInstallResp)(nil), "arduino.PlatformInstallResp") + proto.RegisterType((*PlatformDownloadReq)(nil), "arduino.PlatformDownloadReq") + proto.RegisterType((*PlatformDownloadResp)(nil), "arduino.PlatformDownloadResp") + proto.RegisterType((*PlatformUninstallReq)(nil), "arduino.PlatformUninstallReq") + proto.RegisterType((*PlatformUninstallResp)(nil), "arduino.PlatformUninstallResp") + proto.RegisterType((*PlatformUpgradeReq)(nil), "arduino.PlatformUpgradeReq") + proto.RegisterType((*PlatformUpgradeResp)(nil), "arduino.PlatformUpgradeResp") + proto.RegisterType((*PlatformSearchReq)(nil), "arduino.PlatformSearchReq") + proto.RegisterType((*PlatformSearchResp)(nil), "arduino.PlatformSearchResp") + proto.RegisterType((*SearchOutput)(nil), "arduino.SearchOutput") + proto.RegisterType((*SearchOutputBoard)(nil), "arduino.SearchOutputBoard") + proto.RegisterType((*PlatformListReq)(nil), "arduino.PlatformListReq") + proto.RegisterType((*PlatformListResp)(nil), "arduino.PlatformListResp") + proto.RegisterType((*InstalledPlatform)(nil), "arduino.InstalledPlatform") +} + +func init() { proto.RegisterFile("core.proto", fileDescriptor_f7e43720d1edc0fe) } + +var fileDescriptor_f7e43720d1edc0fe = []byte{ + // 574 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x56, 0xba, 0xd2, 0xb5, 0x6f, 0xdd, 0x8f, 0x1a, 0x86, 0x42, 0x85, 0x44, 0x65, 0x81, 0x34, + 0x0e, 0xeb, 0xa4, 0x21, 0x2e, 0x70, 0xda, 0xd4, 0x4b, 0xa5, 0xc1, 0xaa, 0x8c, 0x71, 0x40, 0x42, + 0x95, 0x9b, 0x78, 0x69, 0xd4, 0x24, 0xf6, 0x6c, 0x07, 0xb4, 0xff, 0x80, 0x33, 0x27, 0xfe, 0x08, + 0xe0, 0x6f, 0x44, 0x71, 0xec, 0xb4, 0x21, 0x3b, 0x4c, 0xbd, 0x6c, 0xa7, 0xf8, 0x7d, 0xef, 0x7b, + 0x7e, 0x9f, 0xde, 0xf7, 0xac, 0x00, 0xf8, 0x4c, 0xd0, 0x21, 0x17, 0x4c, 0x31, 0xb4, 0x49, 0x44, + 0x90, 0x45, 0x29, 0xeb, 0x77, 0x7d, 0x96, 0x24, 0x2c, 0x2d, 0x60, 0xfc, 0xdb, 0x01, 0x34, 0x89, + 0x89, 0xba, 0x62, 0x22, 0x19, 0xa7, 0x52, 0x91, 0x38, 0xf6, 0xe8, 0x35, 0x3a, 0x84, 0x76, 0x94, + 0x47, 0xa9, 0x4f, 0x5d, 0x67, 0xe0, 0x1c, 0x6c, 0x1d, 0xf7, 0x86, 0xe6, 0x82, 0xe1, 0xd8, 0x24, + 0xbc, 0x92, 0x82, 0x5e, 0xc3, 0x1e, 0x37, 0x97, 0x4c, 0x39, 0xf1, 0x17, 0x24, 0xa4, 0x6e, 0x63, + 0xe0, 0x1c, 0x74, 0xbc, 0x5d, 0x8b, 0x4f, 0x0a, 0x18, 0x61, 0xe8, 0x12, 0xe1, 0xcf, 0x23, 0x45, + 0x7d, 0x95, 0x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0xcf, 0x92, + 0x23, 0xa3, 0xd4, 0x7e, 0x0f, 0xfd, 0x38, 0x3a, 0x12, 0xdc, 0x9f, 0xb5, 0xf4, 0x1f, 0xf5, 0xcd, + 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x22, 0x7a, 0x78, 0x43, 0x76, 0x07, 0x00, 0x00, } diff --git a/rpc/core.proto b/rpc/core.proto index 81349ba115f..eae3fbb9fba 100644 --- a/rpc/core.proto +++ b/rpc/core.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; @@ -81,6 +81,13 @@ message SearchOutput { string ID = 1; string Version = 2; string Name = 3; + string Author = 4; + repeated SearchOutputBoard Boards = 5; +} + +message SearchOutputBoard { + string name = 1; + string fqbn = 2; } message PlatformListReq { diff --git a/rpc/lib.pb.go b/rpc/lib.pb.go index 9edb94bf0e7..44fcb394692 100644 --- a/rpc/lib.pb.go +++ b/rpc/lib.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: lib.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type LibraryDownloadReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -31,16 +33,17 @@ func (m *LibraryDownloadReq) Reset() { *m = LibraryDownloadReq{} } func (m *LibraryDownloadReq) String() string { return proto.CompactTextString(m) } func (*LibraryDownloadReq) ProtoMessage() {} func (*LibraryDownloadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{0} + return fileDescriptor_bd3a4bf272509e0b, []int{0} } + func (m *LibraryDownloadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryDownloadReq.Unmarshal(m, b) } func (m *LibraryDownloadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryDownloadReq.Marshal(b, m, deterministic) } -func (dst *LibraryDownloadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryDownloadReq.Merge(dst, src) +func (m *LibraryDownloadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryDownloadReq.Merge(m, src) } func (m *LibraryDownloadReq) XXX_Size() int { return xxx_messageInfo_LibraryDownloadReq.Size(m) @@ -83,16 +86,17 @@ func (m *LibraryDownloadResp) Reset() { *m = LibraryDownloadResp{} } func (m *LibraryDownloadResp) String() string { return proto.CompactTextString(m) } func (*LibraryDownloadResp) ProtoMessage() {} func (*LibraryDownloadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{1} + return fileDescriptor_bd3a4bf272509e0b, []int{1} } + func (m *LibraryDownloadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryDownloadResp.Unmarshal(m, b) } func (m *LibraryDownloadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryDownloadResp.Marshal(b, m, deterministic) } -func (dst *LibraryDownloadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryDownloadResp.Merge(dst, src) +func (m *LibraryDownloadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryDownloadResp.Merge(m, src) } func (m *LibraryDownloadResp) XXX_Size() int { return xxx_messageInfo_LibraryDownloadResp.Size(m) @@ -123,16 +127,17 @@ func (m *LibraryInstallReq) Reset() { *m = LibraryInstallReq{} } func (m *LibraryInstallReq) String() string { return proto.CompactTextString(m) } func (*LibraryInstallReq) ProtoMessage() {} func (*LibraryInstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{2} + return fileDescriptor_bd3a4bf272509e0b, []int{2} } + func (m *LibraryInstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryInstallReq.Unmarshal(m, b) } func (m *LibraryInstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryInstallReq.Marshal(b, m, deterministic) } -func (dst *LibraryInstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryInstallReq.Merge(dst, src) +func (m *LibraryInstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryInstallReq.Merge(m, src) } func (m *LibraryInstallReq) XXX_Size() int { return xxx_messageInfo_LibraryInstallReq.Size(m) @@ -176,16 +181,17 @@ func (m *LibraryInstallResp) Reset() { *m = LibraryInstallResp{} } func (m *LibraryInstallResp) String() string { return proto.CompactTextString(m) } func (*LibraryInstallResp) ProtoMessage() {} func (*LibraryInstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{3} + return fileDescriptor_bd3a4bf272509e0b, []int{3} } + func (m *LibraryInstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryInstallResp.Unmarshal(m, b) } func (m *LibraryInstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryInstallResp.Marshal(b, m, deterministic) } -func (dst *LibraryInstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryInstallResp.Merge(dst, src) +func (m *LibraryInstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryInstallResp.Merge(m, src) } func (m *LibraryInstallResp) XXX_Size() int { return xxx_messageInfo_LibraryInstallResp.Size(m) @@ -223,16 +229,17 @@ func (m *LibraryUninstallReq) Reset() { *m = LibraryUninstallReq{} } func (m *LibraryUninstallReq) String() string { return proto.CompactTextString(m) } func (*LibraryUninstallReq) ProtoMessage() {} func (*LibraryUninstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{4} + return fileDescriptor_bd3a4bf272509e0b, []int{4} } + func (m *LibraryUninstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUninstallReq.Unmarshal(m, b) } func (m *LibraryUninstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUninstallReq.Marshal(b, m, deterministic) } -func (dst *LibraryUninstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUninstallReq.Merge(dst, src) +func (m *LibraryUninstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUninstallReq.Merge(m, src) } func (m *LibraryUninstallReq) XXX_Size() int { return xxx_messageInfo_LibraryUninstallReq.Size(m) @@ -275,16 +282,17 @@ func (m *LibraryUninstallResp) Reset() { *m = LibraryUninstallResp{} } func (m *LibraryUninstallResp) String() string { return proto.CompactTextString(m) } func (*LibraryUninstallResp) ProtoMessage() {} func (*LibraryUninstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{5} + return fileDescriptor_bd3a4bf272509e0b, []int{5} } + func (m *LibraryUninstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUninstallResp.Unmarshal(m, b) } func (m *LibraryUninstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUninstallResp.Marshal(b, m, deterministic) } -func (dst *LibraryUninstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUninstallResp.Merge(dst, src) +func (m *LibraryUninstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUninstallResp.Merge(m, src) } func (m *LibraryUninstallResp) XXX_Size() int { return xxx_messageInfo_LibraryUninstallResp.Size(m) @@ -313,16 +321,17 @@ func (m *LibraryUpgradeAllReq) Reset() { *m = LibraryUpgradeAllReq{} } func (m *LibraryUpgradeAllReq) String() string { return proto.CompactTextString(m) } func (*LibraryUpgradeAllReq) ProtoMessage() {} func (*LibraryUpgradeAllReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{6} + return fileDescriptor_bd3a4bf272509e0b, []int{6} } + func (m *LibraryUpgradeAllReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUpgradeAllReq.Unmarshal(m, b) } func (m *LibraryUpgradeAllReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUpgradeAllReq.Marshal(b, m, deterministic) } -func (dst *LibraryUpgradeAllReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUpgradeAllReq.Merge(dst, src) +func (m *LibraryUpgradeAllReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUpgradeAllReq.Merge(m, src) } func (m *LibraryUpgradeAllReq) XXX_Size() int { return xxx_messageInfo_LibraryUpgradeAllReq.Size(m) @@ -352,16 +361,17 @@ func (m *LibraryUpgradeAllResp) Reset() { *m = LibraryUpgradeAllResp{} } func (m *LibraryUpgradeAllResp) String() string { return proto.CompactTextString(m) } func (*LibraryUpgradeAllResp) ProtoMessage() {} func (*LibraryUpgradeAllResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{7} + return fileDescriptor_bd3a4bf272509e0b, []int{7} } + func (m *LibraryUpgradeAllResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUpgradeAllResp.Unmarshal(m, b) } func (m *LibraryUpgradeAllResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUpgradeAllResp.Marshal(b, m, deterministic) } -func (dst *LibraryUpgradeAllResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUpgradeAllResp.Merge(dst, src) +func (m *LibraryUpgradeAllResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUpgradeAllResp.Merge(m, src) } func (m *LibraryUpgradeAllResp) XXX_Size() int { return xxx_messageInfo_LibraryUpgradeAllResp.Size(m) @@ -399,16 +409,17 @@ func (m *LibrarySearchReq) Reset() { *m = LibrarySearchReq{} } func (m *LibrarySearchReq) String() string { return proto.CompactTextString(m) } func (*LibrarySearchReq) ProtoMessage() {} func (*LibrarySearchReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{8} + return fileDescriptor_bd3a4bf272509e0b, []int{8} } + func (m *LibrarySearchReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibrarySearchReq.Unmarshal(m, b) } func (m *LibrarySearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibrarySearchReq.Marshal(b, m, deterministic) } -func (dst *LibrarySearchReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibrarySearchReq.Merge(dst, src) +func (m *LibrarySearchReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibrarySearchReq.Merge(m, src) } func (m *LibrarySearchReq) XXX_Size() int { return xxx_messageInfo_LibrarySearchReq.Size(m) @@ -451,16 +462,17 @@ func (m *LibrarySearchResp) Reset() { *m = LibrarySearchResp{} } func (m *LibrarySearchResp) String() string { return proto.CompactTextString(m) } func (*LibrarySearchResp) ProtoMessage() {} func (*LibrarySearchResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{9} + return fileDescriptor_bd3a4bf272509e0b, []int{9} } + func (m *LibrarySearchResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibrarySearchResp.Unmarshal(m, b) } func (m *LibrarySearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibrarySearchResp.Marshal(b, m, deterministic) } -func (dst *LibrarySearchResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibrarySearchResp.Merge(dst, src) +func (m *LibrarySearchResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibrarySearchResp.Merge(m, src) } func (m *LibrarySearchResp) XXX_Size() int { return xxx_messageInfo_LibrarySearchResp.Size(m) @@ -491,16 +503,17 @@ func (m *SearchLibraryOutput) Reset() { *m = SearchLibraryOutput{} } func (m *SearchLibraryOutput) String() string { return proto.CompactTextString(m) } func (*SearchLibraryOutput) ProtoMessage() {} func (*SearchLibraryOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{10} + return fileDescriptor_bd3a4bf272509e0b, []int{10} } + func (m *SearchLibraryOutput) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchLibraryOutput.Unmarshal(m, b) } func (m *SearchLibraryOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchLibraryOutput.Marshal(b, m, deterministic) } -func (dst *SearchLibraryOutput) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchLibraryOutput.Merge(dst, src) +func (m *SearchLibraryOutput) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchLibraryOutput.Merge(m, src) } func (m *SearchLibraryOutput) XXX_Size() int { return xxx_messageInfo_SearchLibraryOutput.Size(m) @@ -532,6 +545,131 @@ func (m *SearchLibraryOutput) GetLatest() *LibraryRelease { return nil } +type LibraryListReq struct { + Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LibraryListReq) Reset() { *m = LibraryListReq{} } +func (m *LibraryListReq) String() string { return proto.CompactTextString(m) } +func (*LibraryListReq) ProtoMessage() {} +func (*LibraryListReq) Descriptor() ([]byte, []int) { + return fileDescriptor_bd3a4bf272509e0b, []int{11} +} + +func (m *LibraryListReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LibraryListReq.Unmarshal(m, b) +} +func (m *LibraryListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LibraryListReq.Marshal(b, m, deterministic) +} +func (m *LibraryListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryListReq.Merge(m, src) +} +func (m *LibraryListReq) XXX_Size() int { + return xxx_messageInfo_LibraryListReq.Size(m) +} +func (m *LibraryListReq) XXX_DiscardUnknown() { + xxx_messageInfo_LibraryListReq.DiscardUnknown(m) +} + +var xxx_messageInfo_LibraryListReq proto.InternalMessageInfo + +func (m *LibraryListReq) GetInstance() *Instance { + if m != nil { + return m.Instance + } + return nil +} + +type LibraryListResp struct { + Libraries []*InstalledLibrary `protobuf:"bytes,1,rep,name=libraries,proto3" json:"libraries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LibraryListResp) Reset() { *m = LibraryListResp{} } +func (m *LibraryListResp) String() string { return proto.CompactTextString(m) } +func (*LibraryListResp) ProtoMessage() {} +func (*LibraryListResp) Descriptor() ([]byte, []int) { + return fileDescriptor_bd3a4bf272509e0b, []int{12} +} + +func (m *LibraryListResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LibraryListResp.Unmarshal(m, b) +} +func (m *LibraryListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LibraryListResp.Marshal(b, m, deterministic) +} +func (m *LibraryListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryListResp.Merge(m, src) +} +func (m *LibraryListResp) XXX_Size() int { + return xxx_messageInfo_LibraryListResp.Size(m) +} +func (m *LibraryListResp) XXX_DiscardUnknown() { + xxx_messageInfo_LibraryListResp.DiscardUnknown(m) +} + +var xxx_messageInfo_LibraryListResp proto.InternalMessageInfo + +func (m *LibraryListResp) GetLibraries() []*InstalledLibrary { + if m != nil { + return m.Libraries + } + return nil +} + +type InstalledLibrary struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Installed *LibraryRelease `protobuf:"bytes,2,opt,name=installed,proto3" json:"installed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InstalledLibrary) Reset() { *m = InstalledLibrary{} } +func (m *InstalledLibrary) String() string { return proto.CompactTextString(m) } +func (*InstalledLibrary) ProtoMessage() {} +func (*InstalledLibrary) Descriptor() ([]byte, []int) { + return fileDescriptor_bd3a4bf272509e0b, []int{13} +} + +func (m *InstalledLibrary) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstalledLibrary.Unmarshal(m, b) +} +func (m *InstalledLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstalledLibrary.Marshal(b, m, deterministic) +} +func (m *InstalledLibrary) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstalledLibrary.Merge(m, src) +} +func (m *InstalledLibrary) XXX_Size() int { + return xxx_messageInfo_InstalledLibrary.Size(m) +} +func (m *InstalledLibrary) XXX_DiscardUnknown() { + xxx_messageInfo_InstalledLibrary.DiscardUnknown(m) +} + +var xxx_messageInfo_InstalledLibrary proto.InternalMessageInfo + +func (m *InstalledLibrary) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *InstalledLibrary) GetInstalled() *LibraryRelease { + if m != nil { + return m.Installed + } + return nil +} + type LibraryRelease struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` @@ -552,16 +690,17 @@ func (m *LibraryRelease) Reset() { *m = LibraryRelease{} } func (m *LibraryRelease) String() string { return proto.CompactTextString(m) } func (*LibraryRelease) ProtoMessage() {} func (*LibraryRelease) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{11} + return fileDescriptor_bd3a4bf272509e0b, []int{14} } + func (m *LibraryRelease) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryRelease.Unmarshal(m, b) } func (m *LibraryRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryRelease.Marshal(b, m, deterministic) } -func (dst *LibraryRelease) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryRelease.Merge(dst, src) +func (m *LibraryRelease) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryRelease.Merge(m, src) } func (m *LibraryRelease) XXX_Size() int { return xxx_messageInfo_LibraryRelease.Size(m) @@ -657,16 +796,17 @@ func (m *DownloadResource) Reset() { *m = DownloadResource{} } func (m *DownloadResource) String() string { return proto.CompactTextString(m) } func (*DownloadResource) ProtoMessage() {} func (*DownloadResource) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_5e6e6c4d1b47847b, []int{12} + return fileDescriptor_bd3a4bf272509e0b, []int{15} } + func (m *DownloadResource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DownloadResource.Unmarshal(m, b) } func (m *DownloadResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DownloadResource.Marshal(b, m, deterministic) } -func (dst *DownloadResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadResource.Merge(dst, src) +func (m *DownloadResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadResource.Merge(m, src) } func (m *DownloadResource) XXX_Size() int { return xxx_messageInfo_DownloadResource.Size(m) @@ -713,67 +853,73 @@ func (m *DownloadResource) GetCachepath() string { } func init() { - proto.RegisterType((*LibraryDownloadReq)(nil), "cc.arduino.core.rpc.LibraryDownloadReq") - proto.RegisterType((*LibraryDownloadResp)(nil), "cc.arduino.core.rpc.LibraryDownloadResp") - proto.RegisterType((*LibraryInstallReq)(nil), "cc.arduino.core.rpc.LibraryInstallReq") - proto.RegisterType((*LibraryInstallResp)(nil), "cc.arduino.core.rpc.LibraryInstallResp") - proto.RegisterType((*LibraryUninstallReq)(nil), "cc.arduino.core.rpc.LibraryUninstallReq") - proto.RegisterType((*LibraryUninstallResp)(nil), "cc.arduino.core.rpc.LibraryUninstallResp") - proto.RegisterType((*LibraryUpgradeAllReq)(nil), "cc.arduino.core.rpc.LibraryUpgradeAllReq") - proto.RegisterType((*LibraryUpgradeAllResp)(nil), "cc.arduino.core.rpc.LibraryUpgradeAllResp") - proto.RegisterType((*LibrarySearchReq)(nil), "cc.arduino.core.rpc.LibrarySearchReq") - proto.RegisterType((*LibrarySearchResp)(nil), "cc.arduino.core.rpc.LibrarySearchResp") - proto.RegisterType((*SearchLibraryOutput)(nil), "cc.arduino.core.rpc.SearchLibraryOutput") - proto.RegisterMapType((map[string]*LibraryRelease)(nil), "cc.arduino.core.rpc.SearchLibraryOutput.ReleasesEntry") - proto.RegisterType((*LibraryRelease)(nil), "cc.arduino.core.rpc.LibraryRelease") - proto.RegisterType((*DownloadResource)(nil), "cc.arduino.core.rpc.DownloadResource") -} - -func init() { proto.RegisterFile("lib.proto", fileDescriptor_lib_5e6e6c4d1b47847b) } - -var fileDescriptor_lib_5e6e6c4d1b47847b = []byte{ - // 674 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x55, 0xdb, 0x6a, 0x13, 0x41, - 0x18, 0x66, 0x93, 0x36, 0x4d, 0xfe, 0x36, 0x5a, 0xa7, 0x55, 0x42, 0x51, 0xd1, 0xb5, 0x42, 0x6f, - 0xdc, 0x42, 0x05, 0xf1, 0x70, 0x55, 0x4f, 0x20, 0x78, 0x1c, 0x15, 0xc4, 0x0b, 0xeb, 0x64, 0x3a, - 0x26, 0x4b, 0x37, 0x3b, 0xdb, 0x99, 0xd9, 0x96, 0x88, 0xfa, 0x24, 0x05, 0xc1, 0x57, 0xf2, 0x85, - 0x9c, 0xd3, 0x4e, 0x93, 0x76, 0x2f, 0x8a, 0x15, 0xf5, 0x22, 0x64, 0xbe, 0xff, 0xf0, 0xfd, 0xe7, - 0x04, 0x3a, 0x59, 0xda, 0x4f,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, 0xe8, 0x6a, 0x10, 0xdc, 0x5f, 0x7d, 0x1f, 0x0f, 0x52, 0x35, 0x2c, - 0xfb, 0xba, 0x9a, 0xd1, 0xba, 0xaf, 0xac, 0xfa, 0xbe, 0x41, 0xb3, 0x74, 0x5d, 0x17, 0xd8, 0x6f, - 0xd9, 0x3f, 0xfc, 0x9b, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5c, 0xbf, 0x7b, 0xc3, 0x20, 0x08, - 0x00, 0x00, + proto.RegisterType((*LibraryDownloadReq)(nil), "arduino.LibraryDownloadReq") + proto.RegisterType((*LibraryDownloadResp)(nil), "arduino.LibraryDownloadResp") + proto.RegisterType((*LibraryInstallReq)(nil), "arduino.LibraryInstallReq") + proto.RegisterType((*LibraryInstallResp)(nil), "arduino.LibraryInstallResp") + proto.RegisterType((*LibraryUninstallReq)(nil), "arduino.LibraryUninstallReq") + proto.RegisterType((*LibraryUninstallResp)(nil), "arduino.LibraryUninstallResp") + proto.RegisterType((*LibraryUpgradeAllReq)(nil), "arduino.LibraryUpgradeAllReq") + proto.RegisterType((*LibraryUpgradeAllResp)(nil), "arduino.LibraryUpgradeAllResp") + proto.RegisterType((*LibrarySearchReq)(nil), "arduino.LibrarySearchReq") + proto.RegisterType((*LibrarySearchResp)(nil), "arduino.LibrarySearchResp") + proto.RegisterType((*SearchLibraryOutput)(nil), "arduino.SearchLibraryOutput") + proto.RegisterMapType((map[string]*LibraryRelease)(nil), "arduino.SearchLibraryOutput.ReleasesEntry") + proto.RegisterType((*LibraryListReq)(nil), "arduino.LibraryListReq") + proto.RegisterType((*LibraryListResp)(nil), "arduino.LibraryListResp") + proto.RegisterType((*InstalledLibrary)(nil), "arduino.InstalledLibrary") + proto.RegisterType((*LibraryRelease)(nil), "arduino.LibraryRelease") + proto.RegisterType((*DownloadResource)(nil), "arduino.DownloadResource") +} + +func init() { proto.RegisterFile("lib.proto", fileDescriptor_bd3a4bf272509e0b) } + +var fileDescriptor_bd3a4bf272509e0b = []byte{ + // 727 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x5d, 0x6b, 0x13, 0x4d, + 0x14, 0x66, 0x93, 0x36, 0x4d, 0x4e, 0x9b, 0xb7, 0xe9, 0xb4, 0x7d, 0xdf, 0x6d, 0x29, 0x2f, 0x61, + 0xe9, 0x45, 0x10, 0x9a, 0x42, 0xa5, 0x28, 0xbd, 0x91, 0x8a, 0x15, 0x94, 0xa2, 0xb2, 0x56, 0x2f, + 0x04, 0x29, 0x93, 0xcd, 0x31, 0x19, 0xb2, 0x1f, 0xd3, 0x99, 0xd9, 0x96, 0xf8, 0x07, 0x04, 0x7f, + 0x83, 0xff, 0xc7, 0xbf, 0xe4, 0xa5, 0xcc, 0xec, 0xec, 0x24, 0xe9, 0x87, 0x4a, 0x40, 0xbd, 0xda, + 0x39, 0xe7, 0x3c, 0xe7, 0x3c, 0xe7, 0x6b, 0x86, 0x85, 0x46, 0xcc, 0x7a, 0x5d, 0x2e, 0x32, 0x95, + 0x91, 0x25, 0x2a, 0xfa, 0x39, 0x4b, 0xb3, 0xed, 0x95, 0x28, 0x4b, 0x92, 0x2c, 0x2d, 0xd4, 0xc1, + 0x05, 0x90, 0x53, 0xd6, 0x13, 0x54, 0x8c, 0x9f, 0x64, 0x57, 0x69, 0x9c, 0xd1, 0x7e, 0x88, 0x17, + 0x64, 0x0f, 0xea, 0x2c, 0x95, 0x8a, 0xa6, 0x11, 0xfa, 0x5e, 0xdb, 0xeb, 0x2c, 0x1f, 0xac, 0x75, + 0xad, 0x7f, 0xf7, 0x99, 0x35, 0x84, 0x0e, 0x42, 0x08, 0x2c, 0xa4, 0x34, 0x41, 0xbf, 0xd2, 0xf6, + 0x3a, 0x8d, 0xd0, 0x9c, 0x89, 0x0f, 0x4b, 0x97, 0x28, 0x24, 0xcb, 0x52, 0xbf, 0x6a, 0xd4, 0xa5, + 0x18, 0x9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0xb2, 0x03, + 0x0d, 0x4e, 0x05, 0x1d, 0x08, 0xca, 0x87, 0xfe, 0xa2, 0x31, 0x4e, 0x14, 0x9a, 0xf3, 0x0a, 0x7b, + 0x92, 0x29, 0xf4, 0x6b, 0x05, 0xa7, 0x15, 0x75, 0xcc, 0x88, 0x2a, 0x1c, 0x64, 0x62, 0xec, 0x2f, + 0x15, 0x31, 0x4b, 0x99, 0xec, 0x42, 0x53, 0x2f, 0x1d, 0x53, 0x18, 0xa9, 0x5c, 0xa0, 0xf4, 0xeb, + 0xed, 0x6a, 0xa7, 0x11, 0xce, 0x2a, 0xf5, 0x7d, 0x52, 0x63, 0x8e, 0xd2, 0x6f, 0x18, 0x6b, 0x21, + 0xe8, 0x41, 0x09, 0x94, 0x59, 0x2e, 0x22, 0x94, 0x3e, 0xdc, 0xf1, 0x64, 0x84, 0x16, 0x11, 0x4e, + 0xb0, 0xc1, 0x17, 0x0f, 0x5a, 0xd7, 0xed, 0x7a, 0x1f, 0x73, 0x11, 0x97, 0xfb, 0x98, 0x8b, 0x98, + 0x74, 0x60, 0xd5, 0xa4, 0x71, 0x89, 0x1f, 0x58, 0x8c, 0x53, 0xef, 0xef, 0x75, 0xb5, 0xa9, 0x70, + 0x88, 0xd1, 0x48, 0xe6, 0x89, 0xed, 0xa9, 0x93, 0xf5, 0x06, 0x48, 0xf6, 0xb1, 0xe8, 0x66, 0x35, + 0x34, 0x67, 0xdd, 0xc9, 0x88, 0x46, 0x43, 0xe4, 0x54, 0xb9, 0x4e, 0x3a, 0xc5, 0xe3, 0xdd, 0x77, + 0xc1, 0x80, 0xa9, 0x61, 0xde, 0xeb, 0x46, 0x59, 0xb2, 0x6f, 0x0b, 0x2a, 0xbf, 0x7b, 0x51, 0xcc, + 0xf6, 0x05, 0x8f, 0x7a, 0x35, 0xf3, 0x73, 0x70, 0xff, 0x7b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, + 0xe2, 0xe7, 0x42, 0x40, 0x08, 0x00, 0x00, } diff --git a/rpc/lib.proto b/rpc/lib.proto index f5e8e5495b6..5960c65d91d 100644 --- a/rpc/lib.proto +++ b/rpc/lib.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc"; @@ -79,6 +79,19 @@ message SearchLibraryOutput { LibraryRelease latest = 3; } +message LibraryListReq { + Instance instance = 1; +} + +message LibraryListResp { + repeated InstalledLibrary libraries = 1; +} + +message InstalledLibrary { + string name = 1; + LibraryRelease installed = 2; +} + message LibraryRelease { string author = 1; string version = 2; diff --git a/rpc/upload.pb.go b/rpc/upload.pb.go index 894b7beb332..2cf1f9ba4d5 100644 --- a/rpc/upload.pb.go +++ b/rpc/upload.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: upload.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package rpc -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type UploadReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -35,16 +37,17 @@ func (m *UploadReq) Reset() { *m = UploadReq{} } func (m *UploadReq) String() string { return proto.CompactTextString(m) } func (*UploadReq) ProtoMessage() {} func (*UploadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_upload_9ff06549022ccd97, []int{0} + return fileDescriptor_91b94b655bd2a7e5, []int{0} } + func (m *UploadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UploadReq.Unmarshal(m, b) } func (m *UploadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UploadReq.Marshal(b, m, deterministic) } -func (dst *UploadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadReq.Merge(dst, src) +func (m *UploadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadReq.Merge(m, src) } func (m *UploadReq) XXX_Size() int { return xxx_messageInfo_UploadReq.Size(m) @@ -116,16 +119,17 @@ func (m *UploadResp) Reset() { *m = UploadResp{} } func (m *UploadResp) String() string { return proto.CompactTextString(m) } func (*UploadResp) ProtoMessage() {} func (*UploadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_upload_9ff06549022ccd97, []int{1} + return fileDescriptor_91b94b655bd2a7e5, []int{1} } + func (m *UploadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UploadResp.Unmarshal(m, b) } func (m *UploadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UploadResp.Marshal(b, m, deterministic) } -func (dst *UploadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadResp.Merge(dst, src) +func (m *UploadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadResp.Merge(m, src) } func (m *UploadResp) XXX_Size() int { return xxx_messageInfo_UploadResp.Size(m) @@ -151,30 +155,29 @@ func (m *UploadResp) GetErrStream() []byte { } func init() { - proto.RegisterType((*UploadReq)(nil), "cc.arduino.core.rpc.UploadReq") - proto.RegisterType((*UploadResp)(nil), "cc.arduino.core.rpc.UploadResp") -} - -func init() { proto.RegisterFile("upload.proto", fileDescriptor_upload_9ff06549022ccd97) } - -var fileDescriptor_upload_9ff06549022ccd97 = []byte{ - // 279 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4b, 0xc4, 0x30, - 0x10, 0xc5, 0xe9, 0xba, 0x76, 0xb7, 0xb3, 0x3d, 0x45, 0x90, 0x20, 0x2c, 0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, 0xc0, 0x7c, 0xe3, 0xa0, 0xc8, 0x16, 0x00, 0x47, 0x53, 0x0c, 0x46, 0x8b, 0xb2, 0xf3, 0x67, - 0xa6, 0x79, 0x62, 0xc9, 0x9b, 0x07, 0x4e, 0x16, 0x5a, 0xcf, 0xf2, 0x22, 0xc8, 0x96, 0x04, 0xf9, - 0xf1, 0xfa, 0x23, 0xfb, 0x94, 0xa6, 0x19, 0x2b, 0x9b, 0x46, 0xb7, 0x9b, 0x92, 0x99, 0xdf, 0x5b, - 0xde, 0xca, 0x9d, 0x0d, 0xa8, 0x8a, 0x7d, 0xba, 0xf7, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xce, - 0xf0, 0x30, 0x54, 0x90, 0x01, 0x00, 0x00, + proto.RegisterType((*UploadReq)(nil), "arduino.UploadReq") + proto.RegisterType((*UploadResp)(nil), "arduino.UploadResp") +} + +func init() { proto.RegisterFile("upload.proto", fileDescriptor_91b94b655bd2a7e5) } + +var fileDescriptor_91b94b655bd2a7e5 = []byte{ + // 272 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xc1, 0x4e, 0x83, 0x40, + 0x10, 0x86, 0x43, 0xad, 0xa5, 0x4c, 0xb9, 0xb8, 0x07, 0xb3, 0x31, 0x31, 0x12, 0xe2, 0x81, 0x4b, + 0x69, 0xa2, 0x6f, 0xe0, 0xc1, 0x44, 0x4f, 0x06, 0xe3, 0xc5, 0x0b, 0x59, 0xb6, 0x8b, 0x6c, 0x04, + 0x66, 0x3b, 0x2c, 0x4d, 0x7c, 0x51, 0x9f, 0xc7, 0xb0, 0x0b, 0x9e, 0x66, 0xe6, 0xff, 0xe6, 0xcf, + 0x64, 0x7e, 0x88, 0x47, 0xd3, 0xa2, 0x38, 0xe6, 0x86, 0xd0, 0x22, 0x0b, 0x05, 0x1d, 0x47, 0xdd, + 0xe3, 0x4d, 0x2c, 0x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0x1f, 0x73, 0xf6, 0xe5, 0x78, 0x01, 0x00, 0x00, } diff --git a/rpc/upload.proto b/rpc/upload.proto index fbd30dd62de..64bf04c1b87 100644 --- a/rpc/upload.proto +++ b/rpc/upload.proto @@ -17,7 +17,7 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package arduino; option go_package = "github.com/arduino/arduino-cli/rpc";