Autogenerated update for e7913b7950...9a7a123284
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -988,6 +988,7 @@ var ValidatorSubmissionService_ServiceDesc = grpc.ServiceDesc{
|
||||
//
|
||||
// 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.
|
||||
type ValidatorOperationServiceClient interface {
|
||||
Success(ctx context.Context, in *OperationSuccessRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
Fail(ctx context.Context, in *OperationFailRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
}
|
||||
|
||||
@@ -999,6 +1000,15 @@ func NewValidatorOperationServiceClient(cc grpc.ClientConnInterface) ValidatorOp
|
||||
return &validatorOperationServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *validatorOperationServiceClient) Success(ctx context.Context, in *OperationSuccessRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/validator.ValidatorOperationService/Success", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *validatorOperationServiceClient) Fail(ctx context.Context, in *OperationFailRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/validator.ValidatorOperationService/Fail", in, out, opts...)
|
||||
@@ -1012,6 +1022,7 @@ func (c *validatorOperationServiceClient) Fail(ctx context.Context, in *Operatio
|
||||
// All implementations must embed UnimplementedValidatorOperationServiceServer
|
||||
// for forward compatibility
|
||||
type ValidatorOperationServiceServer interface {
|
||||
Success(context.Context, *OperationSuccessRequest) (*NullResponse, error)
|
||||
Fail(context.Context, *OperationFailRequest) (*NullResponse, error)
|
||||
mustEmbedUnimplementedValidatorOperationServiceServer()
|
||||
}
|
||||
@@ -1020,6 +1031,9 @@ type ValidatorOperationServiceServer interface {
|
||||
type UnimplementedValidatorOperationServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedValidatorOperationServiceServer) Success(context.Context, *OperationSuccessRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Success not implemented")
|
||||
}
|
||||
func (UnimplementedValidatorOperationServiceServer) Fail(context.Context, *OperationFailRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fail not implemented")
|
||||
}
|
||||
@@ -1037,6 +1051,24 @@ func RegisterValidatorOperationServiceServer(s grpc.ServiceRegistrar, srv Valida
|
||||
s.RegisterService(&ValidatorOperationService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _ValidatorOperationService_Success_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(OperationSuccessRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ValidatorOperationServiceServer).Success(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/validator.ValidatorOperationService/Success",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ValidatorOperationServiceServer).Success(ctx, req.(*OperationSuccessRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ValidatorOperationService_Fail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(OperationFailRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1062,6 +1094,10 @@ var ValidatorOperationService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "validator.ValidatorOperationService",
|
||||
HandlerType: (*ValidatorOperationServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Success",
|
||||
Handler: _ValidatorOperationService_Success_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Fail",
|
||||
Handler: _ValidatorOperationService_Fail_Handler,
|
||||
|
||||
Reference in New Issue
Block a user