2835 lines
87 KiB
Go
2835 lines
87 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: file/v1/file.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// File messages
|
|
type UploadFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadFileRequest) Reset() {
|
|
*x = UploadFileRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadFileRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UploadFileRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadFileRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadFileRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadFileRequest) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UploadFileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadFileResponse) Reset() {
|
|
*x = UploadFileResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadFileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadFileResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadFileResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UploadFileResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadFileResponse) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DownloadFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownloadFileRequest) Reset() {
|
|
*x = DownloadFileRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownloadFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownloadFileRequest) ProtoMessage() {}
|
|
|
|
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*DownloadFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DownloadFileRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownloadFileRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DownloadFileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownloadFileResponse) Reset() {
|
|
*x = DownloadFileResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownloadFileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownloadFileResponse) ProtoMessage() {}
|
|
|
|
func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DownloadFileResponse.ProtoReflect.Descriptor instead.
|
|
func (*DownloadFileResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DownloadFileResponse) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownloadFileResponse) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownloadFileResponse) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListFilesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
|
MaxKeys int32 `protobuf:"varint,3,opt,name=max_keys,json=maxKeys,proto3" json:"max_keys,omitempty"`
|
|
ContinuationToken string `protobuf:"bytes,4,opt,name=continuation_token,json=continuationToken,proto3" json:"continuation_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListFilesRequest) Reset() {
|
|
*x = ListFilesRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListFilesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListFilesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListFilesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListFilesRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListFilesRequest) GetPrefix() string {
|
|
if x != nil {
|
|
return x.Prefix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListFilesRequest) GetMaxKeys() int32 {
|
|
if x != nil {
|
|
return x.MaxKeys
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListFilesRequest) GetContinuationToken() string {
|
|
if x != nil {
|
|
return x.ContinuationToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FileInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
LastModified string `protobuf:"bytes,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
|
|
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileInfo) Reset() {
|
|
*x = FileInfo{}
|
|
mi := &file_file_v1_file_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileInfo) ProtoMessage() {}
|
|
|
|
func (x *FileInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.
|
|
func (*FileInfo) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FileInfo) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileInfo) GetLastModified() string {
|
|
if x != nil {
|
|
return x.LastModified
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetEtag() string {
|
|
if x != nil {
|
|
return x.Etag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListFilesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
NextContinuationToken string `protobuf:"bytes,2,opt,name=next_continuation_token,json=nextContinuationToken,proto3" json:"next_continuation_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListFilesResponse) Reset() {
|
|
*x = ListFilesResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListFilesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListFilesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListFilesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListFilesResponse) GetFiles() []*FileInfo {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListFilesResponse) GetNextContinuationToken() string {
|
|
if x != nil {
|
|
return x.NextContinuationToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFilePreviewRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFilePreviewRequest) Reset() {
|
|
*x = GetFilePreviewRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFilePreviewRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFilePreviewRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFilePreviewRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFilePreviewRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFilePreviewRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetFilePreviewRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetFilePreviewRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFilePreviewResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PresignedUrl string `protobuf:"bytes,1,opt,name=presigned_url,json=presignedUrl,proto3" json:"presigned_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFilePreviewResponse) Reset() {
|
|
*x = GetFilePreviewResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFilePreviewResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFilePreviewResponse) ProtoMessage() {}
|
|
|
|
func (x *GetFilePreviewResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFilePreviewResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetFilePreviewResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetFilePreviewResponse) GetPresignedUrl() string {
|
|
if x != nil {
|
|
return x.PresignedUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileContentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileContentRequest) Reset() {
|
|
*x = GetFileContentRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileContentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileContentRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFileContentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFileContentRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFileContentRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetFileContentRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetFileContentRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileContentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileContentResponse) Reset() {
|
|
*x = GetFileContentResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileContentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileContentResponse) ProtoMessage() {}
|
|
|
|
func (x *GetFileContentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFileContentResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetFileContentResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetFileContentResponse) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteFileRequest) Reset() {
|
|
*x = DeleteFileRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteFileRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteFileRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteFileRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Multipart messages
|
|
type InitMultipartRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitMultipartRequest) Reset() {
|
|
*x = InitMultipartRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitMultipartRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitMultipartRequest) ProtoMessage() {}
|
|
|
|
func (x *InitMultipartRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InitMultipartRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitMultipartRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *InitMultipartRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitMultipartRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InitMultipartResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitMultipartResponse) Reset() {
|
|
*x = InitMultipartResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitMultipartResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitMultipartResponse) ProtoMessage() {}
|
|
|
|
func (x *InitMultipartResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InitMultipartResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitMultipartResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *InitMultipartResponse) GetUploadId() string {
|
|
if x != nil {
|
|
return x.UploadId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UploadPartRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
UploadId string `protobuf:"bytes,3,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
|
PartNumber int32 `protobuf:"varint,4,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
|
|
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadPartRequest) Reset() {
|
|
*x = UploadPartRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadPartRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadPartRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadPartRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadPartRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadPartRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *UploadPartRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadPartRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadPartRequest) GetUploadId() string {
|
|
if x != nil {
|
|
return x.UploadId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadPartRequest) GetPartNumber() int32 {
|
|
if x != nil {
|
|
return x.PartNumber
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadPartRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UploadPartResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Etag string `protobuf:"bytes,1,opt,name=etag,proto3" json:"etag,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadPartResponse) Reset() {
|
|
*x = UploadPartResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadPartResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadPartResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadPartResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadPartResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadPartResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *UploadPartResponse) GetEtag() string {
|
|
if x != nil {
|
|
return x.Etag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CompletedPart struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PartNumber int32 `protobuf:"varint,1,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
|
|
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CompletedPart) Reset() {
|
|
*x = CompletedPart{}
|
|
mi := &file_file_v1_file_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CompletedPart) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CompletedPart) ProtoMessage() {}
|
|
|
|
func (x *CompletedPart) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CompletedPart.ProtoReflect.Descriptor instead.
|
|
func (*CompletedPart) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *CompletedPart) GetPartNumber() int32 {
|
|
if x != nil {
|
|
return x.PartNumber
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CompletedPart) GetEtag() string {
|
|
if x != nil {
|
|
return x.Etag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CompleteMultipartRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
UploadId string `protobuf:"bytes,3,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
|
Parts []*CompletedPart `protobuf:"bytes,4,rep,name=parts,proto3" json:"parts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) Reset() {
|
|
*x = CompleteMultipartRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CompleteMultipartRequest) ProtoMessage() {}
|
|
|
|
func (x *CompleteMultipartRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CompleteMultipartRequest.ProtoReflect.Descriptor instead.
|
|
func (*CompleteMultipartRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) GetUploadId() string {
|
|
if x != nil {
|
|
return x.UploadId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CompleteMultipartRequest) GetParts() []*CompletedPart {
|
|
if x != nil {
|
|
return x.Parts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CompleteMultipartResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CompleteMultipartResponse) Reset() {
|
|
*x = CompleteMultipartResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CompleteMultipartResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CompleteMultipartResponse) ProtoMessage() {}
|
|
|
|
func (x *CompleteMultipartResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CompleteMultipartResponse.ProtoReflect.Descriptor instead.
|
|
func (*CompleteMultipartResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *CompleteMultipartResponse) GetLocation() string {
|
|
if x != nil {
|
|
return x.Location
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AbortMultipartRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
|
|
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key,omitempty"`
|
|
UploadId string `protobuf:"bytes,3,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AbortMultipartRequest) Reset() {
|
|
*x = AbortMultipartRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AbortMultipartRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AbortMultipartRequest) ProtoMessage() {}
|
|
|
|
func (x *AbortMultipartRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AbortMultipartRequest.ProtoReflect.Descriptor instead.
|
|
func (*AbortMultipartRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *AbortMultipartRequest) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AbortMultipartRequest) GetObjectKey() string {
|
|
if x != nil {
|
|
return x.ObjectKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AbortMultipartRequest) GetUploadId() string {
|
|
if x != nil {
|
|
return x.UploadId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Bucket messages
|
|
type CreateBucketRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateBucketRequest) Reset() {
|
|
*x = CreateBucketRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateBucketRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateBucketRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateBucketRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateBucketRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateBucketRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *CreateBucketRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListBucketsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Buckets []string `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListBucketsResponse) Reset() {
|
|
*x = ListBucketsResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListBucketsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListBucketsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListBucketsResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *ListBucketsResponse) GetBuckets() []string {
|
|
if x != nil {
|
|
return x.Buckets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteBucketRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteBucketRequest) Reset() {
|
|
*x = DeleteBucketRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteBucketRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteBucketRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteBucketRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteBucketRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteBucketRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *DeleteBucketRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Folder messages
|
|
type Folder struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
ParentId string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
OwnerId string `protobuf:"bytes,4,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Folder) Reset() {
|
|
*x = Folder{}
|
|
mi := &file_file_v1_file_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Folder) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Folder) ProtoMessage() {}
|
|
|
|
func (x *Folder) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Folder.ProtoReflect.Descriptor instead.
|
|
func (*Folder) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *Folder) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Folder) GetParentId() string {
|
|
if x != nil {
|
|
return x.ParentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Folder) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Folder) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Folder) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Folder) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FolderWithChildren struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
|
|
SubFolders []*Folder `protobuf:"bytes,2,rep,name=sub_folders,json=subFolders,proto3" json:"sub_folders,omitempty"`
|
|
Files []*FileMeta `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FolderWithChildren) Reset() {
|
|
*x = FolderWithChildren{}
|
|
mi := &file_file_v1_file_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FolderWithChildren) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FolderWithChildren) ProtoMessage() {}
|
|
|
|
func (x *FolderWithChildren) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FolderWithChildren.ProtoReflect.Descriptor instead.
|
|
func (*FolderWithChildren) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *FolderWithChildren) GetFolder() *Folder {
|
|
if x != nil {
|
|
return x.Folder
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FolderWithChildren) GetSubFolders() []*Folder {
|
|
if x != nil {
|
|
return x.SubFolders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FolderWithChildren) GetFiles() []*FileMeta {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateFolderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateFolderRequest) Reset() {
|
|
*x = CreateFolderRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateFolderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateFolderRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateFolderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateFolderRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateFolderRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *CreateFolderRequest) GetParentId() string {
|
|
if x != nil {
|
|
return x.ParentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFolderRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFolderRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFolderTreeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFolderTreeRequest) Reset() {
|
|
*x = GetFolderTreeRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFolderTreeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFolderTreeRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFolderTreeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFolderTreeRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFolderTreeRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *GetFolderTreeRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFolderTreeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFolderTreeResponse) Reset() {
|
|
*x = GetFolderTreeResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFolderTreeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFolderTreeResponse) ProtoMessage() {}
|
|
|
|
func (x *GetFolderTreeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFolderTreeResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetFolderTreeResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *GetFolderTreeResponse) GetFolders() []*Folder {
|
|
if x != nil {
|
|
return x.Folders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetFolderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFolderRequest) Reset() {
|
|
*x = GetFolderRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFolderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFolderRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFolderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFolderRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFolderRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *GetFolderRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetFolderRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RenameFolderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RenameFolderRequest) Reset() {
|
|
*x = RenameFolderRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RenameFolderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RenameFolderRequest) ProtoMessage() {}
|
|
|
|
func (x *RenameFolderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RenameFolderRequest.ProtoReflect.Descriptor instead.
|
|
func (*RenameFolderRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *RenameFolderRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RenameFolderRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RenameFolderRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteFolderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteFolderRequest) Reset() {
|
|
*x = DeleteFolderRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteFolderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteFolderRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteFolderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteFolderRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteFolderRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *DeleteFolderRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteFolderRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FileMeta struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
S3Key string `protobuf:"bytes,4,opt,name=s3_key,json=s3Key,proto3" json:"s3_key,omitempty"`
|
|
S3Bucket string `protobuf:"bytes,5,opt,name=s3_bucket,json=s3Bucket,proto3" json:"s3_bucket,omitempty"`
|
|
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
|
|
ContentType string `protobuf:"bytes,7,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
OwnerId string `protobuf:"bytes,8,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileMeta) Reset() {
|
|
*x = FileMeta{}
|
|
mi := &file_file_v1_file_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileMeta) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileMeta) ProtoMessage() {}
|
|
|
|
func (x *FileMeta) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileMeta.ProtoReflect.Descriptor instead.
|
|
func (*FileMeta) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *FileMeta) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetFolderId() string {
|
|
if x != nil {
|
|
return x.FolderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetS3Key() string {
|
|
if x != nil {
|
|
return x.S3Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetS3Bucket() string {
|
|
if x != nil {
|
|
return x.S3Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileMeta) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMeta) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UploadToFolderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
|
|
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
OwnerId string `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) Reset() {
|
|
*x = UploadToFolderRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadToFolderRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadToFolderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[32]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadToFolderRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadToFolderRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) GetFolderId() string {
|
|
if x != nil {
|
|
return x.FolderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadToFolderRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MoveFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
TargetFolderId string `protobuf:"bytes,2,opt,name=target_folder_id,json=targetFolderId,proto3" json:"target_folder_id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MoveFileRequest) Reset() {
|
|
*x = MoveFileRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MoveFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MoveFileRequest) ProtoMessage() {}
|
|
|
|
func (x *MoveFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[33]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MoveFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*MoveFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *MoveFileRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MoveFileRequest) GetTargetFolderId() string {
|
|
if x != nil {
|
|
return x.TargetFolderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MoveFileRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Share messages
|
|
type ShareLink struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
|
|
ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
|
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
|
|
ExpiresAt string `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
DownloadCount int32 `protobuf:"varint,7,opt,name=download_count,json=downloadCount,proto3" json:"download_count,omitempty"`
|
|
MaxDownloads int32 `protobuf:"varint,8,opt,name=max_downloads,json=maxDownloads,proto3" json:"max_downloads,omitempty"`
|
|
CreatedBy string `protobuf:"bytes,9,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ShareLink) Reset() {
|
|
*x = ShareLink{}
|
|
mi := &file_file_v1_file_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ShareLink) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShareLink) ProtoMessage() {}
|
|
|
|
func (x *ShareLink) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[34]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShareLink.ProtoReflect.Descriptor instead.
|
|
func (*ShareLink) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *ShareLink) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetResourceType() string {
|
|
if x != nil {
|
|
return x.ResourceType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetDownloadCount() int32 {
|
|
if x != nil {
|
|
return x.DownloadCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShareLink) GetMaxDownloads() int32 {
|
|
if x != nil {
|
|
return x.MaxDownloads
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShareLink) GetCreatedBy() string {
|
|
if x != nil {
|
|
return x.CreatedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareLink) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ShareInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
|
|
FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
FileSize int64 `protobuf:"varint,4,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
|
|
HasPassword bool `protobuf:"varint,5,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"`
|
|
ExpiresAt string `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ShareInfo) Reset() {
|
|
*x = ShareInfo{}
|
|
mi := &file_file_v1_file_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ShareInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShareInfo) ProtoMessage() {}
|
|
|
|
func (x *ShareInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[35]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShareInfo.ProtoReflect.Descriptor instead.
|
|
func (*ShareInfo) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *ShareInfo) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareInfo) GetResourceType() string {
|
|
if x != nil {
|
|
return x.ResourceType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareInfo) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ShareInfo) GetFileSize() int64 {
|
|
if x != nil {
|
|
return x.FileSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShareInfo) GetHasPassword() bool {
|
|
if x != nil {
|
|
return x.HasPassword
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ShareInfo) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateShareRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
|
|
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
ExpiresAt string `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
MaxDownloads int32 `protobuf:"varint,5,opt,name=max_downloads,json=maxDownloads,proto3" json:"max_downloads,omitempty"`
|
|
CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateShareRequest) Reset() {
|
|
*x = CreateShareRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateShareRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateShareRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateShareRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[36]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateShareRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateShareRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetResourceType() string {
|
|
if x != nil {
|
|
return x.ResourceType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetMaxDownloads() int32 {
|
|
if x != nil {
|
|
return x.MaxDownloads
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateShareRequest) GetCreatedBy() string {
|
|
if x != nil {
|
|
return x.CreatedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteShareRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
CreatedBy string `protobuf:"bytes,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteShareRequest) Reset() {
|
|
*x = DeleteShareRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteShareRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteShareRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteShareRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[37]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteShareRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteShareRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *DeleteShareRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteShareRequest) GetCreatedBy() string {
|
|
if x != nil {
|
|
return x.CreatedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetShareInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetShareInfoRequest) Reset() {
|
|
*x = GetShareInfoRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetShareInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetShareInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *GetShareInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[38]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetShareInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetShareInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *GetShareInfoRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DownloadShareRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownloadShareRequest) Reset() {
|
|
*x = DownloadShareRequest{}
|
|
mi := &file_file_v1_file_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownloadShareRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownloadShareRequest) ProtoMessage() {}
|
|
|
|
func (x *DownloadShareRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[39]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DownloadShareRequest.ProtoReflect.Descriptor instead.
|
|
func (*DownloadShareRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *DownloadShareRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownloadShareRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DownloadShareResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PresignedUrl string `protobuf:"bytes,1,opt,name=presigned_url,json=presignedUrl,proto3" json:"presigned_url,omitempty"`
|
|
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownloadShareResponse) Reset() {
|
|
*x = DownloadShareResponse{}
|
|
mi := &file_file_v1_file_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownloadShareResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownloadShareResponse) ProtoMessage() {}
|
|
|
|
func (x *DownloadShareResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_v1_file_proto_msgTypes[40]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DownloadShareResponse.ProtoReflect.Descriptor instead.
|
|
func (*DownloadShareResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_v1_file_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *DownloadShareResponse) GetPresignedUrl() string {
|
|
if x != nil {
|
|
return x.PresignedUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownloadShareResponse) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_file_v1_file_proto protoreflect.FileDescriptor
|
|
|
|
const file_file_v1_file_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12file/v1/file.proto\x12\vapi.file.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x8a\x01\n" +
|
|
"\x11UploadFileRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\fR\x04data\x12!\n" +
|
|
"\fcontent_type\x18\x04 \x01(\tR\vcontentType\"M\n" +
|
|
"\x12UploadFileResponse\x12\x18\n" +
|
|
"\amessage\x18\x01 \x01(\tR\amessage\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"U\n" +
|
|
"\x13DownloadFileRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"j\n" +
|
|
"\x14DownloadFileResponse\x12\x12\n" +
|
|
"\x04data\x18\x01 \x01(\fR\x04data\x12!\n" +
|
|
"\fcontent_type\x18\x02 \x01(\tR\vcontentType\x12\x1b\n" +
|
|
"\tfile_name\x18\x03 \x01(\tR\bfileName\"\x95\x01\n" +
|
|
"\x10ListFilesRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x16\n" +
|
|
"\x06prefix\x18\x02 \x01(\tR\x06prefix\x12\x19\n" +
|
|
"\bmax_keys\x18\x03 \x01(\x05R\amaxKeys\x12-\n" +
|
|
"\x12continuation_token\x18\x04 \x01(\tR\x11continuationToken\"i\n" +
|
|
"\bFileInfo\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x03R\x04size\x12#\n" +
|
|
"\rlast_modified\x18\x03 \x01(\tR\flastModified\x12\x12\n" +
|
|
"\x04etag\x18\x04 \x01(\tR\x04etag\"x\n" +
|
|
"\x11ListFilesResponse\x12+\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x15.api.file.v1.FileInfoR\x05files\x126\n" +
|
|
"\x17next_continuation_token\x18\x02 \x01(\tR\x15nextContinuationToken\"W\n" +
|
|
"\x15GetFilePreviewRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"=\n" +
|
|
"\x16GetFilePreviewResponse\x12#\n" +
|
|
"\rpresigned_url\x18\x01 \x01(\tR\fpresignedUrl\"W\n" +
|
|
"\x15GetFileContentRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"2\n" +
|
|
"\x16GetFileContentResponse\x12\x18\n" +
|
|
"\acontent\x18\x01 \x01(\tR\acontent\"S\n" +
|
|
"\x11DeleteFileRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"V\n" +
|
|
"\x14InitMultipartRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\"4\n" +
|
|
"\x15InitMultipartResponse\x12\x1b\n" +
|
|
"\tupload_id\x18\x01 \x01(\tR\buploadId\"\xa5\x01\n" +
|
|
"\x11UploadPartRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\x12\x1b\n" +
|
|
"\tupload_id\x18\x03 \x01(\tR\buploadId\x12\x1f\n" +
|
|
"\vpart_number\x18\x04 \x01(\x05R\n" +
|
|
"partNumber\x12\x12\n" +
|
|
"\x04data\x18\x05 \x01(\fR\x04data\"(\n" +
|
|
"\x12UploadPartResponse\x12\x12\n" +
|
|
"\x04etag\x18\x01 \x01(\tR\x04etag\"D\n" +
|
|
"\rCompletedPart\x12\x1f\n" +
|
|
"\vpart_number\x18\x01 \x01(\x05R\n" +
|
|
"partNumber\x12\x12\n" +
|
|
"\x04etag\x18\x02 \x01(\tR\x04etag\"\xa9\x01\n" +
|
|
"\x18CompleteMultipartRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\x12\x1b\n" +
|
|
"\tupload_id\x18\x03 \x01(\tR\buploadId\x120\n" +
|
|
"\x05parts\x18\x04 \x03(\v2\x1a.api.file.v1.CompletedPartR\x05parts\"7\n" +
|
|
"\x19CompleteMultipartResponse\x12\x1a\n" +
|
|
"\blocation\x18\x01 \x01(\tR\blocation\"t\n" +
|
|
"\x15AbortMultipartRequest\x12\x1f\n" +
|
|
"\vbucket_name\x18\x01 \x01(\tR\n" +
|
|
"bucketName\x12\x1d\n" +
|
|
"\n" +
|
|
"object_key\x18\x02 \x01(\tR\tobjectKey\x12\x1b\n" +
|
|
"\tupload_id\x18\x03 \x01(\tR\buploadId\")\n" +
|
|
"\x13CreateBucketRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"/\n" +
|
|
"\x13ListBucketsResponse\x12\x18\n" +
|
|
"\abuckets\x18\x01 \x03(\tR\abuckets\")\n" +
|
|
"\x13DeleteBucketRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"\xa2\x01\n" +
|
|
"\x06Folder\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
|
|
"\tparent_id\x18\x02 \x01(\tR\bparentId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x19\n" +
|
|
"\bowner_id\x18\x04 \x01(\tR\aownerId\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\x05 \x01(\tR\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_at\x18\x06 \x01(\tR\tupdatedAt\"\xa4\x01\n" +
|
|
"\x12FolderWithChildren\x12+\n" +
|
|
"\x06folder\x18\x01 \x01(\v2\x13.api.file.v1.FolderR\x06folder\x124\n" +
|
|
"\vsub_folders\x18\x02 \x03(\v2\x13.api.file.v1.FolderR\n" +
|
|
"subFolders\x12+\n" +
|
|
"\x05files\x18\x03 \x03(\v2\x15.api.file.v1.FileMetaR\x05files\"a\n" +
|
|
"\x13CreateFolderRequest\x12\x1b\n" +
|
|
"\tparent_id\x18\x01 \x01(\tR\bparentId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x19\n" +
|
|
"\bowner_id\x18\x03 \x01(\tR\aownerId\"1\n" +
|
|
"\x14GetFolderTreeRequest\x12\x19\n" +
|
|
"\bowner_id\x18\x01 \x01(\tR\aownerId\"F\n" +
|
|
"\x15GetFolderTreeResponse\x12-\n" +
|
|
"\afolders\x18\x01 \x03(\v2\x13.api.file.v1.FolderR\afolders\"=\n" +
|
|
"\x10GetFolderRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
|
"\bowner_id\x18\x02 \x01(\tR\aownerId\"T\n" +
|
|
"\x13RenameFolderRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x19\n" +
|
|
"\bowner_id\x18\x03 \x01(\tR\aownerId\"@\n" +
|
|
"\x13DeleteFolderRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
|
"\bowner_id\x18\x02 \x01(\tR\aownerId\"\x8f\x02\n" +
|
|
"\bFileMeta\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
|
|
"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x15\n" +
|
|
"\x06s3_key\x18\x04 \x01(\tR\x05s3Key\x12\x1b\n" +
|
|
"\ts3_bucket\x18\x05 \x01(\tR\bs3Bucket\x12\x12\n" +
|
|
"\x04size\x18\x06 \x01(\x03R\x04size\x12!\n" +
|
|
"\fcontent_type\x18\a \x01(\tR\vcontentType\x12\x19\n" +
|
|
"\bowner_id\x18\b \x01(\tR\aownerId\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_at\x18\n" +
|
|
" \x01(\tR\tupdatedAt\"\xa3\x01\n" +
|
|
"\x15UploadToFolderRequest\x12\x1b\n" +
|
|
"\tfolder_id\x18\x01 \x01(\tR\bfolderId\x12\x1b\n" +
|
|
"\tfile_name\x18\x02 \x01(\tR\bfileName\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\fR\x04data\x12!\n" +
|
|
"\fcontent_type\x18\x04 \x01(\tR\vcontentType\x12\x19\n" +
|
|
"\bowner_id\x18\x05 \x01(\tR\aownerId\"f\n" +
|
|
"\x0fMoveFileRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12(\n" +
|
|
"\x10target_folder_id\x18\x02 \x01(\tR\x0etargetFolderId\x12\x19\n" +
|
|
"\bowner_id\x18\x03 \x01(\tR\aownerId\"\xbc\x02\n" +
|
|
"\tShareLink\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
|
|
"\rresource_type\x18\x02 \x01(\tR\fresourceType\x12\x1f\n" +
|
|
"\vresource_id\x18\x03 \x01(\tR\n" +
|
|
"resourceId\x12\x14\n" +
|
|
"\x05token\x18\x04 \x01(\tR\x05token\x12\x1a\n" +
|
|
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_at\x18\x06 \x01(\tR\texpiresAt\x12%\n" +
|
|
"\x0edownload_count\x18\a \x01(\x05R\rdownloadCount\x12#\n" +
|
|
"\rmax_downloads\x18\b \x01(\x05R\fmaxDownloads\x12\x1d\n" +
|
|
"\n" +
|
|
"created_by\x18\t \x01(\tR\tcreatedBy\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\n" +
|
|
" \x01(\tR\tcreatedAt\"\xc2\x01\n" +
|
|
"\tShareInfo\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12#\n" +
|
|
"\rresource_type\x18\x02 \x01(\tR\fresourceType\x12\x1b\n" +
|
|
"\tfile_name\x18\x03 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_size\x18\x04 \x01(\x03R\bfileSize\x12!\n" +
|
|
"\fhas_password\x18\x05 \x01(\bR\vhasPassword\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_at\x18\x06 \x01(\tR\texpiresAt\"\xd9\x01\n" +
|
|
"\x12CreateShareRequest\x12#\n" +
|
|
"\rresource_type\x18\x01 \x01(\tR\fresourceType\x12\x1f\n" +
|
|
"\vresource_id\x18\x02 \x01(\tR\n" +
|
|
"resourceId\x12\x1a\n" +
|
|
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\tR\texpiresAt\x12#\n" +
|
|
"\rmax_downloads\x18\x05 \x01(\x05R\fmaxDownloads\x12\x1d\n" +
|
|
"\n" +
|
|
"created_by\x18\x06 \x01(\tR\tcreatedBy\"C\n" +
|
|
"\x12DeleteShareRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
|
"\n" +
|
|
"created_by\x18\x02 \x01(\tR\tcreatedBy\"+\n" +
|
|
"\x13GetShareInfoRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"H\n" +
|
|
"\x14DownloadShareRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"Y\n" +
|
|
"\x15DownloadShareResponse\x12#\n" +
|
|
"\rpresigned_url\x18\x01 \x01(\tR\fpresignedUrl\x12\x1b\n" +
|
|
"\tfile_name\x18\x02 \x01(\tR\bfileName2\xf1\x13\n" +
|
|
"\vFileService\x12g\n" +
|
|
"\n" +
|
|
"UploadFile\x12\x1e.api.file.v1.UploadFileRequest\x1a\x1f.api.file.v1.UploadFileResponse\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/files/upload\x12l\n" +
|
|
"\fDownloadFile\x12 .api.file.v1.DownloadFileRequest\x1a!.api.file.v1.DownloadFileResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/files/download\x12_\n" +
|
|
"\tListFiles\x12\x1d.api.file.v1.ListFilesRequest\x1a\x1e.api.file.v1.ListFilesResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\v/files/list\x12q\n" +
|
|
"\x0eGetFilePreview\x12\".api.file.v1.GetFilePreviewRequest\x1a#.api.file.v1.GetFilePreviewResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/files/preview\x12q\n" +
|
|
"\x0eGetFileContent\x12\".api.file.v1.GetFileContentRequest\x1a#.api.file.v1.GetFileContentResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/files/content\x12[\n" +
|
|
"\n" +
|
|
"DeleteFile\x12\x1e.api.file.v1.DeleteFileRequest\x1a\x16.google.protobuf.Empty\"\x15\x82\xd3\xe4\x93\x02\x0f*\r/files/delete\x12~\n" +
|
|
"\x13InitMultipartUpload\x12!.api.file.v1.InitMultipartRequest\x1a\".api.file.v1.InitMultipartResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/files/multipart/init\x12o\n" +
|
|
"\n" +
|
|
"UploadPart\x12\x1e.api.file.v1.UploadPartRequest\x1a\x1f.api.file.v1.UploadPartResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/files/multipart/part\x12\x8e\x01\n" +
|
|
"\x17CompleteMultipartUpload\x12%.api.file.v1.CompleteMultipartRequest\x1a&.api.file.v1.CompleteMultipartResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/files/multipart/complete\x12u\n" +
|
|
"\x14AbortMultipartUpload\x12\".api.file.v1.AbortMultipartRequest\x1a\x16.google.protobuf.Empty\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/files/multipart/abort\x12]\n" +
|
|
"\fCreateBucket\x12 .api.file.v1.CreateBucketRequest\x1a\x16.google.protobuf.Empty\"\x13\x82\xd3\xe4\x93\x02\r:\x01*\"\b/buckets\x12Y\n" +
|
|
"\vListBuckets\x12\x16.google.protobuf.Empty\x1a .api.file.v1.ListBucketsResponse\"\x10\x82\xd3\xe4\x93\x02\n" +
|
|
"\x12\b/buckets\x12Z\n" +
|
|
"\fDeleteBucket\x12 .api.file.v1.DeleteBucketRequest\x1a\x16.google.protobuf.Empty\"\x10\x82\xd3\xe4\x93\x02\n" +
|
|
"*\b/buckets\x12Z\n" +
|
|
"\fCreateFolder\x12 .api.file.v1.CreateFolderRequest\x1a\x13.api.file.v1.Folder\"\x13\x82\xd3\xe4\x93\x02\r:\x01*\"\b/folders\x12m\n" +
|
|
"\rGetFolderTree\x12!.api.file.v1.GetFolderTreeRequest\x1a\".api.file.v1.GetFolderTreeResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/folders/tree\x12b\n" +
|
|
"\tGetFolder\x12\x1d.api.file.v1.GetFolderRequest\x1a\x1f.api.file.v1.FolderWithChildren\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/folders/{id}\x12_\n" +
|
|
"\fRenameFolder\x12 .api.file.v1.RenameFolderRequest\x1a\x13.api.file.v1.Folder\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\x1a\r/folders/{id}\x12_\n" +
|
|
"\fDeleteFolder\x12 .api.file.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\"\x15\x82\xd3\xe4\x93\x02\x0f*\r/folders/{id}\x12r\n" +
|
|
"\x0eUploadToFolder\x12\".api.file.v1.UploadToFolderRequest\x1a\x15.api.file.v1.FileMeta\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/folders/{folder_id}/files\x12]\n" +
|
|
"\bMoveFile\x12\x1c.api.file.v1.MoveFileRequest\x1a\x16.google.protobuf.Empty\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/files/{id}/move\x12Y\n" +
|
|
"\vCreateShare\x12\x1f.api.file.v1.CreateShareRequest\x1a\x16.api.file.v1.ShareLink\"\x11\x82\xd3\xe4\x93\x02\v:\x01*\"\x06/share\x12[\n" +
|
|
"\vDeleteShare\x12\x1f.api.file.v1.DeleteShareRequest\x1a\x16.google.protobuf.Empty\"\x13\x82\xd3\xe4\x93\x02\r*\v/share/{id}\x12`\n" +
|
|
"\fGetShareInfo\x12 .api.file.v1.GetShareInfoRequest\x1a\x16.api.file.v1.ShareInfo\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/share/{token}\x12z\n" +
|
|
"\rDownloadShare\x12!.api.file.v1.DownloadShareRequest\x1a\".api.file.v1.DownloadShareResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/share/{token}/downloadB\x1dZ\x1brag/file-system/api/file/v1b\x06proto3"
|
|
|
|
var (
|
|
file_file_v1_file_proto_rawDescOnce sync.Once
|
|
file_file_v1_file_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_file_v1_file_proto_rawDescGZIP() []byte {
|
|
file_file_v1_file_proto_rawDescOnce.Do(func() {
|
|
file_file_v1_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_file_v1_file_proto_rawDesc), len(file_file_v1_file_proto_rawDesc)))
|
|
})
|
|
return file_file_v1_file_proto_rawDescData
|
|
}
|
|
|
|
var file_file_v1_file_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
|
|
var file_file_v1_file_proto_goTypes = []any{
|
|
(*UploadFileRequest)(nil), // 0: api.file.v1.UploadFileRequest
|
|
(*UploadFileResponse)(nil), // 1: api.file.v1.UploadFileResponse
|
|
(*DownloadFileRequest)(nil), // 2: api.file.v1.DownloadFileRequest
|
|
(*DownloadFileResponse)(nil), // 3: api.file.v1.DownloadFileResponse
|
|
(*ListFilesRequest)(nil), // 4: api.file.v1.ListFilesRequest
|
|
(*FileInfo)(nil), // 5: api.file.v1.FileInfo
|
|
(*ListFilesResponse)(nil), // 6: api.file.v1.ListFilesResponse
|
|
(*GetFilePreviewRequest)(nil), // 7: api.file.v1.GetFilePreviewRequest
|
|
(*GetFilePreviewResponse)(nil), // 8: api.file.v1.GetFilePreviewResponse
|
|
(*GetFileContentRequest)(nil), // 9: api.file.v1.GetFileContentRequest
|
|
(*GetFileContentResponse)(nil), // 10: api.file.v1.GetFileContentResponse
|
|
(*DeleteFileRequest)(nil), // 11: api.file.v1.DeleteFileRequest
|
|
(*InitMultipartRequest)(nil), // 12: api.file.v1.InitMultipartRequest
|
|
(*InitMultipartResponse)(nil), // 13: api.file.v1.InitMultipartResponse
|
|
(*UploadPartRequest)(nil), // 14: api.file.v1.UploadPartRequest
|
|
(*UploadPartResponse)(nil), // 15: api.file.v1.UploadPartResponse
|
|
(*CompletedPart)(nil), // 16: api.file.v1.CompletedPart
|
|
(*CompleteMultipartRequest)(nil), // 17: api.file.v1.CompleteMultipartRequest
|
|
(*CompleteMultipartResponse)(nil), // 18: api.file.v1.CompleteMultipartResponse
|
|
(*AbortMultipartRequest)(nil), // 19: api.file.v1.AbortMultipartRequest
|
|
(*CreateBucketRequest)(nil), // 20: api.file.v1.CreateBucketRequest
|
|
(*ListBucketsResponse)(nil), // 21: api.file.v1.ListBucketsResponse
|
|
(*DeleteBucketRequest)(nil), // 22: api.file.v1.DeleteBucketRequest
|
|
(*Folder)(nil), // 23: api.file.v1.Folder
|
|
(*FolderWithChildren)(nil), // 24: api.file.v1.FolderWithChildren
|
|
(*CreateFolderRequest)(nil), // 25: api.file.v1.CreateFolderRequest
|
|
(*GetFolderTreeRequest)(nil), // 26: api.file.v1.GetFolderTreeRequest
|
|
(*GetFolderTreeResponse)(nil), // 27: api.file.v1.GetFolderTreeResponse
|
|
(*GetFolderRequest)(nil), // 28: api.file.v1.GetFolderRequest
|
|
(*RenameFolderRequest)(nil), // 29: api.file.v1.RenameFolderRequest
|
|
(*DeleteFolderRequest)(nil), // 30: api.file.v1.DeleteFolderRequest
|
|
(*FileMeta)(nil), // 31: api.file.v1.FileMeta
|
|
(*UploadToFolderRequest)(nil), // 32: api.file.v1.UploadToFolderRequest
|
|
(*MoveFileRequest)(nil), // 33: api.file.v1.MoveFileRequest
|
|
(*ShareLink)(nil), // 34: api.file.v1.ShareLink
|
|
(*ShareInfo)(nil), // 35: api.file.v1.ShareInfo
|
|
(*CreateShareRequest)(nil), // 36: api.file.v1.CreateShareRequest
|
|
(*DeleteShareRequest)(nil), // 37: api.file.v1.DeleteShareRequest
|
|
(*GetShareInfoRequest)(nil), // 38: api.file.v1.GetShareInfoRequest
|
|
(*DownloadShareRequest)(nil), // 39: api.file.v1.DownloadShareRequest
|
|
(*DownloadShareResponse)(nil), // 40: api.file.v1.DownloadShareResponse
|
|
(*emptypb.Empty)(nil), // 41: google.protobuf.Empty
|
|
}
|
|
var file_file_v1_file_proto_depIdxs = []int32{
|
|
5, // 0: api.file.v1.ListFilesResponse.files:type_name -> api.file.v1.FileInfo
|
|
16, // 1: api.file.v1.CompleteMultipartRequest.parts:type_name -> api.file.v1.CompletedPart
|
|
23, // 2: api.file.v1.FolderWithChildren.folder:type_name -> api.file.v1.Folder
|
|
23, // 3: api.file.v1.FolderWithChildren.sub_folders:type_name -> api.file.v1.Folder
|
|
31, // 4: api.file.v1.FolderWithChildren.files:type_name -> api.file.v1.FileMeta
|
|
23, // 5: api.file.v1.GetFolderTreeResponse.folders:type_name -> api.file.v1.Folder
|
|
0, // 6: api.file.v1.FileService.UploadFile:input_type -> api.file.v1.UploadFileRequest
|
|
2, // 7: api.file.v1.FileService.DownloadFile:input_type -> api.file.v1.DownloadFileRequest
|
|
4, // 8: api.file.v1.FileService.ListFiles:input_type -> api.file.v1.ListFilesRequest
|
|
7, // 9: api.file.v1.FileService.GetFilePreview:input_type -> api.file.v1.GetFilePreviewRequest
|
|
9, // 10: api.file.v1.FileService.GetFileContent:input_type -> api.file.v1.GetFileContentRequest
|
|
11, // 11: api.file.v1.FileService.DeleteFile:input_type -> api.file.v1.DeleteFileRequest
|
|
12, // 12: api.file.v1.FileService.InitMultipartUpload:input_type -> api.file.v1.InitMultipartRequest
|
|
14, // 13: api.file.v1.FileService.UploadPart:input_type -> api.file.v1.UploadPartRequest
|
|
17, // 14: api.file.v1.FileService.CompleteMultipartUpload:input_type -> api.file.v1.CompleteMultipartRequest
|
|
19, // 15: api.file.v1.FileService.AbortMultipartUpload:input_type -> api.file.v1.AbortMultipartRequest
|
|
20, // 16: api.file.v1.FileService.CreateBucket:input_type -> api.file.v1.CreateBucketRequest
|
|
41, // 17: api.file.v1.FileService.ListBuckets:input_type -> google.protobuf.Empty
|
|
22, // 18: api.file.v1.FileService.DeleteBucket:input_type -> api.file.v1.DeleteBucketRequest
|
|
25, // 19: api.file.v1.FileService.CreateFolder:input_type -> api.file.v1.CreateFolderRequest
|
|
26, // 20: api.file.v1.FileService.GetFolderTree:input_type -> api.file.v1.GetFolderTreeRequest
|
|
28, // 21: api.file.v1.FileService.GetFolder:input_type -> api.file.v1.GetFolderRequest
|
|
29, // 22: api.file.v1.FileService.RenameFolder:input_type -> api.file.v1.RenameFolderRequest
|
|
30, // 23: api.file.v1.FileService.DeleteFolder:input_type -> api.file.v1.DeleteFolderRequest
|
|
32, // 24: api.file.v1.FileService.UploadToFolder:input_type -> api.file.v1.UploadToFolderRequest
|
|
33, // 25: api.file.v1.FileService.MoveFile:input_type -> api.file.v1.MoveFileRequest
|
|
36, // 26: api.file.v1.FileService.CreateShare:input_type -> api.file.v1.CreateShareRequest
|
|
37, // 27: api.file.v1.FileService.DeleteShare:input_type -> api.file.v1.DeleteShareRequest
|
|
38, // 28: api.file.v1.FileService.GetShareInfo:input_type -> api.file.v1.GetShareInfoRequest
|
|
39, // 29: api.file.v1.FileService.DownloadShare:input_type -> api.file.v1.DownloadShareRequest
|
|
1, // 30: api.file.v1.FileService.UploadFile:output_type -> api.file.v1.UploadFileResponse
|
|
3, // 31: api.file.v1.FileService.DownloadFile:output_type -> api.file.v1.DownloadFileResponse
|
|
6, // 32: api.file.v1.FileService.ListFiles:output_type -> api.file.v1.ListFilesResponse
|
|
8, // 33: api.file.v1.FileService.GetFilePreview:output_type -> api.file.v1.GetFilePreviewResponse
|
|
10, // 34: api.file.v1.FileService.GetFileContent:output_type -> api.file.v1.GetFileContentResponse
|
|
41, // 35: api.file.v1.FileService.DeleteFile:output_type -> google.protobuf.Empty
|
|
13, // 36: api.file.v1.FileService.InitMultipartUpload:output_type -> api.file.v1.InitMultipartResponse
|
|
15, // 37: api.file.v1.FileService.UploadPart:output_type -> api.file.v1.UploadPartResponse
|
|
18, // 38: api.file.v1.FileService.CompleteMultipartUpload:output_type -> api.file.v1.CompleteMultipartResponse
|
|
41, // 39: api.file.v1.FileService.AbortMultipartUpload:output_type -> google.protobuf.Empty
|
|
41, // 40: api.file.v1.FileService.CreateBucket:output_type -> google.protobuf.Empty
|
|
21, // 41: api.file.v1.FileService.ListBuckets:output_type -> api.file.v1.ListBucketsResponse
|
|
41, // 42: api.file.v1.FileService.DeleteBucket:output_type -> google.protobuf.Empty
|
|
23, // 43: api.file.v1.FileService.CreateFolder:output_type -> api.file.v1.Folder
|
|
27, // 44: api.file.v1.FileService.GetFolderTree:output_type -> api.file.v1.GetFolderTreeResponse
|
|
24, // 45: api.file.v1.FileService.GetFolder:output_type -> api.file.v1.FolderWithChildren
|
|
23, // 46: api.file.v1.FileService.RenameFolder:output_type -> api.file.v1.Folder
|
|
41, // 47: api.file.v1.FileService.DeleteFolder:output_type -> google.protobuf.Empty
|
|
31, // 48: api.file.v1.FileService.UploadToFolder:output_type -> api.file.v1.FileMeta
|
|
41, // 49: api.file.v1.FileService.MoveFile:output_type -> google.protobuf.Empty
|
|
34, // 50: api.file.v1.FileService.CreateShare:output_type -> api.file.v1.ShareLink
|
|
41, // 51: api.file.v1.FileService.DeleteShare:output_type -> google.protobuf.Empty
|
|
35, // 52: api.file.v1.FileService.GetShareInfo:output_type -> api.file.v1.ShareInfo
|
|
40, // 53: api.file.v1.FileService.DownloadShare:output_type -> api.file.v1.DownloadShareResponse
|
|
30, // [30:54] is the sub-list for method output_type
|
|
6, // [6:30] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_file_v1_file_proto_init() }
|
|
func file_file_v1_file_proto_init() {
|
|
if File_file_v1_file_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_file_v1_file_proto_rawDesc), len(file_file_v1_file_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 41,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_file_v1_file_proto_goTypes,
|
|
DependencyIndexes: file_file_v1_file_proto_depIdxs,
|
|
MessageInfos: file_file_v1_file_proto_msgTypes,
|
|
}.Build()
|
|
File_file_v1_file_proto = out.File
|
|
file_file_v1_file_proto_goTypes = nil
|
|
file_file_v1_file_proto_depIdxs = nil
|
|
}
|