// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.2
// - protoc             v7.35.1
// source: module/base/cloud/proto/disk.proto

package cloud

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 (
	Disk_CreateDir_FullMethodName   = "/cloud.Disk/CreateDir"
	Disk_GetDir_FullMethodName      = "/cloud.Disk/GetDir"
	Disk_UpdateDir_FullMethodName   = "/cloud.Disk/UpdateDir"
	Disk_DeleteDir_FullMethodName   = "/cloud.Disk/DeleteDir"
	Disk_ListDirs_FullMethodName    = "/cloud.Disk/ListDirs"
	Disk_GetDirTree_FullMethodName  = "/cloud.Disk/GetDirTree"
	Disk_MoveDir_FullMethodName     = "/cloud.Disk/MoveDir"
	Disk_UploadFile_FullMethodName  = "/cloud.Disk/UploadFile"
	Disk_GetFile_FullMethodName     = "/cloud.Disk/GetFile"
	Disk_UpdateFile_FullMethodName  = "/cloud.Disk/UpdateFile"
	Disk_DeleteFile_FullMethodName  = "/cloud.Disk/DeleteFile"
	Disk_ListFiles_FullMethodName   = "/cloud.Disk/ListFiles"
	Disk_MoveFile_FullMethodName    = "/cloud.Disk/MoveFile"
	Disk_CopyFile_FullMethodName    = "/cloud.Disk/CopyFile"
	Disk_SearchFiles_FullMethodName = "/cloud.Disk/SearchFiles"
)

// DiskClient is the client API for Disk 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 DiskClient interface {
	// 创建目录
	CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 获取目录详情
	GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
	// 更新目录
	UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error)
	// 删除目录
	DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 获取目录列表
	ListDirs(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error)
	// 获取目录树
	GetDirTree(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
	// 移动目录
	MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 上传文件
	UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 获取文件详情
	GetFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error)
	// 更新文件
	UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error)
	// 删除文件
	DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 获取文件列表
	ListFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
	// 移动文件
	MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 复制文件
	CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// 搜索文件
	SearchFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
}

type diskClient struct {
	cc grpc.ClientConnInterface
}

func NewDiskClient(cc grpc.ClientConnInterface) DiskClient {
	return &diskClient{cc}
}

func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_CreateDir_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CloudDiskDirItem)
	err := c.cc.Invoke(ctx, Disk_GetDir_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_UpdateDir_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_DeleteDir_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) ListDirs(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListDirsResponse)
	err := c.cc.Invoke(ctx, Disk_ListDirs_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) GetDirTree(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CloudDiskDirItem)
	err := c.cc.Invoke(ctx, Disk_GetDirTree_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_MoveDir_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_UploadFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) GetFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CloudDiskFileItem)
	err := c.cc.Invoke(ctx, Disk_GetFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_UpdateFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_DeleteFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) ListFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListFilesResponse)
	err := c.cc.Invoke(ctx, Disk_ListFiles_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_MoveFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(StatusReply)
	err := c.cc.Invoke(ctx, Disk_CopyFile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *diskClient) SearchFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListFilesResponse)
	err := c.cc.Invoke(ctx, Disk_SearchFiles_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// DiskServer is the server API for Disk service.
// All implementations should embed UnimplementedDiskServer
// for forward compatibility.
//
// 云盘目录服务
type DiskServer interface {
	// 创建目录
	CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error)
	// 获取目录详情
	GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
	// 更新目录
	UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error)
	// 删除目录
	DeleteDir(context.Context, *IdentRequest) (*StatusReply, error)
	// 获取目录列表
	ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error)
	// 获取目录树
	GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
	// 移动目录
	MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error)
	// 上传文件
	UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error)
	// 获取文件详情
	GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error)
	// 更新文件
	UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error)
	// 删除文件
	DeleteFile(context.Context, *IdentRequest) (*StatusReply, error)
	// 获取文件列表
	ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
	// 移动文件
	MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error)
	// 复制文件
	CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error)
	// 搜索文件
	SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
}

// UnimplementedDiskServer should 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 UnimplementedDiskServer struct{}

