Raw descriptor bytes in .pb.go files were corrupted by the sed-based module path rename (string length changed, breaking protobuf binary encoding). Regenerated with protoc to fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
236 lines
8.9 KiB
Go
236 lines
8.9 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.1
|
|
// - protoc v6.32.1
|
|
// source: proto/metacrypt/v1/engine.proto
|
|
|
|
package metacryptv1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
EngineService_Mount_FullMethodName = "/metacrypt.v1.EngineService/Mount"
|
|
EngineService_Unmount_FullMethodName = "/metacrypt.v1.EngineService/Unmount"
|
|
EngineService_ListMounts_FullMethodName = "/metacrypt.v1.EngineService/ListMounts"
|
|
EngineService_Execute_FullMethodName = "/metacrypt.v1.EngineService/Execute"
|
|
)
|
|
|
|
// EngineServiceClient is the client API for EngineService 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.
|
|
type EngineServiceClient interface {
|
|
Mount(ctx context.Context, in *MountRequest, opts ...grpc.CallOption) (*MountResponse, error)
|
|
Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error)
|
|
ListMounts(ctx context.Context, in *ListMountsRequest, opts ...grpc.CallOption) (*ListMountsResponse, error)
|
|
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
|
|
}
|
|
|
|
type engineServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewEngineServiceClient(cc grpc.ClientConnInterface) EngineServiceClient {
|
|
return &engineServiceClient{cc}
|
|
}
|
|
|
|
func (c *engineServiceClient) Mount(ctx context.Context, in *MountRequest, opts ...grpc.CallOption) (*MountResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MountResponse)
|
|
err := c.cc.Invoke(ctx, EngineService_Mount_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *engineServiceClient) Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(UnmountResponse)
|
|
err := c.cc.Invoke(ctx, EngineService_Unmount_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *engineServiceClient) ListMounts(ctx context.Context, in *ListMountsRequest, opts ...grpc.CallOption) (*ListMountsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ListMountsResponse)
|
|
err := c.cc.Invoke(ctx, EngineService_ListMounts_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *engineServiceClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ExecuteResponse)
|
|
err := c.cc.Invoke(ctx, EngineService_Execute_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// EngineServiceServer is the server API for EngineService service.
|
|
// All implementations must embed UnimplementedEngineServiceServer
|
|
// for forward compatibility.
|
|
type EngineServiceServer interface {
|
|
Mount(context.Context, *MountRequest) (*MountResponse, error)
|
|
Unmount(context.Context, *UnmountRequest) (*UnmountResponse, error)
|
|
ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error)
|
|
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
|
|
mustEmbedUnimplementedEngineServiceServer()
|
|
}
|
|
|
|
// UnimplementedEngineServiceServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedEngineServiceServer struct{}
|
|
|
|
func (UnimplementedEngineServiceServer) Mount(context.Context, *MountRequest) (*MountResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Mount not implemented")
|
|
}
|
|
func (UnimplementedEngineServiceServer) Unmount(context.Context, *UnmountRequest) (*UnmountResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Unmount not implemented")
|
|
}
|
|
func (UnimplementedEngineServiceServer) ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ListMounts not implemented")
|
|
}
|
|
func (UnimplementedEngineServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Execute not implemented")
|
|
}
|
|
func (UnimplementedEngineServiceServer) mustEmbedUnimplementedEngineServiceServer() {}
|
|
func (UnimplementedEngineServiceServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeEngineServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to EngineServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeEngineServiceServer interface {
|
|
mustEmbedUnimplementedEngineServiceServer()
|
|
}
|
|
|
|
func RegisterEngineServiceServer(s grpc.ServiceRegistrar, srv EngineServiceServer) {
|
|
// If the following call panics, it indicates UnimplementedEngineServiceServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&EngineService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _EngineService_Mount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(EngineServiceServer).Mount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: EngineService_Mount_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(EngineServiceServer).Mount(ctx, req.(*MountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _EngineService_Unmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UnmountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(EngineServiceServer).Unmount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: EngineService_Unmount_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(EngineServiceServer).Unmount(ctx, req.(*UnmountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _EngineService_ListMounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListMountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(EngineServiceServer).ListMounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: EngineService_ListMounts_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(EngineServiceServer).ListMounts(ctx, req.(*ListMountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _EngineService_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ExecuteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(EngineServiceServer).Execute(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: EngineService_Execute_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(EngineServiceServer).Execute(ctx, req.(*ExecuteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// EngineService_ServiceDesc is the grpc.ServiceDesc for EngineService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var EngineService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "metacrypt.v1.EngineService",
|
|
HandlerType: (*EngineServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Mount",
|
|
Handler: _EngineService_Mount_Handler,
|
|
},
|
|
{
|
|
MethodName: "Unmount",
|
|
Handler: _EngineService_Unmount_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListMounts",
|
|
Handler: _EngineService_ListMounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "Execute",
|
|
Handler: _EngineService_Execute_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/metacrypt/v1/engine.proto",
|
|
}
|