// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.25.3 // source: proto/msw.proto package proto 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.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( MSW_Version_FullMethodName = "/msw.MSW/Version" MSW_ClipEmbeddingForText_FullMethodName = "/msw.MSW/ClipEmbeddingForText" ) // MSWClient is the client API for MSW 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 MSWClient interface { Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionResponse, error) ClipEmbeddingForText(ctx context.Context, in *ClipEmbeddingForTextRequest, opts ...grpc.CallOption) (*ClipEmbeddingForTextResponse, error) } type mSWClient struct { cc grpc.ClientConnInterface } func NewMSWClient(cc grpc.ClientConnInterface) MSWClient { return &mSWClient{cc} } func (c *mSWClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionResponse, error) { out := new(VersionResponse) err := c.cc.Invoke(ctx, MSW_Version_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mSWClient) ClipEmbeddingForText(ctx context.Context, in *ClipEmbeddingForTextRequest, opts ...grpc.CallOption) (*ClipEmbeddingForTextResponse, error) { out := new(ClipEmbeddingForTextResponse) err := c.cc.Invoke(ctx, MSW_ClipEmbeddingForText_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // MSWServer is the server API for MSW service. // All implementations must embed UnimplementedMSWServer // for forward compatibility type MSWServer interface { Version(context.Context, *Empty) (*VersionResponse, error) ClipEmbeddingForText(context.Context, *ClipEmbeddingForTextRequest) (*ClipEmbeddingForTextResponse, error) mustEmbedUnimplementedMSWServer() } // UnimplementedMSWServer must be embedded to have forward compatible implementations. type UnimplementedMSWServer struct { } func (UnimplementedMSWServer) Version(context.Context, *Empty) (*VersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") } func (UnimplementedMSWServer) ClipEmbeddingForText(context.Context, *ClipEmbeddingForTextRequest) (*ClipEmbeddingForTextResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClipEmbeddingForText not implemented") } func (UnimplementedMSWServer) mustEmbedUnimplementedMSWServer() {} // UnsafeMSWServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MSWServer will // result in compilation errors. type UnsafeMSWServer interface { mustEmbedUnimplementedMSWServer() } func RegisterMSWServer(s grpc.ServiceRegistrar, srv MSWServer) { s.RegisterService(&MSW_ServiceDesc, srv) } func _MSW_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MSWServer).Version(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: MSW_Version_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MSWServer).Version(ctx, req.(*Empty)) } return interceptor(ctx, in, info, handler) } func _MSW_ClipEmbeddingForText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ClipEmbeddingForTextRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MSWServer).ClipEmbeddingForText(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: MSW_ClipEmbeddingForText_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MSWServer).ClipEmbeddingForText(ctx, req.(*ClipEmbeddingForTextRequest)) } return interceptor(ctx, in, info, handler) } // MSW_ServiceDesc is the grpc.ServiceDesc for MSW service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var MSW_ServiceDesc = grpc.ServiceDesc{ ServiceName: "msw.MSW", HandlerType: (*MSWServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Version", Handler: _MSW_Version_Handler, }, { MethodName: "ClipEmbeddingForText", Handler: _MSW_ClipEmbeddingForText_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/msw.proto", }