knowledge.pb.go 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.19.4
  5. // source: knowledge.proto
  6. package knowledge
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type Question struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. XId string `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"`
  28. Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"`
  29. Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
  30. }
  31. func (x *Question) Reset() {
  32. *x = Question{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_knowledge_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *Question) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Question) ProtoMessage() {}
  43. func (x *Question) ProtoReflect() protoreflect.Message {
  44. mi := &file_knowledge_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Question.ProtoReflect.Descriptor instead.
  55. func (*Question) Descriptor() ([]byte, []int) {
  56. return file_knowledge_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Question) GetXId() string {
  59. if x != nil {
  60. return x.XId
  61. }
  62. return ""
  63. }
  64. func (x *Question) GetQuestion() string {
  65. if x != nil {
  66. return x.Question
  67. }
  68. return ""
  69. }
  70. func (x *Question) GetAnswer() string {
  71. if x != nil {
  72. return x.Answer
  73. }
  74. return ""
  75. }
  76. type AddRequest struct {
  77. state protoimpl.MessageState
  78. sizeCache protoimpl.SizeCache
  79. unknownFields protoimpl.UnknownFields
  80. Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
  81. Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
  82. EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"`
  83. AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"`
  84. EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
  85. }
  86. func (x *AddRequest) Reset() {
  87. *x = AddRequest{}
  88. if protoimpl.UnsafeEnabled {
  89. mi := &file_knowledge_proto_msgTypes[1]
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. ms.StoreMessageInfo(mi)
  92. }
  93. }
  94. func (x *AddRequest) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*AddRequest) ProtoMessage() {}
  98. func (x *AddRequest) ProtoReflect() protoreflect.Message {
  99. mi := &file_knowledge_proto_msgTypes[1]
  100. if protoimpl.UnsafeEnabled && x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.
  110. func (*AddRequest) Descriptor() ([]byte, []int) {
  111. return file_knowledge_proto_rawDescGZIP(), []int{1}
  112. }
  113. func (x *AddRequest) GetQuestion() string {
  114. if x != nil {
  115. return x.Question
  116. }
  117. return ""
  118. }
  119. func (x *AddRequest) GetAnswer() string {
  120. if x != nil {
  121. return x.Answer
  122. }
  123. return ""
  124. }
  125. func (x *AddRequest) GetEntId() int64 {
  126. if x != nil {
  127. return x.EntId
  128. }
  129. return 0
  130. }
  131. func (x *AddRequest) GetAppId() string {
  132. if x != nil {
  133. return x.AppId
  134. }
  135. return ""
  136. }
  137. func (x *AddRequest) GetEntUserId() int64 {
  138. if x != nil {
  139. return x.EntUserId
  140. }
  141. return 0
  142. }
  143. type AddResponse struct {
  144. state protoimpl.MessageState
  145. sizeCache protoimpl.SizeCache
  146. unknownFields protoimpl.UnknownFields
  147. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  148. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  149. Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
  150. }
  151. func (x *AddResponse) Reset() {
  152. *x = AddResponse{}
  153. if protoimpl.UnsafeEnabled {
  154. mi := &file_knowledge_proto_msgTypes[2]
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. ms.StoreMessageInfo(mi)
  157. }
  158. }
  159. func (x *AddResponse) String() string {
  160. return protoimpl.X.MessageStringOf(x)
  161. }
  162. func (*AddResponse) ProtoMessage() {}
  163. func (x *AddResponse) ProtoReflect() protoreflect.Message {
  164. mi := &file_knowledge_proto_msgTypes[2]
  165. if protoimpl.UnsafeEnabled && x != nil {
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. if ms.LoadMessageInfo() == nil {
  168. ms.StoreMessageInfo(mi)
  169. }
  170. return ms
  171. }
  172. return mi.MessageOf(x)
  173. }
  174. // Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.
  175. func (*AddResponse) Descriptor() ([]byte, []int) {
  176. return file_knowledge_proto_rawDescGZIP(), []int{2}
  177. }
  178. func (x *AddResponse) GetErrorCode() int64 {
  179. if x != nil {
  180. return x.ErrorCode
  181. }
  182. return 0
  183. }
  184. func (x *AddResponse) GetErrorMsg() string {
  185. if x != nil {
  186. return x.ErrorMsg
  187. }
  188. return ""
  189. }
  190. func (x *AddResponse) GetData() string {
  191. if x != nil {
  192. return x.Data
  193. }
  194. return ""
  195. }
  196. type FindAnswerReq struct {
  197. state protoimpl.MessageState
  198. sizeCache protoimpl.SizeCache
  199. unknownFields protoimpl.UnknownFields
  200. Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
  201. RobotEntId string `protobuf:"bytes,2,opt,name=robotEntId,proto3" json:"robotEntId,omitempty"` //机器人的企业id
  202. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 1文字 2语音
  203. }
  204. func (x *FindAnswerReq) Reset() {
  205. *x = FindAnswerReq{}
  206. if protoimpl.UnsafeEnabled {
  207. mi := &file_knowledge_proto_msgTypes[3]
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. ms.StoreMessageInfo(mi)
  210. }
  211. }
  212. func (x *FindAnswerReq) String() string {
  213. return protoimpl.X.MessageStringOf(x)
  214. }
  215. func (*FindAnswerReq) ProtoMessage() {}
  216. func (x *FindAnswerReq) ProtoReflect() protoreflect.Message {
  217. mi := &file_knowledge_proto_msgTypes[3]
  218. if protoimpl.UnsafeEnabled && x != nil {
  219. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  220. if ms.LoadMessageInfo() == nil {
  221. ms.StoreMessageInfo(mi)
  222. }
  223. return ms
  224. }
  225. return mi.MessageOf(x)
  226. }
  227. // Deprecated: Use FindAnswerReq.ProtoReflect.Descriptor instead.
  228. func (*FindAnswerReq) Descriptor() ([]byte, []int) {
  229. return file_knowledge_proto_rawDescGZIP(), []int{3}
  230. }
  231. func (x *FindAnswerReq) GetQuestion() string {
  232. if x != nil {
  233. return x.Question
  234. }
  235. return ""
  236. }
  237. func (x *FindAnswerReq) GetRobotEntId() string {
  238. if x != nil {
  239. return x.RobotEntId
  240. }
  241. return ""
  242. }
  243. func (x *FindAnswerReq) GetType() int64 {
  244. if x != nil {
  245. return x.Type
  246. }
  247. return 0
  248. }
  249. type FindAnswerResp struct {
  250. state protoimpl.MessageState
  251. sizeCache protoimpl.SizeCache
  252. unknownFields protoimpl.UnknownFields
  253. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  254. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  255. Data *Question `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
  256. }
  257. func (x *FindAnswerResp) Reset() {
  258. *x = FindAnswerResp{}
  259. if protoimpl.UnsafeEnabled {
  260. mi := &file_knowledge_proto_msgTypes[4]
  261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  262. ms.StoreMessageInfo(mi)
  263. }
  264. }
  265. func (x *FindAnswerResp) String() string {
  266. return protoimpl.X.MessageStringOf(x)
  267. }
  268. func (*FindAnswerResp) ProtoMessage() {}
  269. func (x *FindAnswerResp) ProtoReflect() protoreflect.Message {
  270. mi := &file_knowledge_proto_msgTypes[4]
  271. if protoimpl.UnsafeEnabled && x != nil {
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. if ms.LoadMessageInfo() == nil {
  274. ms.StoreMessageInfo(mi)
  275. }
  276. return ms
  277. }
  278. return mi.MessageOf(x)
  279. }
  280. // Deprecated: Use FindAnswerResp.ProtoReflect.Descriptor instead.
  281. func (*FindAnswerResp) Descriptor() ([]byte, []int) {
  282. return file_knowledge_proto_rawDescGZIP(), []int{4}
  283. }
  284. func (x *FindAnswerResp) GetErrorCode() int64 {
  285. if x != nil {
  286. return x.ErrorCode
  287. }
  288. return 0
  289. }
  290. func (x *FindAnswerResp) GetErrorMsg() string {
  291. if x != nil {
  292. return x.ErrorMsg
  293. }
  294. return ""
  295. }
  296. func (x *FindAnswerResp) GetData() *Question {
  297. if x != nil {
  298. return x.Data
  299. }
  300. return nil
  301. }
  302. type RecommendAnswerResp struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  307. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  308. Data []*Question `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //响应内容
  309. }
  310. func (x *RecommendAnswerResp) Reset() {
  311. *x = RecommendAnswerResp{}
  312. if protoimpl.UnsafeEnabled {
  313. mi := &file_knowledge_proto_msgTypes[5]
  314. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  315. ms.StoreMessageInfo(mi)
  316. }
  317. }
  318. func (x *RecommendAnswerResp) String() string {
  319. return protoimpl.X.MessageStringOf(x)
  320. }
  321. func (*RecommendAnswerResp) ProtoMessage() {}
  322. func (x *RecommendAnswerResp) ProtoReflect() protoreflect.Message {
  323. mi := &file_knowledge_proto_msgTypes[5]
  324. if protoimpl.UnsafeEnabled && x != nil {
  325. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  326. if ms.LoadMessageInfo() == nil {
  327. ms.StoreMessageInfo(mi)
  328. }
  329. return ms
  330. }
  331. return mi.MessageOf(x)
  332. }
  333. // Deprecated: Use RecommendAnswerResp.ProtoReflect.Descriptor instead.
  334. func (*RecommendAnswerResp) Descriptor() ([]byte, []int) {
  335. return file_knowledge_proto_rawDescGZIP(), []int{5}
  336. }
  337. func (x *RecommendAnswerResp) GetErrorCode() int64 {
  338. if x != nil {
  339. return x.ErrorCode
  340. }
  341. return 0
  342. }
  343. func (x *RecommendAnswerResp) GetErrorMsg() string {
  344. if x != nil {
  345. return x.ErrorMsg
  346. }
  347. return ""
  348. }
  349. func (x *RecommendAnswerResp) GetData() []*Question {
  350. if x != nil {
  351. return x.Data
  352. }
  353. return nil
  354. }
  355. type ListData struct {
  356. state protoimpl.MessageState
  357. sizeCache protoimpl.SizeCache
  358. unknownFields protoimpl.UnknownFields
  359. Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  360. Data []*KnowledgeEntity `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"`
  361. }
  362. func (x *ListData) Reset() {
  363. *x = ListData{}
  364. if protoimpl.UnsafeEnabled {
  365. mi := &file_knowledge_proto_msgTypes[6]
  366. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  367. ms.StoreMessageInfo(mi)
  368. }
  369. }
  370. func (x *ListData) String() string {
  371. return protoimpl.X.MessageStringOf(x)
  372. }
  373. func (*ListData) ProtoMessage() {}
  374. func (x *ListData) ProtoReflect() protoreflect.Message {
  375. mi := &file_knowledge_proto_msgTypes[6]
  376. if protoimpl.UnsafeEnabled && x != nil {
  377. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  378. if ms.LoadMessageInfo() == nil {
  379. ms.StoreMessageInfo(mi)
  380. }
  381. return ms
  382. }
  383. return mi.MessageOf(x)
  384. }
  385. // Deprecated: Use ListData.ProtoReflect.Descriptor instead.
  386. func (*ListData) Descriptor() ([]byte, []int) {
  387. return file_knowledge_proto_rawDescGZIP(), []int{6}
  388. }
  389. func (x *ListData) GetTotal() int64 {
  390. if x != nil {
  391. return x.Total
  392. }
  393. return 0
  394. }
  395. func (x *ListData) GetData() []*KnowledgeEntity {
  396. if x != nil {
  397. return x.Data
  398. }
  399. return nil
  400. }
  401. type ListRequest struct {
  402. state protoimpl.MessageState
  403. sizeCache protoimpl.SizeCache
  404. unknownFields protoimpl.UnknownFields
  405. PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量,默认10
  406. PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页
  407. EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //租户id
  408. }
  409. func (x *ListRequest) Reset() {
  410. *x = ListRequest{}
  411. if protoimpl.UnsafeEnabled {
  412. mi := &file_knowledge_proto_msgTypes[7]
  413. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  414. ms.StoreMessageInfo(mi)
  415. }
  416. }
  417. func (x *ListRequest) String() string {
  418. return protoimpl.X.MessageStringOf(x)
  419. }
  420. func (*ListRequest) ProtoMessage() {}
  421. func (x *ListRequest) ProtoReflect() protoreflect.Message {
  422. mi := &file_knowledge_proto_msgTypes[7]
  423. if protoimpl.UnsafeEnabled && x != nil {
  424. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  425. if ms.LoadMessageInfo() == nil {
  426. ms.StoreMessageInfo(mi)
  427. }
  428. return ms
  429. }
  430. return mi.MessageOf(x)
  431. }
  432. // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
  433. func (*ListRequest) Descriptor() ([]byte, []int) {
  434. return file_knowledge_proto_rawDescGZIP(), []int{7}
  435. }
  436. func (x *ListRequest) GetPageSize() int64 {
  437. if x != nil {
  438. return x.PageSize
  439. }
  440. return 0
  441. }
  442. func (x *ListRequest) GetPageIndex() int64 {
  443. if x != nil {
  444. return x.PageIndex
  445. }
  446. return 0
  447. }
  448. func (x *ListRequest) GetEntId() int64 {
  449. if x != nil {
  450. return x.EntId
  451. }
  452. return 0
  453. }
  454. type ListResponse struct {
  455. state protoimpl.MessageState
  456. sizeCache protoimpl.SizeCache
  457. unknownFields protoimpl.UnknownFields
  458. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  459. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  460. Data *ListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
  461. }
  462. func (x *ListResponse) Reset() {
  463. *x = ListResponse{}
  464. if protoimpl.UnsafeEnabled {
  465. mi := &file_knowledge_proto_msgTypes[8]
  466. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  467. ms.StoreMessageInfo(mi)
  468. }
  469. }
  470. func (x *ListResponse) String() string {
  471. return protoimpl.X.MessageStringOf(x)
  472. }
  473. func (*ListResponse) ProtoMessage() {}
  474. func (x *ListResponse) ProtoReflect() protoreflect.Message {
  475. mi := &file_knowledge_proto_msgTypes[8]
  476. if protoimpl.UnsafeEnabled && x != nil {
  477. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  478. if ms.LoadMessageInfo() == nil {
  479. ms.StoreMessageInfo(mi)
  480. }
  481. return ms
  482. }
  483. return mi.MessageOf(x)
  484. }
  485. // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
  486. func (*ListResponse) Descriptor() ([]byte, []int) {
  487. return file_knowledge_proto_rawDescGZIP(), []int{8}
  488. }
  489. func (x *ListResponse) GetErrorCode() int64 {
  490. if x != nil {
  491. return x.ErrorCode
  492. }
  493. return 0
  494. }
  495. func (x *ListResponse) GetErrorMsg() string {
  496. if x != nil {
  497. return x.ErrorMsg
  498. }
  499. return ""
  500. }
  501. func (x *ListResponse) GetData() *ListData {
  502. if x != nil {
  503. return x.Data
  504. }
  505. return nil
  506. }
  507. type KnowledgeEntity struct {
  508. state protoimpl.MessageState
  509. sizeCache protoimpl.SizeCache
  510. unknownFields protoimpl.UnknownFields
  511. Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题
  512. Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案
  513. AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识
  514. State int64 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` //知识状态0无效1有效
  515. Person string `protobuf:"bytes,5,opt,name=person,proto3" json:"person,omitempty"` //人员姓名
  516. KnowledgeId int64 `protobuf:"varint,6,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"`
  517. }
  518. func (x *KnowledgeEntity) Reset() {
  519. *x = KnowledgeEntity{}
  520. if protoimpl.UnsafeEnabled {
  521. mi := &file_knowledge_proto_msgTypes[9]
  522. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  523. ms.StoreMessageInfo(mi)
  524. }
  525. }
  526. func (x *KnowledgeEntity) String() string {
  527. return protoimpl.X.MessageStringOf(x)
  528. }
  529. func (*KnowledgeEntity) ProtoMessage() {}
  530. func (x *KnowledgeEntity) ProtoReflect() protoreflect.Message {
  531. mi := &file_knowledge_proto_msgTypes[9]
  532. if protoimpl.UnsafeEnabled && x != nil {
  533. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  534. if ms.LoadMessageInfo() == nil {
  535. ms.StoreMessageInfo(mi)
  536. }
  537. return ms
  538. }
  539. return mi.MessageOf(x)
  540. }
  541. // Deprecated: Use KnowledgeEntity.ProtoReflect.Descriptor instead.
  542. func (*KnowledgeEntity) Descriptor() ([]byte, []int) {
  543. return file_knowledge_proto_rawDescGZIP(), []int{9}
  544. }
  545. func (x *KnowledgeEntity) GetQuestion() string {
  546. if x != nil {
  547. return x.Question
  548. }
  549. return ""
  550. }
  551. func (x *KnowledgeEntity) GetAnswer() string {
  552. if x != nil {
  553. return x.Answer
  554. }
  555. return ""
  556. }
  557. func (x *KnowledgeEntity) GetAnswerId() int64 {
  558. if x != nil {
  559. return x.AnswerId
  560. }
  561. return 0
  562. }
  563. func (x *KnowledgeEntity) GetState() int64 {
  564. if x != nil {
  565. return x.State
  566. }
  567. return 0
  568. }
  569. func (x *KnowledgeEntity) GetPerson() string {
  570. if x != nil {
  571. return x.Person
  572. }
  573. return ""
  574. }
  575. func (x *KnowledgeEntity) GetKnowledgeId() int64 {
  576. if x != nil {
  577. return x.KnowledgeId
  578. }
  579. return 0
  580. }
  581. type KnowledgeEditReq struct {
  582. state protoimpl.MessageState
  583. sizeCache protoimpl.SizeCache
  584. unknownFields protoimpl.UnknownFields
  585. Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题
  586. Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案
  587. AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识
  588. EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
  589. EntId int64 `protobuf:"varint,6,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
  590. KnowledgeId int64 `protobuf:"varint,7,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` //知识库id
  591. AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"`
  592. }
  593. func (x *KnowledgeEditReq) Reset() {
  594. *x = KnowledgeEditReq{}
  595. if protoimpl.UnsafeEnabled {
  596. mi := &file_knowledge_proto_msgTypes[10]
  597. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  598. ms.StoreMessageInfo(mi)
  599. }
  600. }
  601. func (x *KnowledgeEditReq) String() string {
  602. return protoimpl.X.MessageStringOf(x)
  603. }
  604. func (*KnowledgeEditReq) ProtoMessage() {}
  605. func (x *KnowledgeEditReq) ProtoReflect() protoreflect.Message {
  606. mi := &file_knowledge_proto_msgTypes[10]
  607. if protoimpl.UnsafeEnabled && x != nil {
  608. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  609. if ms.LoadMessageInfo() == nil {
  610. ms.StoreMessageInfo(mi)
  611. }
  612. return ms
  613. }
  614. return mi.MessageOf(x)
  615. }
  616. // Deprecated: Use KnowledgeEditReq.ProtoReflect.Descriptor instead.
  617. func (*KnowledgeEditReq) Descriptor() ([]byte, []int) {
  618. return file_knowledge_proto_rawDescGZIP(), []int{10}
  619. }
  620. func (x *KnowledgeEditReq) GetQuestion() string {
  621. if x != nil {
  622. return x.Question
  623. }
  624. return ""
  625. }
  626. func (x *KnowledgeEditReq) GetAnswer() string {
  627. if x != nil {
  628. return x.Answer
  629. }
  630. return ""
  631. }
  632. func (x *KnowledgeEditReq) GetAnswerId() int64 {
  633. if x != nil {
  634. return x.AnswerId
  635. }
  636. return 0
  637. }
  638. func (x *KnowledgeEditReq) GetEntUserId() int64 {
  639. if x != nil {
  640. return x.EntUserId
  641. }
  642. return 0
  643. }
  644. func (x *KnowledgeEditReq) GetEntId() int64 {
  645. if x != nil {
  646. return x.EntId
  647. }
  648. return 0
  649. }
  650. func (x *KnowledgeEditReq) GetKnowledgeId() int64 {
  651. if x != nil {
  652. return x.KnowledgeId
  653. }
  654. return 0
  655. }
  656. func (x *KnowledgeEditReq) GetAppId() string {
  657. if x != nil {
  658. return x.AppId
  659. }
  660. return ""
  661. }
  662. type InfoResponse struct {
  663. state protoimpl.MessageState
  664. sizeCache protoimpl.SizeCache
  665. unknownFields protoimpl.UnknownFields
  666. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  667. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  668. Data *KnowledgeEntity `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
  669. }
  670. func (x *InfoResponse) Reset() {
  671. *x = InfoResponse{}
  672. if protoimpl.UnsafeEnabled {
  673. mi := &file_knowledge_proto_msgTypes[11]
  674. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  675. ms.StoreMessageInfo(mi)
  676. }
  677. }
  678. func (x *InfoResponse) String() string {
  679. return protoimpl.X.MessageStringOf(x)
  680. }
  681. func (*InfoResponse) ProtoMessage() {}
  682. func (x *InfoResponse) ProtoReflect() protoreflect.Message {
  683. mi := &file_knowledge_proto_msgTypes[11]
  684. if protoimpl.UnsafeEnabled && x != nil {
  685. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  686. if ms.LoadMessageInfo() == nil {
  687. ms.StoreMessageInfo(mi)
  688. }
  689. return ms
  690. }
  691. return mi.MessageOf(x)
  692. }
  693. // Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
  694. func (*InfoResponse) Descriptor() ([]byte, []int) {
  695. return file_knowledge_proto_rawDescGZIP(), []int{11}
  696. }
  697. func (x *InfoResponse) GetErrorCode() int64 {
  698. if x != nil {
  699. return x.ErrorCode
  700. }
  701. return 0
  702. }
  703. func (x *InfoResponse) GetErrorMsg() string {
  704. if x != nil {
  705. return x.ErrorMsg
  706. }
  707. return ""
  708. }
  709. func (x *InfoResponse) GetData() *KnowledgeEntity {
  710. if x != nil {
  711. return x.Data
  712. }
  713. return nil
  714. }
  715. type KnowledgeDelReq struct {
  716. state protoimpl.MessageState
  717. sizeCache protoimpl.SizeCache
  718. unknownFields protoimpl.UnknownFields
  719. AnswerId int64 `protobuf:"varint,1,opt,name=answerId,proto3" json:"answerId,omitempty"`
  720. }
  721. func (x *KnowledgeDelReq) Reset() {
  722. *x = KnowledgeDelReq{}
  723. if protoimpl.UnsafeEnabled {
  724. mi := &file_knowledge_proto_msgTypes[12]
  725. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  726. ms.StoreMessageInfo(mi)
  727. }
  728. }
  729. func (x *KnowledgeDelReq) String() string {
  730. return protoimpl.X.MessageStringOf(x)
  731. }
  732. func (*KnowledgeDelReq) ProtoMessage() {}
  733. func (x *KnowledgeDelReq) ProtoReflect() protoreflect.Message {
  734. mi := &file_knowledge_proto_msgTypes[12]
  735. if protoimpl.UnsafeEnabled && x != nil {
  736. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  737. if ms.LoadMessageInfo() == nil {
  738. ms.StoreMessageInfo(mi)
  739. }
  740. return ms
  741. }
  742. return mi.MessageOf(x)
  743. }
  744. // Deprecated: Use KnowledgeDelReq.ProtoReflect.Descriptor instead.
  745. func (*KnowledgeDelReq) Descriptor() ([]byte, []int) {
  746. return file_knowledge_proto_rawDescGZIP(), []int{12}
  747. }
  748. func (x *KnowledgeDelReq) GetAnswerId() int64 {
  749. if x != nil {
  750. return x.AnswerId
  751. }
  752. return 0
  753. }
  754. type CommonPhrasesAddReq struct {
  755. state protoimpl.MessageState
  756. sizeCache protoimpl.SizeCache
  757. unknownFields protoimpl.UnknownFields
  758. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  759. Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类
  760. Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容
  761. EntId int64 `protobuf:"varint,4,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
  762. AppId string `protobuf:"bytes,5,opt,name=appId,proto3" json:"appId,omitempty"`
  763. EntUserId int64 `protobuf:"varint,6,opt,name=entUserId,proto3" json:"entUserId,omitempty"`
  764. }
  765. func (x *CommonPhrasesAddReq) Reset() {
  766. *x = CommonPhrasesAddReq{}
  767. if protoimpl.UnsafeEnabled {
  768. mi := &file_knowledge_proto_msgTypes[13]
  769. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  770. ms.StoreMessageInfo(mi)
  771. }
  772. }
  773. func (x *CommonPhrasesAddReq) String() string {
  774. return protoimpl.X.MessageStringOf(x)
  775. }
  776. func (*CommonPhrasesAddReq) ProtoMessage() {}
  777. func (x *CommonPhrasesAddReq) ProtoReflect() protoreflect.Message {
  778. mi := &file_knowledge_proto_msgTypes[13]
  779. if protoimpl.UnsafeEnabled && x != nil {
  780. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  781. if ms.LoadMessageInfo() == nil {
  782. ms.StoreMessageInfo(mi)
  783. }
  784. return ms
  785. }
  786. return mi.MessageOf(x)
  787. }
  788. // Deprecated: Use CommonPhrasesAddReq.ProtoReflect.Descriptor instead.
  789. func (*CommonPhrasesAddReq) Descriptor() ([]byte, []int) {
  790. return file_knowledge_proto_rawDescGZIP(), []int{13}
  791. }
  792. func (x *CommonPhrasesAddReq) GetId() int64 {
  793. if x != nil {
  794. return x.Id
  795. }
  796. return 0
  797. }
  798. func (x *CommonPhrasesAddReq) GetClassify() string {
  799. if x != nil {
  800. return x.Classify
  801. }
  802. return ""
  803. }
  804. func (x *CommonPhrasesAddReq) GetContent() string {
  805. if x != nil {
  806. return x.Content
  807. }
  808. return ""
  809. }
  810. func (x *CommonPhrasesAddReq) GetEntId() int64 {
  811. if x != nil {
  812. return x.EntId
  813. }
  814. return 0
  815. }
  816. func (x *CommonPhrasesAddReq) GetAppId() string {
  817. if x != nil {
  818. return x.AppId
  819. }
  820. return ""
  821. }
  822. func (x *CommonPhrasesAddReq) GetEntUserId() int64 {
  823. if x != nil {
  824. return x.EntUserId
  825. }
  826. return 0
  827. }
  828. type CommonPhrasesInfoReq struct {
  829. state protoimpl.MessageState
  830. sizeCache protoimpl.SizeCache
  831. unknownFields protoimpl.UnknownFields
  832. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  833. }
  834. func (x *CommonPhrasesInfoReq) Reset() {
  835. *x = CommonPhrasesInfoReq{}
  836. if protoimpl.UnsafeEnabled {
  837. mi := &file_knowledge_proto_msgTypes[14]
  838. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  839. ms.StoreMessageInfo(mi)
  840. }
  841. }
  842. func (x *CommonPhrasesInfoReq) String() string {
  843. return protoimpl.X.MessageStringOf(x)
  844. }
  845. func (*CommonPhrasesInfoReq) ProtoMessage() {}
  846. func (x *CommonPhrasesInfoReq) ProtoReflect() protoreflect.Message {
  847. mi := &file_knowledge_proto_msgTypes[14]
  848. if protoimpl.UnsafeEnabled && x != nil {
  849. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  850. if ms.LoadMessageInfo() == nil {
  851. ms.StoreMessageInfo(mi)
  852. }
  853. return ms
  854. }
  855. return mi.MessageOf(x)
  856. }
  857. // Deprecated: Use CommonPhrasesInfoReq.ProtoReflect.Descriptor instead.
  858. func (*CommonPhrasesInfoReq) Descriptor() ([]byte, []int) {
  859. return file_knowledge_proto_rawDescGZIP(), []int{14}
  860. }
  861. func (x *CommonPhrasesInfoReq) GetId() int64 {
  862. if x != nil {
  863. return x.Id
  864. }
  865. return 0
  866. }
  867. type CommonPhrasesListReq struct {
  868. state protoimpl.MessageState
  869. sizeCache protoimpl.SizeCache
  870. unknownFields protoimpl.UnknownFields
  871. PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量
  872. PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页
  873. EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
  874. AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"`
  875. }
  876. func (x *CommonPhrasesListReq) Reset() {
  877. *x = CommonPhrasesListReq{}
  878. if protoimpl.UnsafeEnabled {
  879. mi := &file_knowledge_proto_msgTypes[15]
  880. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  881. ms.StoreMessageInfo(mi)
  882. }
  883. }
  884. func (x *CommonPhrasesListReq) String() string {
  885. return protoimpl.X.MessageStringOf(x)
  886. }
  887. func (*CommonPhrasesListReq) ProtoMessage() {}
  888. func (x *CommonPhrasesListReq) ProtoReflect() protoreflect.Message {
  889. mi := &file_knowledge_proto_msgTypes[15]
  890. if protoimpl.UnsafeEnabled && x != nil {
  891. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  892. if ms.LoadMessageInfo() == nil {
  893. ms.StoreMessageInfo(mi)
  894. }
  895. return ms
  896. }
  897. return mi.MessageOf(x)
  898. }
  899. // Deprecated: Use CommonPhrasesListReq.ProtoReflect.Descriptor instead.
  900. func (*CommonPhrasesListReq) Descriptor() ([]byte, []int) {
  901. return file_knowledge_proto_rawDescGZIP(), []int{15}
  902. }
  903. func (x *CommonPhrasesListReq) GetPageSize() int64 {
  904. if x != nil {
  905. return x.PageSize
  906. }
  907. return 0
  908. }
  909. func (x *CommonPhrasesListReq) GetPageIndex() int64 {
  910. if x != nil {
  911. return x.PageIndex
  912. }
  913. return 0
  914. }
  915. func (x *CommonPhrasesListReq) GetEntId() int64 {
  916. if x != nil {
  917. return x.EntId
  918. }
  919. return 0
  920. }
  921. func (x *CommonPhrasesListReq) GetAppId() string {
  922. if x != nil {
  923. return x.AppId
  924. }
  925. return ""
  926. }
  927. type CommonPhrases struct {
  928. state protoimpl.MessageState
  929. sizeCache protoimpl.SizeCache
  930. unknownFields protoimpl.UnknownFields
  931. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  932. Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类
  933. Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容
  934. }
  935. func (x *CommonPhrases) Reset() {
  936. *x = CommonPhrases{}
  937. if protoimpl.UnsafeEnabled {
  938. mi := &file_knowledge_proto_msgTypes[16]
  939. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  940. ms.StoreMessageInfo(mi)
  941. }
  942. }
  943. func (x *CommonPhrases) String() string {
  944. return protoimpl.X.MessageStringOf(x)
  945. }
  946. func (*CommonPhrases) ProtoMessage() {}
  947. func (x *CommonPhrases) ProtoReflect() protoreflect.Message {
  948. mi := &file_knowledge_proto_msgTypes[16]
  949. if protoimpl.UnsafeEnabled && x != nil {
  950. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  951. if ms.LoadMessageInfo() == nil {
  952. ms.StoreMessageInfo(mi)
  953. }
  954. return ms
  955. }
  956. return mi.MessageOf(x)
  957. }
  958. // Deprecated: Use CommonPhrases.ProtoReflect.Descriptor instead.
  959. func (*CommonPhrases) Descriptor() ([]byte, []int) {
  960. return file_knowledge_proto_rawDescGZIP(), []int{16}
  961. }
  962. func (x *CommonPhrases) GetId() int64 {
  963. if x != nil {
  964. return x.Id
  965. }
  966. return 0
  967. }
  968. func (x *CommonPhrases) GetClassify() string {
  969. if x != nil {
  970. return x.Classify
  971. }
  972. return ""
  973. }
  974. func (x *CommonPhrases) GetContent() string {
  975. if x != nil {
  976. return x.Content
  977. }
  978. return ""
  979. }
  980. type CommonPhrasesInfoResp struct {
  981. state protoimpl.MessageState
  982. sizeCache protoimpl.SizeCache
  983. unknownFields protoimpl.UnknownFields
  984. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  985. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  986. Data *CommonPhrases `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  987. }
  988. func (x *CommonPhrasesInfoResp) Reset() {
  989. *x = CommonPhrasesInfoResp{}
  990. if protoimpl.UnsafeEnabled {
  991. mi := &file_knowledge_proto_msgTypes[17]
  992. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  993. ms.StoreMessageInfo(mi)
  994. }
  995. }
  996. func (x *CommonPhrasesInfoResp) String() string {
  997. return protoimpl.X.MessageStringOf(x)
  998. }
  999. func (*CommonPhrasesInfoResp) ProtoMessage() {}
  1000. func (x *CommonPhrasesInfoResp) ProtoReflect() protoreflect.Message {
  1001. mi := &file_knowledge_proto_msgTypes[17]
  1002. if protoimpl.UnsafeEnabled && x != nil {
  1003. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1004. if ms.LoadMessageInfo() == nil {
  1005. ms.StoreMessageInfo(mi)
  1006. }
  1007. return ms
  1008. }
  1009. return mi.MessageOf(x)
  1010. }
  1011. // Deprecated: Use CommonPhrasesInfoResp.ProtoReflect.Descriptor instead.
  1012. func (*CommonPhrasesInfoResp) Descriptor() ([]byte, []int) {
  1013. return file_knowledge_proto_rawDescGZIP(), []int{17}
  1014. }
  1015. func (x *CommonPhrasesInfoResp) GetErrorCode() int64 {
  1016. if x != nil {
  1017. return x.ErrorCode
  1018. }
  1019. return 0
  1020. }
  1021. func (x *CommonPhrasesInfoResp) GetErrorMsg() string {
  1022. if x != nil {
  1023. return x.ErrorMsg
  1024. }
  1025. return ""
  1026. }
  1027. func (x *CommonPhrasesInfoResp) GetData() *CommonPhrases {
  1028. if x != nil {
  1029. return x.Data
  1030. }
  1031. return nil
  1032. }
  1033. type CommonPhrasesList struct {
  1034. state protoimpl.MessageState
  1035. sizeCache protoimpl.SizeCache
  1036. unknownFields protoimpl.UnknownFields
  1037. Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  1038. Data []*CommonPhrases `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"`
  1039. }
  1040. func (x *CommonPhrasesList) Reset() {
  1041. *x = CommonPhrasesList{}
  1042. if protoimpl.UnsafeEnabled {
  1043. mi := &file_knowledge_proto_msgTypes[18]
  1044. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1045. ms.StoreMessageInfo(mi)
  1046. }
  1047. }
  1048. func (x *CommonPhrasesList) String() string {
  1049. return protoimpl.X.MessageStringOf(x)
  1050. }
  1051. func (*CommonPhrasesList) ProtoMessage() {}
  1052. func (x *CommonPhrasesList) ProtoReflect() protoreflect.Message {
  1053. mi := &file_knowledge_proto_msgTypes[18]
  1054. if protoimpl.UnsafeEnabled && x != nil {
  1055. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1056. if ms.LoadMessageInfo() == nil {
  1057. ms.StoreMessageInfo(mi)
  1058. }
  1059. return ms
  1060. }
  1061. return mi.MessageOf(x)
  1062. }
  1063. // Deprecated: Use CommonPhrasesList.ProtoReflect.Descriptor instead.
  1064. func (*CommonPhrasesList) Descriptor() ([]byte, []int) {
  1065. return file_knowledge_proto_rawDescGZIP(), []int{18}
  1066. }
  1067. func (x *CommonPhrasesList) GetTotal() int64 {
  1068. if x != nil {
  1069. return x.Total
  1070. }
  1071. return 0
  1072. }
  1073. func (x *CommonPhrasesList) GetData() []*CommonPhrases {
  1074. if x != nil {
  1075. return x.Data
  1076. }
  1077. return nil
  1078. }
  1079. type CommonPhrasesListResp struct {
  1080. state protoimpl.MessageState
  1081. sizeCache protoimpl.SizeCache
  1082. unknownFields protoimpl.UnknownFields
  1083. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  1084. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  1085. Data *CommonPhrasesList `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
  1086. }
  1087. func (x *CommonPhrasesListResp) Reset() {
  1088. *x = CommonPhrasesListResp{}
  1089. if protoimpl.UnsafeEnabled {
  1090. mi := &file_knowledge_proto_msgTypes[19]
  1091. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1092. ms.StoreMessageInfo(mi)
  1093. }
  1094. }
  1095. func (x *CommonPhrasesListResp) String() string {
  1096. return protoimpl.X.MessageStringOf(x)
  1097. }
  1098. func (*CommonPhrasesListResp) ProtoMessage() {}
  1099. func (x *CommonPhrasesListResp) ProtoReflect() protoreflect.Message {
  1100. mi := &file_knowledge_proto_msgTypes[19]
  1101. if protoimpl.UnsafeEnabled && x != nil {
  1102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1103. if ms.LoadMessageInfo() == nil {
  1104. ms.StoreMessageInfo(mi)
  1105. }
  1106. return ms
  1107. }
  1108. return mi.MessageOf(x)
  1109. }
  1110. // Deprecated: Use CommonPhrasesListResp.ProtoReflect.Descriptor instead.
  1111. func (*CommonPhrasesListResp) Descriptor() ([]byte, []int) {
  1112. return file_knowledge_proto_rawDescGZIP(), []int{19}
  1113. }
  1114. func (x *CommonPhrasesListResp) GetErrorCode() int64 {
  1115. if x != nil {
  1116. return x.ErrorCode
  1117. }
  1118. return 0
  1119. }
  1120. func (x *CommonPhrasesListResp) GetErrorMsg() string {
  1121. if x != nil {
  1122. return x.ErrorMsg
  1123. }
  1124. return ""
  1125. }
  1126. func (x *CommonPhrasesListResp) GetData() *CommonPhrasesList {
  1127. if x != nil {
  1128. return x.Data
  1129. }
  1130. return nil
  1131. }
  1132. type CommonPhrasesClassListReq struct {
  1133. state protoimpl.MessageState
  1134. sizeCache protoimpl.SizeCache
  1135. unknownFields protoimpl.UnknownFields
  1136. Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
  1137. EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"` //企业id
  1138. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
  1139. }
  1140. func (x *CommonPhrasesClassListReq) Reset() {
  1141. *x = CommonPhrasesClassListReq{}
  1142. if protoimpl.UnsafeEnabled {
  1143. mi := &file_knowledge_proto_msgTypes[20]
  1144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1145. ms.StoreMessageInfo(mi)
  1146. }
  1147. }
  1148. func (x *CommonPhrasesClassListReq) String() string {
  1149. return protoimpl.X.MessageStringOf(x)
  1150. }
  1151. func (*CommonPhrasesClassListReq) ProtoMessage() {}
  1152. func (x *CommonPhrasesClassListReq) ProtoReflect() protoreflect.Message {
  1153. mi := &file_knowledge_proto_msgTypes[20]
  1154. if protoimpl.UnsafeEnabled && x != nil {
  1155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1156. if ms.LoadMessageInfo() == nil {
  1157. ms.StoreMessageInfo(mi)
  1158. }
  1159. return ms
  1160. }
  1161. return mi.MessageOf(x)
  1162. }
  1163. // Deprecated: Use CommonPhrasesClassListReq.ProtoReflect.Descriptor instead.
  1164. func (*CommonPhrasesClassListReq) Descriptor() ([]byte, []int) {
  1165. return file_knowledge_proto_rawDescGZIP(), []int{20}
  1166. }
  1167. func (x *CommonPhrasesClassListReq) GetQuery() string {
  1168. if x != nil {
  1169. return x.Query
  1170. }
  1171. return ""
  1172. }
  1173. func (x *CommonPhrasesClassListReq) GetEntId() int64 {
  1174. if x != nil {
  1175. return x.EntId
  1176. }
  1177. return 0
  1178. }
  1179. func (x *CommonPhrasesClassListReq) GetAppId() string {
  1180. if x != nil {
  1181. return x.AppId
  1182. }
  1183. return ""
  1184. }
  1185. type Content struct {
  1186. state protoimpl.MessageState
  1187. sizeCache protoimpl.SizeCache
  1188. unknownFields protoimpl.UnknownFields
  1189. Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
  1190. }
  1191. func (x *Content) Reset() {
  1192. *x = Content{}
  1193. if protoimpl.UnsafeEnabled {
  1194. mi := &file_knowledge_proto_msgTypes[21]
  1195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1196. ms.StoreMessageInfo(mi)
  1197. }
  1198. }
  1199. func (x *Content) String() string {
  1200. return protoimpl.X.MessageStringOf(x)
  1201. }
  1202. func (*Content) ProtoMessage() {}
  1203. func (x *Content) ProtoReflect() protoreflect.Message {
  1204. mi := &file_knowledge_proto_msgTypes[21]
  1205. if protoimpl.UnsafeEnabled && x != nil {
  1206. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1207. if ms.LoadMessageInfo() == nil {
  1208. ms.StoreMessageInfo(mi)
  1209. }
  1210. return ms
  1211. }
  1212. return mi.MessageOf(x)
  1213. }
  1214. // Deprecated: Use Content.ProtoReflect.Descriptor instead.
  1215. func (*Content) Descriptor() ([]byte, []int) {
  1216. return file_knowledge_proto_rawDescGZIP(), []int{21}
  1217. }
  1218. func (x *Content) GetContent() string {
  1219. if x != nil {
  1220. return x.Content
  1221. }
  1222. return ""
  1223. }
  1224. type CommonPhrasesClassListData struct {
  1225. state protoimpl.MessageState
  1226. sizeCache protoimpl.SizeCache
  1227. unknownFields protoimpl.UnknownFields
  1228. Classify string `protobuf:"bytes,1,opt,name=classify,proto3" json:"classify,omitempty"`
  1229. ClassList []*Content `protobuf:"bytes,2,rep,name=classList,proto3" json:"classList,omitempty"`
  1230. }
  1231. func (x *CommonPhrasesClassListData) Reset() {
  1232. *x = CommonPhrasesClassListData{}
  1233. if protoimpl.UnsafeEnabled {
  1234. mi := &file_knowledge_proto_msgTypes[22]
  1235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1236. ms.StoreMessageInfo(mi)
  1237. }
  1238. }
  1239. func (x *CommonPhrasesClassListData) String() string {
  1240. return protoimpl.X.MessageStringOf(x)
  1241. }
  1242. func (*CommonPhrasesClassListData) ProtoMessage() {}
  1243. func (x *CommonPhrasesClassListData) ProtoReflect() protoreflect.Message {
  1244. mi := &file_knowledge_proto_msgTypes[22]
  1245. if protoimpl.UnsafeEnabled && x != nil {
  1246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1247. if ms.LoadMessageInfo() == nil {
  1248. ms.StoreMessageInfo(mi)
  1249. }
  1250. return ms
  1251. }
  1252. return mi.MessageOf(x)
  1253. }
  1254. // Deprecated: Use CommonPhrasesClassListData.ProtoReflect.Descriptor instead.
  1255. func (*CommonPhrasesClassListData) Descriptor() ([]byte, []int) {
  1256. return file_knowledge_proto_rawDescGZIP(), []int{22}
  1257. }
  1258. func (x *CommonPhrasesClassListData) GetClassify() string {
  1259. if x != nil {
  1260. return x.Classify
  1261. }
  1262. return ""
  1263. }
  1264. func (x *CommonPhrasesClassListData) GetClassList() []*Content {
  1265. if x != nil {
  1266. return x.ClassList
  1267. }
  1268. return nil
  1269. }
  1270. type CommonPhrasesClassListResp struct {
  1271. state protoimpl.MessageState
  1272. sizeCache protoimpl.SizeCache
  1273. unknownFields protoimpl.UnknownFields
  1274. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  1275. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  1276. Data []*CommonPhrasesClassListData `protobuf:"bytes,3,rep,name=Data,proto3" json:"Data,omitempty"`
  1277. }
  1278. func (x *CommonPhrasesClassListResp) Reset() {
  1279. *x = CommonPhrasesClassListResp{}
  1280. if protoimpl.UnsafeEnabled {
  1281. mi := &file_knowledge_proto_msgTypes[23]
  1282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1283. ms.StoreMessageInfo(mi)
  1284. }
  1285. }
  1286. func (x *CommonPhrasesClassListResp) String() string {
  1287. return protoimpl.X.MessageStringOf(x)
  1288. }
  1289. func (*CommonPhrasesClassListResp) ProtoMessage() {}
  1290. func (x *CommonPhrasesClassListResp) ProtoReflect() protoreflect.Message {
  1291. mi := &file_knowledge_proto_msgTypes[23]
  1292. if protoimpl.UnsafeEnabled && x != nil {
  1293. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1294. if ms.LoadMessageInfo() == nil {
  1295. ms.StoreMessageInfo(mi)
  1296. }
  1297. return ms
  1298. }
  1299. return mi.MessageOf(x)
  1300. }
  1301. // Deprecated: Use CommonPhrasesClassListResp.ProtoReflect.Descriptor instead.
  1302. func (*CommonPhrasesClassListResp) Descriptor() ([]byte, []int) {
  1303. return file_knowledge_proto_rawDescGZIP(), []int{23}
  1304. }
  1305. func (x *CommonPhrasesClassListResp) GetErrorCode() int64 {
  1306. if x != nil {
  1307. return x.ErrorCode
  1308. }
  1309. return 0
  1310. }
  1311. func (x *CommonPhrasesClassListResp) GetErrorMsg() string {
  1312. if x != nil {
  1313. return x.ErrorMsg
  1314. }
  1315. return ""
  1316. }
  1317. func (x *CommonPhrasesClassListResp) GetData() []*CommonPhrasesClassListData {
  1318. if x != nil {
  1319. return x.Data
  1320. }
  1321. return nil
  1322. }
  1323. type CommonPhraseQueryReq struct {
  1324. state protoimpl.MessageState
  1325. sizeCache protoimpl.SizeCache
  1326. unknownFields protoimpl.UnknownFields
  1327. Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
  1328. EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"`
  1329. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
  1330. }
  1331. func (x *CommonPhraseQueryReq) Reset() {
  1332. *x = CommonPhraseQueryReq{}
  1333. if protoimpl.UnsafeEnabled {
  1334. mi := &file_knowledge_proto_msgTypes[24]
  1335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1336. ms.StoreMessageInfo(mi)
  1337. }
  1338. }
  1339. func (x *CommonPhraseQueryReq) String() string {
  1340. return protoimpl.X.MessageStringOf(x)
  1341. }
  1342. func (*CommonPhraseQueryReq) ProtoMessage() {}
  1343. func (x *CommonPhraseQueryReq) ProtoReflect() protoreflect.Message {
  1344. mi := &file_knowledge_proto_msgTypes[24]
  1345. if protoimpl.UnsafeEnabled && x != nil {
  1346. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1347. if ms.LoadMessageInfo() == nil {
  1348. ms.StoreMessageInfo(mi)
  1349. }
  1350. return ms
  1351. }
  1352. return mi.MessageOf(x)
  1353. }
  1354. // Deprecated: Use CommonPhraseQueryReq.ProtoReflect.Descriptor instead.
  1355. func (*CommonPhraseQueryReq) Descriptor() ([]byte, []int) {
  1356. return file_knowledge_proto_rawDescGZIP(), []int{24}
  1357. }
  1358. func (x *CommonPhraseQueryReq) GetQuery() string {
  1359. if x != nil {
  1360. return x.Query
  1361. }
  1362. return ""
  1363. }
  1364. func (x *CommonPhraseQueryReq) GetEntId() int64 {
  1365. if x != nil {
  1366. return x.EntId
  1367. }
  1368. return 0
  1369. }
  1370. func (x *CommonPhraseQueryReq) GetAppId() string {
  1371. if x != nil {
  1372. return x.AppId
  1373. }
  1374. return ""
  1375. }
  1376. type CommonPhraseQueryResp struct {
  1377. state protoimpl.MessageState
  1378. sizeCache protoimpl.SizeCache
  1379. unknownFields protoimpl.UnknownFields
  1380. ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码
  1381. ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息
  1382. Data []*Content `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  1383. }
  1384. func (x *CommonPhraseQueryResp) Reset() {
  1385. *x = CommonPhraseQueryResp{}
  1386. if protoimpl.UnsafeEnabled {
  1387. mi := &file_knowledge_proto_msgTypes[25]
  1388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1389. ms.StoreMessageInfo(mi)
  1390. }
  1391. }
  1392. func (x *CommonPhraseQueryResp) String() string {
  1393. return protoimpl.X.MessageStringOf(x)
  1394. }
  1395. func (*CommonPhraseQueryResp) ProtoMessage() {}
  1396. func (x *CommonPhraseQueryResp) ProtoReflect() protoreflect.Message {
  1397. mi := &file_knowledge_proto_msgTypes[25]
  1398. if protoimpl.UnsafeEnabled && x != nil {
  1399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1400. if ms.LoadMessageInfo() == nil {
  1401. ms.StoreMessageInfo(mi)
  1402. }
  1403. return ms
  1404. }
  1405. return mi.MessageOf(x)
  1406. }
  1407. // Deprecated: Use CommonPhraseQueryResp.ProtoReflect.Descriptor instead.
  1408. func (*CommonPhraseQueryResp) Descriptor() ([]byte, []int) {
  1409. return file_knowledge_proto_rawDescGZIP(), []int{25}
  1410. }
  1411. func (x *CommonPhraseQueryResp) GetErrorCode() int64 {
  1412. if x != nil {
  1413. return x.ErrorCode
  1414. }
  1415. return 0
  1416. }
  1417. func (x *CommonPhraseQueryResp) GetErrorMsg() string {
  1418. if x != nil {
  1419. return x.ErrorMsg
  1420. }
  1421. return ""
  1422. }
  1423. func (x *CommonPhraseQueryResp) GetData() []*Content {
  1424. if x != nil {
  1425. return x.Data
  1426. }
  1427. return nil
  1428. }
  1429. var File_knowledge_proto protoreflect.FileDescriptor
  1430. var file_knowledge_proto_rawDesc = []byte{
  1431. 0x0a, 0x0f, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  1432. 0x6f, 0x12, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x4f, 0x0a, 0x08, 0x51,
  1433. 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x18, 0x01,
  1434. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73,
  1435. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73,
  1436. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x03,
  1437. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x8a, 0x01, 0x0a,
  1438. 0x0a, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71,
  1439. 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71,
  1440. 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65,
  1441. 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12,
  1442. 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  1443. 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04,
  1444. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65,
  1445. 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  1446. 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x64, 0x64,
  1447. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f,
  1448. 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72,
  1449. 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72,
  1450. 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f,
  1451. 0x72, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01,
  1452. 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64,
  1453. 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65,
  1454. 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65,
  1455. 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x45, 0x6e,
  1456. 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74,
  1457. 0x45, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
  1458. 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x74, 0x0a, 0x0e, 0x46, 0x69, 0x6e,
  1459. 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
  1460. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1461. 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
  1462. 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
  1463. 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
  1464. 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
  1465. 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
  1466. 0x79, 0x0a, 0x13, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77,
  1467. 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
  1468. 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f,
  1469. 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d,
  1470. 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d,
  1471. 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
  1472. 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73,
  1473. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4f, 0x0a, 0x08, 0x4c, 0x69,
  1474. 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18,
  1475. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x04,
  1476. 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6d,
  1477. 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45,
  1478. 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x0b, 0x4c,
  1479. 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  1480. 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61,
  1481. 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e,
  1482. 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49,
  1483. 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20,
  1484. 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x0c, 0x4c, 0x69,
  1485. 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72,
  1486. 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  1487. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72,
  1488. 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72,
  1489. 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
  1490. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
  1491. 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb1,
  1492. 0x01, 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69,
  1493. 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
  1494. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16,
  1495. 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  1496. 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72,
  1497. 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72,
  1498. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  1499. 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x73,
  1500. 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e,
  1501. 0x12, 0x20, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18,
  1502. 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65,
  1503. 0x49, 0x64, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65,
  1504. 0x45, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74,
  1505. 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74,
  1506. 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20,
  1507. 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61,
  1508. 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61,
  1509. 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73,
  1510. 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55,
  1511. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x06,
  1512. 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6b,
  1513. 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  1514. 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a,
  1515. 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  1516. 0x70, 0x49, 0x64, 0x22, 0x79, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f,
  1517. 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64,
  1518. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f,
  1519. 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18,
  1520. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12,
  1521. 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
  1522. 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64,
  1523. 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d,
  1524. 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65,
  1525. 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
  1526. 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa5, 0x01,
  1527. 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41,
  1528. 0x64, 0x64, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1529. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
  1530. 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
  1531. 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
  1532. 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65,
  1533. 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49,
  1534. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  1535. 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73,
  1536. 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55,
  1537. 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
  1538. 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
  1539. 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7c, 0x0a,
  1540. 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69,
  1541. 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
  1542. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
  1543. 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02,
  1544. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
  1545. 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  1546. 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04,
  1547. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x0d, 0x43,
  1548. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02,
  1549. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
  1550. 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  1551. 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
  1552. 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  1553. 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72,
  1554. 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a,
  1555. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  1556. 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65,
  1557. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  1558. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  1559. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
  1560. 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52,
  1561. 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x56, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
  1562. 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
  1563. 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
  1564. 0x12, 0x2b, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
  1565. 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  1566. 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x84, 0x01,
  1567. 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c,
  1568. 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72,
  1569. 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72,
  1570. 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
  1571. 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72,
  1572. 0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
  1573. 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d,
  1574. 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04,
  1575. 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
  1576. 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  1577. 0x71, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  1578. 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64,
  1579. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a,
  1580. 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  1581. 0x70, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18,
  1582. 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  1583. 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d,
  1584. 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69,
  1585. 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
  1586. 0x66, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
  1587. 0x66, 0x79, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18,
  1588. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
  1589. 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c,
  1590. 0x69, 0x73, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
  1591. 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  1592. 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65,
  1593. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64,
  1594. 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02,
  1595. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x38,
  1596. 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74,
  1597. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
  1598. 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,
  1599. 0x74, 0x61, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x58, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d,
  1600. 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71,
  1601. 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  1602. 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18,
  1603. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
  1604. 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  1605. 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61,
  1606. 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
  1607. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1608. 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
  1609. 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
  1610. 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
  1611. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
  1612. 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xd9,
  1613. 0x07, 0x0a, 0x09, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0c,
  1614. 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x12, 0x14, 0x2e, 0x74,
  1615. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
  1616. 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64,
  1617. 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f,
  1618. 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x65, 0x6d,
  1619. 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  1620. 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73,
  1621. 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f,
  1622. 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x6d,
  1623. 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45,
  1624. 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
  1625. 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a,
  1626. 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19,
  1627. 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65,
  1628. 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1629. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  1630. 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65,
  1631. 0x6c, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f,
  1632. 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74,
  1633. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
  1634. 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65,
  1635. 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e,
  1636. 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x6d,
  1637. 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72,
  1638. 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
  1639. 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
  1640. 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  1641. 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x6f,
  1642. 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
  1643. 0x48, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
  1644. 0x41, 0x64, 0x64, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43,
  1645. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x52,
  1646. 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64,
  1647. 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
  1648. 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e,
  1649. 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  1650. 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f,
  1651. 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  1652. 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12,
  1653. 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
  1654. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
  1655. 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73,
  1656. 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e,
  1657. 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73,
  1658. 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
  1659. 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1660. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
  1661. 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1662. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  1663. 0x12, 0x62, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65,
  1664. 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1665. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
  1666. 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x24,
  1667. 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  1668. 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74,
  1669. 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68,
  1670. 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1671. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
  1672. 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70,
  1673. 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73,
  1674. 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f,
  1675. 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1676. 0x33,
  1677. }
  1678. var (
  1679. file_knowledge_proto_rawDescOnce sync.Once
  1680. file_knowledge_proto_rawDescData = file_knowledge_proto_rawDesc
  1681. )
  1682. func file_knowledge_proto_rawDescGZIP() []byte {
  1683. file_knowledge_proto_rawDescOnce.Do(func() {
  1684. file_knowledge_proto_rawDescData = protoimpl.X.CompressGZIP(file_knowledge_proto_rawDescData)
  1685. })
  1686. return file_knowledge_proto_rawDescData
  1687. }
  1688. var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
  1689. var file_knowledge_proto_goTypes = []interface{}{
  1690. (*Question)(nil), // 0: template.Question
  1691. (*AddRequest)(nil), // 1: template.AddRequest
  1692. (*AddResponse)(nil), // 2: template.AddResponse
  1693. (*FindAnswerReq)(nil), // 3: template.FindAnswerReq
  1694. (*FindAnswerResp)(nil), // 4: template.FindAnswerResp
  1695. (*RecommendAnswerResp)(nil), // 5: template.RecommendAnswerResp
  1696. (*ListData)(nil), // 6: template.ListData
  1697. (*ListRequest)(nil), // 7: template.ListRequest
  1698. (*ListResponse)(nil), // 8: template.ListResponse
  1699. (*KnowledgeEntity)(nil), // 9: template.KnowledgeEntity
  1700. (*KnowledgeEditReq)(nil), // 10: template.KnowledgeEditReq
  1701. (*InfoResponse)(nil), // 11: template.InfoResponse
  1702. (*KnowledgeDelReq)(nil), // 12: template.KnowledgeDelReq
  1703. (*CommonPhrasesAddReq)(nil), // 13: template.CommonPhrasesAddReq
  1704. (*CommonPhrasesInfoReq)(nil), // 14: template.CommonPhrasesInfoReq
  1705. (*CommonPhrasesListReq)(nil), // 15: template.CommonPhrasesListReq
  1706. (*CommonPhrases)(nil), // 16: template.CommonPhrases
  1707. (*CommonPhrasesInfoResp)(nil), // 17: template.CommonPhrasesInfoResp
  1708. (*CommonPhrasesList)(nil), // 18: template.CommonPhrasesList
  1709. (*CommonPhrasesListResp)(nil), // 19: template.CommonPhrasesListResp
  1710. (*CommonPhrasesClassListReq)(nil), // 20: template.CommonPhrasesClassListReq
  1711. (*Content)(nil), // 21: template.Content
  1712. (*CommonPhrasesClassListData)(nil), // 22: template.CommonPhrasesClassListData
  1713. (*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp
  1714. (*CommonPhraseQueryReq)(nil), // 24: template.CommonPhraseQueryReq
  1715. (*CommonPhraseQueryResp)(nil), // 25: template.CommonPhraseQueryResp
  1716. }
  1717. var file_knowledge_proto_depIdxs = []int32{
  1718. 0, // 0: template.FindAnswerResp.data:type_name -> template.Question
  1719. 0, // 1: template.RecommendAnswerResp.data:type_name -> template.Question
  1720. 9, // 2: template.ListData.Data:type_name -> template.KnowledgeEntity
  1721. 6, // 3: template.ListResponse.data:type_name -> template.ListData
  1722. 9, // 4: template.InfoResponse.data:type_name -> template.KnowledgeEntity
  1723. 16, // 5: template.CommonPhrasesInfoResp.data:type_name -> template.CommonPhrases
  1724. 16, // 6: template.CommonPhrasesList.Data:type_name -> template.CommonPhrases
  1725. 18, // 7: template.CommonPhrasesListResp.data:type_name -> template.CommonPhrasesList
  1726. 21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content
  1727. 22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData
  1728. 21, // 10: template.CommonPhraseQueryResp.data:type_name -> template.Content
  1729. 1, // 11: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest
  1730. 7, // 12: template.knowledge.KnowledgeList:input_type -> template.ListRequest
  1731. 10, // 13: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq
  1732. 9, // 14: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity
  1733. 12, // 15: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq
  1734. 3, // 16: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq
  1735. 3, // 17: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq
  1736. 13, // 18: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq
  1737. 14, // 19: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq
  1738. 15, // 20: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq
  1739. 14, // 21: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq
  1740. 20, // 22: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq
  1741. 24, // 23: template.knowledge.CommonPhraseQuery:input_type -> template.CommonPhraseQueryReq
  1742. 2, // 24: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse
  1743. 8, // 25: template.knowledge.KnowledgeList:output_type -> template.ListResponse
  1744. 2, // 26: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse
  1745. 11, // 27: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse
  1746. 2, // 28: template.knowledge.KnowledgeDel:output_type -> template.AddResponse
  1747. 4, // 29: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp
  1748. 5, // 30: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp
  1749. 2, // 31: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse
  1750. 17, // 32: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp
  1751. 19, // 33: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp
  1752. 2, // 34: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse
  1753. 23, // 35: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp
  1754. 25, // 36: template.knowledge.CommonPhraseQuery:output_type -> template.CommonPhraseQueryResp
  1755. 24, // [24:37] is the sub-list for method output_type
  1756. 11, // [11:24] is the sub-list for method input_type
  1757. 11, // [11:11] is the sub-list for extension type_name
  1758. 11, // [11:11] is the sub-list for extension extendee
  1759. 0, // [0:11] is the sub-list for field type_name
  1760. }
  1761. func init() { file_knowledge_proto_init() }
  1762. func file_knowledge_proto_init() {
  1763. if File_knowledge_proto != nil {
  1764. return
  1765. }
  1766. if !protoimpl.UnsafeEnabled {
  1767. file_knowledge_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1768. switch v := v.(*Question); i {
  1769. case 0:
  1770. return &v.state
  1771. case 1:
  1772. return &v.sizeCache
  1773. case 2:
  1774. return &v.unknownFields
  1775. default:
  1776. return nil
  1777. }
  1778. }
  1779. file_knowledge_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1780. switch v := v.(*AddRequest); i {
  1781. case 0:
  1782. return &v.state
  1783. case 1:
  1784. return &v.sizeCache
  1785. case 2:
  1786. return &v.unknownFields
  1787. default:
  1788. return nil
  1789. }
  1790. }
  1791. file_knowledge_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1792. switch v := v.(*AddResponse); i {
  1793. case 0:
  1794. return &v.state
  1795. case 1:
  1796. return &v.sizeCache
  1797. case 2:
  1798. return &v.unknownFields
  1799. default:
  1800. return nil
  1801. }
  1802. }
  1803. file_knowledge_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1804. switch v := v.(*FindAnswerReq); i {
  1805. case 0:
  1806. return &v.state
  1807. case 1:
  1808. return &v.sizeCache
  1809. case 2:
  1810. return &v.unknownFields
  1811. default:
  1812. return nil
  1813. }
  1814. }
  1815. file_knowledge_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1816. switch v := v.(*FindAnswerResp); i {
  1817. case 0:
  1818. return &v.state
  1819. case 1:
  1820. return &v.sizeCache
  1821. case 2:
  1822. return &v.unknownFields
  1823. default:
  1824. return nil
  1825. }
  1826. }
  1827. file_knowledge_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1828. switch v := v.(*RecommendAnswerResp); i {
  1829. case 0:
  1830. return &v.state
  1831. case 1:
  1832. return &v.sizeCache
  1833. case 2:
  1834. return &v.unknownFields
  1835. default:
  1836. return nil
  1837. }
  1838. }
  1839. file_knowledge_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1840. switch v := v.(*ListData); i {
  1841. case 0:
  1842. return &v.state
  1843. case 1:
  1844. return &v.sizeCache
  1845. case 2:
  1846. return &v.unknownFields
  1847. default:
  1848. return nil
  1849. }
  1850. }
  1851. file_knowledge_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1852. switch v := v.(*ListRequest); i {
  1853. case 0:
  1854. return &v.state
  1855. case 1:
  1856. return &v.sizeCache
  1857. case 2:
  1858. return &v.unknownFields
  1859. default:
  1860. return nil
  1861. }
  1862. }
  1863. file_knowledge_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1864. switch v := v.(*ListResponse); i {
  1865. case 0:
  1866. return &v.state
  1867. case 1:
  1868. return &v.sizeCache
  1869. case 2:
  1870. return &v.unknownFields
  1871. default:
  1872. return nil
  1873. }
  1874. }
  1875. file_knowledge_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1876. switch v := v.(*KnowledgeEntity); i {
  1877. case 0:
  1878. return &v.state
  1879. case 1:
  1880. return &v.sizeCache
  1881. case 2:
  1882. return &v.unknownFields
  1883. default:
  1884. return nil
  1885. }
  1886. }
  1887. file_knowledge_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1888. switch v := v.(*KnowledgeEditReq); i {
  1889. case 0:
  1890. return &v.state
  1891. case 1:
  1892. return &v.sizeCache
  1893. case 2:
  1894. return &v.unknownFields
  1895. default:
  1896. return nil
  1897. }
  1898. }
  1899. file_knowledge_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1900. switch v := v.(*InfoResponse); i {
  1901. case 0:
  1902. return &v.state
  1903. case 1:
  1904. return &v.sizeCache
  1905. case 2:
  1906. return &v.unknownFields
  1907. default:
  1908. return nil
  1909. }
  1910. }
  1911. file_knowledge_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1912. switch v := v.(*KnowledgeDelReq); i {
  1913. case 0:
  1914. return &v.state
  1915. case 1:
  1916. return &v.sizeCache
  1917. case 2:
  1918. return &v.unknownFields
  1919. default:
  1920. return nil
  1921. }
  1922. }
  1923. file_knowledge_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1924. switch v := v.(*CommonPhrasesAddReq); i {
  1925. case 0:
  1926. return &v.state
  1927. case 1:
  1928. return &v.sizeCache
  1929. case 2:
  1930. return &v.unknownFields
  1931. default:
  1932. return nil
  1933. }
  1934. }
  1935. file_knowledge_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1936. switch v := v.(*CommonPhrasesInfoReq); i {
  1937. case 0:
  1938. return &v.state
  1939. case 1:
  1940. return &v.sizeCache
  1941. case 2:
  1942. return &v.unknownFields
  1943. default:
  1944. return nil
  1945. }
  1946. }
  1947. file_knowledge_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1948. switch v := v.(*CommonPhrasesListReq); i {
  1949. case 0:
  1950. return &v.state
  1951. case 1:
  1952. return &v.sizeCache
  1953. case 2:
  1954. return &v.unknownFields
  1955. default:
  1956. return nil
  1957. }
  1958. }
  1959. file_knowledge_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1960. switch v := v.(*CommonPhrases); i {
  1961. case 0:
  1962. return &v.state
  1963. case 1:
  1964. return &v.sizeCache
  1965. case 2:
  1966. return &v.unknownFields
  1967. default:
  1968. return nil
  1969. }
  1970. }
  1971. file_knowledge_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1972. switch v := v.(*CommonPhrasesInfoResp); i {
  1973. case 0:
  1974. return &v.state
  1975. case 1:
  1976. return &v.sizeCache
  1977. case 2:
  1978. return &v.unknownFields
  1979. default:
  1980. return nil
  1981. }
  1982. }
  1983. file_knowledge_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  1984. switch v := v.(*CommonPhrasesList); i {
  1985. case 0:
  1986. return &v.state
  1987. case 1:
  1988. return &v.sizeCache
  1989. case 2:
  1990. return &v.unknownFields
  1991. default:
  1992. return nil
  1993. }
  1994. }
  1995. file_knowledge_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
  1996. switch v := v.(*CommonPhrasesListResp); i {
  1997. case 0:
  1998. return &v.state
  1999. case 1:
  2000. return &v.sizeCache
  2001. case 2:
  2002. return &v.unknownFields
  2003. default:
  2004. return nil
  2005. }
  2006. }
  2007. file_knowledge_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
  2008. switch v := v.(*CommonPhrasesClassListReq); i {
  2009. case 0:
  2010. return &v.state
  2011. case 1:
  2012. return &v.sizeCache
  2013. case 2:
  2014. return &v.unknownFields
  2015. default:
  2016. return nil
  2017. }
  2018. }
  2019. file_knowledge_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
  2020. switch v := v.(*Content); i {
  2021. case 0:
  2022. return &v.state
  2023. case 1:
  2024. return &v.sizeCache
  2025. case 2:
  2026. return &v.unknownFields
  2027. default:
  2028. return nil
  2029. }
  2030. }
  2031. file_knowledge_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
  2032. switch v := v.(*CommonPhrasesClassListData); i {
  2033. case 0:
  2034. return &v.state
  2035. case 1:
  2036. return &v.sizeCache
  2037. case 2:
  2038. return &v.unknownFields
  2039. default:
  2040. return nil
  2041. }
  2042. }
  2043. file_knowledge_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
  2044. switch v := v.(*CommonPhrasesClassListResp); i {
  2045. case 0:
  2046. return &v.state
  2047. case 1:
  2048. return &v.sizeCache
  2049. case 2:
  2050. return &v.unknownFields
  2051. default:
  2052. return nil
  2053. }
  2054. }
  2055. file_knowledge_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
  2056. switch v := v.(*CommonPhraseQueryReq); i {
  2057. case 0:
  2058. return &v.state
  2059. case 1:
  2060. return &v.sizeCache
  2061. case 2:
  2062. return &v.unknownFields
  2063. default:
  2064. return nil
  2065. }
  2066. }
  2067. file_knowledge_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
  2068. switch v := v.(*CommonPhraseQueryResp); i {
  2069. case 0:
  2070. return &v.state
  2071. case 1:
  2072. return &v.sizeCache
  2073. case 2:
  2074. return &v.unknownFields
  2075. default:
  2076. return nil
  2077. }
  2078. }
  2079. }
  2080. type x struct{}
  2081. out := protoimpl.TypeBuilder{
  2082. File: protoimpl.DescBuilder{
  2083. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  2084. RawDescriptor: file_knowledge_proto_rawDesc,
  2085. NumEnums: 0,
  2086. NumMessages: 26,
  2087. NumExtensions: 0,
  2088. NumServices: 1,
  2089. },
  2090. GoTypes: file_knowledge_proto_goTypes,
  2091. DependencyIndexes: file_knowledge_proto_depIdxs,
  2092. MessageInfos: file_knowledge_proto_msgTypes,
  2093. }.Build()
  2094. File_knowledge_proto = out.File
  2095. file_knowledge_proto_rawDesc = nil
  2096. file_knowledge_proto_goTypes = nil
  2097. file_knowledge_proto_depIdxs = nil
  2098. }
  2099. // Reference imports to suppress errors if they are not otherwise used.
  2100. var _ context.Context
  2101. var _ grpc.ClientConnInterface
  2102. // This is a compile-time assertion to ensure that this generated file
  2103. // is compatible with the grpc package it is being compiled against.
  2104. const _ = grpc.SupportPackageIsVersion6
  2105. // KnowledgeClient is the client API for Knowledge service.
  2106. //
  2107. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2108. type KnowledgeClient interface {
  2109. //知识新增
  2110. KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
  2111. //知识列表
  2112. KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
  2113. //知识编辑
  2114. KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error)
  2115. //知识详情
  2116. KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error)
  2117. //知识删除
  2118. KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error)
  2119. //根据问题匹配答案
  2120. FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error)
  2121. //推荐答案
  2122. RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error)
  2123. //客服话术添加、编辑
  2124. CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error)
  2125. //客服话术详情
  2126. CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error)
  2127. //客服话术列表
  2128. CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error)
  2129. //客服话术删除
  2130. CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error)
  2131. //客服话术分类查询
  2132. CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error)
  2133. //客服输入文字,匹配话术
  2134. CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error)
  2135. }
  2136. type knowledgeClient struct {
  2137. cc grpc.ClientConnInterface
  2138. }
  2139. func NewKnowledgeClient(cc grpc.ClientConnInterface) KnowledgeClient {
  2140. return &knowledgeClient{cc}
  2141. }
  2142. func (c *knowledgeClient) KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) {
  2143. out := new(AddResponse)
  2144. err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeAdd", in, out, opts...)
  2145. if err != nil {
  2146. return nil, err
  2147. }
  2148. return out, nil
  2149. }
  2150. func (c *knowledgeClient) KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
  2151. out := new(ListResponse)
  2152. err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeList", in, out, opts...)
  2153. if err != nil {
  2154. return nil, err
  2155. }
  2156. return out, nil
  2157. }
  2158. func (c *knowledgeClient) KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) {
  2159. out := new(AddResponse)
  2160. err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeEdit", in, out, opts...)
  2161. if err != nil {
  2162. return nil, err
  2163. }
  2164. return out, nil
  2165. }
  2166. func (c *knowledgeClient) KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) {
  2167. out := new(InfoResponse)
  2168. err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeInfo", in, out, opts...)
  2169. if err != nil {
  2170. return nil, err
  2171. }
  2172. return out, nil
  2173. }
  2174. func (c *knowledgeClient) KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) {
  2175. out := new(AddResponse)
  2176. err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeDel", in, out, opts...)
  2177. if err != nil {
  2178. return nil, err
  2179. }
  2180. return out, nil
  2181. }
  2182. func (c *knowledgeClient) FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) {
  2183. out := new(FindAnswerResp)
  2184. err := c.cc.Invoke(ctx, "/template.knowledge/FindAnswer", in, out, opts...)
  2185. if err != nil {
  2186. return nil, err
  2187. }
  2188. return out, nil
  2189. }
  2190. func (c *knowledgeClient) RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) {
  2191. out := new(RecommendAnswerResp)
  2192. err := c.cc.Invoke(ctx, "/template.knowledge/RecommendAnswer", in, out, opts...)
  2193. if err != nil {
  2194. return nil, err
  2195. }
  2196. return out, nil
  2197. }
  2198. func (c *knowledgeClient) CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) {
  2199. out := new(AddResponse)
  2200. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesAdd", in, out, opts...)
  2201. if err != nil {
  2202. return nil, err
  2203. }
  2204. return out, nil
  2205. }
  2206. func (c *knowledgeClient) CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) {
  2207. out := new(CommonPhrasesInfoResp)
  2208. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesInfo", in, out, opts...)
  2209. if err != nil {
  2210. return nil, err
  2211. }
  2212. return out, nil
  2213. }
  2214. func (c *knowledgeClient) CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) {
  2215. out := new(CommonPhrasesListResp)
  2216. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesList", in, out, opts...)
  2217. if err != nil {
  2218. return nil, err
  2219. }
  2220. return out, nil
  2221. }
  2222. func (c *knowledgeClient) CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) {
  2223. out := new(AddResponse)
  2224. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesDel", in, out, opts...)
  2225. if err != nil {
  2226. return nil, err
  2227. }
  2228. return out, nil
  2229. }
  2230. func (c *knowledgeClient) CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) {
  2231. out := new(CommonPhrasesClassListResp)
  2232. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseClassList", in, out, opts...)
  2233. if err != nil {
  2234. return nil, err
  2235. }
  2236. return out, nil
  2237. }
  2238. func (c *knowledgeClient) CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) {
  2239. out := new(CommonPhraseQueryResp)
  2240. err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseQuery", in, out, opts...)
  2241. if err != nil {
  2242. return nil, err
  2243. }
  2244. return out, nil
  2245. }
  2246. // KnowledgeServer is the server API for Knowledge service.
  2247. type KnowledgeServer interface {
  2248. //知识新增
  2249. KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error)
  2250. //知识列表
  2251. KnowledgeList(context.Context, *ListRequest) (*ListResponse, error)
  2252. //知识编辑
  2253. KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error)
  2254. //知识详情
  2255. KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error)
  2256. //知识删除
  2257. KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error)
  2258. //根据问题匹配答案
  2259. FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error)
  2260. //推荐答案
  2261. RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error)
  2262. //客服话术添加、编辑
  2263. CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error)
  2264. //客服话术详情
  2265. CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error)
  2266. //客服话术列表
  2267. CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error)
  2268. //客服话术删除
  2269. CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error)
  2270. //客服话术分类查询
  2271. CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error)
  2272. //客服输入文字,匹配话术
  2273. CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error)
  2274. }
  2275. // UnimplementedKnowledgeServer can be embedded to have forward compatible implementations.
  2276. type UnimplementedKnowledgeServer struct {
  2277. }
  2278. func (*UnimplementedKnowledgeServer) KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error) {
  2279. return nil, status.Errorf(codes.Unimplemented, "method KnowledgeAdd not implemented")
  2280. }
  2281. func (*UnimplementedKnowledgeServer) KnowledgeList(context.Context, *ListRequest) (*ListResponse, error) {
  2282. return nil, status.Errorf(codes.Unimplemented, "method KnowledgeList not implemented")
  2283. }
  2284. func (*UnimplementedKnowledgeServer) KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error) {
  2285. return nil, status.Errorf(codes.Unimplemented, "method KnowledgeEdit not implemented")
  2286. }
  2287. func (*UnimplementedKnowledgeServer) KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error) {
  2288. return nil, status.Errorf(codes.Unimplemented, "method KnowledgeInfo not implemented")
  2289. }
  2290. func (*UnimplementedKnowledgeServer) KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error) {
  2291. return nil, status.Errorf(codes.Unimplemented, "method KnowledgeDel not implemented")
  2292. }
  2293. func (*UnimplementedKnowledgeServer) FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error) {
  2294. return nil, status.Errorf(codes.Unimplemented, "method FindAnswer not implemented")
  2295. }
  2296. func (*UnimplementedKnowledgeServer) RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error) {
  2297. return nil, status.Errorf(codes.Unimplemented, "method RecommendAnswer not implemented")
  2298. }
  2299. func (*UnimplementedKnowledgeServer) CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error) {
  2300. return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesAdd not implemented")
  2301. }
  2302. func (*UnimplementedKnowledgeServer) CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error) {
  2303. return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesInfo not implemented")
  2304. }
  2305. func (*UnimplementedKnowledgeServer) CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error) {
  2306. return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesList not implemented")
  2307. }
  2308. func (*UnimplementedKnowledgeServer) CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error) {
  2309. return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesDel not implemented")
  2310. }
  2311. func (*UnimplementedKnowledgeServer) CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error) {
  2312. return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseClassList not implemented")
  2313. }
  2314. func (*UnimplementedKnowledgeServer) CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error) {
  2315. return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseQuery not implemented")
  2316. }
  2317. func RegisterKnowledgeServer(s *grpc.Server, srv KnowledgeServer) {
  2318. s.RegisterService(&_Knowledge_serviceDesc, srv)
  2319. }
  2320. func _Knowledge_KnowledgeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2321. in := new(AddRequest)
  2322. if err := dec(in); err != nil {
  2323. return nil, err
  2324. }
  2325. if interceptor == nil {
  2326. return srv.(KnowledgeServer).KnowledgeAdd(ctx, in)
  2327. }
  2328. info := &grpc.UnaryServerInfo{
  2329. Server: srv,
  2330. FullMethod: "/template.knowledge/KnowledgeAdd",
  2331. }
  2332. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2333. return srv.(KnowledgeServer).KnowledgeAdd(ctx, req.(*AddRequest))
  2334. }
  2335. return interceptor(ctx, in, info, handler)
  2336. }
  2337. func _Knowledge_KnowledgeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2338. in := new(ListRequest)
  2339. if err := dec(in); err != nil {
  2340. return nil, err
  2341. }
  2342. if interceptor == nil {
  2343. return srv.(KnowledgeServer).KnowledgeList(ctx, in)
  2344. }
  2345. info := &grpc.UnaryServerInfo{
  2346. Server: srv,
  2347. FullMethod: "/template.knowledge/KnowledgeList",
  2348. }
  2349. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2350. return srv.(KnowledgeServer).KnowledgeList(ctx, req.(*ListRequest))
  2351. }
  2352. return interceptor(ctx, in, info, handler)
  2353. }
  2354. func _Knowledge_KnowledgeEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2355. in := new(KnowledgeEditReq)
  2356. if err := dec(in); err != nil {
  2357. return nil, err
  2358. }
  2359. if interceptor == nil {
  2360. return srv.(KnowledgeServer).KnowledgeEdit(ctx, in)
  2361. }
  2362. info := &grpc.UnaryServerInfo{
  2363. Server: srv,
  2364. FullMethod: "/template.knowledge/KnowledgeEdit",
  2365. }
  2366. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2367. return srv.(KnowledgeServer).KnowledgeEdit(ctx, req.(*KnowledgeEditReq))
  2368. }
  2369. return interceptor(ctx, in, info, handler)
  2370. }
  2371. func _Knowledge_KnowledgeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2372. in := new(KnowledgeEntity)
  2373. if err := dec(in); err != nil {
  2374. return nil, err
  2375. }
  2376. if interceptor == nil {
  2377. return srv.(KnowledgeServer).KnowledgeInfo(ctx, in)
  2378. }
  2379. info := &grpc.UnaryServerInfo{
  2380. Server: srv,
  2381. FullMethod: "/template.knowledge/KnowledgeInfo",
  2382. }
  2383. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2384. return srv.(KnowledgeServer).KnowledgeInfo(ctx, req.(*KnowledgeEntity))
  2385. }
  2386. return interceptor(ctx, in, info, handler)
  2387. }
  2388. func _Knowledge_KnowledgeDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2389. in := new(KnowledgeDelReq)
  2390. if err := dec(in); err != nil {
  2391. return nil, err
  2392. }
  2393. if interceptor == nil {
  2394. return srv.(KnowledgeServer).KnowledgeDel(ctx, in)
  2395. }
  2396. info := &grpc.UnaryServerInfo{
  2397. Server: srv,
  2398. FullMethod: "/template.knowledge/KnowledgeDel",
  2399. }
  2400. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2401. return srv.(KnowledgeServer).KnowledgeDel(ctx, req.(*KnowledgeDelReq))
  2402. }
  2403. return interceptor(ctx, in, info, handler)
  2404. }
  2405. func _Knowledge_FindAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2406. in := new(FindAnswerReq)
  2407. if err := dec(in); err != nil {
  2408. return nil, err
  2409. }
  2410. if interceptor == nil {
  2411. return srv.(KnowledgeServer).FindAnswer(ctx, in)
  2412. }
  2413. info := &grpc.UnaryServerInfo{
  2414. Server: srv,
  2415. FullMethod: "/template.knowledge/FindAnswer",
  2416. }
  2417. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2418. return srv.(KnowledgeServer).FindAnswer(ctx, req.(*FindAnswerReq))
  2419. }
  2420. return interceptor(ctx, in, info, handler)
  2421. }
  2422. func _Knowledge_RecommendAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2423. in := new(FindAnswerReq)
  2424. if err := dec(in); err != nil {
  2425. return nil, err
  2426. }
  2427. if interceptor == nil {
  2428. return srv.(KnowledgeServer).RecommendAnswer(ctx, in)
  2429. }
  2430. info := &grpc.UnaryServerInfo{
  2431. Server: srv,
  2432. FullMethod: "/template.knowledge/RecommendAnswer",
  2433. }
  2434. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2435. return srv.(KnowledgeServer).RecommendAnswer(ctx, req.(*FindAnswerReq))
  2436. }
  2437. return interceptor(ctx, in, info, handler)
  2438. }
  2439. func _Knowledge_CommonPhrasesAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2440. in := new(CommonPhrasesAddReq)
  2441. if err := dec(in); err != nil {
  2442. return nil, err
  2443. }
  2444. if interceptor == nil {
  2445. return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, in)
  2446. }
  2447. info := &grpc.UnaryServerInfo{
  2448. Server: srv,
  2449. FullMethod: "/template.knowledge/CommonPhrasesAdd",
  2450. }
  2451. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2452. return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, req.(*CommonPhrasesAddReq))
  2453. }
  2454. return interceptor(ctx, in, info, handler)
  2455. }
  2456. func _Knowledge_CommonPhrasesInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2457. in := new(CommonPhrasesInfoReq)
  2458. if err := dec(in); err != nil {
  2459. return nil, err
  2460. }
  2461. if interceptor == nil {
  2462. return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, in)
  2463. }
  2464. info := &grpc.UnaryServerInfo{
  2465. Server: srv,
  2466. FullMethod: "/template.knowledge/CommonPhrasesInfo",
  2467. }
  2468. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2469. return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, req.(*CommonPhrasesInfoReq))
  2470. }
  2471. return interceptor(ctx, in, info, handler)
  2472. }
  2473. func _Knowledge_CommonPhrasesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2474. in := new(CommonPhrasesListReq)
  2475. if err := dec(in); err != nil {
  2476. return nil, err
  2477. }
  2478. if interceptor == nil {
  2479. return srv.(KnowledgeServer).CommonPhrasesList(ctx, in)
  2480. }
  2481. info := &grpc.UnaryServerInfo{
  2482. Server: srv,
  2483. FullMethod: "/template.knowledge/CommonPhrasesList",
  2484. }
  2485. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2486. return srv.(KnowledgeServer).CommonPhrasesList(ctx, req.(*CommonPhrasesListReq))
  2487. }
  2488. return interceptor(ctx, in, info, handler)
  2489. }
  2490. func _Knowledge_CommonPhrasesDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2491. in := new(CommonPhrasesInfoReq)
  2492. if err := dec(in); err != nil {
  2493. return nil, err
  2494. }
  2495. if interceptor == nil {
  2496. return srv.(KnowledgeServer).CommonPhrasesDel(ctx, in)
  2497. }
  2498. info := &grpc.UnaryServerInfo{
  2499. Server: srv,
  2500. FullMethod: "/template.knowledge/CommonPhrasesDel",
  2501. }
  2502. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2503. return srv.(KnowledgeServer).CommonPhrasesDel(ctx, req.(*CommonPhrasesInfoReq))
  2504. }
  2505. return interceptor(ctx, in, info, handler)
  2506. }
  2507. func _Knowledge_CommonPhraseClassList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2508. in := new(CommonPhrasesClassListReq)
  2509. if err := dec(in); err != nil {
  2510. return nil, err
  2511. }
  2512. if interceptor == nil {
  2513. return srv.(KnowledgeServer).CommonPhraseClassList(ctx, in)
  2514. }
  2515. info := &grpc.UnaryServerInfo{
  2516. Server: srv,
  2517. FullMethod: "/template.knowledge/CommonPhraseClassList",
  2518. }
  2519. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2520. return srv.(KnowledgeServer).CommonPhraseClassList(ctx, req.(*CommonPhrasesClassListReq))
  2521. }
  2522. return interceptor(ctx, in, info, handler)
  2523. }
  2524. func _Knowledge_CommonPhraseQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2525. in := new(CommonPhraseQueryReq)
  2526. if err := dec(in); err != nil {
  2527. return nil, err
  2528. }
  2529. if interceptor == nil {
  2530. return srv.(KnowledgeServer).CommonPhraseQuery(ctx, in)
  2531. }
  2532. info := &grpc.UnaryServerInfo{
  2533. Server: srv,
  2534. FullMethod: "/template.knowledge/CommonPhraseQuery",
  2535. }
  2536. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2537. return srv.(KnowledgeServer).CommonPhraseQuery(ctx, req.(*CommonPhraseQueryReq))
  2538. }
  2539. return interceptor(ctx, in, info, handler)
  2540. }
  2541. var _Knowledge_serviceDesc = grpc.ServiceDesc{
  2542. ServiceName: "template.knowledge",
  2543. HandlerType: (*KnowledgeServer)(nil),
  2544. Methods: []grpc.MethodDesc{
  2545. {
  2546. MethodName: "KnowledgeAdd",
  2547. Handler: _Knowledge_KnowledgeAdd_Handler,
  2548. },
  2549. {
  2550. MethodName: "KnowledgeList",
  2551. Handler: _Knowledge_KnowledgeList_Handler,
  2552. },
  2553. {
  2554. MethodName: "KnowledgeEdit",
  2555. Handler: _Knowledge_KnowledgeEdit_Handler,
  2556. },
  2557. {
  2558. MethodName: "KnowledgeInfo",
  2559. Handler: _Knowledge_KnowledgeInfo_Handler,
  2560. },
  2561. {
  2562. MethodName: "KnowledgeDel",
  2563. Handler: _Knowledge_KnowledgeDel_Handler,
  2564. },
  2565. {
  2566. MethodName: "FindAnswer",
  2567. Handler: _Knowledge_FindAnswer_Handler,
  2568. },
  2569. {
  2570. MethodName: "RecommendAnswer",
  2571. Handler: _Knowledge_RecommendAnswer_Handler,
  2572. },
  2573. {
  2574. MethodName: "CommonPhrasesAdd",
  2575. Handler: _Knowledge_CommonPhrasesAdd_Handler,
  2576. },
  2577. {
  2578. MethodName: "CommonPhrasesInfo",
  2579. Handler: _Knowledge_CommonPhrasesInfo_Handler,
  2580. },
  2581. {
  2582. MethodName: "CommonPhrasesList",
  2583. Handler: _Knowledge_CommonPhrasesList_Handler,
  2584. },
  2585. {
  2586. MethodName: "CommonPhrasesDel",
  2587. Handler: _Knowledge_CommonPhrasesDel_Handler,
  2588. },
  2589. {
  2590. MethodName: "CommonPhraseClassList",
  2591. Handler: _Knowledge_CommonPhraseClassList_Handler,
  2592. },
  2593. {
  2594. MethodName: "CommonPhraseQuery",
  2595. Handler: _Knowledge_CommonPhraseQuery_Handler,
  2596. },
  2597. },
  2598. Streams: []grpc.StreamDesc{},
  2599. Metadata: "knowledge.proto",
  2600. }