366 lines
11 KiB
Go
366 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_file.proto
|
|
|
|
package pb
|
|
|
|
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 FindEnabledFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledFileRequest) Reset() {
|
|
*x = FindEnabledFileRequest{}
|
|
mi := &file_service_file_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledFileRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 FindEnabledFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_file_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *FindEnabledFileRequest) GetFileId() int64 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledFileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File *File `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledFileResponse) Reset() {
|
|
*x = FindEnabledFileResponse{}
|
|
mi := &file_service_file_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledFileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledFileResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledFileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 FindEnabledFileResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledFileResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_file_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *FindEnabledFileResponse) GetFile() *File {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 创建文件
|
|
type CreateFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
IsPublic bool `protobuf:"varint,3,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
|
|
MimeType string `protobuf:"bytes,4,opt,name=mimeType,proto3" json:"mimeType,omitempty"`
|
|
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateFileRequest) Reset() {
|
|
*x = CreateFileRequest{}
|
|
mi := &file_service_file_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateFileRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 CreateFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_file_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateFileRequest) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateFileRequest) GetIsPublic() bool {
|
|
if x != nil {
|
|
return x.IsPublic
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateFileRequest) GetMimeType() string {
|
|
if x != nil {
|
|
return x.MimeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateFileRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateFileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateFileResponse) Reset() {
|
|
*x = CreateFileResponse{}
|
|
mi := &file_service_file_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateFileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateFileResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateFileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 CreateFileResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateFileResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_file_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CreateFileResponse) GetFileId() int64 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 将文件置为已完成
|
|
type UpdateFileFinishedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateFileFinishedRequest) Reset() {
|
|
*x = UpdateFileFinishedRequest{}
|
|
mi := &file_service_file_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateFileFinishedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateFileFinishedRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateFileFinishedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 UpdateFileFinishedRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateFileFinishedRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_file_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateFileFinishedRequest) GetFileId() int64 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_service_file_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_file_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12service_file.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a\x17models/model_file.proto\"0\n" +
|
|
"\x16FindEnabledFileRequest\x12\x16\n" +
|
|
"\x06fileId\x18\x01 \x01(\x03R\x06fileId\"7\n" +
|
|
"\x17FindEnabledFileResponse\x12\x1c\n" +
|
|
"\x04file\x18\x01 \x01(\v2\b.pb.FileR\x04file\"\x8f\x01\n" +
|
|
"\x11CreateFileRequest\x12\x1a\n" +
|
|
"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x03R\x04size\x12\x1a\n" +
|
|
"\bisPublic\x18\x03 \x01(\bR\bisPublic\x12\x1a\n" +
|
|
"\bmimeType\x18\x04 \x01(\tR\bmimeType\x12\x12\n" +
|
|
"\x04type\x18\x05 \x01(\tR\x04type\",\n" +
|
|
"\x12CreateFileResponse\x12\x16\n" +
|
|
"\x06fileId\x18\x01 \x01(\x03R\x06fileId\"3\n" +
|
|
"\x19UpdateFileFinishedRequest\x12\x16\n" +
|
|
"\x06fileId\x18\x01 \x01(\x03R\x06fileId2\xdb\x01\n" +
|
|
"\vFileService\x12J\n" +
|
|
"\x0ffindEnabledFile\x12\x1a.pb.FindEnabledFileRequest\x1a\x1b.pb.FindEnabledFileResponse\x12;\n" +
|
|
"\n" +
|
|
"createFile\x12\x15.pb.CreateFileRequest\x1a\x16.pb.CreateFileResponse\x12C\n" +
|
|
"\x12updateFileFinished\x12\x1d.pb.UpdateFileFinishedRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_file_proto_rawDescOnce sync.Once
|
|
file_service_file_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_file_proto_rawDescGZIP() []byte {
|
|
file_service_file_proto_rawDescOnce.Do(func() {
|
|
file_service_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_file_proto_rawDesc), len(file_service_file_proto_rawDesc)))
|
|
})
|
|
return file_service_file_proto_rawDescData
|
|
}
|
|
|
|
var file_service_file_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_service_file_proto_goTypes = []any{
|
|
(*FindEnabledFileRequest)(nil), // 0: pb.FindEnabledFileRequest
|
|
(*FindEnabledFileResponse)(nil), // 1: pb.FindEnabledFileResponse
|
|
(*CreateFileRequest)(nil), // 2: pb.CreateFileRequest
|
|
(*CreateFileResponse)(nil), // 3: pb.CreateFileResponse
|
|
(*UpdateFileFinishedRequest)(nil), // 4: pb.UpdateFileFinishedRequest
|
|
(*File)(nil), // 5: pb.File
|
|
(*RPCSuccess)(nil), // 6: pb.RPCSuccess
|
|
}
|
|
var file_service_file_proto_depIdxs = []int32{
|
|
5, // 0: pb.FindEnabledFileResponse.file:type_name -> pb.File
|
|
0, // 1: pb.FileService.findEnabledFile:input_type -> pb.FindEnabledFileRequest
|
|
2, // 2: pb.FileService.createFile:input_type -> pb.CreateFileRequest
|
|
4, // 3: pb.FileService.updateFileFinished:input_type -> pb.UpdateFileFinishedRequest
|
|
1, // 4: pb.FileService.findEnabledFile:output_type -> pb.FindEnabledFileResponse
|
|
3, // 5: pb.FileService.createFile:output_type -> pb.CreateFileResponse
|
|
6, // 6: pb.FileService.updateFileFinished:output_type -> pb.RPCSuccess
|
|
4, // [4:7] is the sub-list for method output_type
|
|
1, // [1:4] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_file_proto_init() }
|
|
func file_service_file_proto_init() {
|
|
if File_service_file_proto != nil {
|
|
return
|
|
}
|
|
file_models_rpc_messages_proto_init()
|
|
file_models_model_file_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_file_proto_rawDesc), len(file_service_file_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_file_proto_goTypes,
|
|
DependencyIndexes: file_service_file_proto_depIdxs,
|
|
MessageInfos: file_service_file_proto_msgTypes,
|
|
}.Build()
|
|
File_service_file_proto = out.File
|
|
file_service_file_proto_goTypes = nil
|
|
file_service_file_proto_depIdxs = nil
|
|
}
|