Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: grpc/cmd/rpc/show.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: grpc/cmd/rpc/show.go
diff --git a/grpc/cmd/rpc/show.go b/grpc/cmd/rpc/show.go
index 30cd642db47b60ad85fc73d4fe0c5878e088a8d5..8e0a6048b16ce9bef3e132df5ef87d0819802166 100644
--- a/grpc/cmd/rpc/show.go
+++ b/grpc/cmd/rpc/show.go
@@ -11,9 +11,10 @@ import (
"github.com/maruel/subcommands"
"golang.org/x/net/context"
+ "google.golang.org/genproto/protobuf"
"github.com/luci/luci-go/common/cli"
- "github.com/luci/luci-go/common/proto/google/descriptor"
+ "github.com/luci/luci-go/common/proto/google/descutil"
"github.com/luci/luci-go/grpc/prpc"
)
@@ -75,7 +76,7 @@ func show(c context.Context, client *prpc.Client, name string) error {
return nil
}
- file, obj, path := desc.Description.Resolve(name)
+ file, obj, path := descutil.Resolve(desc.Description, name)
if obj == nil {
return fmt.Errorf("name %q could not resolved", name)
}
@@ -94,7 +95,7 @@ func show(c context.Context, client *prpc.Client, name string) error {
printMsg := func(name string) {
name = strings.TrimPrefix(name, ".")
- file, msg, path := desc.Description.Resolve(name)
+ file, msg, path := descutil.Resolve(desc.Description, name)
if msg == nil {
print.Printf("// Message %q is not found\n", name)
return

Powered by Google App Engine
This is Rietveld 408576698