knowledgebase_doc_service

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnowledgeBaseDocService_GetDocList_FullMethodName              = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocList"
	KnowledgeBaseDocService_ImportDoc_FullMethodName               = "/knowledgebase_doc_service.KnowledgeBaseDocService/ImportDoc"
	KnowledgeBaseDocService_UpdateDocStatus_FullMethodName         = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocStatus"
	KnowledgeBaseDocService_UpdateDocMetaData_FullMethodName       = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocMetaData"
	KnowledgeBaseDocService_InitDocStatus_FullMethodName           = "/knowledgebase_doc_service.KnowledgeBaseDocService/InitDocStatus"
	KnowledgeBaseDocService_DeleteDoc_FullMethodName               = "/knowledgebase_doc_service.KnowledgeBaseDocService/DeleteDoc"
	KnowledgeBaseDocService_GetDocCategoryUploadTip_FullMethodName = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocCategoryUploadTip"
	KnowledgeBaseDocService_GetDocSegmentList_FullMethodName       = "/knowledgebase_doc_service.KnowledgeBaseDocService/GetDocSegmentList"
	KnowledgeBaseDocService_UpdateDocSegmentStatus_FullMethodName  = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocSegmentStatus"
	KnowledgeBaseDocService_AnalysisDocUrl_FullMethodName          = "/knowledgebase_doc_service.KnowledgeBaseDocService/AnalysisDocUrl"
	KnowledgeBaseDocService_UpdateDocSegmentLabels_FullMethodName  = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocSegmentLabels"
	KnowledgeBaseDocService_CreateDocSegment_FullMethodName        = "/knowledgebase_doc_service.KnowledgeBaseDocService/CreateDocSegment"
	KnowledgeBaseDocService_BatchCreateDocSegment_FullMethodName   = "/knowledgebase_doc_service.KnowledgeBaseDocService/BatchCreateDocSegment"
	KnowledgeBaseDocService_DeleteDocSegment_FullMethodName        = "/knowledgebase_doc_service.KnowledgeBaseDocService/DeleteDocSegment"
	KnowledgeBaseDocService_UpdateDocSegment_FullMethodName        = "/knowledgebase_doc_service.KnowledgeBaseDocService/UpdateDocSegment"
)

Variables

View Source
var File_proto_knowledgebase_doc_service_knowledgebase_doc_service_proto protoreflect.FileDescriptor
View Source
var KnowledgeBaseDocService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "knowledgebase_doc_service.KnowledgeBaseDocService",
	HandlerType: (*KnowledgeBaseDocServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDocList",
			Handler:    _KnowledgeBaseDocService_GetDocList_Handler,
		},
		{
			MethodName: "ImportDoc",
			Handler:    _KnowledgeBaseDocService_ImportDoc_Handler,
		},
		{
			MethodName: "UpdateDocStatus",
			Handler:    _KnowledgeBaseDocService_UpdateDocStatus_Handler,
		},
		{
			MethodName: "UpdateDocMetaData",
			Handler:    _KnowledgeBaseDocService_UpdateDocMetaData_Handler,
		},
		{
			MethodName: "InitDocStatus",
			Handler:    _KnowledgeBaseDocService_InitDocStatus_Handler,
		},
		{
			MethodName: "DeleteDoc",
			Handler:    _KnowledgeBaseDocService_DeleteDoc_Handler,
		},
		{
			MethodName: "GetDocCategoryUploadTip",
			Handler:    _KnowledgeBaseDocService_GetDocCategoryUploadTip_Handler,
		},
		{
			MethodName: "GetDocSegmentList",
			Handler:    _KnowledgeBaseDocService_GetDocSegmentList_Handler,
		},
		{
			MethodName: "UpdateDocSegmentStatus",
			Handler:    _KnowledgeBaseDocService_UpdateDocSegmentStatus_Handler,
		},
		{
			MethodName: "AnalysisDocUrl",
			Handler:    _KnowledgeBaseDocService_AnalysisDocUrl_Handler,
		},
		{
			MethodName: "UpdateDocSegmentLabels",
			Handler:    _KnowledgeBaseDocService_UpdateDocSegmentLabels_Handler,
		},
		{
			MethodName: "CreateDocSegment",
			Handler:    _KnowledgeBaseDocService_CreateDocSegment_Handler,
		},
		{
			MethodName: "BatchCreateDocSegment",
			Handler:    _KnowledgeBaseDocService_BatchCreateDocSegment_Handler,
		},
		{
			MethodName: "DeleteDocSegment",
			Handler:    _KnowledgeBaseDocService_DeleteDocSegment_Handler,
		},
		{
			MethodName: "UpdateDocSegment",
			Handler:    _KnowledgeBaseDocService_UpdateDocSegment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/knowledgebase-doc-service/knowledgebase-doc-service.proto",
}

KnowledgeBaseDocService_ServiceDesc is the grpc.ServiceDesc for KnowledgeBaseDocService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKnowledgeBaseDocServiceServer

func RegisterKnowledgeBaseDocServiceServer(s grpc.ServiceRegistrar, srv KnowledgeBaseDocServiceServer)

Types

type AnalysisUrlDocReq

