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

package pnd

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.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

const (
	PndService_GetPnd_FullMethodName        = "/gosdn.pnd.PndService/GetPnd"
	PndService_GetPndList_FullMethodName    = "/gosdn.pnd.PndService/GetPndList"
	PndService_CreatePndList_FullMethodName = "/gosdn.pnd.PndService/CreatePndList"
	PndService_DeletePnd_FullMethodName     = "/gosdn.pnd.PndService/DeletePnd"
)

// PndServiceClient is the client API for PndService 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 PndServiceClient interface {
	// Allows to request a specific Principal Network Domain.
	GetPnd(ctx context.Context, in *GetPndRequest, opts ...grpc.CallOption) (*GetPndResponse, error)
	// Allows to request all Principal Network Domains.
	GetPndList(ctx context.Context, in *GetPndListRequest, opts ...grpc.CallOption) (*GetPndListResponse, error)
	// Allows create a Principal Network Domain.
	CreatePndList(ctx context.Context, in *CreatePndListRequest, opts ...grpc.CallOption) (*CreatePndListResponse, error)
	// Allows to delete a specific Principal Network Domain.
	DeletePnd(ctx context.Context, in *DeletePndRequest, opts ...grpc.CallOption) (*DeletePndResponse, error)
}

type pndServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewPndServiceClient(cc grpc.ClientConnInterface) PndServiceClient {
	return &pndServiceClient{cc}
}

func (c *pndServiceClient) GetPnd(ctx context.Context, in *GetPndRequest, opts ...grpc.CallOption) (*GetPndResponse, error) {
	out := new(GetPndResponse)
	err := c.cc.Invoke(ctx, PndService_GetPnd_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *pndServiceClient) GetPndList(ctx context.Context, in *GetPndListRequest, opts ...grpc.CallOption) (*GetPndListResponse, error) {
	out := new(GetPndListResponse)
	err := c.cc.Invoke(ctx, PndService_GetPndList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *pndServiceClient) CreatePndList(ctx context.Context, in *CreatePndListRequest, opts ...grpc.CallOption) (*CreatePndListResponse, error) {
	out := new(CreatePndListResponse)
	err := c.cc.Invoke(ctx, PndService_CreatePndList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *pndServiceClient) DeletePnd(ctx context.Context, in *DeletePndRequest, opts ...grpc.CallOption) (*DeletePndResponse, error) {
	out := new(DeletePndResponse)
	err := c.cc.Invoke(ctx, PndService_DeletePnd_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PndServiceServer is the server API for PndService service.
// All implementations must embed UnimplementedPndServiceServer
// for forward compatibility
type PndServiceServer interface {
	// Allows to request a specific Principal Network Domain.
	GetPnd(context.Context, *GetPndRequest) (*GetPndResponse, error)
	// Allows to request all Principal Network Domains.
	GetPndList(context.Context, *GetPndListRequest) (*GetPndListResponse, error)
	// Allows create a Principal Network Domain.
	CreatePndList(context.Context, *CreatePndListRequest) (*CreatePndListResponse, error)
	// Allows to delete a specific Principal Network Domain.
	DeletePnd(context.Context, *DeletePndRequest) (*DeletePndResponse, error)
	mustEmbedUnimplementedPndServiceServer()
}

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

func (UnimplementedPndServiceServer) GetPnd(context.Context, *GetPndRequest) (*GetPndResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPnd not implemented")
}
func (UnimplementedPndServiceServer) GetPndList(context.Context, *GetPndListRequest) (*GetPndListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPndList not implemented")
}
func (UnimplementedPndServiceServer) CreatePndList(context.Context, *CreatePndListRequest) (*CreatePndListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreatePndList not implemented")
}
func (UnimplementedPndServiceServer) DeletePnd(context.Context, *DeletePndRequest) (*DeletePndResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeletePnd not implemented")
}
func (UnimplementedPndServiceServer) mustEmbedUnimplementedPndServiceServer() {}

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

func RegisterPndServiceServer(s grpc.ServiceRegistrar, srv PndServiceServer) {
	s.RegisterService(&PndService_ServiceDesc, srv)
}

func _PndService_GetPnd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPndRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PndServiceServer).GetPnd(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PndService_GetPnd_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PndServiceServer).GetPnd(ctx, req.(*GetPndRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PndService_GetPndList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPndListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PndServiceServer).GetPndList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PndService_GetPndList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PndServiceServer).GetPndList(ctx, req.(*GetPndListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PndService_CreatePndList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreatePndListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PndServiceServer).CreatePndList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PndService_CreatePndList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PndServiceServer).CreatePndList(ctx, req.(*CreatePndListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PndService_DeletePnd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeletePndRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PndServiceServer).DeletePnd(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PndService_DeletePnd_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PndServiceServer).DeletePnd(ctx, req.(*DeletePndRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// PndService_ServiceDesc is the grpc.ServiceDesc for PndService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PndService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gosdn.pnd.PndService",
	HandlerType: (*PndServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPnd",
			Handler:    _PndService_GetPnd_Handler,
		},
		{
			MethodName: "GetPndList",
			Handler:    _PndService_GetPndList_Handler,
		},
		{
			MethodName: "CreatePndList",
			Handler:    _PndService_CreatePndList_Handler,
		},
		{
			MethodName: "DeletePnd",
			Handler:    _PndService_DeletePnd_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gosdn/pnd/pnd.proto",
}
