1179 lines
35 KiB
Go
1179 lines
35 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.29.1
|
||
|
// protoc v3.20.3
|
||
|
// source: files.proto
|
||
|
|
||
|
package files
|
||
|
|
||
|
import (
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
type FileListReq struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // 目标文件夹路径
|
||
|
UserSpacePath string `protobuf:"bytes,2,opt,name=UserSpacePath,proto3" json:"UserSpacePath,omitempty"` // 用户空间的路径
|
||
|
Sorting *Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *FileListReq) Reset() {
|
||
|
*x = FileListReq{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *FileListReq) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*FileListReq) ProtoMessage() {}
|
||
|
|
||
|
func (x *FileListReq) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[0]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use FileListReq.ProtoReflect.Descriptor instead.
|
||
|
func (*FileListReq) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *FileListReq) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListReq) GetUserSpacePath() string {
|
||
|
if x != nil {
|
||
|
return x.UserSpacePath
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListReq) GetSorting() *Sorting {
|
||
|
if x != nil {
|
||
|
return x.Sorting
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type Items struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||
|
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||
|
Extension string `protobuf:"bytes,4,opt,name=extension,proto3" json:"extension,omitempty"`
|
||
|
Modified string `protobuf:"bytes,5,opt,name=modified,proto3" json:"modified,omitempty"`
|
||
|
Mode string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`
|
||
|
IsDir bool `protobuf:"varint,7,opt,name=isDir,proto3" json:"isDir,omitempty"`
|
||
|
IsSymlink bool `protobuf:"varint,8,opt,name=isSymlink,proto3" json:"isSymlink,omitempty"`
|
||
|
Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Items) Reset() {
|
||
|
*x = Items{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Items) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Items) ProtoMessage() {}
|
||
|
|
||
|
func (x *Items) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[1]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Items.ProtoReflect.Descriptor instead.
|
||
|
func (*Items) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetName() string {
|
||
|
if x != nil {
|
||
|
return x.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetSize() int64 {
|
||
|
if x != nil {
|
||
|
return x.Size
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetExtension() string {
|
||
|
if x != nil {
|
||
|
return x.Extension
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetModified() string {
|
||
|
if x != nil {
|
||
|
return x.Modified
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetMode() string {
|
||
|
if x != nil {
|
||
|
return x.Mode
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetIsDir() bool {
|
||
|
if x != nil {
|
||
|
return x.IsDir
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetIsSymlink() bool {
|
||
|
if x != nil {
|
||
|
return x.IsSymlink
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *Items) GetType() string {
|
||
|
if x != nil {
|
||
|
return x.Type
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type Sorting struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
By string `protobuf:"bytes,1,opt,name=by,proto3" json:"by,omitempty"`
|
||
|
Asc bool `protobuf:"varint,2,opt,name=asc,proto3" json:"asc,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Sorting) Reset() {
|
||
|
*x = Sorting{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Sorting) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Sorting) ProtoMessage() {}
|
||
|
|
||
|
func (x *Sorting) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[2]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Sorting.ProtoReflect.Descriptor instead.
|
||
|
func (*Sorting) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *Sorting) GetBy() string {
|
||
|
if x != nil {
|
||
|
return x.By
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Sorting) GetAsc() bool {
|
||
|
if x != nil {
|
||
|
return x.Asc
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
type FileListResp struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Items []*Items `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||
|
NumDirs int32 `protobuf:"varint,2,opt,name=numDirs,proto3" json:"numDirs,omitempty"`
|
||
|
NumFiles int32 `protobuf:"varint,3,opt,name=numFiles,proto3" json:"numFiles,omitempty"`
|
||
|
Sorting *Sorting `protobuf:"bytes,4,opt,name=sorting,proto3" json:"sorting,omitempty"`
|
||
|
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
||
|
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
|
||
|
Extension string `protobuf:"bytes,8,opt,name=extension,proto3" json:"extension,omitempty"`
|
||
|
Modified string `protobuf:"bytes,9,opt,name=modified,proto3" json:"modified,omitempty"`
|
||
|
Mode string `protobuf:"bytes,10,opt,name=mode,proto3" json:"mode,omitempty"`
|
||
|
IsDir bool `protobuf:"varint,11,opt,name=isDir,proto3" json:"isDir,omitempty"`
|
||
|
IsSymlink bool `protobuf:"varint,12,opt,name=isSymlink,proto3" json:"isSymlink,omitempty"`
|
||
|
Type string `protobuf:"bytes,13,opt,name=type,proto3" json:"type,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) Reset() {
|
||
|
*x = FileListResp{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*FileListResp) ProtoMessage() {}
|
||
|
|
||
|
func (x *FileListResp) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[3]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use FileListResp.ProtoReflect.Descriptor instead.
|
||
|
func (*FileListResp) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetItems() []*Items {
|
||
|
if x != nil {
|
||
|
return x.Items
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetNumDirs() int32 {
|
||
|
if x != nil {
|
||
|
return x.NumDirs
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetNumFiles() int32 {
|
||
|
if x != nil {
|
||
|
return x.NumFiles
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetSorting() *Sorting {
|
||
|
if x != nil {
|
||
|
return x.Sorting
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetName() string {
|
||
|
if x != nil {
|
||
|
return x.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetSize() int64 {
|
||
|
if x != nil {
|
||
|
return x.Size
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetExtension() string {
|
||
|
if x != nil {
|
||
|
return x.Extension
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetModified() string {
|
||
|
if x != nil {
|
||
|
return x.Modified
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetMode() string {
|
||
|
if x != nil {
|
||
|
return x.Mode
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetIsDir() bool {
|
||
|
if x != nil {
|
||
|
return x.IsDir
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetIsSymlink() bool {
|
||
|
if x != nil {
|
||
|
return x.IsSymlink
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *FileListResp) GetType() string {
|
||
|
if x != nil {
|
||
|
return x.Type
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type CreateReq struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
UserSpacePath string `protobuf:"bytes,2,opt,name=userSpacePath,proto3" json:"userSpacePath,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *CreateReq) Reset() {
|
||
|
*x = CreateReq{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *CreateReq) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*CreateReq) ProtoMessage() {}
|
||
|
|
||
|
func (x *CreateReq) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[4]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.
|
||
|
func (*CreateReq) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *CreateReq) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *CreateReq) GetUserSpacePath() string {
|
||
|
if x != nil {
|
||
|
return x.UserSpacePath
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type CreateResp struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
}
|
||
|
|
||
|
func (x *CreateResp) Reset() {
|
||
|
*x = CreateResp{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[5]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *CreateResp) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*CreateResp) ProtoMessage() {}
|
||
|
|
||
|
func (x *CreateResp) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[5]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use CreateResp.ProtoReflect.Descriptor instead.
|
||
|
func (*CreateResp) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{5}
|
||
|
}
|
||
|
|
||
|
type DeleteReq struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
UserSpacePath string `protobuf:"bytes,2,opt,name=userSpacePath,proto3" json:"userSpacePath,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *DeleteReq) Reset() {
|
||
|
*x = DeleteReq{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[6]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *DeleteReq) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*DeleteReq) ProtoMessage() {}
|
||
|
|
||
|
func (x *DeleteReq) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[6]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.
|
||
|
func (*DeleteReq) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{6}
|
||
|
}
|
||
|
|
||
|
func (x *DeleteReq) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *DeleteReq) GetUserSpacePath() string {
|
||
|
if x != nil {
|
||
|
return x.UserSpacePath
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type DeleteResp struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
}
|
||
|
|
||
|
func (x *DeleteResp) Reset() {
|
||
|
*x = DeleteResp{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[7]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *DeleteResp) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*DeleteResp) ProtoMessage() {}
|
||
|
|
||
|
func (x *DeleteResp) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[7]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use DeleteResp.ProtoReflect.Descriptor instead.
|
||
|
func (*DeleteResp) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{7}
|
||
|
}
|
||
|
|
||
|
type UploadReq struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
UserSpacePath string `protobuf:"bytes,2,opt,name=userSpacePath,proto3" json:"userSpacePath,omitempty"`
|
||
|
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *UploadReq) Reset() {
|
||
|
*x = UploadReq{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[8]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *UploadReq) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*UploadReq) ProtoMessage() {}
|
||
|
|
||
|
func (x *UploadReq) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[8]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use UploadReq.ProtoReflect.Descriptor instead.
|
||
|
func (*UploadReq) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{8}
|
||
|
}
|
||
|
|
||
|
func (x *UploadReq) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *UploadReq) GetUserSpacePath() string {
|
||
|
if x != nil {
|
||
|
return x.UserSpacePath
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *UploadReq) GetContent() []byte {
|
||
|
if x != nil {
|
||
|
return x.Content
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type UploadResp struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
}
|
||
|
|
||
|
func (x *UploadResp) Reset() {
|
||
|
*x = UploadResp{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[9]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *UploadResp) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*UploadResp) ProtoMessage() {}
|
||
|
|
||
|
func (x *UploadResp) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[9]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use UploadResp.ProtoReflect.Descriptor instead.
|
||
|
func (*UploadResp) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{9}
|
||
|
}
|
||
|
|
||
|
type SearchReq struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
UserSpacePath string `protobuf:"bytes,2,opt,name=userSpacePath,proto3" json:"userSpacePath,omitempty"`
|
||
|
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *SearchReq) Reset() {
|
||
|
*x = SearchReq{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[10]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *SearchReq) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*SearchReq) ProtoMessage() {}
|
||
|
|
||
|
func (x *SearchReq) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[10]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use SearchReq.ProtoReflect.Descriptor instead.
|
||
|
func (*SearchReq) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{10}
|
||
|
}
|
||
|
|
||
|
func (x *SearchReq) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *SearchReq) GetUserSpacePath() string {
|
||
|
if x != nil {
|
||
|
return x.UserSpacePath
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *SearchReq) GetQuery() string {
|
||
|
if x != nil {
|
||
|
return x.Query
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type SearchResp struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Items []*SearchResp_Nested `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp) Reset() {
|
||
|
*x = SearchResp{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[11]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*SearchResp) ProtoMessage() {}
|
||
|
|
||
|
func (x *SearchResp) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[11]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use SearchResp.ProtoReflect.Descriptor instead.
|
||
|
func (*SearchResp) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{11}
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp) GetItems() []*SearchResp_Nested {
|
||
|
if x != nil {
|
||
|
return x.Items
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type SearchResp_Nested struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Dir bool `protobuf:"varint,1,opt,name=dir,proto3" json:"dir,omitempty"`
|
||
|
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp_Nested) Reset() {
|
||
|
*x = SearchResp_Nested{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_files_proto_msgTypes[12]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp_Nested) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*SearchResp_Nested) ProtoMessage() {}
|
||
|
|
||
|
func (x *SearchResp_Nested) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_files_proto_msgTypes[12]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use SearchResp_Nested.ProtoReflect.Descriptor instead.
|
||
|
func (*SearchResp_Nested) Descriptor() ([]byte, []int) {
|
||
|
return file_files_proto_rawDescGZIP(), []int{11, 0}
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp_Nested) GetDir() bool {
|
||
|
if x != nil {
|
||
|
return x.Dir
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *SearchResp_Nested) GetPath() string {
|
||
|
if x != nil {
|
||
|
return x.Path
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
var File_files_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_files_proto_rawDesc = []byte{
|
||
|
0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x66,
|
||
|
0x69, 0x6c, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74,
|
||
|
0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x53,
|
||
|
0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
|
||
|
0x55, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x28, 0x0a,
|
||
|
0x07, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
|
||
|
0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07,
|
||
|
0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xd9, 0x01, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d,
|
||
|
0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
||
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
|
||
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a,
|
||
|
0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d,
|
||
|
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d,
|
||
|
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18,
|
||
|
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69,
|
||
|
0x73, 0x44, 0x69, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x44, 0x69,
|
||
|
0x72, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08,
|
||
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x12,
|
||
|
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||
|
0x79, 0x70, 0x65, 0x22, 0x2b, 0x0a, 0x07, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x0e,
|
||
|
0x0a, 0x02, 0x62, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x62, 0x79, 0x12, 0x10,
|
||
|
0x0a, 0x03, 0x61, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63,
|
||
|
0x22, 0xe4, 0x02, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
|
||
|
0x70, 0x12, 0x22, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||
|
0x32, 0x0c, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x05,
|
||
|
0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x75, 0x6d, 0x44, 0x69, 0x72, 0x73,
|
||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x44, 0x69, 0x72, 0x73, 0x12,
|
||
|
0x1a, 0x0a, 0x08, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||
|
0x05, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x07, 0x73,
|
||
|
0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66,
|
||
|
0x69, 0x6c, 0x65, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x6f,
|
||
|
0x72, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20,
|
||
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
||
|
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a,
|
||
|
0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a,
|
||
|
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08,
|
||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||
|
0x1a, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d,
|
||
|
0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12,
|
||
|
0x14, 0x0a, 0x05, 0x69, 0x73, 0x44, 0x69, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
||
|
0x69, 0x73, 0x44, 0x69, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x79, 0x6d, 0x6c, 0x69,
|
||
|
0x6e, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x79, 0x6d, 0x6c,
|
||
|
0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x45, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||
|
0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01,
|
||
|
0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72,
|
||
|
0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x0c,
|
||
|
0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x45, 0x0a, 0x09,
|
||
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
|
||
|
0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a,
|
||
|
0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02,
|
||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50,
|
||
|
0x61, 0x74, 0x68, 0x22, 0x0c, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73,
|
||
|
0x70, 0x22, 0x5f, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x12,
|
||
|
0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
|
||
|
0x74, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50,
|
||
|
0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53,
|
||
|
0x70, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
|
||
|
0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
|
||
|
0x6e, 0x74, 0x22, 0x0c, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70,
|
||
|
0x22, 0x5b, 0x0a, 0x09, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a,
|
||
|
0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74,
|
||
|
0x68, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70, 0x61, 0x63, 0x65, 0x50, 0x61,
|
||
|
0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x70,
|
||
|
0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79,
|
||
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x6c, 0x0a,
|
||
|
0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x69,
|
||
|
0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x69, 0x6c,
|
||
|
0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4e, 0x65,
|
||
|
0x73, 0x74, 0x65, 0x64, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x2e, 0x0a, 0x06, 0x4e,
|
||
|
0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01,
|
||
|
0x28, 0x08, 0x52, 0x03, 0x64, 0x69, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18,
|
||
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x32, 0xfd, 0x01, 0x0a, 0x04,
|
||
|
0x46, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x2e, 0x66,
|
||
|
0x69, 0x6c, 0x65, 0x73, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
||
|
0x1a, 0x13, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73,
|
||
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||
|
0x65, 0x12, 0x10, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||
|
0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
||
|
0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65,
|
||
|
0x74, 0x65, 0x12, 0x10, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
||
|
0x65, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c,
|
||
|
0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x06, 0x55, 0x70, 0x6c,
|
||
|
0x6f, 0x61, 0x64, 0x12, 0x10, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x6c, 0x6f,
|
||
|
0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x55, 0x70,
|
||
|
0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x06, 0x53, 0x65,
|
||
|
0x61, 0x72, 0x63, 0x68, 0x12, 0x10, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61,
|
||
|
0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x73,
|
||
|
0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e,
|
||
|
0x2f, 0x3b, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_files_proto_rawDescOnce sync.Once
|
||
|
file_files_proto_rawDescData = file_files_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_files_proto_rawDescGZIP() []byte {
|
||
|
file_files_proto_rawDescOnce.Do(func() {
|
||
|
file_files_proto_rawDescData = protoimpl.X.CompressGZIP(file_files_proto_rawDescData)
|
||
|
})
|
||
|
return file_files_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_files_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||
|
var file_files_proto_goTypes = []interface{}{
|
||
|
(*FileListReq)(nil), // 0: files.FileListReq
|
||
|
(*Items)(nil), // 1: files.Items
|
||
|
(*Sorting)(nil), // 2: files.Sorting
|
||
|
(*FileListResp)(nil), // 3: files.FileListResp
|
||
|
(*CreateReq)(nil), // 4: files.CreateReq
|
||
|
(*CreateResp)(nil), // 5: files.CreateResp
|
||
|
(*DeleteReq)(nil), // 6: files.DeleteReq
|
||
|
(*DeleteResp)(nil), // 7: files.DeleteResp
|
||
|
(*UploadReq)(nil), // 8: files.UploadReq
|
||
|
(*UploadResp)(nil), // 9: files.UploadResp
|
||
|
(*SearchReq)(nil), // 10: files.searchReq
|
||
|
(*SearchResp)(nil), // 11: files.searchResp
|
||
|
(*SearchResp_Nested)(nil), // 12: files.searchResp.Nested
|
||
|
}
|
||
|
var file_files_proto_depIdxs = []int32{
|
||
|
2, // 0: files.FileListReq.sorting:type_name -> files.Sorting
|
||
|
1, // 1: files.FileListResp.items:type_name -> files.Items
|
||
|
2, // 2: files.FileListResp.sorting:type_name -> files.Sorting
|
||
|
12, // 3: files.searchResp.items:type_name -> files.searchResp.Nested
|
||
|
0, // 4: files.File.List:input_type -> files.FileListReq
|
||
|
4, // 5: files.File.Create:input_type -> files.CreateReq
|
||
|
6, // 6: files.File.Delete:input_type -> files.DeleteReq
|
||
|
8, // 7: files.File.Upload:input_type -> files.UploadReq
|
||
|
10, // 8: files.File.Search:input_type -> files.searchReq
|
||
|
3, // 9: files.File.List:output_type -> files.FileListResp
|
||
|
5, // 10: files.File.Create:output_type -> files.CreateResp
|
||
|
7, // 11: files.File.Delete:output_type -> files.DeleteResp
|
||
|
9, // 12: files.File.Upload:output_type -> files.UploadResp
|
||
|
11, // 13: files.File.Search:output_type -> files.searchResp
|
||
|
9, // [9:14] is the sub-list for method output_type
|
||
|
4, // [4:9] is the sub-list for method input_type
|
||
|
4, // [4:4] is the sub-list for extension type_name
|
||
|
4, // [4:4] is the sub-list for extension extendee
|
||
|
0, // [0:4] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_files_proto_init() }
|
||
|
func file_files_proto_init() {
|
||
|
if File_files_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_files_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*FileListReq); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Items); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Sorting); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*FileListResp); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*CreateReq); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*CreateResp); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*DeleteReq); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*DeleteResp); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*UploadReq); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*UploadResp); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*SearchReq); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*SearchResp); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_files_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*SearchResp_Nested); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_files_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 13,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 1,
|
||
|
},
|
||
|
GoTypes: file_files_proto_goTypes,
|
||
|
DependencyIndexes: file_files_proto_depIdxs,
|
||
|
MessageInfos: file_files_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_files_proto = out.File
|
||
|
file_files_proto_rawDesc = nil
|
||
|
file_files_proto_goTypes = nil
|
||
|
file_files_proto_depIdxs = nil
|
||
|
}
|