blob: c6af917f68581c22710965d18659bf08dbaafde5 [file] [log] [blame]
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.1.0
// - protoc v3.17.1
// source: test_platform/skylab_test_runner/cros_test_runner_service.proto
package skylab_test_runner
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
// CrosTestRunnerServiceClient is the client API for CrosTestRunnerService 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 CrosTestRunnerServiceClient interface {
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
}
type crosTestRunnerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCrosTestRunnerServiceClient(cc grpc.ClientConnInterface) CrosTestRunnerServiceClient {
return &crosTestRunnerServiceClient{cc}
}
func (c *crosTestRunnerServiceClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) {
out := new(ExecuteResponse)
err := c.cc.Invoke(ctx, "/test_platform.skylab_test_runner.CrosTestRunnerService/Execute", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CrosTestRunnerServiceServer is the server API for CrosTestRunnerService service.
// All implementations must embed UnimplementedCrosTestRunnerServiceServer
// for forward compatibility
type CrosTestRunnerServiceServer interface {
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
mustEmbedUnimplementedCrosTestRunnerServiceServer()
}
// UnimplementedCrosTestRunnerServiceServer must be embedded to have forward compatible implementations.
type UnimplementedCrosTestRunnerServiceServer struct {
}
func (UnimplementedCrosTestRunnerServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented")
}
func (UnimplementedCrosTestRunnerServiceServer) mustEmbedUnimplementedCrosTestRunnerServiceServer() {}
// UnsafeCrosTestRunnerServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CrosTestRunnerServiceServer will
// result in compilation errors.
type UnsafeCrosTestRunnerServiceServer interface {
mustEmbedUnimplementedCrosTestRunnerServiceServer()
}
func RegisterCrosTestRunnerServiceServer(s grpc.ServiceRegistrar, srv CrosTestRunnerServiceServer) {
s.RegisterService(&CrosTestRunnerService_ServiceDesc, srv)
}
func _CrosTestRunnerService_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.(CrosTestRunnerServiceServer).Execute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/test_platform.skylab_test_runner.CrosTestRunnerService/Execute",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrosTestRunnerServiceServer).Execute(ctx, req.(*ExecuteRequest))
}
return interceptor(ctx, in, info, handler)
}
// CrosTestRunnerService_ServiceDesc is the grpc.ServiceDesc for CrosTestRunnerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var CrosTestRunnerService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "test_platform.skylab_test_runner.CrosTestRunnerService",
HandlerType: (*CrosTestRunnerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Execute",
Handler: _CrosTestRunnerService_Execute_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "test_platform/skylab_test_runner/cros_test_runner_service.proto",
}