12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.27.1
- // protoc v3.19.4
- // source: knowledge.proto
- package knowledge
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- 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 Question struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- XId string `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"`
- Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"`
- Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
- }
- func (x *Question) Reset() {
- *x = Question{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Question) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Question) ProtoMessage() {}
- func (x *Question) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_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 Question.ProtoReflect.Descriptor instead.
- func (*Question) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{0}
- }
- func (x *Question) GetXId() string {
- if x != nil {
- return x.XId
- }
- return ""
- }
- func (x *Question) GetQuestion() string {
- if x != nil {
- return x.Question
- }
- return ""
- }
- func (x *Question) GetAnswer() string {
- if x != nil {
- return x.Answer
- }
- return ""
- }
- type AddRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
- Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
- EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"`
- AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"`
- EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
- }
- func (x *AddRequest) Reset() {
- *x = AddRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AddRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AddRequest) ProtoMessage() {}
- func (x *AddRequest) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_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 AddRequest.ProtoReflect.Descriptor instead.
- func (*AddRequest) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{1}
- }
- func (x *AddRequest) GetQuestion() string {
- if x != nil {
- return x.Question
- }
- return ""
- }
- func (x *AddRequest) GetAnswer() string {
- if x != nil {
- return x.Answer
- }
- return ""
- }
- func (x *AddRequest) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *AddRequest) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- func (x *AddRequest) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- type AddResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *AddResponse) Reset() {
- *x = AddResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AddResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AddResponse) ProtoMessage() {}
- func (x *AddResponse) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_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 AddResponse.ProtoReflect.Descriptor instead.
- func (*AddResponse) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{2}
- }
- func (x *AddResponse) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *AddResponse) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *AddResponse) GetData() string {
- if x != nil {
- return x.Data
- }
- return ""
- }
- type FindAnswerReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
- RobotEntId string `protobuf:"bytes,2,opt,name=robotEntId,proto3" json:"robotEntId,omitempty"` //机器人的企业id
- Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 1文字 2语音
- }
- func (x *FindAnswerReq) Reset() {
- *x = FindAnswerReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindAnswerReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindAnswerReq) ProtoMessage() {}
- func (x *FindAnswerReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_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 FindAnswerReq.ProtoReflect.Descriptor instead.
- func (*FindAnswerReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{3}
- }
- func (x *FindAnswerReq) GetQuestion() string {
- if x != nil {
- return x.Question
- }
- return ""
- }
- func (x *FindAnswerReq) GetRobotEntId() string {
- if x != nil {
- return x.RobotEntId
- }
- return ""
- }
- func (x *FindAnswerReq) GetType() int64 {
- if x != nil {
- return x.Type
- }
- return 0
- }
- type FindAnswerResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data *Question `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *FindAnswerResp) Reset() {
- *x = FindAnswerResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindAnswerResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindAnswerResp) ProtoMessage() {}
- func (x *FindAnswerResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[4]
- 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 FindAnswerResp.ProtoReflect.Descriptor instead.
- func (*FindAnswerResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{4}
- }
- func (x *FindAnswerResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *FindAnswerResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *FindAnswerResp) GetData() *Question {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type RecommendAnswerResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data []*Question `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *RecommendAnswerResp) Reset() {
- *x = RecommendAnswerResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RecommendAnswerResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecommendAnswerResp) ProtoMessage() {}
- func (x *RecommendAnswerResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[5]
- 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 RecommendAnswerResp.ProtoReflect.Descriptor instead.
- func (*RecommendAnswerResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{5}
- }
- func (x *RecommendAnswerResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *RecommendAnswerResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *RecommendAnswerResp) GetData() []*Question {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type ListData struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
- Data []*KnowledgeEntity `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"`
- }
- func (x *ListData) Reset() {
- *x = ListData{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListData) ProtoMessage() {}
- func (x *ListData) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[6]
- 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 ListData.ProtoReflect.Descriptor instead.
- func (*ListData) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{6}
- }
- func (x *ListData) GetTotal() int64 {
- if x != nil {
- return x.Total
- }
- return 0
- }
- func (x *ListData) GetData() []*KnowledgeEntity {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type ListRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量,默认10
- PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页
- EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //租户id
- }
- func (x *ListRequest) Reset() {
- *x = ListRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListRequest) ProtoMessage() {}
- func (x *ListRequest) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[7]
- 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 ListRequest.ProtoReflect.Descriptor instead.
- func (*ListRequest) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{7}
- }
- func (x *ListRequest) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *ListRequest) GetPageIndex() int64 {
- if x != nil {
- return x.PageIndex
- }
- return 0
- }
- func (x *ListRequest) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- type ListResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data *ListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *ListResponse) Reset() {
- *x = ListResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListResponse) ProtoMessage() {}
- func (x *ListResponse) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[8]
- 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 ListResponse.ProtoReflect.Descriptor instead.
- func (*ListResponse) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{8}
- }
- func (x *ListResponse) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *ListResponse) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *ListResponse) GetData() *ListData {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type KnowledgeEntity struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题
- Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案
- AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识
- State int64 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` //知识状态0无效1有效
- Person string `protobuf:"bytes,5,opt,name=person,proto3" json:"person,omitempty"` //人员姓名
- KnowledgeId int64 `protobuf:"varint,6,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
- }
- func (x *KnowledgeEntity) Reset() {
- *x = KnowledgeEntity{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *KnowledgeEntity) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*KnowledgeEntity) ProtoMessage() {}
- func (x *KnowledgeEntity) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[9]
- 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 KnowledgeEntity.ProtoReflect.Descriptor instead.
- func (*KnowledgeEntity) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{9}
- }
- func (x *KnowledgeEntity) GetQuestion() string {
- if x != nil {
- return x.Question
- }
- return ""
- }
- func (x *KnowledgeEntity) GetAnswer() string {
- if x != nil {
- return x.Answer
- }
- return ""
- }
- func (x *KnowledgeEntity) GetAnswerId() int64 {
- if x != nil {
- return x.AnswerId
- }
- return 0
- }
- func (x *KnowledgeEntity) GetState() int64 {
- if x != nil {
- return x.State
- }
- return 0
- }
- func (x *KnowledgeEntity) GetPerson() string {
- if x != nil {
- return x.Person
- }
- return ""
- }
- func (x *KnowledgeEntity) GetKnowledgeId() int64 {
- if x != nil {
- return x.KnowledgeId
- }
- return 0
- }
- type KnowledgeEditReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题
- Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案
- AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识
- EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
- EntId int64 `protobuf:"varint,6,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
- KnowledgeId int64 `protobuf:"varint,7,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` //知识库id
- AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"`
- }
- func (x *KnowledgeEditReq) Reset() {
- *x = KnowledgeEditReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *KnowledgeEditReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*KnowledgeEditReq) ProtoMessage() {}
- func (x *KnowledgeEditReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[10]
- 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 KnowledgeEditReq.ProtoReflect.Descriptor instead.
- func (*KnowledgeEditReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{10}
- }
- func (x *KnowledgeEditReq) GetQuestion() string {
- if x != nil {
- return x.Question
- }
- return ""
- }
- func (x *KnowledgeEditReq) GetAnswer() string {
- if x != nil {
- return x.Answer
- }
- return ""
- }
- func (x *KnowledgeEditReq) GetAnswerId() int64 {
- if x != nil {
- return x.AnswerId
- }
- return 0
- }
- func (x *KnowledgeEditReq) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- func (x *KnowledgeEditReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *KnowledgeEditReq) GetKnowledgeId() int64 {
- if x != nil {
- return x.KnowledgeId
- }
- return 0
- }
- func (x *KnowledgeEditReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type InfoResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data *KnowledgeEntity `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *InfoResponse) Reset() {
- *x = InfoResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *InfoResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*InfoResponse) ProtoMessage() {}
- func (x *InfoResponse) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[11]
- 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 InfoResponse.ProtoReflect.Descriptor instead.
- func (*InfoResponse) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{11}
- }
- func (x *InfoResponse) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *InfoResponse) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *InfoResponse) GetData() *KnowledgeEntity {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type KnowledgeDelReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- AnswerId int64 `protobuf:"varint,1,opt,name=answerId,proto3" json:"answerId,omitempty"`
- }
- func (x *KnowledgeDelReq) Reset() {
- *x = KnowledgeDelReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *KnowledgeDelReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*KnowledgeDelReq) ProtoMessage() {}
- func (x *KnowledgeDelReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[12]
- 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 KnowledgeDelReq.ProtoReflect.Descriptor instead.
- func (*KnowledgeDelReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{12}
- }
- func (x *KnowledgeDelReq) GetAnswerId() int64 {
- if x != nil {
- return x.AnswerId
- }
- return 0
- }
- type CommonPhrasesAddReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类
- Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容
- EntId int64 `protobuf:"varint,4,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
- AppId string `protobuf:"bytes,5,opt,name=appId,proto3" json:"appId,omitempty"`
- EntUserId int64 `protobuf:"varint,6,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
- }
- func (x *CommonPhrasesAddReq) Reset() {
- *x = CommonPhrasesAddReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesAddReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesAddReq) ProtoMessage() {}
- func (x *CommonPhrasesAddReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[13]
- 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 CommonPhrasesAddReq.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesAddReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{13}
- }
- func (x *CommonPhrasesAddReq) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *CommonPhrasesAddReq) GetClassify() string {
- if x != nil {
- return x.Classify
- }
- return ""
- }
- func (x *CommonPhrasesAddReq) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- func (x *CommonPhrasesAddReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *CommonPhrasesAddReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- func (x *CommonPhrasesAddReq) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- type CommonPhrasesInfoReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- }
- func (x *CommonPhrasesInfoReq) Reset() {
- *x = CommonPhrasesInfoReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesInfoReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesInfoReq) ProtoMessage() {}
- func (x *CommonPhrasesInfoReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[14]
- 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 CommonPhrasesInfoReq.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesInfoReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{14}
- }
- func (x *CommonPhrasesInfoReq) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- type CommonPhrasesListReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量
- PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页
- EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
- AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"`
- }
- func (x *CommonPhrasesListReq) Reset() {
- *x = CommonPhrasesListReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesListReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesListReq) ProtoMessage() {}
- func (x *CommonPhrasesListReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[15]
- 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 CommonPhrasesListReq.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesListReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{15}
- }
- func (x *CommonPhrasesListReq) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *CommonPhrasesListReq) GetPageIndex() int64 {
- if x != nil {
- return x.PageIndex
- }
- return 0
- }
- func (x *CommonPhrasesListReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *CommonPhrasesListReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type CommonPhrases struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类
- Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容
- }
- func (x *CommonPhrases) Reset() {
- *x = CommonPhrases{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrases) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrases) ProtoMessage() {}
- func (x *CommonPhrases) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[16]
- 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 CommonPhrases.ProtoReflect.Descriptor instead.
- func (*CommonPhrases) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{16}
- }
- func (x *CommonPhrases) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *CommonPhrases) GetClassify() string {
- if x != nil {
- return x.Classify
- }
- return ""
- }
- func (x *CommonPhrases) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- type CommonPhrasesInfoResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data *CommonPhrases `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
- }
- func (x *CommonPhrasesInfoResp) Reset() {
- *x = CommonPhrasesInfoResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[17]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesInfoResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesInfoResp) ProtoMessage() {}
- func (x *CommonPhrasesInfoResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[17]
- 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 CommonPhrasesInfoResp.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesInfoResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{17}
- }
- func (x *CommonPhrasesInfoResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *CommonPhrasesInfoResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *CommonPhrasesInfoResp) GetData() *CommonPhrases {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type CommonPhrasesList struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
- Data []*CommonPhrases `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"`
- }
- func (x *CommonPhrasesList) Reset() {
- *x = CommonPhrasesList{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[18]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesList) ProtoMessage() {}
- func (x *CommonPhrasesList) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[18]
- 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 CommonPhrasesList.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesList) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{18}
- }
- func (x *CommonPhrasesList) GetTotal() int64 {
- if x != nil {
- return x.Total
- }
- return 0
- }
- func (x *CommonPhrasesList) GetData() []*CommonPhrases {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type CommonPhrasesListResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data *CommonPhrasesList `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
- }
- func (x *CommonPhrasesListResp) Reset() {
- *x = CommonPhrasesListResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[19]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesListResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesListResp) ProtoMessage() {}
- func (x *CommonPhrasesListResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[19]
- 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 CommonPhrasesListResp.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesListResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{19}
- }
- func (x *CommonPhrasesListResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *CommonPhrasesListResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *CommonPhrasesListResp) GetData() *CommonPhrasesList {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type CommonPhrasesClassListReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
- EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
- }
- func (x *CommonPhrasesClassListReq) Reset() {
- *x = CommonPhrasesClassListReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[20]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesClassListReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesClassListReq) ProtoMessage() {}
- func (x *CommonPhrasesClassListReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[20]
- 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 CommonPhrasesClassListReq.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesClassListReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{20}
- }
- func (x *CommonPhrasesClassListReq) GetQuery() string {
- if x != nil {
- return x.Query
- }
- return ""
- }
- func (x *CommonPhrasesClassListReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *CommonPhrasesClassListReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type Content struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
- }
- func (x *Content) Reset() {
- *x = Content{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[21]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Content) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Content) ProtoMessage() {}
- func (x *Content) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[21]
- 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 Content.ProtoReflect.Descriptor instead.
- func (*Content) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{21}
- }
- func (x *Content) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- type CommonPhrasesClassListData struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Classify string `protobuf:"bytes,1,opt,name=classify,proto3" json:"classify,omitempty"`
- ClassList []*Content `protobuf:"bytes,2,rep,name=classList,proto3" json:"classList,omitempty"`
- }
- func (x *CommonPhrasesClassListData) Reset() {
- *x = CommonPhrasesClassListData{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[22]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesClassListData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesClassListData) ProtoMessage() {}
- func (x *CommonPhrasesClassListData) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[22]
- 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 CommonPhrasesClassListData.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesClassListData) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{22}
- }
- func (x *CommonPhrasesClassListData) GetClassify() string {
- if x != nil {
- return x.Classify
- }
- return ""
- }
- func (x *CommonPhrasesClassListData) GetClassList() []*Content {
- if x != nil {
- return x.ClassList
- }
- return nil
- }
- type CommonPhrasesClassListResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data []*CommonPhrasesClassListData `protobuf:"bytes,3,rep,name=Data,proto3" json:"Data,omitempty"`
- }
- func (x *CommonPhrasesClassListResp) Reset() {
- *x = CommonPhrasesClassListResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[23]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhrasesClassListResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhrasesClassListResp) ProtoMessage() {}
- func (x *CommonPhrasesClassListResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[23]
- 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 CommonPhrasesClassListResp.ProtoReflect.Descriptor instead.
- func (*CommonPhrasesClassListResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{23}
- }
- func (x *CommonPhrasesClassListResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *CommonPhrasesClassListResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *CommonPhrasesClassListResp) GetData() []*CommonPhrasesClassListData {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type CommonPhraseQueryReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
- EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"`
- AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
- }
- func (x *CommonPhraseQueryReq) Reset() {
- *x = CommonPhraseQueryReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[24]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhraseQueryReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhraseQueryReq) ProtoMessage() {}
- func (x *CommonPhraseQueryReq) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[24]
- 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 CommonPhraseQueryReq.ProtoReflect.Descriptor instead.
- func (*CommonPhraseQueryReq) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{24}
- }
- func (x *CommonPhraseQueryReq) GetQuery() string {
- if x != nil {
- return x.Query
- }
- return ""
- }
- func (x *CommonPhraseQueryReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *CommonPhraseQueryReq) GetAppId() string {
- if x != nil {
- return x.AppId
- }
- return ""
- }
- type CommonPhraseQueryResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
- ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
- Data []*Content `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
- }
- func (x *CommonPhraseQueryResp) Reset() {
- *x = CommonPhraseQueryResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_knowledge_proto_msgTypes[25]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommonPhraseQueryResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommonPhraseQueryResp) ProtoMessage() {}
- func (x *CommonPhraseQueryResp) ProtoReflect() protoreflect.Message {
- mi := &file_knowledge_proto_msgTypes[25]
- 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 CommonPhraseQueryResp.ProtoReflect.Descriptor instead.
- func (*CommonPhraseQueryResp) Descriptor() ([]byte, []int) {
- return file_knowledge_proto_rawDescGZIP(), []int{25}
- }
- func (x *CommonPhraseQueryResp) GetErrorCode() int64 {
- if x != nil {
- return x.ErrorCode
- }
- return 0
- }
- func (x *CommonPhraseQueryResp) GetErrorMsg() string {
- if x != nil {
- return x.ErrorMsg
- }
- return ""
- }
- func (x *CommonPhraseQueryResp) GetData() []*Content {
- if x != nil {
- return x.Data
- }
- return nil
- }
- var File_knowledge_proto protoreflect.FileDescriptor
- var file_knowledge_proto_rawDesc = []byte{
- 0x0a, 0x0f, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x4f, 0x0a, 0x08, 0x51,
- 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x8a, 0x01, 0x0a,
- 0x0a, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65,
- 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12,
- 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65,
- 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x64, 0x64,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f,
- 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72,
- 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f,
- 0x72, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64,
- 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x45, 0x6e,
- 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74,
- 0x45, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x74, 0x0a, 0x0e, 0x46, 0x69, 0x6e,
- 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
- 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
- 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
- 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
- 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
- 0x79, 0x0a, 0x13, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77,
- 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f,
- 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d,
- 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d,
- 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73,
- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4f, 0x0a, 0x08, 0x4c, 0x69,
- 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x04,
- 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6d,
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45,
- 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x0b, 0x4c,
- 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
- 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61,
- 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e,
- 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49,
- 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x0c, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72,
- 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72,
- 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72,
- 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
- 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb1,
- 0x01, 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69,
- 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16,
- 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72,
- 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72,
- 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x73,
- 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e,
- 0x12, 0x20, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65,
- 0x49, 0x64, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65,
- 0x45, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61,
- 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61,
- 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6b,
- 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a,
- 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
- 0x70, 0x49, 0x64, 0x22, 0x79, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f,
- 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12,
- 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
- 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64,
- 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d,
- 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65,
- 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa5, 0x01,
- 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41,
- 0x64, 0x64, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
- 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
- 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65,
- 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49,
- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
- 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
- 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7c, 0x0a,
- 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
- 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
- 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x0d, 0x43,
- 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
- 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
- 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
- 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72,
- 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a,
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65,
- 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
- 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52,
- 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x56, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
- 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
- 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
- 0x12, 0x2b, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
- 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x84, 0x01,
- 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c,
- 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72,
- 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
- 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d,
- 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04,
- 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
- 0x71, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a,
- 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
- 0x70, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18,
- 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d,
- 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69,
- 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
- 0x66, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
- 0x66, 0x79, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18,
- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
- 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c,
- 0x69, 0x73, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
- 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64,
- 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x38,
- 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74,
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
- 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,
- 0x74, 0x61, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x58, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d,
- 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71,
- 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
- 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
- 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61,
- 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
- 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
- 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
- 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
- 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
- 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xd9,
- 0x07, 0x0a, 0x09, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0c,
- 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x12, 0x14, 0x2e, 0x74,
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64,
- 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f,
- 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x65, 0x6d,
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f,
- 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x6d,
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45,
- 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
- 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a,
- 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19,
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65,
- 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65,
- 0x6c, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f,
- 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74,
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65,
- 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e,
- 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x6d,
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
- 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
- 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
- 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
- 0x48, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
- 0x41, 0x64, 0x64, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
- 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x52,
- 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64,
- 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
- 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e,
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
- 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f,
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
- 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12,
- 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
- 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
- 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73,
- 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
- 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
- 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
- 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x62, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65,
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
- 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x24,
- 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
- 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
- 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
- 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
- 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f,
- 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x33,
- }
- var (
- file_knowledge_proto_rawDescOnce sync.Once
- file_knowledge_proto_rawDescData = file_knowledge_proto_rawDesc
- )
- func file_knowledge_proto_rawDescGZIP() []byte {
- file_knowledge_proto_rawDescOnce.Do(func() {
- file_knowledge_proto_rawDescData = protoimpl.X.CompressGZIP(file_knowledge_proto_rawDescData)
- })
- return file_knowledge_proto_rawDescData
- }
- var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
- var file_knowledge_proto_goTypes = []interface{}{
- (*Question)(nil), // 0: template.Question
- (*AddRequest)(nil), // 1: template.AddRequest
- (*AddResponse)(nil), // 2: template.AddResponse
- (*FindAnswerReq)(nil), // 3: template.FindAnswerReq
- (*FindAnswerResp)(nil), // 4: template.FindAnswerResp
- (*RecommendAnswerResp)(nil), // 5: template.RecommendAnswerResp
- (*ListData)(nil), // 6: template.ListData
- (*ListRequest)(nil), // 7: template.ListRequest
- (*ListResponse)(nil), // 8: template.ListResponse
- (*KnowledgeEntity)(nil), // 9: template.KnowledgeEntity
- (*KnowledgeEditReq)(nil), // 10: template.KnowledgeEditReq
- (*InfoResponse)(nil), // 11: template.InfoResponse
- (*KnowledgeDelReq)(nil), // 12: template.KnowledgeDelReq
- (*CommonPhrasesAddReq)(nil), // 13: template.CommonPhrasesAddReq
- (*CommonPhrasesInfoReq)(nil), // 14: template.CommonPhrasesInfoReq
- (*CommonPhrasesListReq)(nil), // 15: template.CommonPhrasesListReq
- (*CommonPhrases)(nil), // 16: template.CommonPhrases
- (*CommonPhrasesInfoResp)(nil), // 17: template.CommonPhrasesInfoResp
- (*CommonPhrasesList)(nil), // 18: template.CommonPhrasesList
- (*CommonPhrasesListResp)(nil), // 19: template.CommonPhrasesListResp
- (*CommonPhrasesClassListReq)(nil), // 20: template.CommonPhrasesClassListReq
- (*Content)(nil), // 21: template.Content
- (*CommonPhrasesClassListData)(nil), // 22: template.CommonPhrasesClassListData
- (*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp
- (*CommonPhraseQueryReq)(nil), // 24: template.CommonPhraseQueryReq
- (*CommonPhraseQueryResp)(nil), // 25: template.CommonPhraseQueryResp
- }
- var file_knowledge_proto_depIdxs = []int32{
- 0, // 0: template.FindAnswerResp.data:type_name -> template.Question
- 0, // 1: template.RecommendAnswerResp.data:type_name -> template.Question
- 9, // 2: template.ListData.Data:type_name -> template.KnowledgeEntity
- 6, // 3: template.ListResponse.data:type_name -> template.ListData
- 9, // 4: template.InfoResponse.data:type_name -> template.KnowledgeEntity
- 16, // 5: template.CommonPhrasesInfoResp.data:type_name -> template.CommonPhrases
- 16, // 6: template.CommonPhrasesList.Data:type_name -> template.CommonPhrases
- 18, // 7: template.CommonPhrasesListResp.data:type_name -> template.CommonPhrasesList
- 21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content
- 22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData
- 21, // 10: template.CommonPhraseQueryResp.data:type_name -> template.Content
- 1, // 11: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
- 7, // 12: template.knowledge.KnowledgeList:input_type -> template.ListRequest
- 10, // 13: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
- 9, // 14: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
- 12, // 15: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
- 3, // 16: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
- 3, // 17: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
- 13, // 18: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
- 14, // 19: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
- 15, // 20: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
- 14, // 21: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
- 20, // 22: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq
- 24, // 23: template.knowledge.CommonPhraseQuery:input_type -> template.CommonPhraseQueryReq
- 2, // 24: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
- 8, // 25: template.knowledge.KnowledgeList:output_type -> template.ListResponse
- 2, // 26: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
- 11, // 27: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
- 2, // 28: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
- 4, // 29: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
- 5, // 30: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
- 2, // 31: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
- 17, // 32: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
- 19, // 33: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
- 2, // 34: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
- 23, // 35: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp
- 25, // 36: template.knowledge.CommonPhraseQuery:output_type -> template.CommonPhraseQueryResp
- 24, // [24:37] is the sub-list for method output_type
- 11, // [11:24] is the sub-list for method input_type
- 11, // [11:11] is the sub-list for extension type_name
- 11, // [11:11] is the sub-list for extension extendee
- 0, // [0:11] is the sub-list for field type_name
- }
- func init() { file_knowledge_proto_init() }
- func file_knowledge_proto_init() {
- if File_knowledge_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_knowledge_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Question); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AddRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AddResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindAnswerReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindAnswerResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RecommendAnswerResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListData); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*KnowledgeEntity); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*KnowledgeEditReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*InfoResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*KnowledgeDelReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesAddReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesInfoReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesListReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrases); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesInfoResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesList); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesListResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesClassListReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Content); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesClassListData); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhrasesClassListResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhraseQueryReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_knowledge_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommonPhraseQueryResp); 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_knowledge_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 26,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_knowledge_proto_goTypes,
- DependencyIndexes: file_knowledge_proto_depIdxs,
- MessageInfos: file_knowledge_proto_msgTypes,
- }.Build()
- File_knowledge_proto = out.File
- file_knowledge_proto_rawDesc = nil
- file_knowledge_proto_goTypes = nil
- file_knowledge_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // KnowledgeClient is the client API for Knowledge service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type KnowledgeClient interface {
- //知识新增
- KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
- //知识列表
- KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
- //知识编辑
- KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error)
- //知识详情
- KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error)
- //知识删除
- KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error)
- //根据问题匹配答案
- FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error)
- //推荐答案
- RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error)
- //客服话术添加、编辑
- CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error)
- //客服话术详情
- CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error)
- //客服话术列表
- CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error)
- //客服话术删除
- CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error)
- //客服话术分类查询
- CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error)
- //客服输入文字,匹配话术
- CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error)
- }
- type knowledgeClient struct {
- cc grpc.ClientConnInterface
- }
- func NewKnowledgeClient(cc grpc.ClientConnInterface) KnowledgeClient {
- return &knowledgeClient{cc}
- }
- func (c *knowledgeClient) KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) {
- out := new(AddResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
- out := new(ListResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) {
- out := new(AddResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeEdit", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) {
- out := new(InfoResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) {
- out := new(AddResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) {
- out := new(FindAnswerResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/FindAnswer", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) {
- out := new(RecommendAnswerResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/RecommendAnswer", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) {
- out := new(AddResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) {
- out := new(CommonPhrasesInfoResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) {
- out := new(CommonPhrasesListResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) {
- out := new(AddResponse)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) {
- out := new(CommonPhrasesClassListResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseClassList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *knowledgeClient) CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) {
- out := new(CommonPhraseQueryResp)
- err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseQuery", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // KnowledgeServer is the server API for Knowledge service.
- type KnowledgeServer interface {
- //知识新增
- KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error)
- //知识列表
- KnowledgeList(context.Context, *ListRequest) (*ListResponse, error)
- //知识编辑
- KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error)
- //知识详情
- KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error)
- //知识删除
- KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error)
- //根据问题匹配答案
- FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error)
- //推荐答案
- RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error)
- //客服话术添加、编辑
- CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error)
- //客服话术详情
- CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error)
- //客服话术列表
- CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error)
- //客服话术删除
- CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error)
- //客服话术分类查询
- CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error)
- //客服输入文字,匹配话术
- CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error)
- }
- // UnimplementedKnowledgeServer can be embedded to have forward compatible implementations.
- type UnimplementedKnowledgeServer struct {
- }
- func (*UnimplementedKnowledgeServer) KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeAdd not implemented")
- }
- func (*UnimplementedKnowledgeServer) KnowledgeList(context.Context, *ListRequest) (*ListResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeList not implemented")
- }
- func (*UnimplementedKnowledgeServer) KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeEdit not implemented")
- }
- func (*UnimplementedKnowledgeServer) KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeInfo not implemented")
- }
- func (*UnimplementedKnowledgeServer) KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KnowledgeDel not implemented")
- }
- func (*UnimplementedKnowledgeServer) FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindAnswer not implemented")
- }
- func (*UnimplementedKnowledgeServer) RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RecommendAnswer not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesAdd not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesInfo not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesList not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesDel not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseClassList not implemented")
- }
- func (*UnimplementedKnowledgeServer) CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseQuery not implemented")
- }
- func RegisterKnowledgeServer(s *grpc.Server, srv KnowledgeServer) {
- s.RegisterService(&_Knowledge_serviceDesc, srv)
- }
- func _Knowledge_KnowledgeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).KnowledgeAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/KnowledgeAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).KnowledgeAdd(ctx, req.(*AddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_KnowledgeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).KnowledgeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/KnowledgeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).KnowledgeList(ctx, req.(*ListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_KnowledgeEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(KnowledgeEditReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).KnowledgeEdit(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/KnowledgeEdit",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).KnowledgeEdit(ctx, req.(*KnowledgeEditReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_KnowledgeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(KnowledgeEntity)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).KnowledgeInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/KnowledgeInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).KnowledgeInfo(ctx, req.(*KnowledgeEntity))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_KnowledgeDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(KnowledgeDelReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).KnowledgeDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/KnowledgeDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).KnowledgeDel(ctx, req.(*KnowledgeDelReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_FindAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindAnswerReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).FindAnswer(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/FindAnswer",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).FindAnswer(ctx, req.(*FindAnswerReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_RecommendAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindAnswerReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).RecommendAnswer(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/RecommendAnswer",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).RecommendAnswer(ctx, req.(*FindAnswerReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhrasesAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhrasesAddReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhrasesAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, req.(*CommonPhrasesAddReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhrasesInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhrasesInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhrasesInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, req.(*CommonPhrasesInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhrasesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhrasesListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhrasesList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhrasesList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhrasesList(ctx, req.(*CommonPhrasesListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhrasesDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhrasesInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhrasesDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhrasesDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhrasesDel(ctx, req.(*CommonPhrasesInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhraseClassList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhrasesClassListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhraseClassList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhraseClassList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhraseClassList(ctx, req.(*CommonPhrasesClassListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Knowledge_CommonPhraseQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommonPhraseQueryReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(KnowledgeServer).CommonPhraseQuery(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/template.knowledge/CommonPhraseQuery",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(KnowledgeServer).CommonPhraseQuery(ctx, req.(*CommonPhraseQueryReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Knowledge_serviceDesc = grpc.ServiceDesc{
- ServiceName: "template.knowledge",
- HandlerType: (*KnowledgeServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "KnowledgeAdd",
- Handler: _Knowledge_KnowledgeAdd_Handler,
- },
- {
- MethodName: "KnowledgeList",
- Handler: _Knowledge_KnowledgeList_Handler,
- },
- {
- MethodName: "KnowledgeEdit",
- Handler: _Knowledge_KnowledgeEdit_Handler,
- },
- {
- MethodName: "KnowledgeInfo",
- Handler: _Knowledge_KnowledgeInfo_Handler,
- },
- {
- MethodName: "KnowledgeDel",
- Handler: _Knowledge_KnowledgeDel_Handler,
- },
- {
- MethodName: "FindAnswer",
- Handler: _Knowledge_FindAnswer_Handler,
- },
- {
- MethodName: "RecommendAnswer",
- Handler: _Knowledge_RecommendAnswer_Handler,
- },
- {
- MethodName: "CommonPhrasesAdd",
- Handler: _Knowledge_CommonPhrasesAdd_Handler,
- },
- {
- MethodName: "CommonPhrasesInfo",
- Handler: _Knowledge_CommonPhrasesInfo_Handler,
- },
- {
- MethodName: "CommonPhrasesList",
- Handler: _Knowledge_CommonPhrasesList_Handler,
- },
- {
- MethodName: "CommonPhrasesDel",
- Handler: _Knowledge_CommonPhrasesDel_Handler,
- },
- {
- MethodName: "CommonPhraseClassList",
- Handler: _Knowledge_CommonPhraseClassList_Handler,
- },
- {
- MethodName: "CommonPhraseQuery",
- Handler: _Knowledge_CommonPhraseQuery_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "knowledge.proto",
- }
|