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

package nextgenv1

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 (
	PrivateLinkConnectionService_CreatePrivateLinkService_FullMethodName    = "/global.nextgen.v1.PrivateLinkConnectionService/CreatePrivateLinkService"
	PrivateLinkConnectionService_ListPrivateLinkServices_FullMethodName     = "/global.nextgen.v1.PrivateLinkConnectionService/ListPrivateLinkServices"
	PrivateLinkConnectionService_DeletePrivateLinkService_FullMethodName    = "/global.nextgen.v1.PrivateLinkConnectionService/DeletePrivateLinkService"
	PrivateLinkConnectionService_CreatePrivateLinkConnection_FullMethodName = "/global.nextgen.v1.PrivateLinkConnectionService/CreatePrivateLinkConnection"
	PrivateLinkConnectionService_GetPrivateLinkConnection_FullMethodName    = "/global.nextgen.v1.PrivateLinkConnectionService/GetPrivateLinkConnection"
	PrivateLinkConnectionService_ListPrivateLinkConnections_FullMethodName  = "/global.nextgen.v1.PrivateLinkConnectionService/ListPrivateLinkConnections"
	PrivateLinkConnectionService_DeletePrivateLinkConnection_FullMethodName = "/global.nextgen.v1.PrivateLinkConnectionService/DeletePrivateLinkConnection"
)

