Skip to content

Commit

Permalink
Name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
software-dov committed Mar 31, 2021
1 parent 251e5d2 commit a67df39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal/gengapic/client_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ func (g *generator) abstractClientIntfInit(serv *descriptor.ServiceDescriptorPro
p("}")
p("")

p("// %s is a thin wrapper that holds an internal%sClient", servName, servName)
p("// %sClientHandle is a thin wrapper that holds an internal%sClient", servName, servName)
p("// It is agnostic as to the underlying transport, i.e. json+http, gRPC, or other.")
p("type %s struct {", servName)
p("type %sClientHandle struct {", servName)
p(" internal%sClient", servName)
p("}")
p("")
Expand Down
4 changes: 2 additions & 2 deletions internal/gengapic/testdata/empty_client_init.want
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ type internalClient interface {
Zip(context.Context, *mypackagepb.Bar, ...gax.CallOption) (*mypackagepb.Foo, error)
}

// is a thin wrapper that holds an internalClient
// ClientHandle is a thin wrapper that holds an internalClient
// It is agnostic as to the underlying transport, i.e. json+http, gRPC, or other.
type struct {
type ClientHandle struct {
internalClient
}

Expand Down
4 changes: 2 additions & 2 deletions internal/gengapic/testdata/foo_client_init.want
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ type internalFooClient interface {
Zip(context.Context, *mypackagepb.Bar, ...gax.CallOption) (*mypackagepb.Foo, error)
}

// Foo is a thin wrapper that holds an internalFooClient
// FooClientHandle is a thin wrapper that holds an internalFooClient
// It is agnostic as to the underlying transport, i.e. json+http, gRPC, or other.
type Foo struct {
type FooClientHandle struct {
internalFooClient
}

Expand Down
4 changes: 2 additions & 2 deletions internal/gengapic/testdata/lro_client_init.want
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ type internalFooClient interface {
Zip(context.Context, *mypackagepb.Bar, ...gax.CallOption) (*ZipOperation, error)
}

// Foo is a thin wrapper that holds an internalFooClient
// FooClientHandle is a thin wrapper that holds an internalFooClient
// It is agnostic as to the underlying transport, i.e. json+http, gRPC, or other.
type Foo struct {
type FooClientHandle struct {
internalFooClient
}

Expand Down

0 comments on commit a67df39

Please sign in to comment.