blob: fd5b706ba3aff6ebb49f6c4f2514267d534b5a0e [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: chromite/api/sdk_subtools.proto
package api
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
// SdkSubtoolsServiceClient is the client API for SdkSubtoolsService 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 SdkSubtoolsServiceClient interface {
// Executes the BuildSdkSubtoolsRequest.
BuildSdkSubtools(ctx context.Context, in *BuildSdkSubtoolsRequest, opts ...grpc.CallOption) (*BuildSdkSubtoolsResponse, error)
// Executes the UploadSdkSubtoolsRequest.
UploadSdkSubtools(ctx context.Context, in *UploadSdkSubtoolsRequest, opts ...grpc.CallOption) (*UploadSdkSubtoolsResponse, error)
}
type sdkSubtoolsServiceClient struct {
cc grpc.ClientConnInterface
}
func NewSdkSubtoolsServiceClient(cc grpc.ClientConnInterface) SdkSubtoolsServiceClient {
return &sdkSubtoolsServiceClient{cc}
}
func (c *sdkSubtoolsServiceClient) BuildSdkSubtools(ctx context.Context, in *BuildSdkSubtoolsRequest, opts ...grpc.CallOption) (*BuildSdkSubtoolsResponse, error) {
out := new(BuildSdkSubtoolsResponse)
err := c.cc.Invoke(ctx, "/chromite.api.SdkSubtoolsService/BuildSdkSubtools", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sdkSubtoolsServiceClient) UploadSdkSubtools(ctx context.Context, in *UploadSdkSubtoolsRequest, opts ...grpc.CallOption) (*UploadSdkSubtoolsResponse, error) {
out := new(UploadSdkSubtoolsResponse)
err := c.cc.Invoke(ctx, "/chromite.api.SdkSubtoolsService/UploadSdkSubtools", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SdkSubtoolsServiceServer is the server API for SdkSubtoolsService service.
// All implementations must embed UnimplementedSdkSubtoolsServiceServer
// for forward compatibility
type SdkSubtoolsServiceServer interface {
// Executes the BuildSdkSubtoolsRequest.
BuildSdkSubtools(context.Context, *BuildSdkSubtoolsRequest) (*BuildSdkSubtoolsResponse, error)
// Executes the UploadSdkSubtoolsRequest.
UploadSdkSubtools(context.Context, *UploadSdkSubtoolsRequest) (*UploadSdkSubtoolsResponse, error)
mustEmbedUnimplementedSdkSubtoolsServiceServer()
}
// UnimplementedSdkSubtoolsServiceServer must be embedded to have forward compatible implementations.
type UnimplementedSdkSubtoolsServiceServer struct {
}
func (UnimplementedSdkSubtoolsServiceServer) BuildSdkSubtools(context.Context, *BuildSdkSubtoolsRequest) (*BuildSdkSubtoolsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BuildSdkSubtools not implemented")
}
func (UnimplementedSdkSubtoolsServiceServer) UploadSdkSubtools(context.Context, *UploadSdkSubtoolsRequest) (*UploadSdkSubtoolsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadSdkSubtools not implemented")
}
func (UnimplementedSdkSubtoolsServiceServer) mustEmbedUnimplementedSdkSubtoolsServiceServer() {}
// UnsafeSdkSubtoolsServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SdkSubtoolsServiceServer will
// result in compilation errors.
type UnsafeSdkSubtoolsServiceServer interface {
mustEmbedUnimplementedSdkSubtoolsServiceServer()
}
func RegisterSdkSubtoolsServiceServer(s grpc.ServiceRegistrar, srv SdkSubtoolsServiceServer) {
s.RegisterService(&SdkSubtoolsService_ServiceDesc, srv)
}
func _SdkSubtoolsService_BuildSdkSubtools_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BuildSdkSubtoolsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SdkSubtoolsServiceServer).BuildSdkSubtools(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.SdkSubtoolsService/BuildSdkSubtools",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SdkSubtoolsServiceServer).BuildSdkSubtools(ctx, req.(*BuildSdkSubtoolsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SdkSubtoolsService_UploadSdkSubtools_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadSdkSubtoolsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SdkSubtoolsServiceServer).UploadSdkSubtools(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.SdkSubtoolsService/UploadSdkSubtools",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SdkSubtoolsServiceServer).UploadSdkSubtools(ctx, req.(*UploadSdkSubtoolsRequest))
}
return interceptor(ctx, in, info, handler)
}
// SdkSubtoolsService_ServiceDesc is the grpc.ServiceDesc for SdkSubtoolsService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SdkSubtoolsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "chromite.api.SdkSubtoolsService",
HandlerType: (*SdkSubtoolsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "BuildSdkSubtools",
Handler: _SdkSubtoolsService_BuildSdkSubtools_Handler,
},
{
MethodName: "UploadSdkSubtools",
Handler: _SdkSubtoolsService_UploadSdkSubtools_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chromite/api/sdk_subtools.proto",
}