1568 lines
46 KiB
Go
1568 lines
46 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: pb/file.proto
|
|
|
|
package file
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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)
|
|
)
|
|
|
|
type CommonResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CommonResp) Reset() {
|
|
*x = CommonResp{}
|
|
mi := &file_pb_file_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CommonResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommonResp) ProtoMessage() {}
|
|
|
|
func (x *CommonResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CommonResp.ProtoReflect.Descriptor instead.
|
|
func (*CommonResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CommonResp) GetCode() int64 {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CommonResp) GetMsg() string {
|
|
if x != nil {
|
|
return x.Msg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FileInfo 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"`
|
|
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
|
Tag string `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
|
|
Suffix string `protobuf:"bytes,6,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
Md5 string `protobuf:"bytes,7,opt,name=md5,proto3" json:"md5,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileInfo) Reset() {
|
|
*x = FileInfo{}
|
|
mi := &file_pb_file_proto_msgTypes[1]
|
|
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_pb_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 FileInfo.ProtoReflect.Descriptor instead.
|
|
func (*FileInfo) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *FileInfo) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetTag() string {
|
|
if x != nil {
|
|
return x.Tag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetSuffix() string {
|
|
if x != nil {
|
|
return x.Suffix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetMd5() string {
|
|
if x != nil {
|
|
return x.Md5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFileByIdReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileByIdReq) Reset() {
|
|
*x = GetFileByIdReq{}
|
|
mi := &file_pb_file_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileByIdReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileByIdReq) ProtoMessage() {}
|
|
|
|
func (x *GetFileByIdReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFileByIdReq.ProtoReflect.Descriptor instead.
|
|
func (*GetFileByIdReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetFileByIdReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileByIdResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File *FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileByIdResp) Reset() {
|
|
*x = GetFileByIdResp{}
|
|
mi := &file_pb_file_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileByIdResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileByIdResp) ProtoMessage() {}
|
|
|
|
func (x *GetFileByIdResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFileByIdResp.ProtoReflect.Descriptor instead.
|
|
func (*GetFileByIdResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetFileByIdResp) GetFile() *FileInfo {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetFilesByIdsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFilesByIdsReq) Reset() {
|
|
*x = GetFilesByIdsReq{}
|
|
mi := &file_pb_file_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFilesByIdsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFilesByIdsReq) ProtoMessage() {}
|
|
|
|
func (x *GetFilesByIdsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFilesByIdsReq.ProtoReflect.Descriptor instead.
|
|
func (*GetFilesByIdsReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetFilesByIdsReq) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetFilesByIdsResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFilesByIdsResp) Reset() {
|
|
*x = GetFilesByIdsResp{}
|
|
mi := &file_pb_file_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFilesByIdsResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFilesByIdsResp) ProtoMessage() {}
|
|
|
|
func (x *GetFilesByIdsResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFilesByIdsResp.ProtoReflect.Descriptor instead.
|
|
func (*GetFilesByIdsResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GetFilesByIdsResp) GetFiles() []*FileInfo {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StorageConfigInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
AccessKeyId string `protobuf:"bytes,5,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"`
|
|
AccessKeySecret string `protobuf:"bytes,6,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"`
|
|
BucketName string `protobuf:"bytes,7,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
|
|
BucketUrl string `protobuf:"bytes,8,opt,name=bucketUrl,proto3" json:"bucketUrl,omitempty"`
|
|
Region string `protobuf:"bytes,9,opt,name=region,proto3" json:"region,omitempty"`
|
|
IsDefault int32 `protobuf:"varint,10,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
|
|
Status int32 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"`
|
|
Remark string `protobuf:"bytes,12,opt,name=remark,proto3" json:"remark,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StorageConfigInfo) Reset() {
|
|
*x = StorageConfigInfo{}
|
|
mi := &file_pb_file_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StorageConfigInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StorageConfigInfo) ProtoMessage() {}
|
|
|
|
func (x *StorageConfigInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 StorageConfigInfo.ProtoReflect.Descriptor instead.
|
|
func (*StorageConfigInfo) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetEndpoint() string {
|
|
if x != nil {
|
|
return x.Endpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetAccessKeyId() string {
|
|
if x != nil {
|
|
return x.AccessKeyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetAccessKeySecret() string {
|
|
if x != nil {
|
|
return x.AccessKeySecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetBucketUrl() string {
|
|
if x != nil {
|
|
return x.BucketUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetIsDefault() int32 {
|
|
if x != nil {
|
|
return x.IsDefault
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StorageConfigInfo) GetRemark() string {
|
|
if x != nil {
|
|
return x.Remark
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateStorageConfigReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
AccessKeyId string `protobuf:"bytes,4,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"`
|
|
AccessKeySecret string `protobuf:"bytes,5,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"`
|
|
BucketName string `protobuf:"bytes,6,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
|
|
BucketUrl string `protobuf:"bytes,7,opt,name=bucketUrl,proto3" json:"bucketUrl,omitempty"`
|
|
Region string `protobuf:"bytes,8,opt,name=region,proto3" json:"region,omitempty"`
|
|
Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`
|
|
Remark string `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) Reset() {
|
|
*x = CreateStorageConfigReq{}
|
|
mi := &file_pb_file_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateStorageConfigReq) ProtoMessage() {}
|
|
|
|
func (x *CreateStorageConfigReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CreateStorageConfigReq.ProtoReflect.Descriptor instead.
|
|
func (*CreateStorageConfigReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetEndpoint() string {
|
|
if x != nil {
|
|
return x.Endpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetAccessKeyId() string {
|
|
if x != nil {
|
|
return x.AccessKeyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetAccessKeySecret() string {
|
|
if x != nil {
|
|
return x.AccessKeySecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetBucketUrl() string {
|
|
if x != nil {
|
|
return x.BucketUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateStorageConfigReq) GetRemark() string {
|
|
if x != nil {
|
|
return x.Remark
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateStorageConfigReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
AccessKeyId string `protobuf:"bytes,5,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"`
|
|
AccessKeySecret string `protobuf:"bytes,6,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"`
|
|
BucketName string `protobuf:"bytes,7,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
|
|
BucketUrl string `protobuf:"bytes,8,opt,name=bucketUrl,proto3" json:"bucketUrl,omitempty"`
|
|
Region string `protobuf:"bytes,9,opt,name=region,proto3" json:"region,omitempty"`
|
|
Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
|
|
Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) Reset() {
|
|
*x = UpdateStorageConfigReq{}
|
|
mi := &file_pb_file_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateStorageConfigReq) ProtoMessage() {}
|
|
|
|
func (x *UpdateStorageConfigReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 UpdateStorageConfigReq.ProtoReflect.Descriptor instead.
|
|
func (*UpdateStorageConfigReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetEndpoint() string {
|
|
if x != nil {
|
|
return x.Endpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetAccessKeyId() string {
|
|
if x != nil {
|
|
return x.AccessKeyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetAccessKeySecret() string {
|
|
if x != nil {
|
|
return x.AccessKeySecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetBucketName() string {
|
|
if x != nil {
|
|
return x.BucketName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetBucketUrl() string {
|
|
if x != nil {
|
|
return x.BucketUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateStorageConfigReq) GetRemark() string {
|
|
if x != nil {
|
|
return x.Remark
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetDefaultStorageConfigReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultStorageConfigReq) Reset() {
|
|
*x = SetDefaultStorageConfigReq{}
|
|
mi := &file_pb_file_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultStorageConfigReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultStorageConfigReq) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultStorageConfigReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 SetDefaultStorageConfigReq.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultStorageConfigReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SetDefaultStorageConfigReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StorageConfigListReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
|
|
PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StorageConfigListReq) Reset() {
|
|
*x = StorageConfigListReq{}
|
|
mi := &file_pb_file_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StorageConfigListReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StorageConfigListReq) ProtoMessage() {}
|
|
|
|
func (x *StorageConfigListReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 StorageConfigListReq.ProtoReflect.Descriptor instead.
|
|
func (*StorageConfigListReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *StorageConfigListReq) GetCurrent() int32 {
|
|
if x != nil {
|
|
return x.Current
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StorageConfigListReq) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StorageConfigListReq) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StorageConfigListReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StorageConfigListResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
List []*StorageConfigInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
|
|
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StorageConfigListResp) Reset() {
|
|
*x = StorageConfigListResp{}
|
|
mi := &file_pb_file_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StorageConfigListResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StorageConfigListResp) ProtoMessage() {}
|
|
|
|
func (x *StorageConfigListResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 StorageConfigListResp.ProtoReflect.Descriptor instead.
|
|
func (*StorageConfigListResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *StorageConfigListResp) GetList() []*StorageConfigInfo {
|
|
if x != nil {
|
|
return x.List
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *StorageConfigListResp) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetDefaultStorageConfigReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetDefaultStorageConfigReq) Reset() {
|
|
*x = GetDefaultStorageConfigReq{}
|
|
mi := &file_pb_file_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetDefaultStorageConfigReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDefaultStorageConfigReq) ProtoMessage() {}
|
|
|
|
func (x *GetDefaultStorageConfigReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetDefaultStorageConfigReq.ProtoReflect.Descriptor instead.
|
|
func (*GetDefaultStorageConfigReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
type GetDefaultStorageConfigResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Config *StorageConfigInfo `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetDefaultStorageConfigResp) Reset() {
|
|
*x = GetDefaultStorageConfigResp{}
|
|
mi := &file_pb_file_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetDefaultStorageConfigResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDefaultStorageConfigResp) ProtoMessage() {}
|
|
|
|
func (x *GetDefaultStorageConfigResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetDefaultStorageConfigResp.ProtoReflect.Descriptor instead.
|
|
func (*GetDefaultStorageConfigResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *GetDefaultStorageConfigResp) GetConfig() *StorageConfigInfo {
|
|
if x != nil {
|
|
return x.Config
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateFileReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
|
|
Suffix string `protobuf:"bytes,5,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
Md5 string `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateFileReq) Reset() {
|
|
*x = CreateFileReq{}
|
|
mi := &file_pb_file_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateFileReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateFileReq) ProtoMessage() {}
|
|
|
|
func (x *CreateFileReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CreateFileReq.ProtoReflect.Descriptor instead.
|
|
func (*CreateFileReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *CreateFileReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileReq) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileReq) GetTag() string {
|
|
if x != nil {
|
|
return x.Tag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileReq) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileReq) GetSuffix() string {
|
|
if x != nil {
|
|
return x.Suffix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileReq) GetMd5() string {
|
|
if x != nil {
|
|
return x.Md5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateFileResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File *FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateFileResp) Reset() {
|
|
*x = CreateFileResp{}
|
|
mi := &file_pb_file_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateFileResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateFileResp) ProtoMessage() {}
|
|
|
|
func (x *CreateFileResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CreateFileResp.ProtoReflect.Descriptor instead.
|
|
func (*CreateFileResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *CreateFileResp) GetFile() *FileInfo {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CheckFileByMd5Req struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Md5 string `protobuf:"bytes,1,opt,name=md5,proto3" json:"md5,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckFileByMd5Req) Reset() {
|
|
*x = CheckFileByMd5Req{}
|
|
mi := &file_pb_file_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckFileByMd5Req) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckFileByMd5Req) ProtoMessage() {}
|
|
|
|
func (x *CheckFileByMd5Req) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CheckFileByMd5Req.ProtoReflect.Descriptor instead.
|
|
func (*CheckFileByMd5Req) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *CheckFileByMd5Req) GetMd5() string {
|
|
if x != nil {
|
|
return x.Md5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CheckFileByMd5Resp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
|
|
File *FileInfo `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckFileByMd5Resp) Reset() {
|
|
*x = CheckFileByMd5Resp{}
|
|
mi := &file_pb_file_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckFileByMd5Resp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckFileByMd5Resp) ProtoMessage() {}
|
|
|
|
func (x *CheckFileByMd5Resp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 CheckFileByMd5Resp.ProtoReflect.Descriptor instead.
|
|
func (*CheckFileByMd5Resp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *CheckFileByMd5Resp) GetExists() bool {
|
|
if x != nil {
|
|
return x.Exists
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CheckFileByMd5Resp) GetFile() *FileInfo {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteFilesReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteFilesReq) Reset() {
|
|
*x = DeleteFilesReq{}
|
|
mi := &file_pb_file_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteFilesReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteFilesReq) ProtoMessage() {}
|
|
|
|
func (x *DeleteFilesReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 DeleteFilesReq.ProtoReflect.Descriptor instead.
|
|
func (*DeleteFilesReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *DeleteFilesReq) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetFileListReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
|
|
PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileListReq) Reset() {
|
|
*x = GetFileListReq{}
|
|
mi := &file_pb_file_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileListReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileListReq) ProtoMessage() {}
|
|
|
|
func (x *GetFileListReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFileListReq.ProtoReflect.Descriptor instead.
|
|
func (*GetFileListReq) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *GetFileListReq) GetCurrent() int32 {
|
|
if x != nil {
|
|
return x.Current
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetFileListReq) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetFileListReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileListResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
List []*FileInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
|
|
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileListResp) Reset() {
|
|
*x = GetFileListResp{}
|
|
mi := &file_pb_file_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileListResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileListResp) ProtoMessage() {}
|
|
|
|
func (x *GetFileListResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pb_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 GetFileListResp.ProtoReflect.Descriptor instead.
|
|
func (*GetFileListResp) Descriptor() ([]byte, []int) {
|
|
return file_pb_file_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetFileListResp) GetList() []*FileInfo {
|
|
if x != nil {
|
|
return x.List
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetFileListResp) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_pb_file_proto protoreflect.FileDescriptor
|
|
|
|
const file_pb_file_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\rpb/file.proto\x12\x04file\"2\n" +
|
|
"\n" +
|
|
"CommonResp\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\x03R\x04code\x12\x10\n" +
|
|
"\x03msg\x18\x02 \x01(\tR\x03msg\"\xac\x01\n" +
|
|
"\bFileInfo\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x10\n" +
|
|
"\x03url\x18\x03 \x01(\tR\x03url\x12\x10\n" +
|
|
"\x03tag\x18\x04 \x01(\tR\x03tag\x12\x10\n" +
|
|
"\x03key\x18\x05 \x01(\tR\x03key\x12\x16\n" +
|
|
"\x06suffix\x18\x06 \x01(\tR\x06suffix\x12\x10\n" +
|
|
"\x03md5\x18\a \x01(\tR\x03md5\x12\x1c\n" +
|
|
"\tcreatedAt\x18\b \x01(\x03R\tcreatedAt\" \n" +
|
|
"\x0eGetFileByIdReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"5\n" +
|
|
"\x0fGetFileByIdResp\x12\"\n" +
|
|
"\x04file\x18\x01 \x01(\v2\x0e.file.FileInfoR\x04file\"$\n" +
|
|
"\x10GetFilesByIdsReq\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\"9\n" +
|
|
"\x11GetFilesByIdsResp\x12$\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x0e.file.FileInfoR\x05files\"\xd7\x02\n" +
|
|
"\x11StorageConfigInfo\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bendpoint\x18\x04 \x01(\tR\bendpoint\x12 \n" +
|
|
"\vaccessKeyId\x18\x05 \x01(\tR\vaccessKeyId\x12(\n" +
|
|
"\x0faccessKeySecret\x18\x06 \x01(\tR\x0faccessKeySecret\x12\x1e\n" +
|
|
"\n" +
|
|
"bucketName\x18\a \x01(\tR\n" +
|
|
"bucketName\x12\x1c\n" +
|
|
"\tbucketUrl\x18\b \x01(\tR\tbucketUrl\x12\x16\n" +
|
|
"\x06region\x18\t \x01(\tR\x06region\x12\x1c\n" +
|
|
"\tisDefault\x18\n" +
|
|
" \x01(\x05R\tisDefault\x12\x16\n" +
|
|
"\x06status\x18\v \x01(\x05R\x06status\x12\x16\n" +
|
|
"\x06remark\x18\f \x01(\tR\x06remark\"\xae\x02\n" +
|
|
"\x16CreateStorageConfigReq\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bendpoint\x18\x03 \x01(\tR\bendpoint\x12 \n" +
|
|
"\vaccessKeyId\x18\x04 \x01(\tR\vaccessKeyId\x12(\n" +
|
|
"\x0faccessKeySecret\x18\x05 \x01(\tR\x0faccessKeySecret\x12\x1e\n" +
|
|
"\n" +
|
|
"bucketName\x18\x06 \x01(\tR\n" +
|
|
"bucketName\x12\x1c\n" +
|
|
"\tbucketUrl\x18\a \x01(\tR\tbucketUrl\x12\x16\n" +
|
|
"\x06region\x18\b \x01(\tR\x06region\x12\x16\n" +
|
|
"\x06status\x18\t \x01(\x05R\x06status\x12\x16\n" +
|
|
"\x06remark\x18\n" +
|
|
" \x01(\tR\x06remark\"\xbe\x02\n" +
|
|
"\x16UpdateStorageConfigReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bendpoint\x18\x04 \x01(\tR\bendpoint\x12 \n" +
|
|
"\vaccessKeyId\x18\x05 \x01(\tR\vaccessKeyId\x12(\n" +
|
|
"\x0faccessKeySecret\x18\x06 \x01(\tR\x0faccessKeySecret\x12\x1e\n" +
|
|
"\n" +
|
|
"bucketName\x18\a \x01(\tR\n" +
|
|
"bucketName\x12\x1c\n" +
|
|
"\tbucketUrl\x18\b \x01(\tR\tbucketUrl\x12\x16\n" +
|
|
"\x06region\x18\t \x01(\tR\x06region\x12\x16\n" +
|
|
"\x06status\x18\n" +
|
|
" \x01(\x05R\x06status\x12\x16\n" +
|
|
"\x06remark\x18\v \x01(\tR\x06remark\",\n" +
|
|
"\x1aSetDefaultStorageConfigReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"t\n" +
|
|
"\x14StorageConfigListReq\x12\x18\n" +
|
|
"\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" +
|
|
"\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04name\x18\x04 \x01(\tR\x04name\"Z\n" +
|
|
"\x15StorageConfigListResp\x12+\n" +
|
|
"\x04list\x18\x01 \x03(\v2\x17.file.StorageConfigInfoR\x04list\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x03R\x05total\"\x1c\n" +
|
|
"\x1aGetDefaultStorageConfigReq\"N\n" +
|
|
"\x1bGetDefaultStorageConfigResp\x12/\n" +
|
|
"\x06config\x18\x01 \x01(\v2\x17.file.StorageConfigInfoR\x06config\"\x83\x01\n" +
|
|
"\rCreateFileReq\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" +
|
|
"\x03url\x18\x02 \x01(\tR\x03url\x12\x10\n" +
|
|
"\x03tag\x18\x03 \x01(\tR\x03tag\x12\x10\n" +
|
|
"\x03key\x18\x04 \x01(\tR\x03key\x12\x16\n" +
|
|
"\x06suffix\x18\x05 \x01(\tR\x06suffix\x12\x10\n" +
|
|
"\x03md5\x18\x06 \x01(\tR\x03md5\"4\n" +
|
|
"\x0eCreateFileResp\x12\"\n" +
|
|
"\x04file\x18\x01 \x01(\v2\x0e.file.FileInfoR\x04file\"%\n" +
|
|
"\x11CheckFileByMd5Req\x12\x10\n" +
|
|
"\x03md5\x18\x01 \x01(\tR\x03md5\"P\n" +
|
|
"\x12CheckFileByMd5Resp\x12\x16\n" +
|
|
"\x06exists\x18\x01 \x01(\bR\x06exists\x12\"\n" +
|
|
"\x04file\x18\x02 \x01(\v2\x0e.file.FileInfoR\x04file\"\"\n" +
|
|
"\x0eDeleteFilesReq\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\"Z\n" +
|
|
"\x0eGetFileListReq\x12\x18\n" +
|
|
"\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" +
|
|
"\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\"K\n" +
|
|
"\x0fGetFileListResp\x12\"\n" +
|
|
"\x04list\x18\x01 \x03(\v2\x0e.file.FileInfoR\x04list\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x03R\x05total2\xc9\x06\n" +
|
|
"\vFileService\x12:\n" +
|
|
"\vGetFileById\x12\x14.file.GetFileByIdReq\x1a\x15.file.GetFileByIdResp\x12@\n" +
|
|
"\rGetFilesByIds\x12\x16.file.GetFilesByIdsReq\x1a\x17.file.GetFilesByIdsResp\x127\n" +
|
|
"\n" +
|
|
"CreateFile\x12\x13.file.CreateFileReq\x1a\x14.file.CreateFileResp\x12C\n" +
|
|
"\x0eCheckFileByMd5\x12\x17.file.CheckFileByMd5Req\x1a\x18.file.CheckFileByMd5Resp\x125\n" +
|
|
"\vDeleteFiles\x12\x14.file.DeleteFilesReq\x1a\x10.file.CommonResp\x12:\n" +
|
|
"\vGetFileList\x12\x14.file.GetFileListReq\x1a\x15.file.GetFileListResp\x12E\n" +
|
|
"\x13CreateStorageConfig\x12\x1c.file.CreateStorageConfigReq\x1a\x10.file.CommonResp\x12E\n" +
|
|
"\x13UpdateStorageConfig\x12\x1c.file.UpdateStorageConfigReq\x1a\x10.file.CommonResp\x12=\n" +
|
|
"\x13DeleteStorageConfig\x12\x14.file.DeleteFilesReq\x1a\x10.file.CommonResp\x12M\n" +
|
|
"\x17SetDefaultStorageConfig\x12 .file.SetDefaultStorageConfigReq\x1a\x10.file.CommonResp\x12O\n" +
|
|
"\x14GetStorageConfigList\x12\x1a.file.StorageConfigListReq\x1a\x1b.file.StorageConfigListResp\x12^\n" +
|
|
"\x17GetDefaultStorageConfig\x12 .file.GetDefaultStorageConfigReq\x1a!.file.GetDefaultStorageConfigRespB\bZ\x06./fileb\x06proto3"
|
|
|
|
var (
|
|
file_pb_file_proto_rawDescOnce sync.Once
|
|
file_pb_file_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_pb_file_proto_rawDescGZIP() []byte {
|
|
file_pb_file_proto_rawDescOnce.Do(func() {
|
|
file_pb_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pb_file_proto_rawDesc), len(file_pb_file_proto_rawDesc)))
|
|
})
|
|
return file_pb_file_proto_rawDescData
|
|
}
|
|
|
|
var file_pb_file_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
|
var file_pb_file_proto_goTypes = []any{
|
|
(*CommonResp)(nil), // 0: file.CommonResp
|
|
(*FileInfo)(nil), // 1: file.FileInfo
|
|
(*GetFileByIdReq)(nil), // 2: file.GetFileByIdReq
|
|
(*GetFileByIdResp)(nil), // 3: file.GetFileByIdResp
|
|
(*GetFilesByIdsReq)(nil), // 4: file.GetFilesByIdsReq
|
|
(*GetFilesByIdsResp)(nil), // 5: file.GetFilesByIdsResp
|
|
(*StorageConfigInfo)(nil), // 6: file.StorageConfigInfo
|
|
(*CreateStorageConfigReq)(nil), // 7: file.CreateStorageConfigReq
|
|
(*UpdateStorageConfigReq)(nil), // 8: file.UpdateStorageConfigReq
|
|
(*SetDefaultStorageConfigReq)(nil), // 9: file.SetDefaultStorageConfigReq
|
|
(*StorageConfigListReq)(nil), // 10: file.StorageConfigListReq
|
|
(*StorageConfigListResp)(nil), // 11: file.StorageConfigListResp
|
|
(*GetDefaultStorageConfigReq)(nil), // 12: file.GetDefaultStorageConfigReq
|
|
(*GetDefaultStorageConfigResp)(nil), // 13: file.GetDefaultStorageConfigResp
|
|
(*CreateFileReq)(nil), // 14: file.CreateFileReq
|
|
(*CreateFileResp)(nil), // 15: file.CreateFileResp
|
|
(*CheckFileByMd5Req)(nil), // 16: file.CheckFileByMd5Req
|
|
(*CheckFileByMd5Resp)(nil), // 17: file.CheckFileByMd5Resp
|
|
(*DeleteFilesReq)(nil), // 18: file.DeleteFilesReq
|
|
(*GetFileListReq)(nil), // 19: file.GetFileListReq
|
|
(*GetFileListResp)(nil), // 20: file.GetFileListResp
|
|
}
|
|
var file_pb_file_proto_depIdxs = []int32{
|
|
1, // 0: file.GetFileByIdResp.file:type_name -> file.FileInfo
|
|
1, // 1: file.GetFilesByIdsResp.files:type_name -> file.FileInfo
|
|
6, // 2: file.StorageConfigListResp.list:type_name -> file.StorageConfigInfo
|
|
6, // 3: file.GetDefaultStorageConfigResp.config:type_name -> file.StorageConfigInfo
|
|
1, // 4: file.CreateFileResp.file:type_name -> file.FileInfo
|
|
1, // 5: file.CheckFileByMd5Resp.file:type_name -> file.FileInfo
|
|
1, // 6: file.GetFileListResp.list:type_name -> file.FileInfo
|
|
2, // 7: file.FileService.GetFileById:input_type -> file.GetFileByIdReq
|
|
4, // 8: file.FileService.GetFilesByIds:input_type -> file.GetFilesByIdsReq
|
|
14, // 9: file.FileService.CreateFile:input_type -> file.CreateFileReq
|
|
16, // 10: file.FileService.CheckFileByMd5:input_type -> file.CheckFileByMd5Req
|
|
18, // 11: file.FileService.DeleteFiles:input_type -> file.DeleteFilesReq
|
|
19, // 12: file.FileService.GetFileList:input_type -> file.GetFileListReq
|
|
7, // 13: file.FileService.CreateStorageConfig:input_type -> file.CreateStorageConfigReq
|
|
8, // 14: file.FileService.UpdateStorageConfig:input_type -> file.UpdateStorageConfigReq
|
|
18, // 15: file.FileService.DeleteStorageConfig:input_type -> file.DeleteFilesReq
|
|
9, // 16: file.FileService.SetDefaultStorageConfig:input_type -> file.SetDefaultStorageConfigReq
|
|
10, // 17: file.FileService.GetStorageConfigList:input_type -> file.StorageConfigListReq
|
|
12, // 18: file.FileService.GetDefaultStorageConfig:input_type -> file.GetDefaultStorageConfigReq
|
|
3, // 19: file.FileService.GetFileById:output_type -> file.GetFileByIdResp
|
|
5, // 20: file.FileService.GetFilesByIds:output_type -> file.GetFilesByIdsResp
|
|
15, // 21: file.FileService.CreateFile:output_type -> file.CreateFileResp
|
|
17, // 22: file.FileService.CheckFileByMd5:output_type -> file.CheckFileByMd5Resp
|
|
0, // 23: file.FileService.DeleteFiles:output_type -> file.CommonResp
|
|
20, // 24: file.FileService.GetFileList:output_type -> file.GetFileListResp
|
|
0, // 25: file.FileService.CreateStorageConfig:output_type -> file.CommonResp
|
|
0, // 26: file.FileService.UpdateStorageConfig:output_type -> file.CommonResp
|
|
0, // 27: file.FileService.DeleteStorageConfig:output_type -> file.CommonResp
|
|
0, // 28: file.FileService.SetDefaultStorageConfig:output_type -> file.CommonResp
|
|
11, // 29: file.FileService.GetStorageConfigList:output_type -> file.StorageConfigListResp
|
|
13, // 30: file.FileService.GetDefaultStorageConfig:output_type -> file.GetDefaultStorageConfigResp
|
|
19, // [19:31] is the sub-list for method output_type
|
|
7, // [7:19] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_pb_file_proto_init() }
|
|
func file_pb_file_proto_init() {
|
|
if File_pb_file_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_file_proto_rawDesc), len(file_pb_file_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 21,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_pb_file_proto_goTypes,
|
|
DependencyIndexes: file_pb_file_proto_depIdxs,
|
|
MessageInfos: file_pb_file_proto_msgTypes,
|
|
}.Build()
|
|
File_pb_file_proto = out.File
|
|
file_pb_file_proto_goTypes = nil
|
|
file_pb_file_proto_depIdxs = nil
|
|
}
|