chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -31,6 +31,10 @@ const (
|
||||
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
|
||||
AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus"
|
||||
AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin"
|
||||
AccountService_BlockUser_FullMethodName = "/account.v1.AccountService/BlockUser"
|
||||
AccountService_UnblockUser_FullMethodName = "/account.v1.AccountService/UnblockUser"
|
||||
AccountService_BlockIp_FullMethodName = "/account.v1.AccountService/BlockIp"
|
||||
AccountService_UnblockIp_FullMethodName = "/account.v1.AccountService/UnblockIp"
|
||||
)
|
||||
|
||||
// AccountServiceClient is the client API for AccountService service.
|
||||
@@ -49,6 +53,10 @@ type AccountServiceClient interface {
|
||||
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
|
||||
GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error)
|
||||
RemovePin(ctx context.Context, in *RemovePinRequest, opts ...grpc.CallOption) (*RemovePinResponse, error)
|
||||
BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error)
|
||||
UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error)
|
||||
BlockIp(ctx context.Context, in *BlockIpRequest, opts ...grpc.CallOption) (*BlockIpResponse, error)
|
||||
UnblockIp(ctx context.Context, in *UnblockIpRequest, opts ...grpc.CallOption) (*UnblockIpResponse, error)
|
||||
}
|
||||
|
||||
type accountServiceClient struct {
|
||||
@@ -179,6 +187,46 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(BlockUserResponse)
|
||||
err := c.cc.Invoke(ctx, AccountService_BlockUser_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UnblockUserResponse)
|
||||
err := c.cc.Invoke(ctx, AccountService_UnblockUser_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) BlockIp(ctx context.Context, in *BlockIpRequest, opts ...grpc.CallOption) (*BlockIpResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(BlockIpResponse)
|
||||
err := c.cc.Invoke(ctx, AccountService_BlockIp_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) UnblockIp(ctx context.Context, in *UnblockIpRequest, opts ...grpc.CallOption) (*UnblockIpResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UnblockIpResponse)
|
||||
err := c.cc.Invoke(ctx, AccountService_UnblockIp_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AccountServiceServer is the server API for AccountService service.
|
||||
// All implementations must embed UnimplementedAccountServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -195,6 +243,10 @@ type AccountServiceServer interface {
|
||||
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
|
||||
GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error)
|
||||
RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error)
|
||||
BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error)
|
||||
UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error)
|
||||
BlockIp(context.Context, *BlockIpRequest) (*BlockIpResponse, error)
|
||||
UnblockIp(context.Context, *UnblockIpRequest) (*UnblockIpResponse, error)
|
||||
mustEmbedUnimplementedAccountServiceServer()
|
||||
}
|
||||
|
||||
@@ -241,6 +293,18 @@ func (UnimplementedAccountServiceServer) GetPinStatus(context.Context, *GetPinSt
|
||||
func (UnimplementedAccountServiceServer) RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RemovePin not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method BlockUser not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UnblockUser not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) BlockIp(context.Context, *BlockIpRequest) (*BlockIpResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method BlockIp not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) UnblockIp(context.Context, *UnblockIpRequest) (*UnblockIpResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UnblockIp not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {}
|
||||
func (UnimplementedAccountServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -478,6 +542,78 @@ func _AccountService_RemovePin_Handler(srv interface{}, ctx context.Context, dec
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_BlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BlockUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).BlockUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_BlockUser_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).BlockUser(ctx, req.(*BlockUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_UnblockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UnblockUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).UnblockUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_UnblockUser_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).UnblockUser(ctx, req.(*UnblockUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_BlockIp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BlockIpRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).BlockIp(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_BlockIp_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).BlockIp(ctx, req.(*BlockIpRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_UnblockIp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UnblockIpRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).UnblockIp(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_UnblockIp_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).UnblockIp(ctx, req.(*UnblockIpRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -533,6 +669,22 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "RemovePin",
|
||||
Handler: _AccountService_RemovePin_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BlockUser",
|
||||
Handler: _AccountService_BlockUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UnblockUser",
|
||||
Handler: _AccountService_UnblockUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BlockIp",
|
||||
Handler: _AccountService_BlockIp_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UnblockIp",
|
||||
Handler: _AccountService_UnblockIp_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "account.proto",
|
||||
|
||||
Reference in New Issue
Block a user