123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.0
- // protoc v3.19.4
- // source: fileproto/filevector.proto
- //附件传输
- package fileproto
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type FileRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Message []*Request `protobuf:"bytes,1,rep,name=message,proto3" json:"message,omitempty"` //文件名称
- Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` //信息id
- Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
- }
- func (x *FileRequest) Reset() {
- *x = FileRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_fileproto_filevector_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FileRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FileRequest) ProtoMessage() {}
- func (x *FileRequest) ProtoReflect() protoreflect.Message {
- mi := &file_fileproto_filevector_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.
- func (*FileRequest) Descriptor() ([]byte, []int) {
- return file_fileproto_filevector_proto_rawDescGZIP(), []int{0}
- }
- func (x *FileRequest) GetMessage() []*Request {
- if x != nil {
- return x.Message
- }
- return nil
- }
- func (x *FileRequest) GetOther() string {
- if x != nil {
- return x.Other
- }
- return ""
- }
- func (x *FileRequest) GetTopic() string {
- if x != nil {
- return x.Topic
- }
- return ""
- }
- type Request struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"` //文件名称
- FileUrl string `protobuf:"bytes,2,opt,name=fileUrl,proto3" json:"fileUrl,omitempty"` //下载的url
- FileBytes []byte `protobuf:"bytes,3,opt,name=fileBytes,proto3" json:"fileBytes,omitempty"` //文件字节流
- FileType string `protobuf:"bytes,4,opt,name=fileType,proto3" json:"fileType,omitempty"` //文件类型 pdf ,xls ,doc
- ReturnType int32 `protobuf:"varint,5,opt,name=returnType,proto3" json:"returnType,omitempty"` //文件类型 {0:url,1:content,2:url+content} 默认0
- ExtractType int32 `protobuf:"varint,6,opt,name=extractType,proto3" json:"extractType,omitempty"` //解析文件类型{0:oss,1:fileBytes,2:url} 默认0
- }
- func (x *Request) Reset() {
- *x = Request{}
- if protoimpl.UnsafeEnabled {
- mi := &file_fileproto_filevector_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Request) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Request) ProtoMessage() {}
- func (x *Request) ProtoReflect() protoreflect.Message {
- mi := &file_fileproto_filevector_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Request.ProtoReflect.Descriptor instead.
- func (*Request) Descriptor() ([]byte, []int) {
- return file_fileproto_filevector_proto_rawDescGZIP(), []int{1}
- }
- func (x *Request) GetFileName() string {
- if x != nil {
- return x.FileName
- }
- return ""
- }
- func (x *Request) GetFileUrl() string {
- if x != nil {
- return x.FileUrl
- }
- return ""
- }
- func (x *Request) GetFileBytes() []byte {
- if x != nil {
- return x.FileBytes
- }
- return nil
- }
- func (x *Request) GetFileType() string {
- if x != nil {
- return x.FileType
- }
- return ""
- }
- func (x *Request) GetReturnType() int32 {
- if x != nil {
- return x.ReturnType
- }
- return 0
- }
- func (x *Request) GetExtractType() int32 {
- if x != nil {
- return x.ExtractType
- }
- return 0
- }
- type FileResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Result []*Result `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` //返回结果
- Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` //信息id
- }
- func (x *FileResponse) Reset() {
- *x = FileResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_fileproto_filevector_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FileResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FileResponse) ProtoMessage() {}
- func (x *FileResponse) ProtoReflect() protoreflect.Message {
- mi := &file_fileproto_filevector_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.
- func (*FileResponse) Descriptor() ([]byte, []int) {
- return file_fileproto_filevector_proto_rawDescGZIP(), []int{2}
- }
- func (x *FileResponse) GetResult() []*Result {
- if x != nil {
- return x.Result
- }
- return nil
- }
- func (x *FileResponse) GetOther() string {
- if x != nil {
- return x.Other
- }
- return ""
- }
- type Result struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"` //文件名称
- TextContent string `protobuf:"bytes,2,opt,name=textContent,proto3" json:"textContent,omitempty"` //文本内容
- TextUrl string `protobuf:"bytes,3,opt,name=textUrl,proto3" json:"textUrl,omitempty"` //文本URL
- FilePath string `protobuf:"bytes,4,opt,name=filePath,proto3" json:"filePath,omitempty"` //文件路径
- ErrorState string `protobuf:"bytes,5,opt,name=errorState,proto3" json:"errorState,omitempty"` //错误状态{0:文件下载失败,1:文件解析失败}
- }
- func (x *Result) Reset() {
- *x = Result{}
- if protoimpl.UnsafeEnabled {
- mi := &file_fileproto_filevector_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Result) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Result) ProtoMessage() {}
- func (x *Result) ProtoReflect() protoreflect.Message {
- mi := &file_fileproto_filevector_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Result.ProtoReflect.Descriptor instead.
- func (*Result) Descriptor() ([]byte, []int) {
- return file_fileproto_filevector_proto_rawDescGZIP(), []int{3}
- }
- func (x *Result) GetFileName() string {
- if x != nil {
- return x.FileName
- }
- return ""
- }
- func (x *Result) GetTextContent() string {
- if x != nil {
- return x.TextContent
- }
- return ""
- }
- func (x *Result) GetTextUrl() string {
- if x != nil {
- return x.TextUrl
- }
- return ""
- }
- func (x *Result) GetFilePath() string {
- if x != nil {
- return x.FilePath
- }
- return ""
- }
- func (x *Result) GetErrorState() string {
- if x != nil {
- return x.ErrorState
- }
- return ""
- }
- var File_fileproto_filevector_proto protoreflect.FileDescriptor
- var file_fileproto_filevector_proto_rawDesc = []byte{
- 0x0a, 0x1a, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x69, 0x6c, 0x65,
- 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x28, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05,
- 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68,
- 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0xbb, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69,
- 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x66,
- 0x69, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65,
- 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
- 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x54, 0x79,
- 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
- 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x54,
- 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61,
- 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4b, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
- 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52,
- 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a,
- 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74,
- 0x68, 0x65, 0x72, 0x22, 0x9c, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a,
- 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x65,
- 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0b, 0x74, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07,
- 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74,
- 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61,
- 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61,
- 0x74, 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x61,
- 0x74, 0x65, 0x32, 0x45, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63,
- 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74,
- 0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c,
- 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x08, 0x5a, 0x06, 0x2f, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_fileproto_filevector_proto_rawDescOnce sync.Once
- file_fileproto_filevector_proto_rawDescData = file_fileproto_filevector_proto_rawDesc
- )
- func file_fileproto_filevector_proto_rawDescGZIP() []byte {
- file_fileproto_filevector_proto_rawDescOnce.Do(func() {
- file_fileproto_filevector_proto_rawDescData = protoimpl.X.CompressGZIP(file_fileproto_filevector_proto_rawDescData)
- })
- return file_fileproto_filevector_proto_rawDescData
- }
- var file_fileproto_filevector_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
- var file_fileproto_filevector_proto_goTypes = []interface{}{
- (*FileRequest)(nil), // 0: proto.FileRequest
- (*Request)(nil), // 1: proto.Request
- (*FileResponse)(nil), // 2: proto.FileResponse
- (*Result)(nil), // 3: proto.Result
- }
- var file_fileproto_filevector_proto_depIdxs = []int32{
- 1, // 0: proto.FileRequest.message:type_name -> proto.Request
- 3, // 1: proto.FileResponse.result:type_name -> proto.Result
- 0, // 2: proto.FileExtract.FileExtract:input_type -> proto.FileRequest
- 2, // 3: proto.FileExtract.FileExtract:output_type -> proto.FileResponse
- 3, // [3:4] is the sub-list for method output_type
- 2, // [2:3] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_fileproto_filevector_proto_init() }
- func file_fileproto_filevector_proto_init() {
- if File_fileproto_filevector_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_fileproto_filevector_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FileRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_fileproto_filevector_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Request); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_fileproto_filevector_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FileResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_fileproto_filevector_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Result); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_fileproto_filevector_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_fileproto_filevector_proto_goTypes,
- DependencyIndexes: file_fileproto_filevector_proto_depIdxs,
- MessageInfos: file_fileproto_filevector_proto_msgTypes,
- }.Build()
- File_fileproto_filevector_proto = out.File
- file_fileproto_filevector_proto_rawDesc = nil
- file_fileproto_filevector_proto_goTypes = nil
- file_fileproto_filevector_proto_depIdxs = nil
- }
|