Autogenerated update for eb8d873290...e252921e91
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@ package validator
|
||||
|
||||
import (
|
||||
context "context"
|
||||
maps_extended "git.itzana.me/strafesnet/go-grpc/maps_extended"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
@@ -31,6 +32,7 @@ type ValidatorMapfixServiceClient interface {
|
||||
SetStatusValidated(ctx context.Context, in *MapfixID, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusFailed(ctx context.Context, in *MapfixID, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusUploaded(ctx context.Context, in *MapfixID, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusReleased(ctx context.Context, in *MapfixReleaseRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
}
|
||||
|
||||
type validatorMapfixServiceClient struct {
|
||||
@@ -122,6 +124,15 @@ func (c *validatorMapfixServiceClient) SetStatusUploaded(ctx context.Context, in
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *validatorMapfixServiceClient) SetStatusReleased(ctx context.Context, in *MapfixReleaseRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/validator.ValidatorMapfixService/SetStatusReleased", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ValidatorMapfixServiceServer is the server API for ValidatorMapfixService service.
|
||||
// All implementations must embed UnimplementedValidatorMapfixServiceServer
|
||||
// for forward compatibility
|
||||
@@ -135,6 +146,7 @@ type ValidatorMapfixServiceServer interface {
|
||||
SetStatusValidated(context.Context, *MapfixID) (*NullResponse, error)
|
||||
SetStatusFailed(context.Context, *MapfixID) (*NullResponse, error)
|
||||
SetStatusUploaded(context.Context, *MapfixID) (*NullResponse, error)
|
||||
SetStatusReleased(context.Context, *MapfixReleaseRequest) (*NullResponse, error)
|
||||
mustEmbedUnimplementedValidatorMapfixServiceServer()
|
||||
}
|
||||
|
||||
@@ -169,6 +181,9 @@ func (UnimplementedValidatorMapfixServiceServer) SetStatusFailed(context.Context
|
||||
func (UnimplementedValidatorMapfixServiceServer) SetStatusUploaded(context.Context, *MapfixID) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetStatusUploaded not implemented")
|
||||
}
|
||||
func (UnimplementedValidatorMapfixServiceServer) SetStatusReleased(context.Context, *MapfixReleaseRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetStatusReleased not implemented")
|
||||
}
|
||||
func (UnimplementedValidatorMapfixServiceServer) mustEmbedUnimplementedValidatorMapfixServiceServer() {
|
||||
}
|
||||
|
||||
@@ -345,6 +360,24 @@ func _ValidatorMapfixService_SetStatusUploaded_Handler(srv interface{}, ctx cont
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ValidatorMapfixService_SetStatusReleased_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MapfixReleaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ValidatorMapfixServiceServer).SetStatusReleased(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/validator.ValidatorMapfixService/SetStatusReleased",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ValidatorMapfixServiceServer).SetStatusReleased(ctx, req.(*MapfixReleaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ValidatorMapfixService_ServiceDesc is the grpc.ServiceDesc for ValidatorMapfixService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -388,6 +421,10 @@ var ValidatorMapfixService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "SetStatusUploaded",
|
||||
Handler: _ValidatorMapfixService_SetStatusUploaded_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetStatusReleased",
|
||||
Handler: _ValidatorMapfixService_SetStatusReleased_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "validator.proto",
|
||||
@@ -406,6 +443,7 @@ type ValidatorSubmissionServiceClient interface {
|
||||
SetStatusValidated(ctx context.Context, in *SubmissionID, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusFailed(ctx context.Context, in *SubmissionID, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusUploaded(ctx context.Context, in *StatusUploadedRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
SetStatusReleased(ctx context.Context, in *maps_extended.MapCreate, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
}
|
||||
|
||||
type validatorSubmissionServiceClient struct {
|
||||
@@ -497,6 +535,15 @@ func (c *validatorSubmissionServiceClient) SetStatusUploaded(ctx context.Context
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *validatorSubmissionServiceClient) SetStatusReleased(ctx context.Context, in *maps_extended.MapCreate, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/validator.ValidatorSubmissionService/SetStatusReleased", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ValidatorSubmissionServiceServer is the server API for ValidatorSubmissionService service.
|
||||
// All implementations must embed UnimplementedValidatorSubmissionServiceServer
|
||||
// for forward compatibility
|
||||
@@ -510,6 +557,7 @@ type ValidatorSubmissionServiceServer interface {
|
||||
SetStatusValidated(context.Context, *SubmissionID) (*NullResponse, error)
|
||||
SetStatusFailed(context.Context, *SubmissionID) (*NullResponse, error)
|
||||
SetStatusUploaded(context.Context, *StatusUploadedRequest) (*NullResponse, error)
|
||||
SetStatusReleased(context.Context, *maps_extended.MapCreate) (*NullResponse, error)
|
||||
mustEmbedUnimplementedValidatorSubmissionServiceServer()
|
||||
}
|
||||
|
||||
@@ -544,6 +592,9 @@ func (UnimplementedValidatorSubmissionServiceServer) SetStatusFailed(context.Con
|
||||
func (UnimplementedValidatorSubmissionServiceServer) SetStatusUploaded(context.Context, *StatusUploadedRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetStatusUploaded not implemented")
|
||||
}
|
||||
func (UnimplementedValidatorSubmissionServiceServer) SetStatusReleased(context.Context, *maps_extended.MapCreate) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetStatusReleased not implemented")
|
||||
}
|
||||
func (UnimplementedValidatorSubmissionServiceServer) mustEmbedUnimplementedValidatorSubmissionServiceServer() {
|
||||
}
|
||||
|
||||
@@ -720,6 +771,24 @@ func _ValidatorSubmissionService_SetStatusUploaded_Handler(srv interface{}, ctx
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ValidatorSubmissionService_SetStatusReleased_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(maps_extended.MapCreate)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ValidatorSubmissionServiceServer).SetStatusReleased(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/validator.ValidatorSubmissionService/SetStatusReleased",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ValidatorSubmissionServiceServer).SetStatusReleased(ctx, req.(*maps_extended.MapCreate))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ValidatorSubmissionService_ServiceDesc is the grpc.ServiceDesc for ValidatorSubmissionService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -763,6 +832,10 @@ var ValidatorSubmissionService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "SetStatusUploaded",
|
||||
Handler: _ValidatorSubmissionService_SetStatusUploaded_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetStatusReleased",
|
||||
Handler: _ValidatorSubmissionService_SetStatusReleased_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "validator.proto",
|
||||
|
||||
Reference in New Issue
Block a user