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

package console

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

const (
	PrivateLinkConnectionService_GetPrivateLinkConnection_FullMethodName    = "/console.PrivateLinkConnectionService/GetPrivateLinkConnection"
	PrivateLinkConnectionService_ListPrivateLinkConnections_FullMethodName  = "/console.PrivateLinkConnectionService/ListPrivateLinkConnections"
	PrivateLinkConnectionService_CreatePrivateLinkConnection_FullMethodName = "/console.PrivateLinkConnectionService/CreatePrivateLinkConnection"
	PrivateLinkConnectionService_DeletePrivateLinkConnection_FullMethodName = "/console.PrivateLinkConnectionService/DeletePrivateLinkConnection"
	PrivateLinkConnectionService_GetAvailabilityZones_FullMethodName        = "/console.PrivateLinkConnectionService/GetAvailabilityZones"
	PrivateLinkConnectionService_AttachDomains_FullMethodName               = "/console.PrivateLinkConnectionService/AttachDomains"
	PrivateLinkConnectionService_DetachDomains_FullMethodName               = "/console.PrivateLinkConnectionService/DetachDomains"
)

// 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.
//
// Service to manage private link connection for a cluster.
type PrivateLinkConnectionServiceClient interface {
	// Get a private link connection.
	GetPrivateLinkConnection(ctx context.Context, in *GetPrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
	// List private link connections.
	ListPrivateLinkConnections(ctx context.Context, in *ListPrivateLinkConnectionsRequest, opts ...grpc.CallOption) (*ListPrivateLinkConnectionsResponse, error)
	// Create a private link connection.
	CreatePrivateLinkConnection(ctx context.Context, in *CreatePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
	// Delete a private link connection.
	DeletePrivateLinkConnection(ctx context.Context, in *DeletePrivateLinkConnectionRequest, opts ...grpc.CallOption) (*PrivateLinkConnection, error)
	// Get account and availability zones information for private link connection.
	GetAvailabilityZones(ctx context.Context, in *GetAvailabilityZonesRequest, opts ...grpc.CallOption) (*GetAvailabilityZonesResponse, error)
	// Attach domains for private link connection.
	AttachDomains(ctx context.Context, in *AttachDomainsRequest, opts ...grpc.CallOption) (*AttachDomain, error)
	// Detach domains for private link connection.
	DetachDomains(ctx context.Context, in *DetachDomainsRequest, opts ...grpc.CallOption) (*AttachDomain, error)
}

type privateLinkConnectionServiceClient struct {
	cc grpc.ClientConnInterface
}

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

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) 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) 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
}

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

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

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

// PrivateLinkConnectionServiceServer is the server API for PrivateLinkConnectionService service.
// All implementations must embed UnimplementedPrivateLinkConnectionServiceServer
// for forward compatibility
//
// Service to manage private link connection for a cluster.
type PrivateLinkConnectionServiceServer interface {
	// Get a private link connection.
	GetPrivateLinkConnection(context.Context, *GetPrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
	// List private link connections.
	ListPrivateLinkConnections(context.Context, *ListPrivateLinkConnectionsRequest) (*ListPrivateLinkConnectionsResponse, error)
	// Create a private link connection.
	CreatePrivateLinkConnection(context.Context, *CreatePrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
	// Delete a private link connection.
	DeletePrivateLinkConnection(context.Context, *DeletePrivateLinkConnectionRequest) (*PrivateLinkConnection, error)
	// Get account and availability zones information for private link connection.
	GetAvailabilityZones(context.Context, *GetAvailabilityZonesRequest) (*GetAvailabilityZonesResponse, error)
	// Attach domains for private link connection.
	AttachDomains(context.Context, *AttachDomainsRequest) (*AttachDomain, error)
	// Detach domains for private link connection.
	DetachDomains(context.Context, *DetachDomainsRequest) (*AttachDomain, error)
	mustEmbedUnimplementedPrivateLinkConnectionServiceServer()
}

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

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) CreatePrivateLinkConnection(context.Context, *CreatePrivateLinkConnectionRequest) (*PrivateLinkConnection, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePrivateLinkConnection not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) DeletePrivateLinkConnection(context.Context, *DeletePrivateLinkConnectionRequest) (*PrivateLinkConnection, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeletePrivateLinkConnection not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) GetAvailabilityZones(context.Context, *GetAvailabilityZonesRequest) (*GetAvailabilityZonesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetAvailabilityZones not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) AttachDomains(context.Context, *AttachDomainsRequest) (*AttachDomain, error) {
	return nil, status.Errorf(codes.Unimplemented, "method AttachDomains not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) DetachDomains(context.Context, *DetachDomainsRequest) (*AttachDomain, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DetachDomains not implemented")
}
func (UnimplementedPrivateLinkConnectionServiceServer) mustEmbedUnimplementedPrivateLinkConnectionServiceServer() {
}

// 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_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_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_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)
}

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

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

func _PrivateLinkConnectionService_DetachDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DetachDomainsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PrivateLinkConnectionServiceServer).DetachDomains(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PrivateLinkConnectionService_DetachDomains_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PrivateLinkConnectionServiceServer).DetachDomains(ctx, req.(*DetachDomainsRequest))
	}
	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: "console.PrivateLinkConnectionService",
	HandlerType: (*PrivateLinkConnectionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_GetPrivateLinkConnection_Handler,
		},
		{
			MethodName: "ListPrivateLinkConnections",
			Handler:    _PrivateLinkConnectionService_ListPrivateLinkConnections_Handler,
		},
		{
			MethodName: "CreatePrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_CreatePrivateLinkConnection_Handler,
		},
		{
			MethodName: "DeletePrivateLinkConnection",
			Handler:    _PrivateLinkConnectionService_DeletePrivateLinkConnection_Handler,
		},
		{
			MethodName: "GetAvailabilityZones",
			Handler:    _PrivateLinkConnectionService_GetAvailabilityZones_Handler,
		},
		{
			MethodName: "AttachDomains",
			Handler:    _PrivateLinkConnectionService_AttachDomains_Handler,
		},
		{
			MethodName: "DetachDomains",
			Handler:    _PrivateLinkConnectionService_DetachDomains_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console/privatelink.proto",
}
