// Code generated by protoc-gen-go. DO NOT EDIT.
// source: file_delete.proto

package rpc

import (
	context "context"
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	wrappers "github.com/golang/protobuf/ptypes/wrappers"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// FileDeleteRequest represent the file delete request
type FileDeleteRequest struct {
	Token                string                `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	FileUid              string                `protobuf:"bytes,2,opt,name=file_uid,json=fileUid,proto3" json:"file_uid,omitempty"`
	ForceDeleteIfDir     bool                  `protobuf:"varint,3,opt,name=force_delete_if_dir,json=forceDeleteIfDir,proto3" json:"force_delete_if_dir,omitempty"`
	Secret               *wrappers.StringValue `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (m *FileDeleteRequest) Reset()         { *m = FileDeleteRequest{} }
func (m *FileDeleteRequest) String() string { return proto.CompactTextString(m) }
func (*FileDeleteRequest) ProtoMessage()    {}
func (*FileDeleteRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_37676b62f991a3b0, []int{0}
}

func (m *FileDeleteRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_FileDeleteRequest.Unmarshal(m, b)
}
func (m *FileDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_FileDeleteRequest.Marshal(b, m, deterministic)
}
func (m *FileDeleteRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_FileDeleteRequest.Merge(m, src)
}
func (m *FileDeleteRequest) XXX_Size() int {
	return xxx_messageInfo_FileDeleteRequest.Size(m)
}
func (m *FileDeleteRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_FileDeleteRequest.DiscardUnknown(m)
}

var xxx_messageInfo_FileDeleteRequest proto.InternalMessageInfo

func (m *FileDeleteRequest) GetToken() string {
	if m != nil {
		return m.Token
	}
	return ""
}

func (m *FileDeleteRequest) GetFileUid() string {
	if m != nil {
		return m.FileUid
	}
	return ""
}

func (m *FileDeleteRequest) GetForceDeleteIfDir() bool {
	if m != nil {
		return m.ForceDeleteIfDir
	}
	return false
}

func (m *FileDeleteRequest) GetSecret() *wrappers.StringValue {
	if m != nil {
		return m.Secret
	}
	return nil
}

// FileDeleteResponse represent the file delete response
type FileDeleteResponse struct {
	RequestId            uint64   `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	File                 *File    `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *FileDeleteResponse) Reset()         { *m = FileDeleteResponse{} }
func (m *FileDeleteResponse) String() string { return proto.CompactTextString(m) }
func (*FileDeleteResponse) ProtoMessage()    {}
func (*FileDeleteResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_37676b62f991a3b0, []int{1}
}

func (m *FileDeleteResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_FileDeleteResponse.Unmarshal(m, b)
}
func (m *FileDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_FileDeleteResponse.Marshal(b, m, deterministic)
}
func (m *FileDeleteResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_FileDeleteResponse.Merge(m, src)
}
func (m *FileDeleteResponse) XXX_Size() int {
	return xxx_messageInfo_FileDeleteResponse.Size(m)
}
func (m *FileDeleteResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_FileDeleteResponse.DiscardUnknown(m)
}

var xxx_messageInfo_FileDeleteResponse proto.InternalMessageInfo

func (m *FileDeleteResponse) GetRequestId() uint64 {
	if m != nil {
		return m.RequestId
	}
	return 0
}

func (m *FileDeleteResponse) GetFile() *File {
	if m != nil {
		return m.File
	}
	return nil
}

func init() {
	proto.RegisterType((*FileDeleteRequest)(nil), "bigfile.file_delete.FileDeleteRequest")
	proto.RegisterType((*FileDeleteResponse)(nil), "bigfile.file_delete.FileDeleteResponse")
}

func init() { proto.RegisterFile("file_delete.proto", fileDescriptor_37676b62f991a3b0) }

var fileDescriptor_37676b62f991a3b0 = []byte{
	// 356 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x4f, 0x4f, 0xea, 0x40,
	0x14, 0xc5, 0xdf, 0x00, 0x8f, 0x07, 0x97, 0xc5, 0x93, 0x81, 0x45, 0x25, 0x8a, 0x84, 0x05, 0xb2,
	0x71, 0x48, 0xd0, 0x4f, 0xd0, 0x10, 0x13, 0xe2, 0xa6, 0xa9, 0xff, 0x12, 0x5d, 0x34, 0xb4, 0xbd,
	0xad, 0x13, 0x4b, 0xa7, 0x4e, 0xa7, 0x21, 0x7e, 0x1d, 0x77, 0xfa, 0x09, 0x5d, 0x9a, 0x4e, 0x5b,
	0x20, 0xd1, 0xc4, 0x55, 0x73, 0xcf, 0x39, 0xbd, 0xf7, 0x37, 0x07, 0xba, 0x01, 0x8f, 0xd0, 0xf1,
	0x31, 0x42, 0x85, 0x2c, 0x91, 0x42, 0x09, 0xda, 0x73, 0x79, 0x98, 0xab, 0x6c, 0xcf, 0x1a, 0x80,
	0x56, 0x74, 0x60, 0x30, 0x0c, 0x85, 0x08, 0x23, 0x9c, 0xe9, 0xc9, 0xcd, 0x82, 0xd9, 0x46, 0xae,
	0x92, 0x04, 0x65, 0x5a, 0x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x30, 0xe4, 0xea, 0x29, 0x73, 0x99, 0x27,
	0xd6, 0xb3, 0x32, 0xbf, 0xfd, 0xca, 0xc4, 0xfb, 0x24, 0xe4, 0xad, 0x56, 0x37, 0x2d, 0xfb, 0xa3,
	0x76, 0x62, 0x96, 0xeb, 0xac, 0xaa, 0xc6, 0x7b, 0x8c, 0xa2, 0xab, 0x58, 0x6c, 0xe2, 0x9b, 0xd7,
	0x04, 0x53, 0xb7, 0xa9, 0xef, 0x9c, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x88, 0x89, 0xf8, 0x74,
	0x4a, 0x02, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// FileDeleteClient is the client API for FileDelete service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FileDeleteClient interface {
	FileDelete(ctx context.Context, in *FileDeleteRequest, opts ...grpc.CallOption) (*FileDeleteResponse, error)
}

type fileDeleteClient struct {
	cc *grpc.ClientConn
}

func NewFileDeleteClient(cc *grpc.ClientConn) FileDeleteClient {
	return &fileDeleteClient{cc}
}

func (c *fileDeleteClient) FileDelete(ctx context.Context, in *FileDeleteRequest, opts ...grpc.CallOption) (*FileDeleteResponse, error) {
	out := new(FileDeleteResponse)
	err := c.cc.Invoke(ctx, "/bigfile.file_delete.FileDelete/fileDelete", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// FileDeleteServer is the server API for FileDelete service.
type FileDeleteServer interface {
	FileDelete(context.Context, *FileDeleteRequest) (*FileDeleteResponse, error)
}

// UnimplementedFileDeleteServer can be embedded to have forward compatible implementations.
type UnimplementedFileDeleteServer struct {
}

func (*UnimplementedFileDeleteServer) FileDelete(ctx context.Context, req *FileDeleteRequest) (*FileDeleteResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method FileDelete not implemented")
}

func RegisterFileDeleteServer(s *grpc.Server, srv FileDeleteServer) {
	s.RegisterService(&_FileDelete_serviceDesc, srv)
}

func _FileDelete_FileDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FileDeleteRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FileDeleteServer).FileDelete(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/bigfile.file_delete.FileDelete/FileDelete",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FileDeleteServer).FileDelete(ctx, req.(*FileDeleteRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _FileDelete_serviceDesc = grpc.ServiceDesc{
	ServiceName: "bigfile.file_delete.FileDelete",
	HandlerType: (*FileDeleteServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "fileDelete",
			Handler:    _FileDelete_FileDelete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "file_delete.proto",
}