func (UnimplementedDiskServer) CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method CreateDir not implemented")
}
func (UnimplementedDiskServer) GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
	return nil, status.Error(codes.Unimplemented, "method GetDir not implemented")
}
func (UnimplementedDiskServer) UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method UpdateDir not implemented")
}
func (UnimplementedDiskServer) DeleteDir(context.Context, *IdentRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method DeleteDir not implemented")
}
func (UnimplementedDiskServer) ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method ListDirs not implemented")
}
func (UnimplementedDiskServer) GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
	return nil, status.Error(codes.Unimplemented, "method GetDirTree not implemented")
}
func (UnimplementedDiskServer) MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method MoveDir not implemented")
}
func (UnimplementedDiskServer) UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method UploadFile not implemented")
}
func (UnimplementedDiskServer) GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error) {
	return nil, status.Error(codes.Unimplemented, "method GetFile not implemented")
}
func (UnimplementedDiskServer) UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method UpdateFile not implemented")
}
func (UnimplementedDiskServer) DeleteFile(context.Context, *IdentRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method DeleteFile not implemented")
}
func (UnimplementedDiskServer) ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method ListFiles not implemented")
}
func (UnimplementedDiskServer) MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method MoveFile not implemented")
}
func (UnimplementedDiskServer) CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method CopyFile not implemented")
}
func (UnimplementedDiskServer) SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method SearchFiles not implemented")
}
func (UnimplementedDiskServer) testEmbeddedByValue() {}

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

func RegisterDiskServer(s grpc.ServiceRegistrar, srv DiskServer) {
	// If the following call panics, it indicates UnimplementedDiskServer 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(&Disk_ServiceDesc, srv)
}

func _Disk_CreateDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateDirRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).CreateDir(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_CreateDir_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).CreateDir(ctx, req.(*CreateDirRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_GetDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).GetDir(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_GetDir_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).GetDir(ctx, req.(*IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_UpdateDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CloudDiskDirItem)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).UpdateDir(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_UpdateDir_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).UpdateDir(ctx, req.(*CloudDiskDirItem))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_DeleteDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).DeleteDir(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_DeleteDir_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).DeleteDir(ctx, req.(*IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_ListDirs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FetchRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).ListDirs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_ListDirs_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).ListDirs(ctx, req.(*FetchRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_GetDirTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).GetDirTree(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_GetDirTree_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).GetDirTree(ctx, req.(*IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_MoveDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MoveDirRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).MoveDir(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_MoveDir_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).MoveDir(ctx, req.(*MoveDirRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_UploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CloudDiskFileRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).UploadFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_UploadFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).UploadFile(ctx, req.(*CloudDiskFileRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).GetFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_GetFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).GetFile(ctx, req.(*IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_UpdateFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CloudDiskFileItem)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).UpdateFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_UpdateFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).UpdateFile(ctx, req.(*CloudDiskFileItem))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).DeleteFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_DeleteFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).DeleteFile(ctx, req.(*IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FetchRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).ListFiles(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_ListFiles_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).ListFiles(ctx, req.(*FetchRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_MoveFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MoveFileRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).MoveFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_MoveFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).MoveFile(ctx, req.(*MoveFileRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_CopyFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CopyFileRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).CopyFile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_CopyFile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).CopyFile(ctx, req.(*CopyFileRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Disk_SearchFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FetchRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DiskServer).SearchFiles(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Disk_SearchFiles_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DiskServer).SearchFiles(ctx, req.(*FetchRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// Disk_ServiceDesc is the grpc.ServiceDesc for Disk service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Disk_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.Disk",
	HandlerType: (*DiskServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDir",
			Handler:    _Disk_CreateDir_Handler,
		},
		{
			MethodName: "GetDir",
			Handler:    _Disk_GetDir_Handler,
		},
		{
			MethodName: "UpdateDir",
			Handler:    _Disk_UpdateDir_Handler,
		},
		{
			MethodName: "DeleteDir",
			Handler:    _Disk_DeleteDir_Handler,
		},
		{
			MethodName: "ListDirs",
			Handler:    _Disk_ListDirs_Handler,
		},
		{
			MethodName: "GetDirTree",
			Handler:    _Disk_GetDirTree_Handler,
		},
		{
			MethodName: "MoveDir",
			Handler:    _Disk_MoveDir_Handler,
		},
		{
			MethodName: "UploadFile",
			Handler:    _Disk_UploadFile_Handler,
		},
		{
			MethodName: "GetFile",
			Handler:    _Disk_GetFile_Handler,
		},
		{
			MethodName: "UpdateFile",
			Handler:    _Disk_UpdateFile_Handler,
		},
		{
			MethodName: "DeleteFile",
			Handler:    _Disk_DeleteFile_Handler,
		},
		{
			MethodName: "ListFiles",
			Handler:    _Disk_ListFiles_Handler,
		},
		{
			MethodName: "MoveFile",
			Handler:    _Disk_MoveFile_Handler,
		},
		{
			MethodName: "CopyFile",
			Handler:    _Disk_CopyFile_Handler,
		},
		{
			MethodName: "SearchFiles",
			Handler:    _Disk_SearchFiles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "module/base/cloud/proto/disk.proto",
}
