// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc             (unknown)
// source: integration/v1/services.proto

package integrationv1

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
)

// 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 (
	IntegrationService_ApplyIntegration_FullMethodName                 = "/integration.v1.IntegrationService/ApplyIntegration"
	IntegrationService_UninstallIntegration_FullMethodName             = "/integration.v1.IntegrationService/UninstallIntegration"
	IntegrationService_CreateMetricsKey_FullMethodName                 = "/integration.v1.IntegrationService/CreateMetricsKey"
	IntegrationService_DeleteMetricsKey_FullMethodName                 = "/integration.v1.IntegrationService/DeleteMetricsKey"
	IntegrationService_ScaleCluster_FullMethodName                     = "/integration.v1.IntegrationService/ScaleCluster"
	IntegrationService_DeleteCluster_FullMethodName                    = "/integration.v1.IntegrationService/DeleteCluster"
	IntegrationService_RefreshDedicatedClusterCPUConfig_FullMethodName = "/integration.v1.IntegrationService/RefreshDedicatedClusterCPUConfig"
)

// IntegrationServiceClient is the client API for IntegrationService 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 IntegrationServiceClient interface {
	ApplyIntegration(ctx context.Context, in *ApplyIntegrationRequest, opts ...grpc.CallOption) (*IntegrationStatusResp, error)
	UninstallIntegration(ctx context.Context, in *UninstallIntegrationRequest, opts ...grpc.CallOption) (*IntegrationStatusResp, error)
	CreateMetricsKey(ctx context.Context, in *CreateMetricsKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteMetricsKey(ctx context.Context, in *DeleteMetricsKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ScaleCluster(ctx context.Context, in *ScaleClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	RefreshDedicatedClusterCPUConfig(ctx context.Context, in *RefreshDedicatedClusterCPUConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

type integrationServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewIntegrationServiceClient(cc grpc.ClientConnInterface) IntegrationServiceClient {
	return &integrationServiceClient{cc}
}

func (c *integrationServiceClient) ApplyIntegration(ctx context.Context, in *ApplyIntegrationRequest, opts ...grpc.CallOption) (*IntegrationStatusResp, error) {
	out := new(IntegrationStatusResp)
	err := c.cc.Invoke(ctx, IntegrationService_ApplyIntegration_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) UninstallIntegration(ctx context.Context, in *UninstallIntegrationRequest, opts ...grpc.CallOption) (*IntegrationStatusResp, error) {
	out := new(IntegrationStatusResp)
	err := c.cc.Invoke(ctx, IntegrationService_UninstallIntegration_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) CreateMetricsKey(ctx context.Context, in *CreateMetricsKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, IntegrationService_CreateMetricsKey_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) DeleteMetricsKey(ctx context.Context, in *DeleteMetricsKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, IntegrationService_DeleteMetricsKey_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) ScaleCluster(ctx context.Context, in *ScaleClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, IntegrationService_ScaleCluster_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, IntegrationService_DeleteCluster_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *integrationServiceClient) RefreshDedicatedClusterCPUConfig(ctx context.Context, in *RefreshDedicatedClusterCPUConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, IntegrationService_RefreshDedicatedClusterCPUConfig_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// IntegrationServiceServer is the server API for IntegrationService service.
// All implementations should embed UnimplementedIntegrationServiceServer
// for forward compatibility
type IntegrationServiceServer interface {
	ApplyIntegration(context.Context, *ApplyIntegrationRequest) (*IntegrationStatusResp, error)
	UninstallIntegration(context.Context, *UninstallIntegrationRequest) (*IntegrationStatusResp, error)
	CreateMetricsKey(context.Context, *CreateMetricsKeyRequest) (*emptypb.Empty, error)
	DeleteMetricsKey(context.Context, *DeleteMetricsKeyRequest) (*emptypb.Empty, error)
	ScaleCluster(context.Context, *ScaleClusterRequest) (*emptypb.Empty, error)
	DeleteCluster(context.Context, *DeleteClusterRequest) (*emptypb.Empty, error)
	RefreshDedicatedClusterCPUConfig(context.Context, *RefreshDedicatedClusterCPUConfigRequest) (*emptypb.Empty, error)
}

// UnimplementedIntegrationServiceServer should be embedded to have forward compatible implementations.
type UnimplementedIntegrationServiceServer struct {
}

func (UnimplementedIntegrationServiceServer) ApplyIntegration(context.Context, *ApplyIntegrationRequest) (*IntegrationStatusResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ApplyIntegration not implemented")
}
func (UnimplementedIntegrationServiceServer) UninstallIntegration(context.Context, *UninstallIntegrationRequest) (*IntegrationStatusResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UninstallIntegration not implemented")
}
func (UnimplementedIntegrationServiceServer) CreateMetricsKey(context.Context, *CreateMetricsKeyRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateMetricsKey not implemented")
}
func (UnimplementedIntegrationServiceServer) DeleteMetricsKey(context.Context, *DeleteMetricsKeyRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteMetricsKey not implemented")
}
func (UnimplementedIntegrationServiceServer) ScaleCluster(context.Context, *ScaleClusterRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ScaleCluster not implemented")
}
func (UnimplementedIntegrationServiceServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteCluster not implemented")
}
func (UnimplementedIntegrationServiceServer) RefreshDedicatedClusterCPUConfig(context.Context, *RefreshDedicatedClusterCPUConfigRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RefreshDedicatedClusterCPUConfig not implemented")
}

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

func RegisterIntegrationServiceServer(s grpc.ServiceRegistrar, srv IntegrationServiceServer) {
	s.RegisterService(&IntegrationService_ServiceDesc, srv)
}

func _IntegrationService_ApplyIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplyIntegrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).ApplyIntegration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_ApplyIntegration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).ApplyIntegration(ctx, req.(*ApplyIntegrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_UninstallIntegration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UninstallIntegrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).UninstallIntegration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_UninstallIntegration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).UninstallIntegration(ctx, req.(*UninstallIntegrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_CreateMetricsKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateMetricsKeyRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).CreateMetricsKey(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_CreateMetricsKey_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).CreateMetricsKey(ctx, req.(*CreateMetricsKeyRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_DeleteMetricsKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteMetricsKeyRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).DeleteMetricsKey(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_DeleteMetricsKey_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).DeleteMetricsKey(ctx, req.(*DeleteMetricsKeyRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_ScaleCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ScaleClusterRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).ScaleCluster(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_ScaleCluster_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).ScaleCluster(ctx, req.(*ScaleClusterRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_DeleteCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteClusterRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).DeleteCluster(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_DeleteCluster_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).DeleteCluster(ctx, req.(*DeleteClusterRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IntegrationService_RefreshDedicatedClusterCPUConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RefreshDedicatedClusterCPUConfigRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IntegrationServiceServer).RefreshDedicatedClusterCPUConfig(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IntegrationService_RefreshDedicatedClusterCPUConfig_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IntegrationServiceServer).RefreshDedicatedClusterCPUConfig(ctx, req.(*RefreshDedicatedClusterCPUConfigRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// IntegrationService_ServiceDesc is the grpc.ServiceDesc for IntegrationService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var IntegrationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "integration.v1.IntegrationService",
	HandlerType: (*IntegrationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ApplyIntegration",
			Handler:    _IntegrationService_ApplyIntegration_Handler,
		},
		{
			MethodName: "UninstallIntegration",
			Handler:    _IntegrationService_UninstallIntegration_Handler,
		},
		{
			MethodName: "CreateMetricsKey",
			Handler:    _IntegrationService_CreateMetricsKey_Handler,
		},
		{
			MethodName: "DeleteMetricsKey",
			Handler:    _IntegrationService_DeleteMetricsKey_Handler,
		},
		{
			MethodName: "ScaleCluster",
			Handler:    _IntegrationService_ScaleCluster_Handler,
		},
		{
			MethodName: "DeleteCluster",
			Handler:    _IntegrationService_DeleteCluster_Handler,
		},
		{
			MethodName: "RefreshDedicatedClusterCPUConfig",
			Handler:    _IntegrationService_RefreshDedicatedClusterCPUConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "integration/v1/services.proto",
}