// PrivateLinkConnectionServiceClient is the client API for PrivateLinkConnectionService 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 PrivateLinkConnectionServiceClient interface {
	CreatePrivateLinkService(ctx context.Context, in *CreatePrivateLinkServiceRequest, opts ...grpc.CallOption) (*PrivateLinkService, error)
	ListPrivateLinkServices(ctx context.Context, in *ListPrivateLinkServicesRequest, opts ...grpc.CallOption) (*ListPrivateLinkServicesResponse, error)
	DeletePrivateLinkService(ctx context.Context, in *DeletePrivateLinkServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CreatePrivateLinkConnection(ctx context.Context, in *CreatePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
	GetPrivateLinkConnection(ctx context.Context, in *GetPrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
	ListPrivateLinkConnections(ctx context.Context, in *ListPrivateLinkConnectionsRequest, opts ...grpc.CallOption) (*ListPrivateLinkConnectionsResponse, error)
	DeletePrivateLinkConnection(ctx context.Context, in *DeletePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
}

type privateLinkConnectionServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewPrivateLinkConnectionServiceClient(cc grpc.ClientConnInterface) PrivateLinkConnectionServiceClient {
	return &privateLinkConnectionServiceClient{cc}
}

func (c *privateLinkConnectionServiceClient) CreatePrivateLinkService(ctx context.Context, in *CreatePrivateLinkServiceRequest, opts ...grpc.CallOption) (*PrivateLinkService, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkService)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_CreatePrivateLinkService_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkConnectionServiceClient) ListPrivateLinkServices(ctx context.Context, in *ListPrivateLinkServicesRequest, opts ...grpc.CallOption) (*ListPrivateLinkServicesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPrivateLinkServicesResponse)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_ListPrivateLinkServices_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

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

func (c *privateLinkConnectionServiceClient) CreatePrivateLinkConnection(ctx context.Context, in *CreatePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkConnection)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_CreatePrivateLinkConnection_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkConnectionServiceClient) GetPrivateLinkConnection(ctx context.Context, in *GetPrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkConnection)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_GetPrivateLinkConnection_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkConnectionServiceClient) ListPrivateLinkConnections(ctx context.Context, in *ListPrivateLinkConnectionsRequest, opts ...grpc.CallOption) (*ListPrivateLinkConnectionsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPrivateLinkConnectionsResponse)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_ListPrivateLinkConnections_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *privateLinkConnectionServiceClient) DeletePrivateLinkConnection(ctx context.Context, in *DeletePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PrivateLinkConnection)
	err := c.cc.Invoke(ctx, PrivateLinkConnectionService_DeletePrivateLinkConnection_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PrivateLinkConnectionServiceServer is the server API for PrivateLinkConnectionService service.
// All implementations should embed UnimplementedPrivateLinkConnectionServiceServer
// for forward compatibility
type PrivateLinkConnectionServiceServer interface {
	CreatePrivateLinkService(context.Context, *CreatePrivateLinkServiceRequest) (*PrivateLinkService, error)
	ListPrivateLinkServices(context.Context, *ListPrivateLinkServicesRequest) (*ListPrivateLinkServicesResponse, error)
	DeletePrivateLinkService(context.Context, *DeletePrivateLinkServiceRequest) (*emptypb.Empty, error)
	CreatePrivateLinkConnection(context.Context, *CreatePrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
	GetPrivateLinkConnection(context.Context, *GetPrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
	ListPrivateLinkConnections(context.Context, *ListPrivateLinkConnectionsRequest) (*ListPrivateLinkConnectionsResponse, error)
	DeletePrivateLinkConnection(context.Context, *DeletePrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
}

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

func (UnimplementedPrivateLinkConnectionServiceServer) CreatePrivateLinkService(context.Context, *CreatePrivateLinkServiceRequest) (*PrivateLinkService, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePrivateLinkService not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) ListPrivateLinkServices(context.Context, *ListPrivateLinkServicesRequest) (*ListPrivateLinkServicesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPrivateLinkServices not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) DeletePrivateLinkService(context.Context, *DeletePrivateLinkServiceRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeletePrivateLinkService not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) CreatePrivateLinkConnection(context.Context, *CreatePrivateLinkConnectionRequest) (*PrivateLinkConnection, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePrivateLinkConnection not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) GetPrivateLinkConnection(context.Context, *GetPrivateLinkConnectionRequest) (*PrivateLinkConnection, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPrivateLinkConnection not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) ListPrivateLinkConnections(context.Context, *ListPrivateLinkConnectionsRequest) (*ListPrivateLinkConnectionsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPrivateLinkConnections not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) DeletePrivateLinkConnection(context.Context, *DeletePrivateLinkConnectionRequest) (*PrivateLinkConnection, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeletePrivateLinkConnection not implemented")
}

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

func RegisterPrivateLinkConnectionServiceServer(s grpc.ServiceRegistrar, srv PrivateLinkConnectionServiceServer) {
	s.RegisterService(&PrivateLinkConnectionService_ServiceDesc, srv)
}

func _PrivateLinkConnectionService_CreatePrivateLinkService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreatePrivateLinkServiceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).CreatePrivateLinkService(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_CreatePrivateLinkService_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).CreatePrivateLinkService(ctx, req.(*CreatePrivateLinkServiceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_ListPrivateLinkServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPrivateLinkServicesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).ListPrivateLinkServices(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_ListPrivateLinkServices_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).ListPrivateLinkServices(ctx, req.(*ListPrivateLinkServicesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_DeletePrivateLinkService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeletePrivateLinkServiceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).DeletePrivateLinkService(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_DeletePrivateLinkService_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).DeletePrivateLinkService(ctx, req.(*DeletePrivateLinkServiceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_CreatePrivateLinkConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreatePrivateLinkConnectionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).CreatePrivateLinkConnection(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_CreatePrivateLinkConnection_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).CreatePrivateLinkConnection(ctx, req.(*CreatePrivateLinkConnectionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_GetPrivateLinkConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPrivateLinkConnectionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).GetPrivateLinkConnection(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_GetPrivateLinkConnection_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).GetPrivateLinkConnection(ctx, req.(*GetPrivateLinkConnectionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_ListPrivateLinkConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPrivateLinkConnectionsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).ListPrivateLinkConnections(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_ListPrivateLinkConnections_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).ListPrivateLinkConnections(ctx, req.(*ListPrivateLinkConnectionsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PrivateLinkConnectionService_DeletePrivateLinkConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeletePrivateLinkConnectionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).DeletePrivateLinkConnection(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_DeletePrivateLinkConnection_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).DeletePrivateLinkConnection(ctx, req.(*DeletePrivateLinkConnectionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// PrivateLinkConnectionService_ServiceDesc is the grpc.ServiceDesc for PrivateLinkConnectionService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PrivateLinkConnectionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "global.nextgen.v1.PrivateLinkConnectionService",
	HandlerType: (*PrivateLinkConnectionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePrivateLinkService",
			Handler:    _PrivateLinkConnectionService_CreatePrivateLinkService_Handler,
		},
		{
			MethodName: "ListPrivateLinkServices",
			Handler:    _PrivateLinkConnectionService_ListPrivateLinkServices_Handler,
		},
		{
			MethodName: "DeletePrivateLinkService",
			Handler:    _PrivateLinkConnectionService_DeletePrivateLinkService_Handler,
		},
		{
			MethodName: "CreatePrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_CreatePrivateLinkConnection_Handler,
		},
		{
			MethodName: "GetPrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_GetPrivateLinkConnection_Handler,
		},
		{
			MethodName: "ListPrivateLinkConnections",
			Handler:    _PrivateLinkConnectionService_ListPrivateLinkConnections_Handler,
		},
		{
			MethodName: "DeletePrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_DeletePrivateLinkConnection_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "global/nextgen/v1/privatelink.proto",
}
