chore: make proto-gen due to dep update (#15268)

This commit is contained in:
Julien Robert
2023-03-06 10:54:50 +01:00
committed by GitHub
parent 89c956f8ed
commit 5f47935747
59 changed files with 977 additions and 602 deletions
+13 -7
View File
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: testpb/query.proto
@@ -18,6 +18,12 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Echo_FullMethodName = "/testpb.Query/Echo"
Query_SayHello_FullMethodName = "/testpb.Query/SayHello"
Query_TestAny_FullMethodName = "/testpb.Query/TestAny"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -37,7 +43,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
func (c *queryClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) {
out := new(EchoResponse)
err := c.cc.Invoke(ctx, "/testpb.Query/Echo", in, out, opts...)
err := c.cc.Invoke(ctx, Query_Echo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -46,7 +52,7 @@ func (c *queryClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.Ca
func (c *queryClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error) {
out := new(SayHelloResponse)
err := c.cc.Invoke(ctx, "/testpb.Query/SayHello", in, out, opts...)
err := c.cc.Invoke(ctx, Query_SayHello_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -55,7 +61,7 @@ func (c *queryClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ..
func (c *queryClient) TestAny(ctx context.Context, in *TestAnyRequest, opts ...grpc.CallOption) (*TestAnyResponse, error) {
out := new(TestAnyResponse)
err := c.cc.Invoke(ctx, "/testpb.Query/TestAny", in, out, opts...)
err := c.cc.Invoke(ctx, Query_TestAny_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -108,7 +114,7 @@ func _Query_Echo_Handler(srv interface{}, ctx context.Context, dec func(interfac
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testpb.Query/Echo",
FullMethod: Query_Echo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Echo(ctx, req.(*EchoRequest))
@@ -126,7 +132,7 @@ func _Query_SayHello_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testpb.Query/SayHello",
FullMethod: Query_SayHello_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).SayHello(ctx, req.(*SayHelloRequest))
@@ -144,7 +150,7 @@ func _Query_TestAny_Handler(srv interface{}, ctx context.Context, dec func(inter
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testpb.Query/TestAny",
FullMethod: Query_TestAny_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).TestAny(ctx, req.(*TestAnyRequest))
+7 -3
View File
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: testpb/tx.proto
@@ -18,6 +18,10 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_CreateDog_FullMethodName = "/testpb.Msg/CreateDog"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -35,7 +39,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
func (c *msgClient) CreateDog(ctx context.Context, in *MsgCreateDog, opts ...grpc.CallOption) (*MsgCreateDogResponse, error) {
out := new(MsgCreateDogResponse)
err := c.cc.Invoke(ctx, "/testpb.Msg/CreateDog", in, out, opts...)
err := c.cc.Invoke(ctx, Msg_CreateDog_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -80,7 +84,7 @@ func _Msg_CreateDog_Handler(srv interface{}, ctx context.Context, dec func(inter
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testpb.Msg/CreateDog",
FullMethod: Msg_CreateDog_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateDog(ctx, req.(*MsgCreateDog))