// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.4.0
// - protoc             (unknown)
// source: global/dedicated/v1/privatelinkservice_migration.proto

package dedicatedv1

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.62.0 or later.
const _ = grpc.SupportPackageIsVersion8

const (
	PrivateLinkServiceMigrationService_CreatePrivateLinkServiceMigration_FullMethodName = "/global.dedicated.v1.PrivateLinkServiceMigrationService/CreatePrivateLinkServiceMigration"
	PrivateLinkServiceMigrationService_GetPrivateLinkServiceMigration_FullMethodName    = "/global.dedicated.v1.PrivateLinkServiceMigrationService/GetPrivateLinkServiceMigration"
	PrivateLinkServiceMigrationService_ListPrivateLinkServiceMigrations_FullMethodName  = "/global.dedicated.v1.PrivateLinkServiceMigrationService/ListPrivateLinkServiceMigrations"
	PrivateLinkServiceMigrationService_CancelPrivateLinkServiceMigration_FullMethodName = "/global.dedicated.v1.PrivateLinkServiceMigrationService/CancelPrivateLinkServiceMigration"
)

// PrivateLinkServiceMigrationServiceClient is the client API for PrivateLinkServiceMigrationService 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 PrivateLinkServiceMigrationServiceClient interface {
	CreatePrivateLinkServiceMigration(ctx context.Context, in *CreatePrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*PrivateLinkServiceMigration, error)
	GetPrivateLinkServiceMigration(ctx context.Context, in *GetPrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*PrivateLinkServiceMigration, error)
	ListPrivateLinkServiceMigrations(ctx context.Context, in *ListPrivateLinkServiceMigrationsRequest, opts ...grpc.CallOption) (*ListPrivateLinkServiceMigrationsResponse, error)
	CancelPrivateLinkServiceMigration(ctx context.Context, in *CancelPrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

type privateLinkServiceMigrationServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewPrivateLinkServiceMigrationServiceClient(cc grpc.ClientConnInterface) PrivateLinkServiceMigrationServiceClient {
	return &privateLinkServiceMigrationServiceClient{cc}
}

func (c *privateLinkServiceMigrationServiceClient) CreatePrivateLinkServiceMigration(ctx context.Context, in *CreatePrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*PrivateLinkServiceMigration, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkServiceMigration)
	err := c.cc.Invoke(ctx, PrivateLinkServiceMigrationService_CreatePrivateLinkServiceMigration_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkServiceMigrationServiceClient) GetPrivateLinkServiceMigration(ctx context.Context, in *GetPrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*PrivateLinkServiceMigration, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkServiceMigration)
	err := c.cc.Invoke(ctx, PrivateLinkServiceMigrationService_GetPrivateLinkServiceMigration_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkServiceMigrationServiceClient) ListPrivateLinkServiceMigrations(ctx context.Context, in *ListPrivateLinkServiceMigrationsRequest, opts ...grpc.CallOption) (*ListPrivateLinkServiceMigrationsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPrivateLinkServiceMigrationsResponse)
	err := c.cc.Invoke(ctx, PrivateLinkServiceMigrationService_ListPrivateLinkServiceMigrations_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkServiceMigrationServiceClient) CancelPrivateLinkServiceMigration(ctx context.Context, in *CancelPrivateLinkServiceMigrationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, PrivateLinkServiceMigrationService_CancelPrivateLinkServiceMigration_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PrivateLinkServiceMigrationServiceServer is the server API for PrivateLinkServiceMigrationService service.
// All implementations should embed UnimplementedPrivateLinkServiceMigrationServiceServer
// for forward compatibility
type PrivateLinkServiceMigrationServiceServer interface {
	CreatePrivateLinkServiceMigration(context.Context, *CreatePrivateLinkServiceMigrationRequest) (*PrivateLinkServiceMigration, error)
	GetPrivateLinkServiceMigration(context.Context, *GetPrivateLinkServiceMigrationRequest) (*PrivateLinkServiceMigration, error)
	ListPrivateLinkServiceMigrations(context.Context, *ListPrivateLinkServiceMigrationsRequest) (*ListPrivateLinkServiceMigrationsResponse, error)
	CancelPrivateLinkServiceMigration(context.Context, *CancelPrivateLinkServiceMigrationRequest) (*emptypb.Empty, error)
}

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

func (UnimplementedPrivateLinkServiceMigrationServiceServer) CreatePrivateLinkServiceMigration(context.Context, *CreatePrivateLinkServiceMigrationRequest) (*PrivateLinkServiceMigration, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePrivateLinkServiceMigration not implemented")
}
func (UnimplementedPrivateLinkServiceMigrationServiceServer) GetPrivateLinkServiceMigration(context.Context, *GetPrivateLinkServiceMigrationRequest) (*PrivateLinkServiceMigration, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPrivateLinkServiceMigration not implemented")
}
func (UnimplementedPrivateLinkServiceMigrationServiceServer) ListPrivateLinkServiceMigrations(context.Context, *ListPrivateLinkServiceMigrationsRequest) (*ListPrivateLinkServiceMigrationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPrivateLinkServiceMigrations not implemented")
}
func (UnimplementedPrivateLinkServiceMigrationServiceServer) CancelPrivateLinkServiceMigration(context.Context, *CancelPrivateLinkServiceMigrationRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CancelPrivateLinkServiceMigration not implemented")
}

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

func RegisterPrivateLinkServiceMigrationServiceServer(s grpc.ServiceRegistrar, srv PrivateLinkServiceMigrationServiceServer) {
	s.RegisterService(&PrivateLinkServiceMigrationService_ServiceDesc, srv)
}

func _PrivateLinkServiceMigrationService_CreatePrivateLinkServiceMigration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreatePrivateLinkServiceMigrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkServiceMigrationServiceServer).CreatePrivateLinkServiceMigration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkServiceMigrationService_CreatePrivateLinkServiceMigration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkServiceMigrationServiceServer).CreatePrivateLinkServiceMigration(ctx, req.(*CreatePrivateLinkServiceMigrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkServiceMigrationService_GetPrivateLinkServiceMigration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPrivateLinkServiceMigrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkServiceMigrationServiceServer).GetPrivateLinkServiceMigration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkServiceMigrationService_GetPrivateLinkServiceMigration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkServiceMigrationServiceServer).GetPrivateLinkServiceMigration(ctx, req.(*GetPrivateLinkServiceMigrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkServiceMigrationService_ListPrivateLinkServiceMigrations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPrivateLinkServiceMigrationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkServiceMigrationServiceServer).ListPrivateLinkServiceMigrations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkServiceMigrationService_ListPrivateLinkServiceMigrations_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkServiceMigrationServiceServer).ListPrivateLinkServiceMigrations(ctx, req.(*ListPrivateLinkServiceMigrationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkServiceMigrationService_CancelPrivateLinkServiceMigration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CancelPrivateLinkServiceMigrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkServiceMigrationServiceServer).CancelPrivateLinkServiceMigration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkServiceMigrationService_CancelPrivateLinkServiceMigration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkServiceMigrationServiceServer).CancelPrivateLinkServiceMigration(ctx, req.(*CancelPrivateLinkServiceMigrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// PrivateLinkServiceMigrationService_ServiceDesc is the grpc.ServiceDesc for PrivateLinkServiceMigrationService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PrivateLinkServiceMigrationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "global.dedicated.v1.PrivateLinkServiceMigrationService",
	HandlerType: (*PrivateLinkServiceMigrationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePrivateLinkServiceMigration",
			Handler:    _PrivateLinkServiceMigrationService_CreatePrivateLinkServiceMigration_Handler,
		},
		{
			MethodName: "GetPrivateLinkServiceMigration",
			Handler:    _PrivateLinkServiceMigrationService_GetPrivateLinkServiceMigration_Handler,
		},
		{
			MethodName: "ListPrivateLinkServiceMigrations",
			Handler:    _PrivateLinkServiceMigrationService_ListPrivateLinkServiceMigrations_Handler,
		},
		{
			MethodName: "CancelPrivateLinkServiceMigration",
			Handler:    _PrivateLinkServiceMigrationService_CancelPrivateLinkServiceMigration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "global/dedicated/v1/privatelinkservice_migration.proto",
}