type AnalysisUrlDocReq struct {
	UserId      string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string   `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId string   `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	UrlList     []string `protobuf:"bytes,4,rep,name=urlList,proto3" json:"urlList,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalysisUrlDocReq) Descriptor deprecated

func (*AnalysisUrlDocReq) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisUrlDocReq.ProtoReflect.Descriptor instead.

func (*AnalysisUrlDocReq) GetKnowledgeId

func (x *AnalysisUrlDocReq) GetKnowledgeId() string

func (*AnalysisUrlDocReq) GetOrgId

func (x *AnalysisUrlDocReq) GetOrgId() string

func (*AnalysisUrlDocReq) GetUrlList

func (x *AnalysisUrlDocReq) GetUrlList() []string

func (*AnalysisUrlDocReq) GetUserId

func (x *AnalysisUrlDocReq) GetUserId() string

func (*AnalysisUrlDocReq) ProtoMessage

func (*AnalysisUrlDocReq) ProtoMessage()

func (*AnalysisUrlDocReq) ProtoReflect

func (x *AnalysisUrlDocReq) ProtoReflect() protoreflect.Message

func (*AnalysisUrlDocReq) Reset

func (x *AnalysisUrlDocReq) Reset()

func (*AnalysisUrlDocReq) String

func (x *AnalysisUrlDocReq) String() string

type AnalysisUrlDocResp

type AnalysisUrlDocResp struct {
	UrlList []*UrlInfo `protobuf:"bytes,1,rep,name=urlList,proto3" json:"urlList,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalysisUrlDocResp) Descriptor deprecated

func (*AnalysisUrlDocResp) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisUrlDocResp.ProtoReflect.Descriptor instead.

func (*AnalysisUrlDocResp) GetUrlList

func (x *AnalysisUrlDocResp) GetUrlList() []*UrlInfo

func (*AnalysisUrlDocResp) ProtoMessage

func (*AnalysisUrlDocResp) ProtoMessage()

func (*AnalysisUrlDocResp) ProtoReflect

func (x *AnalysisUrlDocResp) ProtoReflect() protoreflect.Message

func (*AnalysisUrlDocResp) Reset

func (x *AnalysisUrlDocResp) Reset()

func (*AnalysisUrlDocResp) String

func (x *AnalysisUrlDocResp) String() string

type BatchCreateDocSegmentReq added in v0.2.1

type BatchCreateDocSegmentReq struct {
	UserId  string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId   string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId   string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	FileUrl string `protobuf:"bytes,4,opt,name=fileUrl,proto3" json:"fileUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateDocSegmentReq) Descriptor deprecated added in v0.2.1

func (*BatchCreateDocSegmentReq) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateDocSegmentReq.ProtoReflect.Descriptor instead.

func (*BatchCreateDocSegmentReq) GetDocId added in v0.2.1

func (x *BatchCreateDocSegmentReq) GetDocId() string

func (*BatchCreateDocSegmentReq) GetFileUrl added in v0.2.1

func (x *BatchCreateDocSegmentReq) GetFileUrl() string

func (*BatchCreateDocSegmentReq) GetOrgId added in v0.2.1

func (x *BatchCreateDocSegmentReq) GetOrgId() string

func (*BatchCreateDocSegmentReq) GetUserId added in v0.2.1

func (x *BatchCreateDocSegmentReq) GetUserId() string

func (*BatchCreateDocSegmentReq) ProtoMessage added in v0.2.1

func (*BatchCreateDocSegmentReq) ProtoMessage()

func (*BatchCreateDocSegmentReq) ProtoReflect added in v0.2.1

func (x *BatchCreateDocSegmentReq) ProtoReflect() protoreflect.Message

func (*BatchCreateDocSegmentReq) Reset added in v0.2.1

func (x *BatchCreateDocSegmentReq) Reset()

func (*BatchCreateDocSegmentReq) String added in v0.2.1

func (x *BatchCreateDocSegmentReq) String() string

type CreateDocSegmentReq added in v0.2.0

type CreateDocSegmentReq struct {
	UserId  string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId   string   `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId   string   `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	Content string   `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Labels  []string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDocSegmentReq) Descriptor deprecated added in v0.2.0

func (*CreateDocSegmentReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateDocSegmentReq.ProtoReflect.Descriptor instead.

func (*CreateDocSegmentReq) GetContent added in v0.2.0

func (x *CreateDocSegmentReq) GetContent() string

func (*CreateDocSegmentReq) GetDocId added in v0.2.0

func (x *CreateDocSegmentReq) GetDocId() string

func (*CreateDocSegmentReq) GetLabels added in v0.2.0

func (x *CreateDocSegmentReq) GetLabels() []string

func (*CreateDocSegmentReq) GetOrgId added in v0.2.0

func (x *CreateDocSegmentReq) GetOrgId() string

func (*CreateDocSegmentReq) GetUserId added in v0.2.0

func (x *CreateDocSegmentReq) GetUserId() string

func (*CreateDocSegmentReq) ProtoMessage added in v0.2.0

func (*CreateDocSegmentReq) ProtoMessage()

func (*CreateDocSegmentReq) ProtoReflect added in v0.2.0

func (x *CreateDocSegmentReq) ProtoReflect() protoreflect.Message

func (*CreateDocSegmentReq) Reset added in v0.2.0

func (x *CreateDocSegmentReq) Reset()

func (*CreateDocSegmentReq) String added in v0.2.0

func (x *CreateDocSegmentReq) String() string

type DeleteDocReq

type DeleteDocReq struct {
	Ids    []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	UserId string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId  string   `protobuf:"bytes,3,opt,name=orgId,proto3" json:"orgId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDocReq) Descriptor deprecated

func (*DeleteDocReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDocReq.ProtoReflect.Descriptor instead.

func (*DeleteDocReq) GetIds

func (x *DeleteDocReq) GetIds() []string

func (*DeleteDocReq) GetOrgId

func (x *DeleteDocReq) GetOrgId() string

func (*DeleteDocReq) GetUserId

func (x *DeleteDocReq) GetUserId() string

func (*DeleteDocReq) ProtoMessage

func (*DeleteDocReq) ProtoMessage()

func (*DeleteDocReq) ProtoReflect

func (x *DeleteDocReq) ProtoReflect() protoreflect.Message

func (*DeleteDocReq) Reset

func (x *DeleteDocReq) Reset()

func (*DeleteDocReq) String

func (x *DeleteDocReq) String() string

type DeleteDocSegmentReq added in v0.2.1

type DeleteDocSegmentReq struct {
	UserId    string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId     string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId     string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	ContentId string `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDocSegmentReq) Descriptor deprecated added in v0.2.1

func (*DeleteDocSegmentReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDocSegmentReq.ProtoReflect.Descriptor instead.

func (*DeleteDocSegmentReq) GetContentId added in v0.2.1

func (x *DeleteDocSegmentReq) GetContentId() string

func (*DeleteDocSegmentReq) GetDocId added in v0.2.1

func (x *DeleteDocSegmentReq) GetDocId() string

func (*DeleteDocSegmentReq) GetOrgId added in v0.2.1

func (x *DeleteDocSegmentReq) GetOrgId() string

func (*DeleteDocSegmentReq) GetUserId added in v0.2.1

func (x *DeleteDocSegmentReq) GetUserId() string

func (*DeleteDocSegmentReq) ProtoMessage added in v0.2.1

func (*DeleteDocSegmentReq) ProtoMessage()

func (*DeleteDocSegmentReq) ProtoReflect added in v0.2.1

func (x *DeleteDocSegmentReq) ProtoReflect() protoreflect.Message

func (*DeleteDocSegmentReq) Reset added in v0.2.1

func (x *DeleteDocSegmentReq) Reset()

func (*DeleteDocSegmentReq) String added in v0.2.1

func (x *DeleteDocSegmentReq) String() string

type DocFileInfo

type DocFileInfo struct {
	DocName string `protobuf:"bytes,1,opt,name=docName,proto3" json:"docName,omitempty"`  //文档名称
	DocUrl  string `protobuf:"bytes,2,opt,name=docUrl,proto3" json:"docUrl,omitempty"`    //文档url
	DocType string `protobuf:"bytes,3,opt,name=docType,proto3" json:"docType,omitempty"`  // 文档类型
	DocId   string `protobuf:"bytes,4,opt,name=docId,proto3" json:"docId,omitempty"`      //文档id
	DocSize int64  `protobuf:"varint,5,opt,name=docSize,proto3" json:"docSize,omitempty"` //文档大小
	// contains filtered or unexported fields
}

func (*DocFileInfo) Descriptor deprecated

func (*DocFileInfo) Descriptor() ([]byte, []int)

Deprecated: Use DocFileInfo.ProtoReflect.Descriptor instead.

func (*DocFileInfo) GetDocId

func (x *DocFileInfo) GetDocId() string

func (*DocFileInfo) GetDocName

func (x *DocFileInfo) GetDocName() string

func (*DocFileInfo) GetDocSize

func (x *DocFileInfo) GetDocSize() int64

func (*DocFileInfo) GetDocType

func (x *DocFileInfo) GetDocType() string

func (*DocFileInfo) GetDocUrl

func (x *DocFileInfo) GetDocUrl() string

func (*DocFileInfo) ProtoMessage

func (*DocFileInfo) ProtoMessage()

func (*DocFileInfo) ProtoReflect

func (x *DocFileInfo) ProtoReflect() protoreflect.Message

func (*DocFileInfo) Reset

func (x *DocFileInfo) Reset()

func (*DocFileInfo) String

func (x *DocFileInfo) String() string

type DocImportTipReq

type DocImportTipReq struct {
	UserId      string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId string `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	// contains filtered or unexported fields
}

func (*DocImportTipReq) Descriptor deprecated

func (*DocImportTipReq) Descriptor() ([]byte, []int)

Deprecated: Use DocImportTipReq.ProtoReflect.Descriptor instead.

func (*DocImportTipReq) GetKnowledgeId

func (x *DocImportTipReq) GetKnowledgeId() string

func (*DocImportTipReq) GetOrgId

func (x *DocImportTipReq) GetOrgId() string

func (*DocImportTipReq) GetUserId

func (x *DocImportTipReq) GetUserId() string

func (*DocImportTipReq) ProtoMessage

func (*DocImportTipReq) ProtoMessage()

func (*DocImportTipReq) ProtoReflect

func (x *DocImportTipReq) ProtoReflect() protoreflect.Message

func (*DocImportTipReq) Reset

func (x *DocImportTipReq) Reset()

func (*DocImportTipReq) String

func (x *DocImportTipReq) String() string

type DocImportTipResp

type DocImportTipResp struct {
	KnowledgeName string `protobuf:"bytes,1,opt,name=knowledgeName,proto3" json:"knowledgeName,omitempty"`
	KnowledgeId   string `protobuf:"bytes,2,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	Message       string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	UploadStatus  int32  `protobuf:"varint,4,opt,name=uploadStatus,proto3" json:"uploadStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*DocImportTipResp) Descriptor deprecated

func (*DocImportTipResp) Descriptor() ([]byte, []int)

Deprecated: Use DocImportTipResp.ProtoReflect.Descriptor instead.

func (*DocImportTipResp) GetKnowledgeId

func (x *DocImportTipResp) GetKnowledgeId() string

func (*DocImportTipResp) GetKnowledgeName

func (x *DocImportTipResp) GetKnowledgeName() string

func (*DocImportTipResp) GetMessage

func (x *DocImportTipResp) GetMessage() string

func (*DocImportTipResp) GetUploadStatus

func (x *DocImportTipResp) GetUploadStatus() int32

func (*DocImportTipResp) ProtoMessage

func (*DocImportTipResp) ProtoMessage()

func (*DocImportTipResp) ProtoReflect

func (x *DocImportTipResp) ProtoReflect() protoreflect.Message

func (*DocImportTipResp) Reset

func (x *DocImportTipResp) Reset()

func (*DocImportTipResp) String

func (x *DocImportTipResp) String() string

type DocInfo

type DocInfo struct {
	DocId       string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"`
	DocName     string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"`
	DocSize     int64  `protobuf:"varint,3,opt,name=docSize,proto3" json:"docSize,omitempty"`
	DocType     string `protobuf:"bytes,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档名称
	KnowledgeId string `protobuf:"bytes,5,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	UploadTime  string `protobuf:"bytes,6,opt,name=uploadTime,proto3" json:"uploadTime,omitempty"`
	Status      int32  `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
	ErrorMsg    string `protobuf:"bytes,8,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*DocInfo) Descriptor deprecated

func (*DocInfo) Descriptor() ([]byte, []int)

Deprecated: Use DocInfo.ProtoReflect.Descriptor instead.

func (*DocInfo) GetDocId

func (x *DocInfo) GetDocId() string

func (*DocInfo) GetDocName

func (x *DocInfo) GetDocName() string

func (*DocInfo) GetDocSize

func (x *DocInfo) GetDocSize() int64

func (*DocInfo) GetDocType

func (x *DocInfo) GetDocType() string

func (*DocInfo) GetErrorMsg

func (x *DocInfo) GetErrorMsg() string

func (*DocInfo) GetKnowledgeId

func (x *DocInfo) GetKnowledgeId() string

func (*DocInfo) GetStatus

func (x *DocInfo) GetStatus() int32

func (*DocInfo) GetUploadTime

func (x *DocInfo) GetUploadTime() string

func (*DocInfo) ProtoMessage

func (*DocInfo) ProtoMessage()

func (*DocInfo) ProtoReflect

func (x *DocInfo) ProtoReflect() protoreflect.Message

func (*DocInfo) Reset

func (x *DocInfo) Reset()

func (*DocInfo) String

func (x *DocInfo) String() string

type DocMetaData added in v0.1.7

type DocMetaData struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`             //key
	Value     string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`         //常量
	ValueType string `protobuf:"bytes,3,opt,name=valueType,proto3" json:"valueType,omitempty"` //常量类型
	Rule      string `protobuf:"bytes,4,opt,name=rule,proto3" json:"rule,omitempty"`           //正则表达式
	// contains filtered or unexported fields
}

func (*DocMetaData) Descriptor deprecated added in v0.1.7

func (*DocMetaData) Descriptor() ([]byte, []int)

Deprecated: Use DocMetaData.ProtoReflect.Descriptor instead.

func (*DocMetaData) GetKey added in v0.1.7

func (x *DocMetaData) GetKey() string

func (*DocMetaData) GetRule added in v0.1.7

func (x *DocMetaData) GetRule() string

func (*DocMetaData) GetValue added in v0.1.7

func (x *DocMetaData) GetValue() string

func (*DocMetaData) GetValueType added in v0.1.7

func (x *DocMetaData) GetValueType() string

func (*DocMetaData) ProtoMessage added in v0.1.7

func (*DocMetaData) ProtoMessage()

func (*DocMetaData) ProtoReflect added in v0.1.7

func (x *DocMetaData) ProtoReflect() protoreflect.Message

func (*DocMetaData) Reset added in v0.1.7

func (x *DocMetaData) Reset()

func (*DocMetaData) String added in v0.1.7

func (x *DocMetaData) String() string

type DocSegment

type DocSegment struct {
	SegmentType string   `protobuf:"bytes,1,opt,name=SegmentType,proto3" json:"SegmentType,omitempty"`  //分段方式 0:自定分段;1:自定义分段
	Splitter    []string `protobuf:"bytes,2,rep,name=Splitter,proto3" json:"Splitter,omitempty"`        // 分隔符(只有自定义分段必填)
	MaxSplitter int32    `protobuf:"varint,3,opt,name=MaxSplitter,proto3" json:"MaxSplitter,omitempty"` // 可分隔最大值(只有自定义分段必填)
	Overlap     float32  `protobuf:"fixed32,4,opt,name=Overlap,proto3" json:"Overlap,omitempty"`        // 可重叠值(只有自定义分段必填)
	// contains filtered or unexported fields
}

func (*DocSegment) Descriptor deprecated

func (*DocSegment) Descriptor() ([]byte, []int)

Deprecated: Use DocSegment.ProtoReflect.Descriptor instead.

func (*DocSegment) GetMaxSplitter

func (x *DocSegment) GetMaxSplitter() int32

func (*DocSegment) GetOverlap

func (x *DocSegment) GetOverlap() float32

func (*DocSegment) GetSegmentType

func (x *DocSegment) GetSegmentType() string

func (*DocSegment) GetSplitter

func (x *DocSegment) GetSplitter() []string

func (*DocSegment) ProtoMessage

func (*DocSegment) ProtoMessage()

func (*DocSegment) ProtoReflect

func (x *DocSegment) ProtoReflect() protoreflect.Message

func (*DocSegment) Reset

func (x *DocSegment) Reset()

func (*DocSegment) String

func (x *DocSegment) String() string

type DocSegmentLabelsReq added in v0.1.8

type DocSegmentLabelsReq struct {
	OrgId     string   `protobuf:"bytes,1,opt,name=orgId,proto3" json:"orgId,omitempty"`
	ContentId string   `protobuf:"bytes,2,opt,name=contentId,proto3" json:"contentId,omitempty"`
	DocId     string   `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	Labels    []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
	UserId    string   `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*DocSegmentLabelsReq) Descriptor deprecated added in v0.1.8

func (*DocSegmentLabelsReq) Descriptor() ([]byte, []int)

Deprecated: Use DocSegmentLabelsReq.ProtoReflect.Descriptor instead.

func (*DocSegmentLabelsReq) GetContentId added in v0.1.8

func (x *DocSegmentLabelsReq) GetContentId() string

func (*DocSegmentLabelsReq) GetDocId added in v0.1.8

func (x *DocSegmentLabelsReq) GetDocId() string

func (*DocSegmentLabelsReq) GetLabels added in v0.1.8

func (x *DocSegmentLabelsReq) GetLabels() []string

func (*DocSegmentLabelsReq) GetOrgId added in v0.1.8

func (x *DocSegmentLabelsReq) GetOrgId() string

func (*DocSegmentLabelsReq) GetUserId added in v0.1.8

func (x *DocSegmentLabelsReq) GetUserId() string

func (*DocSegmentLabelsReq) ProtoMessage added in v0.1.8

func (*DocSegmentLabelsReq) ProtoMessage()

func (*DocSegmentLabelsReq) ProtoReflect added in v0.1.8

func (x *DocSegmentLabelsReq) ProtoReflect() protoreflect.Message

func (*DocSegmentLabelsReq) Reset added in v0.1.8

func (x *DocSegmentLabelsReq) Reset()

func (*DocSegmentLabelsReq) String added in v0.1.8

func (x *DocSegmentLabelsReq) String() string

type DocSegmentListReq

type DocSegmentListReq struct {
	UserId   string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId    string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId    string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	PageSize int32  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNo   int32  `protobuf:"varint,5,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	// contains filtered or unexported fields
}

func (*DocSegmentListReq) Descriptor deprecated

func (*DocSegmentListReq) Descriptor() ([]byte, []int)

Deprecated: Use DocSegmentListReq.ProtoReflect.Descriptor instead.

func (*DocSegmentListReq) GetDocId

func (x *DocSegmentListReq) GetDocId() string

func (*DocSegmentListReq) GetOrgId

func (x *DocSegmentListReq) GetOrgId() string

func (*DocSegmentListReq) GetPageNo

func (x *DocSegmentListReq) GetPageNo() int32

func (*DocSegmentListReq) GetPageSize

func (x *DocSegmentListReq) GetPageSize() int32

func (*DocSegmentListReq) GetUserId

func (x *DocSegmentListReq) GetUserId() string

func (*DocSegmentListReq) ProtoMessage

func (*DocSegmentListReq) ProtoMessage()

func (*DocSegmentListReq) ProtoReflect

func (x *DocSegmentListReq) ProtoReflect() protoreflect.Message

func (*DocSegmentListReq) Reset

func (x *DocSegmentListReq) Reset()

func (*DocSegmentListReq) String

func (x *DocSegmentListReq) String() string

type DocSegmentListResp

type DocSegmentListResp struct {
	FileName            string            `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	ContentList         []*SegmentContent `protobuf:"bytes,2,rep,name=contentList,proto3" json:"contentList,omitempty"`
	PageTotal           int32             `protobuf:"varint,3,opt,name=pageTotal,proto3" json:"pageTotal,omitempty"`
	SegmentTotalNum     int32             `protobuf:"varint,4,opt,name=segmentTotalNum,proto3" json:"segmentTotalNum,omitempty"`
	MaxSegmentSize      int32             `protobuf:"varint,5,opt,name=maxSegmentSize,proto3" json:"maxSegmentSize,omitempty"`
	CreatedAt           string            `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	SegType             string            `protobuf:"bytes,7,opt,name=segType,proto3" json:"segType,omitempty"`
	Splitter            string            `protobuf:"bytes,8,opt,name=splitter,proto3" json:"splitter,omitempty"`
	MetaDataList        []*MetaData       `protobuf:"bytes,9,rep,name=metaDataList,proto3" json:"metaDataList,omitempty"`                //文档元数据信息
	SegmentImportStatus string            `protobuf:"bytes,10,opt,name=segmentImportStatus,proto3" json:"segmentImportStatus,omitempty"` //文档分段导入状态
	// contains filtered or unexported fields
}

func (*DocSegmentListResp) Descriptor deprecated

func (*DocSegmentListResp) Descriptor() ([]byte, []int)

Deprecated: Use DocSegmentListResp.ProtoReflect.Descriptor instead.

func (*DocSegmentListResp) GetContentList

func (x *DocSegmentListResp) GetContentList() []*SegmentContent

func (*DocSegmentListResp) GetCreatedAt

func (x *DocSegmentListResp) GetCreatedAt() string

func (*DocSegmentListResp) GetFileName

func (x *DocSegmentListResp) GetFileName() string

func (*DocSegmentListResp) GetMaxSegmentSize

func (x *DocSegmentListResp) GetMaxSegmentSize() int32

func (*DocSegmentListResp) GetMetaDataList added in v0.1.6

func (x *DocSegmentListResp) GetMetaDataList() []*MetaData

func (*DocSegmentListResp) GetPageTotal

func (x *DocSegmentListResp) GetPageTotal() int32

func (*DocSegmentListResp) GetSegType

func (x *DocSegmentListResp) GetSegType() string

func (*DocSegmentListResp) GetSegmentImportStatus added in v0.2.1

func (x *DocSegmentListResp) GetSegmentImportStatus() string

func (*DocSegmentListResp) GetSegmentTotalNum

func (x *DocSegmentListResp) GetSegmentTotalNum() int32

func (*DocSegmentListResp) GetSplitter

func (x *DocSegmentListResp) GetSplitter() string

func (*DocSegmentListResp) ProtoMessage

func (*DocSegmentListResp) ProtoMessage()

func (*DocSegmentListResp) ProtoReflect

func (x *DocSegmentListResp) ProtoReflect() protoreflect.Message

func (*DocSegmentListResp) Reset

func (x *DocSegmentListResp) Reset()

func (*DocSegmentListResp) String

func (x *DocSegmentListResp) String() string

type GetDocListReq

type GetDocListReq struct {
	KnowledgeId string `protobuf:"bytes,1,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
	DocName     string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"`
	Status      int32  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	PageSize    int32  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNum     int32  `protobuf:"varint,5,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	UserId      string `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId       string `protobuf:"bytes,7,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocTag      string `protobuf:"bytes,8,opt,name=docTag,proto3" json:"docTag,omitempty"` //文档标签
	// contains filtered or unexported fields
}

func (*GetDocListReq) Descriptor deprecated

func (*GetDocListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetDocListReq.ProtoReflect.Descriptor instead.

func (*GetDocListReq) GetDocName

func (x *GetDocListReq) GetDocName() string

func (*GetDocListReq) GetDocTag added in v0.1.6

func (x *GetDocListReq) GetDocTag() string

func (*GetDocListReq) GetKnowledgeId

func (x *GetDocListReq) GetKnowledgeId() string

func (*GetDocListReq) GetOrgId

func (x *GetDocListReq) GetOrgId() string

func (*GetDocListReq) GetPageNum

func (x *GetDocListReq) GetPageNum() int32

func (*GetDocListReq) GetPageSize

func (x *GetDocListReq) GetPageSize() int32

func (*GetDocListReq) GetStatus

func (x *GetDocListReq) GetStatus() int32

func (*GetDocListReq) GetUserId

func (x *GetDocListReq) GetUserId() string

func (*GetDocListReq) ProtoMessage

func (*GetDocListReq) ProtoMessage()

func (*GetDocListReq) ProtoReflect

func (x *GetDocListReq) ProtoReflect() protoreflect.Message

func (*GetDocListReq) Reset

func (x *GetDocListReq) Reset()

func (*GetDocListReq) String

func (x *GetDocListReq) String() string

type GetDocListResp

type GetDocListResp struct {
	Docs     []*DocInfo `protobuf:"bytes,1,rep,name=docs,proto3" json:"docs,omitempty"`
	Total    int64      `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	PageNum  int32      `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	PageSize int32      `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocListResp) Descriptor deprecated

func (*GetDocListResp) Descriptor() ([]byte, []int)

Deprecated: Use GetDocListResp.ProtoReflect.Descriptor instead.

func (*GetDocListResp) GetDocs

func (x *GetDocListResp) GetDocs() []*DocInfo

func (*GetDocListResp) GetPageNum

func (x *GetDocListResp) GetPageNum() int32

func (*GetDocListResp) GetPageSize

func (x *GetDocListResp) GetPageSize() int32

func (*GetDocListResp) GetTotal

func (x *GetDocListResp) GetTotal() int64

func (*GetDocListResp) ProtoMessage

func (*GetDocListResp) ProtoMessage()

func (*GetDocListResp) ProtoReflect

func (x *GetDocListResp) ProtoReflect() protoreflect.Message

func (*GetDocListResp) Reset

func (x *GetDocListResp) Reset()

func (*GetDocListResp) String

func (x *GetDocListResp) String() string

type ImportDocReq

type ImportDocReq struct {
	UserId          string         `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId           string         `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	KnowledgeId     string         `protobuf:"bytes,3,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`          //知识库id
	DocImportType   int32          `protobuf:"varint,4,opt,name=docImportType,proto3" json:"docImportType,omitempty"`     //文档导入类型,0:文件上传,1:url上传,2.批量url上传
	DocInfoList     []*DocFileInfo `protobuf:"bytes,5,rep,name=docInfoList,proto3" json:"docInfoList,omitempty"`          //上传文档列表
	DocSegment      *DocSegment    `protobuf:"bytes,6,opt,name=docSegment,proto3" json:"docSegment,omitempty"`            //分段信息配置
	DocAnalyzer     []string       `protobuf:"bytes,7,rep,name=docAnalyzer,proto3" json:"docAnalyzer,omitempty"`          //文档解析类型
	OcrModelId      string         `protobuf:"bytes,8,opt,name=ocrModelId,proto3" json:"ocrModelId,omitempty"`            //ocr模型id
	DocPreprocess   []string       `protobuf:"bytes,9,rep,name=docPreprocess,proto3" json:"docPreprocess,omitempty"`      //文本预处理规则
	DocMetaDataList []*DocMetaData `protobuf:"bytes,10,rep,name=docMetaDataList,proto3" json:"docMetaDataList,omitempty"` // 元数据列表
	// contains filtered or unexported fields
}

func (*ImportDocReq) Descriptor deprecated

func (*ImportDocReq) Descriptor() ([]byte, []int)

Deprecated: Use ImportDocReq.ProtoReflect.Descriptor instead.

func (*ImportDocReq) GetDocAnalyzer

func (x *ImportDocReq) GetDocAnalyzer() []string

func (*ImportDocReq) GetDocImportType

func (x *ImportDocReq) GetDocImportType() int32

func (*ImportDocReq) GetDocInfoList

func (x *ImportDocReq) GetDocInfoList() []*DocFileInfo

func (*ImportDocReq) GetDocMetaDataList added in v0.1.7

func (x *ImportDocReq) GetDocMetaDataList() []*DocMetaData

func (*ImportDocReq) GetDocPreprocess added in v0.1.7

func (x *ImportDocReq) GetDocPreprocess() []string

func (*ImportDocReq) GetDocSegment

func (x *ImportDocReq) GetDocSegment() *DocSegment

func (*ImportDocReq) GetKnowledgeId

func (x *ImportDocReq) GetKnowledgeId() string

func (*ImportDocReq) GetOcrModelId added in v0.1.5

func (x *ImportDocReq) GetOcrModelId() string

func (*ImportDocReq) GetOrgId

func (x *ImportDocReq) GetOrgId() string

func (*ImportDocReq) GetUserId

func (x *ImportDocReq) GetUserId() string

func (*ImportDocReq) ProtoMessage

func (*ImportDocReq) ProtoMessage()

func (*ImportDocReq) ProtoReflect

func (x *ImportDocReq) ProtoReflect() protoreflect.Message

func (*ImportDocReq) Reset

func (x *ImportDocReq) Reset()

func (*ImportDocReq) String

func (x *ImportDocReq) String() string

type InitDocStatusReq

type InitDocStatusReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId  string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	// contains filtered or unexported fields
}

func (*InitDocStatusReq) Descriptor deprecated

func (*InitDocStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use InitDocStatusReq.ProtoReflect.Descriptor instead.

func (*InitDocStatusReq) GetOrgId

func (x *InitDocStatusReq) GetOrgId() string

func (*InitDocStatusReq) GetUserId

func (x *InitDocStatusReq) GetUserId() string

func (*InitDocStatusReq) ProtoMessage

func (*InitDocStatusReq) ProtoMessage()

func (*InitDocStatusReq) ProtoReflect

func (x *InitDocStatusReq) ProtoReflect() protoreflect.Message

func (*InitDocStatusReq) Reset

func (x *InitDocStatusReq) Reset()

func (*InitDocStatusReq) String

func (x *InitDocStatusReq) String() string

type KnowledgeBaseDocServiceClient

type KnowledgeBaseDocServiceClient interface {
	// 获取文档列表
	GetDocList(ctx context.Context, in *GetDocListReq, opts ...grpc.CallOption) (*GetDocListResp, error)
	// 上传文档
	ImportDoc(ctx context.Context, in *ImportDocReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 更新文档状态
	UpdateDocStatus(ctx context.Context, in *UpdateDocStatusReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 更新文档元数据
	UpdateDocMetaData(ctx context.Context, in *UpdateDocMetaDataReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 初始化文档状态
	InitDocStatus(ctx context.Context, in *InitDocStatusReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除文档
	DeleteDoc(ctx context.Context, in *DeleteDocReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 获取知识库异步上传任务提示
	GetDocCategoryUploadTip(ctx context.Context, in *DocImportTipReq, opts ...grpc.CallOption) (*DocImportTipResp, error)
	// 获取知识库文档切分结果
	GetDocSegmentList(ctx context.Context, in *DocSegmentListReq, opts ...grpc.CallOption) (*DocSegmentListResp, error)
	// 更新文档切片状态
	UpdateDocSegmentStatus(ctx context.Context, in *UpdateDocSegmentStatusReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// url上传功能-解析url
	AnalysisDocUrl(ctx context.Context, in *AnalysisUrlDocReq, opts ...grpc.CallOption) (*AnalysisUrlDocResp, error)
	// 更新文档元数据标签
	UpdateDocSegmentLabels(ctx context.Context, in *DocSegmentLabelsReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 新增文档分片
	CreateDocSegment(ctx context.Context, in *CreateDocSegmentReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 批量新增文档分片
	BatchCreateDocSegment(ctx context.Context, in *BatchCreateDocSegmentReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除文档分片
	DeleteDocSegment(ctx context.Context, in *DeleteDocSegmentReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 更新文档分片
	UpdateDocSegment(ctx context.Context, in *UpdateDocSegmentReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

KnowledgeBaseDocServiceClient is the client API for KnowledgeBaseDocService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KnowledgeBaseDocServiceServer

type KnowledgeBaseDocServiceServer interface {
	// 获取文档列表
	GetDocList(context.Context, *GetDocListReq) (*GetDocListResp, error)
	// 上传文档
	ImportDoc(context.Context, *ImportDocReq) (*emptypb.Empty, error)
	// 更新文档状态
	UpdateDocStatus(context.Context, *UpdateDocStatusReq) (*emptypb.Empty, error)
	// 更新文档元数据
	UpdateDocMetaData(context.Context, *UpdateDocMetaDataReq) (*emptypb.Empty, error)
	// 初始化文档状态
	InitDocStatus(context.Context, *InitDocStatusReq) (*emptypb.Empty, error)
	// 删除文档
	DeleteDoc(context.Context, *DeleteDocReq) (*emptypb.Empty, error)
	// 获取知识库异步上传任务提示
	GetDocCategoryUploadTip(context.Context, *DocImportTipReq) (*DocImportTipResp, error)
	// 获取知识库文档切分结果
	GetDocSegmentList(context.Context, *DocSegmentListReq) (*DocSegmentListResp, error)
	// 更新文档切片状态
	UpdateDocSegmentStatus(context.Context, *UpdateDocSegmentStatusReq) (*emptypb.Empty, error)
	// url上传功能-解析url
	AnalysisDocUrl(context.Context, *AnalysisUrlDocReq) (*AnalysisUrlDocResp, error)
	// 更新文档元数据标签
	UpdateDocSegmentLabels(context.Context, *DocSegmentLabelsReq) (*emptypb.Empty, error)
	// 新增文档分片
	CreateDocSegment(context.Context, *CreateDocSegmentReq) (*emptypb.Empty, error)
	// 批量新增文档分片
	BatchCreateDocSegment(context.Context, *BatchCreateDocSegmentReq) (*emptypb.Empty, error)
	// 删除文档分片
	DeleteDocSegment(context.Context, *DeleteDocSegmentReq) (*emptypb.Empty, error)
	// 更新文档分片
	UpdateDocSegment(context.Context, *UpdateDocSegmentReq) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

KnowledgeBaseDocServiceServer is the server API for KnowledgeBaseDocService service. All implementations must embed UnimplementedKnowledgeBaseDocServiceServer for forward compatibility.

type MetaData added in v0.1.6

type MetaData struct {
	MetaId    string `protobuf:"bytes,1,opt,name=metaId,proto3" json:"metaId,omitempty"`       // 元数据id
	Key       string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`             // key
	Value     string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`         // 确定值
	ValueType string `protobuf:"bytes,4,opt,name=valueType,proto3" json:"valueType,omitempty"` // string, number, time
	Option    string `protobuf:"bytes,5,opt,name=option,proto3" json:"option,omitempty"`       // option:add(新增)、update(更新)、delete(删除),update 和delete 的时候metaId 不能为空
	Rule      string `protobuf:"bytes,6,opt,name=rule,proto3" json:"rule,omitempty"`           // 正则表达式
	// contains filtered or unexported fields
}

func (*MetaData) Descriptor deprecated added in v0.1.6

func (*MetaData) Descriptor() ([]byte, []int)

Deprecated: Use MetaData.ProtoReflect.Descriptor instead.

func (*MetaData) GetKey added in v0.1.6

func (x *MetaData) GetKey() string

func (*MetaData) GetMetaId added in v0.1.8

func (x *MetaData) GetMetaId() string

func (*MetaData) GetOption added in v0.1.7

func (x *MetaData) GetOption() string

func (*MetaData) GetRule added in v0.1.7

func (x *MetaData) GetRule() string

func (*MetaData) GetValue added in v0.1.6

func (x *MetaData) GetValue() string

func (*MetaData) GetValueType added in v0.1.7

func (x *MetaData) GetValueType() string

func (*MetaData) ProtoMessage added in v0.1.6

func (*MetaData) ProtoMessage()

func (*MetaData) ProtoReflect added in v0.1.6

func (x *MetaData) ProtoReflect() protoreflect.Message

func (*MetaData) Reset added in v0.1.6

func (x *MetaData) Reset()

func (*MetaData) String added in v0.1.6

func (x *MetaData) String() string

type SegmentContent

type SegmentContent struct {
	Content    string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Len        int32    `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	Available  bool     `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"`
	ContentId  string   `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	ContentNum int32    `protobuf:"varint,5,opt,name=contentNum,proto3" json:"contentNum,omitempty"`
	Labels     []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*SegmentContent) Descriptor deprecated

func (*SegmentContent) Descriptor() ([]byte, []int)

Deprecated: Use SegmentContent.ProtoReflect.Descriptor instead.

func (*SegmentContent) GetAvailable

func (x *SegmentContent) GetAvailable() bool

func (*SegmentContent) GetContent

func (x *SegmentContent) GetContent() string

func (*SegmentContent) GetContentId

func (x *SegmentContent) GetContentId() string

func (*SegmentContent) GetContentNum

func (x *SegmentContent) GetContentNum() int32

func (*SegmentContent) GetLabels added in v0.1.8

func (x *SegmentContent) GetLabels() []string

func (*SegmentContent) GetLen

func (x *SegmentContent) GetLen() int32

func (*SegmentContent) ProtoMessage

func (*SegmentContent) ProtoMessage()

func (*SegmentContent) ProtoReflect

func (x *SegmentContent) ProtoReflect() protoreflect.Message

func (*SegmentContent) Reset

func (x *SegmentContent) Reset()

func (*SegmentContent) String

func (x *SegmentContent) String() string

type UnimplementedKnowledgeBaseDocServiceServer

type UnimplementedKnowledgeBaseDocServiceServer struct{}

UnimplementedKnowledgeBaseDocServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedKnowledgeBaseDocServiceServer) AnalysisDocUrl

func (UnimplementedKnowledgeBaseDocServiceServer) BatchCreateDocSegment added in v0.2.1

func (UnimplementedKnowledgeBaseDocServiceServer) CreateDocSegment added in v0.2.0

func (UnimplementedKnowledgeBaseDocServiceServer) DeleteDoc

func (UnimplementedKnowledgeBaseDocServiceServer) DeleteDocSegment added in v0.2.1

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocCategoryUploadTip

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocList

func (UnimplementedKnowledgeBaseDocServiceServer) GetDocSegmentList

func (UnimplementedKnowledgeBaseDocServiceServer) ImportDoc

func (UnimplementedKnowledgeBaseDocServiceServer) InitDocStatus

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocMetaData added in v0.1.6

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocSegment added in v0.2.1

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocSegmentLabels added in v0.1.8

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocSegmentStatus

func (UnimplementedKnowledgeBaseDocServiceServer) UpdateDocStatus

type UnsafeKnowledgeBaseDocServiceServer

type UnsafeKnowledgeBaseDocServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKnowledgeBaseDocServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KnowledgeBaseDocServiceServer will result in compilation errors.

type UpdateDocMetaDataReq added in v0.1.6

type UpdateDocMetaDataReq struct {
	OrgId        string      `protobuf:"bytes,1,opt,name=orgId,proto3" json:"orgId,omitempty"`
	UserId       string      `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	DocId        string      `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`               //文档id
	MetaDataList []*MetaData `protobuf:"bytes,4,rep,name=metaDataList,proto3" json:"metaDataList,omitempty"` //文档元数据信息
	// contains filtered or unexported fields
}

func (*UpdateDocMetaDataReq) Descriptor deprecated added in v0.1.6

func (*UpdateDocMetaDataReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocMetaDataReq.ProtoReflect.Descriptor instead.

func (*UpdateDocMetaDataReq) GetDocId added in v0.1.6

func (x *UpdateDocMetaDataReq) GetDocId() string

func (*UpdateDocMetaDataReq) GetMetaDataList added in v0.1.6

func (x *UpdateDocMetaDataReq) GetMetaDataList() []*MetaData

func (*UpdateDocMetaDataReq) GetOrgId added in v0.1.6

func (x *UpdateDocMetaDataReq) GetOrgId() string

func (*UpdateDocMetaDataReq) GetUserId added in v0.1.6

func (x *UpdateDocMetaDataReq) GetUserId() string

func (*UpdateDocMetaDataReq) ProtoMessage added in v0.1.6

func (*UpdateDocMetaDataReq) ProtoMessage()

func (*UpdateDocMetaDataReq) ProtoReflect added in v0.1.6

func (x *UpdateDocMetaDataReq) ProtoReflect() protoreflect.Message

func (*UpdateDocMetaDataReq) Reset added in v0.1.6

func (x *UpdateDocMetaDataReq) Reset()

func (*UpdateDocMetaDataReq) String added in v0.1.6

func (x *UpdateDocMetaDataReq) String() string

type UpdateDocSegmentReq

type UpdateDocSegmentReq struct {
	UserId    string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId     string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId     string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	ContentId string `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	Content   string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDocSegmentReq) Descriptor deprecated

func (*UpdateDocSegmentReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocSegmentReq.ProtoReflect.Descriptor instead.

func (*UpdateDocSegmentReq) GetContent added in v0.2.1

func (x *UpdateDocSegmentReq) GetContent() string

func (*UpdateDocSegmentReq) GetContentId

func (x *UpdateDocSegmentReq) GetContentId() string

func (*UpdateDocSegmentReq) GetDocId

func (x *UpdateDocSegmentReq) GetDocId() string

func (*UpdateDocSegmentReq) GetOrgId

func (x *UpdateDocSegmentReq) GetOrgId() string

func (*UpdateDocSegmentReq) GetUserId

func (x *UpdateDocSegmentReq) GetUserId() string

func (*UpdateDocSegmentReq) ProtoMessage

func (*UpdateDocSegmentReq) ProtoMessage()

func (*UpdateDocSegmentReq) ProtoReflect

func (x *UpdateDocSegmentReq) ProtoReflect() protoreflect.Message

func (*UpdateDocSegmentReq) Reset

func (x *UpdateDocSegmentReq) Reset()

func (*UpdateDocSegmentReq) String

func (x *UpdateDocSegmentReq) String() string

type UpdateDocSegmentStatusReq added in v0.2.1

type UpdateDocSegmentStatusReq struct {
	UserId        string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	OrgId         string `protobuf:"bytes,2,opt,name=orgId,proto3" json:"orgId,omitempty"`
	DocId         string `protobuf:"bytes,3,opt,name=docId,proto3" json:"docId,omitempty"`
	ContentId     string `protobuf:"bytes,4,opt,name=contentId,proto3" json:"contentId,omitempty"`
	ContentStatus string `protobuf:"bytes,5,opt,name=contentStatus,proto3" json:"contentStatus,omitempty"`
	All           bool   `protobuf:"varint,6,opt,name=all,proto3" json:"all,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDocSegmentStatusReq) Descriptor deprecated added in v0.2.1

func (*UpdateDocSegmentStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocSegmentStatusReq.ProtoReflect.Descriptor instead.

func (*UpdateDocSegmentStatusReq) GetAll added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetAll() bool

func (*UpdateDocSegmentStatusReq) GetContentId added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetContentId() string

func (*UpdateDocSegmentStatusReq) GetContentStatus added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetContentStatus() string

func (*UpdateDocSegmentStatusReq) GetDocId added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetDocId() string

func (*UpdateDocSegmentStatusReq) GetOrgId added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetOrgId() string

func (*UpdateDocSegmentStatusReq) GetUserId added in v0.2.1

func (x *UpdateDocSegmentStatusReq) GetUserId() string

func (*UpdateDocSegmentStatusReq) ProtoMessage added in v0.2.1

func (*UpdateDocSegmentStatusReq) ProtoMessage()

func (*UpdateDocSegmentStatusReq) ProtoReflect added in v0.2.1

func (*UpdateDocSegmentStatusReq) Reset added in v0.2.1

func (x *UpdateDocSegmentStatusReq) Reset()

func (*UpdateDocSegmentStatusReq) String added in v0.2.1

func (x *UpdateDocSegmentStatusReq) String() string

type UpdateDocStatusReq

type UpdateDocStatusReq struct {
	DocId        string      `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"`               //文档id
	Status       int32       `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`            //文档状态
	MetaDataList []*MetaData `protobuf:"bytes,3,rep,name=metaDataList,proto3" json:"metaDataList,omitempty"` //文档元数据信息
	// contains filtered or unexported fields
}

func (*UpdateDocStatusReq) Descriptor deprecated

func (*UpdateDocStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocStatusReq.ProtoReflect.Descriptor instead.

func (*UpdateDocStatusReq) GetDocId

func (x *UpdateDocStatusReq) GetDocId() string

func (*UpdateDocStatusReq) GetMetaDataList added in v0.1.6

func (x *UpdateDocStatusReq) GetMetaDataList() []*MetaData

func (*UpdateDocStatusReq) GetStatus

func (x *UpdateDocStatusReq) GetStatus() int32

func (*UpdateDocStatusReq) ProtoMessage

func (*UpdateDocStatusReq) ProtoMessage()

func (*UpdateDocStatusReq) ProtoReflect

func (x *UpdateDocStatusReq) ProtoReflect() protoreflect.Message

func (*UpdateDocStatusReq) Reset

func (x *UpdateDocStatusReq) Reset()

func (*UpdateDocStatusReq) String

func (x *UpdateDocStatusReq) String() string

type UrlInfo

type UrlInfo struct {
	Url      string  `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	FileName string  `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
	FileSize float64 `protobuf:"fixed64,3,opt,name=fileSize,proto3" json:"fileSize,omitempty"`
	// contains filtered or unexported fields
}

func (*UrlInfo) Descriptor deprecated

func (*UrlInfo) Descriptor() ([]byte, []int)

Deprecated: Use UrlInfo.ProtoReflect.Descriptor instead.

func (*UrlInfo) GetFileName

func (x *UrlInfo) GetFileName() string

func (*UrlInfo) GetFileSize

func (x *UrlInfo) GetFileSize() float64

func (*UrlInfo) GetUrl

func (x *UrlInfo) GetUrl() string

func (*UrlInfo) ProtoMessage

func (*UrlInfo) ProtoMessage()

func (*UrlInfo) ProtoReflect

func (x *UrlInfo) ProtoReflect() protoreflect.Message

func (*UrlInfo) Reset

func (x *UrlInfo) Reset()

func (*UrlInfo) String

func (x *UrlInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL