// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc             (unknown)
// source: runtime/v1/recycle_bin_mutation.proto

package runtimev1

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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9

const (
	RecycleBinMutationService_RestoreRecycleBin_FullMethodName = "/nexuscrm.runtime.v1.RecycleBinMutationService/RestoreRecycleBin"
	RecycleBinMutationService_PurgeRecycleBin_FullMethodName   = "/nexuscrm.runtime.v1.RecycleBinMutationService/PurgeRecycleBin"
)

// RecycleBinMutationServiceClient is the client API for RecycleBinMutationService 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.
//
// RecycleBinMutationService restores or permanently purges one deleted record.
// Product URL grammar and response/error projection remain caller-owned.
type RecycleBinMutationServiceClient interface {
	RestoreRecycleBin(ctx context.Context, in *RestoreRecycleBinRequest, opts ...grpc.CallOption) (*RestoreRecycleBinResponse, error)
	PurgeRecycleBin(ctx context.Context, in *PurgeRecycleBinRequest, opts ...grpc.CallOption) (*PurgeRecycleBinResponse, error)
}

type recycleBinMutationServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewRecycleBinMutationServiceClient(cc grpc.ClientConnInterface) RecycleBinMutationServiceClient {
	return &recycleBinMutationServiceClient{cc}
}

func (c *recycleBinMutationServiceClient) RestoreRecycleBin(ctx context.Context, in *RestoreRecycleBinRequest, opts ...grpc.CallOption) (*RestoreRecycleBinResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(RestoreRecycleBinResponse)
	err := c.cc.Invoke(ctx, RecycleBinMutationService_RestoreRecycleBin_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *recycleBinMutationServiceClient) PurgeRecycleBin(ctx context.Context, in *PurgeRecycleBinRequest, opts ...grpc.CallOption) (*PurgeRecycleBinResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PurgeRecycleBinResponse)
	err := c.cc.Invoke(ctx, RecycleBinMutationService_PurgeRecycleBin_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RecycleBinMutationServiceServer is the server API for RecycleBinMutationService service.
// All implementations must embed UnimplementedRecycleBinMutationServiceServer
// for forward compatibility.
//
// RecycleBinMutationService restores or permanently purges one deleted record.
// Product URL grammar and response/error projection remain caller-owned.
type RecycleBinMutationServiceServer interface {
	RestoreRecycleBin(context.Context, *RestoreRecycleBinRequest) (*RestoreRecycleBinResponse, error)
	PurgeRecycleBin(context.Context, *PurgeRecycleBinRequest) (*PurgeRecycleBinResponse, error)
	mustEmbedUnimplementedRecycleBinMutationServiceServer()
}

// UnimplementedRecycleBinMutationServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedRecycleBinMutationServiceServer struct{}

func (UnimplementedRecycleBinMutationServiceServer) RestoreRecycleBin(context.Context, *RestoreRecycleBinRequest) (*RestoreRecycleBinResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method RestoreRecycleBin not implemented")
}
func (UnimplementedRecycleBinMutationServiceServer) PurgeRecycleBin(context.Context, *PurgeRecycleBinRequest) (*PurgeRecycleBinResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method PurgeRecycleBin not implemented")
}
func (UnimplementedRecycleBinMutationServiceServer) mustEmbedUnimplementedRecycleBinMutationServiceServer() {
}
func (UnimplementedRecycleBinMutationServiceServer) testEmbeddedByValue() {}

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

func RegisterRecycleBinMutationServiceServer(s grpc.ServiceRegistrar, srv RecycleBinMutationServiceServer) {
	// If the following call panics, it indicates UnimplementedRecycleBinMutationServiceServer was
	// embedded by pointer and is nil.  This will cause panics if an
	// unimplemented method is ever invoked, so we test this at initialization
	// time to prevent it from happening at runtime later due to I/O.
	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
		t.testEmbeddedByValue()
	}
	s.RegisterService(&RecycleBinMutationService_ServiceDesc, srv)
}

func _RecycleBinMutationService_RestoreRecycleBin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RestoreRecycleBinRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RecycleBinMutationServiceServer).RestoreRecycleBin(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RecycleBinMutationService_RestoreRecycleBin_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RecycleBinMutationServiceServer).RestoreRecycleBin(ctx, req.(*RestoreRecycleBinRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RecycleBinMutationService_PurgeRecycleBin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PurgeRecycleBinRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RecycleBinMutationServiceServer).PurgeRecycleBin(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RecycleBinMutationService_PurgeRecycleBin_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RecycleBinMutationServiceServer).PurgeRecycleBin(ctx, req.(*PurgeRecycleBinRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// RecycleBinMutationService_ServiceDesc is the grpc.ServiceDesc for RecycleBinMutationService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RecycleBinMutationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nexuscrm.runtime.v1.RecycleBinMutationService",
	HandlerType: (*RecycleBinMutationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RestoreRecycleBin",
			Handler:    _RecycleBinMutationService_RestoreRecycleBin_Handler,
		},
		{
			MethodName: "PurgeRecycleBin",
			Handler:    _RecycleBinMutationService_PurgeRecycleBin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runtime/v1/recycle_bin_mutation.proto",
}
