// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc             v3.21.12
// source: yandex/cloud/ai/tuning/v1/tuning_service.proto

package fomo

import (
	context "context"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	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 (
	TuningService_Tune_FullMethodName          = "/yandex.cloud.ai.tuning.v1.TuningService/Tune"
	TuningService_List_FullMethodName          = "/yandex.cloud.ai.tuning.v1.TuningService/List"
	TuningService_Describe_FullMethodName      = "/yandex.cloud.ai.tuning.v1.TuningService/Describe"
	TuningService_Cancel_FullMethodName        = "/yandex.cloud.ai.tuning.v1.TuningService/Cancel"
	TuningService_GetMetricsUrl_FullMethodName = "/yandex.cloud.ai.tuning.v1.TuningService/GetMetricsUrl"
	TuningService_GetOptions_FullMethodName    = "/yandex.cloud.ai.tuning.v1.TuningService/GetOptions"
	TuningService_ListErrors_FullMethodName    = "/yandex.cloud.ai.tuning.v1.TuningService/ListErrors"
	TuningService_CreateDraft_FullMethodName   = "/yandex.cloud.ai.tuning.v1.TuningService/CreateDraft"
	TuningService_UpdateDraft_FullMethodName   = "/yandex.cloud.ai.tuning.v1.TuningService/UpdateDraft"
	TuningService_DeleteDraft_FullMethodName   = "/yandex.cloud.ai.tuning.v1.TuningService/DeleteDraft"
	TuningService_TuneDraft_FullMethodName     = "/yandex.cloud.ai.tuning.v1.TuningService/TuneDraft"
	TuningService_Archive_FullMethodName       = "/yandex.cloud.ai.tuning.v1.TuningService/Archive"
	TuningService_EnableBilling_FullMethodName = "/yandex.cloud.ai.tuning.v1.TuningService/EnableBilling"
)

// TuningServiceClient is the client API for TuningService 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 TuningServiceClient interface {
	Tune(ctx context.Context, in *TuningRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	List(ctx context.Context, in *ListTuningsRequest, opts ...grpc.CallOption) (*ListTuningsResponse, error)
	Describe(ctx context.Context, in *DescribeTuningRequest, opts ...grpc.CallOption) (*DescribeTuningResponse, error)
	Cancel(ctx context.Context, in *CancelTuningRequest, opts ...grpc.CallOption) (*CancelTuningResponse, error)
	GetMetricsUrl(ctx context.Context, in *GetMetricsUrlRequest, opts ...grpc.CallOption) (*GetMetricsUrlResponse, error)
	GetOptions(ctx context.Context, in *GetOptionsRequest, opts ...grpc.CallOption) (*GetOptionsResponse, error)
	ListErrors(ctx context.Context, in *ListErrorsRequest, opts ...grpc.CallOption) (*ListErrorsResponse, error)
	// Unimplemented
	CreateDraft(ctx context.Context, in *CreateTuningDraftRequest, opts ...grpc.CallOption) (*CreateTuningDraftResponse, error)
	// Unimplemented
	UpdateDraft(ctx context.Context, in *UpdateTuningDraftRequest, opts ...grpc.CallOption) (*UpdateTuningDraftResponse, error)
	// Unimplemented
	DeleteDraft(ctx context.Context, in *DeleteTuningDraftRequest, opts ...grpc.CallOption) (*DeleteTuningDraftResponse, error)
	// Unimplemented
	TuneDraft(ctx context.Context, in *TuneDraftRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	Archive(ctx context.Context, in *ArchiveTuningRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	EnableBilling(ctx context.Context, in *EnableBillingRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

type tuningServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewTuningServiceClient(cc grpc.ClientConnInterface) TuningServiceClient {
	return &tuningServiceClient{cc}
}

func (c *tuningServiceClient) Tune(ctx context.Context, in *TuningRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, TuningService_Tune_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) List(ctx context.Context, in *ListTuningsRequest, opts ...grpc.CallOption) (*ListTuningsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListTuningsResponse)
	err := c.cc.Invoke(ctx, TuningService_List_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) Describe(ctx context.Context, in *DescribeTuningRequest, opts ...grpc.CallOption) (*DescribeTuningResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(DescribeTuningResponse)
	err := c.cc.Invoke(ctx, TuningService_Describe_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) Cancel(ctx context.Context, in *CancelTuningRequest, opts ...grpc.CallOption) (*CancelTuningResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CancelTuningResponse)
	err := c.cc.Invoke(ctx, TuningService_Cancel_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) GetMetricsUrl(ctx context.Context, in *GetMetricsUrlRequest, opts ...grpc.CallOption) (*GetMetricsUrlResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetMetricsUrlResponse)
	err := c.cc.Invoke(ctx, TuningService_GetMetricsUrl_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) GetOptions(ctx context.Context, in *GetOptionsRequest, opts ...grpc.CallOption) (*GetOptionsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetOptionsResponse)
	err := c.cc.Invoke(ctx, TuningService_GetOptions_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) ListErrors(ctx context.Context, in *ListErrorsRequest, opts ...grpc.CallOption) (*ListErrorsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListErrorsResponse)
	err := c.cc.Invoke(ctx, TuningService_ListErrors_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) CreateDraft(ctx context.Context, in *CreateTuningDraftRequest, opts ...grpc.CallOption) (*CreateTuningDraftResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CreateTuningDraftResponse)
	err := c.cc.Invoke(ctx, TuningService_CreateDraft_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) UpdateDraft(ctx context.Context, in *UpdateTuningDraftRequest, opts ...grpc.CallOption) (*UpdateTuningDraftResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(UpdateTuningDraftResponse)
	err := c.cc.Invoke(ctx, TuningService_UpdateDraft_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) DeleteDraft(ctx context.Context, in *DeleteTuningDraftRequest, opts ...grpc.CallOption) (*DeleteTuningDraftResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(DeleteTuningDraftResponse)
	err := c.cc.Invoke(ctx, TuningService_DeleteDraft_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) TuneDraft(ctx context.Context, in *TuneDraftRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, TuningService_TuneDraft_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) Archive(ctx context.Context, in *ArchiveTuningRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, TuningService_Archive_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *tuningServiceClient) EnableBilling(ctx context.Context, in *EnableBillingRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, TuningService_EnableBilling_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// TuningServiceServer is the server API for TuningService service.
// All implementations should embed UnimplementedTuningServiceServer
// for forward compatibility.
type TuningServiceServer interface {
	Tune(context.Context, *TuningRequest) (*operation.Operation, error)
	List(context.Context, *ListTuningsRequest) (*ListTuningsResponse, error)
	Describe(context.Context, *DescribeTuningRequest) (*DescribeTuningResponse, error)
	Cancel(context.Context, *CancelTuningRequest) (*CancelTuningResponse, error)
	GetMetricsUrl(context.Context, *GetMetricsUrlRequest) (*GetMetricsUrlResponse, error)
	GetOptions(context.Context, *GetOptionsRequest) (*GetOptionsResponse, error)
	ListErrors(context.Context, *ListErrorsRequest) (*ListErrorsResponse, error)
	// Unimplemented
	CreateDraft(context.Context, *CreateTuningDraftRequest) (*CreateTuningDraftResponse, error)
	// Unimplemented
	UpdateDraft(context.Context, *UpdateTuningDraftRequest) (*UpdateTuningDraftResponse, error)
	// Unimplemented
	DeleteDraft(context.Context, *DeleteTuningDraftRequest) (*DeleteTuningDraftResponse, error)
	// Unimplemented
	TuneDraft(context.Context, *TuneDraftRequest) (*operation.Operation, error)
	Archive(context.Context, *ArchiveTuningRequest) (*operation.Operation, error)
	EnableBilling(context.Context, *EnableBillingRequest) (*operation.Operation, error)
}

// UnimplementedTuningServiceServer should 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 UnimplementedTuningServiceServer struct{}

func (UnimplementedTuningServiceServer) Tune(context.Context, *TuningRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Tune not implemented")
}
func (UnimplementedTuningServiceServer) List(context.Context, *ListTuningsRequest) (*ListTuningsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (UnimplementedTuningServiceServer) Describe(context.Context, *DescribeTuningRequest) (*DescribeTuningResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Describe not implemented")
}
func (UnimplementedTuningServiceServer) Cancel(context.Context, *CancelTuningRequest) (*CancelTuningResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Cancel not implemented")
}
func (UnimplementedTuningServiceServer) GetMetricsUrl(context.Context, *GetMetricsUrlRequest) (*GetMetricsUrlResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetMetricsUrl not implemented")
}
func (UnimplementedTuningServiceServer) GetOptions(context.Context, *GetOptionsRequest) (*GetOptionsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOptions not implemented")
}
func (UnimplementedTuningServiceServer) ListErrors(context.Context, *ListErrorsRequest) (*ListErrorsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListErrors not implemented")
}
func (UnimplementedTuningServiceServer) CreateDraft(context.Context, *CreateTuningDraftRequest) (*CreateTuningDraftResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateDraft not implemented")
}
func (UnimplementedTuningServiceServer) UpdateDraft(context.Context, *UpdateTuningDraftRequest) (*UpdateTuningDraftResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateDraft not implemented")
}
func (UnimplementedTuningServiceServer) DeleteDraft(context.Context, *DeleteTuningDraftRequest) (*DeleteTuningDraftResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteDraft not implemented")
}
func (UnimplementedTuningServiceServer) TuneDraft(context.Context, *TuneDraftRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method TuneDraft not implemented")
}
func (UnimplementedTuningServiceServer) Archive(context.Context, *ArchiveTuningRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Archive not implemented")
}
func (UnimplementedTuningServiceServer) EnableBilling(context.Context, *EnableBillingRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method EnableBilling not implemented")
}
func (UnimplementedTuningServiceServer) testEmbeddedByValue() {}

// UnsafeTuningServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to TuningServiceServer will
// result in compilation errors.
type UnsafeTuningServiceServer interface {
	mustEmbedUnimplementedTuningServiceServer()
}

func RegisterTuningServiceServer(s grpc.ServiceRegistrar, srv TuningServiceServer) {
	// If the following call pancis, it indicates UnimplementedTuningServiceServer 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(&TuningService_ServiceDesc, srv)
}

func _TuningService_Tune_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TuningRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).Tune(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_Tune_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).Tune(ctx, req.(*TuningRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListTuningsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).List(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_List_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).List(ctx, req.(*ListTuningsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_Describe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DescribeTuningRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).Describe(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_Describe_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).Describe(ctx, req.(*DescribeTuningRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CancelTuningRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).Cancel(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_Cancel_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).Cancel(ctx, req.(*CancelTuningRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_GetMetricsUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetMetricsUrlRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).GetMetricsUrl(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_GetMetricsUrl_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).GetMetricsUrl(ctx, req.(*GetMetricsUrlRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_GetOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetOptionsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).GetOptions(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_GetOptions_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).GetOptions(ctx, req.(*GetOptionsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_ListErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListErrorsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).ListErrors(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_ListErrors_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).ListErrors(ctx, req.(*ListErrorsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_CreateDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateTuningDraftRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).CreateDraft(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_CreateDraft_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).CreateDraft(ctx, req.(*CreateTuningDraftRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_UpdateDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateTuningDraftRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).UpdateDraft(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_UpdateDraft_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).UpdateDraft(ctx, req.(*UpdateTuningDraftRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_DeleteDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteTuningDraftRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).DeleteDraft(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_DeleteDraft_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).DeleteDraft(ctx, req.(*DeleteTuningDraftRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_TuneDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TuneDraftRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).TuneDraft(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_TuneDraft_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).TuneDraft(ctx, req.(*TuneDraftRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_Archive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ArchiveTuningRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).Archive(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_Archive_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).Archive(ctx, req.(*ArchiveTuningRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _TuningService_EnableBilling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(EnableBillingRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TuningServiceServer).EnableBilling(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: TuningService_EnableBilling_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TuningServiceServer).EnableBilling(ctx, req.(*EnableBillingRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// TuningService_ServiceDesc is the grpc.ServiceDesc for TuningService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var TuningService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.ai.tuning.v1.TuningService",
	HandlerType: (*TuningServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Tune",
			Handler:    _TuningService_Tune_Handler,
		},
		{
			MethodName: "List",
			Handler:    _TuningService_List_Handler,
		},
		{
			MethodName: "Describe",
			Handler:    _TuningService_Describe_Handler,
		},
		{
			MethodName: "Cancel",
			Handler:    _TuningService_Cancel_Handler,
		},
		{
			MethodName: "GetMetricsUrl",
			Handler:    _TuningService_GetMetricsUrl_Handler,
		},
		{
			MethodName: "GetOptions",
			Handler:    _TuningService_GetOptions_Handler,
		},
		{
			MethodName: "ListErrors",
			Handler:    _TuningService_ListErrors_Handler,
		},
		{
			MethodName: "CreateDraft",
			Handler:    _TuningService_CreateDraft_Handler,
		},
		{
			MethodName: "UpdateDraft",
			Handler:    _TuningService_UpdateDraft_Handler,
		},
		{
			MethodName: "DeleteDraft",
			Handler:    _TuningService_DeleteDraft_Handler,
		},
		{
			MethodName: "TuneDraft",
			Handler:    _TuningService_TuneDraft_Handler,
		},
		{
			MethodName: "Archive",
			Handler:    _TuningService_Archive_Handler,
		},
		{
			MethodName: "EnableBilling",
			Handler:    _TuningService_EnableBilling_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/ai/tuning/v1/tuning_service.proto",
}
