stdlib.pb.go 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.11.4
  5. // source: stdlib.proto
  6. package stdlib
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type DocQueryRequest struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. PageNum int64 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
  32. PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
  33. KeyWord string `protobuf:"bytes,3,opt,name=keyWord,proto3" json:"keyWord,omitempty"` //检索词 文档名检索 模糊
  34. DocClass []string `protobuf:"bytes,4,rep,name=docClass,proto3" json:"docClass,omitempty"` // 分类 []string
  35. DocTag []string `protobuf:"bytes,5,rep,name=docTag,proto3" json:"docTag,omitempty"` // 标签 []string
  36. UpdateDateSort int64 `protobuf:"varint,6,opt,name=updateDateSort,proto3" json:"updateDateSort,omitempty"` // 上传时间排序 1正序 -1倒序
  37. DownloadSort int64 `protobuf:"varint,7,opt,name=downloadSort,proto3" json:"downloadSort,omitempty"` // 下载次数排序 1正序 -1倒序
  38. ViewSort int64 `protobuf:"varint,8,opt,name=viewSort,proto3" json:"viewSort,omitempty"` // 浏览量排序 1正序 -1倒序
  39. UserId string `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  40. }
  41. func (x *DocQueryRequest) Reset() {
  42. *x = DocQueryRequest{}
  43. if protoimpl.UnsafeEnabled {
  44. mi := &file_stdlib_proto_msgTypes[0]
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. ms.StoreMessageInfo(mi)
  47. }
  48. }
  49. func (x *DocQueryRequest) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*DocQueryRequest) ProtoMessage() {}
  53. func (x *DocQueryRequest) ProtoReflect() protoreflect.Message {
  54. mi := &file_stdlib_proto_msgTypes[0]
  55. if protoimpl.UnsafeEnabled && x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. // Deprecated: Use DocQueryRequest.ProtoReflect.Descriptor instead.
  65. func (*DocQueryRequest) Descriptor() ([]byte, []int) {
  66. return file_stdlib_proto_rawDescGZIP(), []int{0}
  67. }
  68. func (x *DocQueryRequest) GetPageNum() int64 {
  69. if x != nil {
  70. return x.PageNum
  71. }
  72. return 0
  73. }
  74. func (x *DocQueryRequest) GetPageSize() int64 {
  75. if x != nil {
  76. return x.PageSize
  77. }
  78. return 0
  79. }
  80. func (x *DocQueryRequest) GetKeyWord() string {
  81. if x != nil {
  82. return x.KeyWord
  83. }
  84. return ""
  85. }
  86. func (x *DocQueryRequest) GetDocClass() []string {
  87. if x != nil {
  88. return x.DocClass
  89. }
  90. return nil
  91. }
  92. func (x *DocQueryRequest) GetDocTag() []string {
  93. if x != nil {
  94. return x.DocTag
  95. }
  96. return nil
  97. }
  98. func (x *DocQueryRequest) GetUpdateDateSort() int64 {
  99. if x != nil {
  100. return x.UpdateDateSort
  101. }
  102. return 0
  103. }
  104. func (x *DocQueryRequest) GetDownloadSort() int64 {
  105. if x != nil {
  106. return x.DownloadSort
  107. }
  108. return 0
  109. }
  110. func (x *DocQueryRequest) GetViewSort() int64 {
  111. if x != nil {
  112. return x.ViewSort
  113. }
  114. return 0
  115. }
  116. func (x *DocQueryRequest) GetUserId() string {
  117. if x != nil {
  118. return x.UserId
  119. }
  120. return ""
  121. }
  122. type DocQueryResponse struct {
  123. state protoimpl.MessageState
  124. sizeCache protoimpl.SizeCache
  125. unknownFields protoimpl.UnknownFields
  126. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  127. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  128. Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数
  129. Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
  130. }
  131. func (x *DocQueryResponse) Reset() {
  132. *x = DocQueryResponse{}
  133. if protoimpl.UnsafeEnabled {
  134. mi := &file_stdlib_proto_msgTypes[1]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. }
  139. func (x *DocQueryResponse) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*DocQueryResponse) ProtoMessage() {}
  143. func (x *DocQueryResponse) ProtoReflect() protoreflect.Message {
  144. mi := &file_stdlib_proto_msgTypes[1]
  145. if protoimpl.UnsafeEnabled && x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use DocQueryResponse.ProtoReflect.Descriptor instead.
  155. func (*DocQueryResponse) Descriptor() ([]byte, []int) {
  156. return file_stdlib_proto_rawDescGZIP(), []int{1}
  157. }
  158. func (x *DocQueryResponse) GetCode() int64 {
  159. if x != nil {
  160. return x.Code
  161. }
  162. return 0
  163. }
  164. func (x *DocQueryResponse) GetMsg() string {
  165. if x != nil {
  166. return x.Msg
  167. }
  168. return ""
  169. }
  170. func (x *DocQueryResponse) GetDocs() []*Doc {
  171. if x != nil {
  172. return x.Docs
  173. }
  174. return nil
  175. }
  176. func (x *DocQueryResponse) GetTotal() int64 {
  177. if x != nil {
  178. return x.Total
  179. }
  180. return 0
  181. }
  182. type Doc struct {
  183. state protoimpl.MessageState
  184. sizeCache protoimpl.SizeCache
  185. unknownFields protoimpl.UnknownFields
  186. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  187. DocName string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
  188. Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` //价格
  189. DocFileSize int64 `protobuf:"varint,4,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
  190. DocPageSize int64 `protobuf:"varint,5,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
  191. DownTimes int64 `protobuf:"varint,6,opt,name=downTimes,proto3" json:"downTimes,omitempty"` //下载次数
  192. ViewTimes int64 `protobuf:"varint,7,opt,name=viewTimes,proto3" json:"viewTimes,omitempty"` //浏览次数
  193. UploadDate string `protobuf:"bytes,8,opt,name=uploadDate,proto3" json:"uploadDate,omitempty"` //上传时间
  194. DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
  195. DocFileType string `protobuf:"bytes,10,opt,name=docFileType,proto3" json:"docFileType,omitempty"` //文档类型
  196. }
  197. func (x *Doc) Reset() {
  198. *x = Doc{}
  199. if protoimpl.UnsafeEnabled {
  200. mi := &file_stdlib_proto_msgTypes[2]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. }
  205. func (x *Doc) String() string {
  206. return protoimpl.X.MessageStringOf(x)
  207. }
  208. func (*Doc) ProtoMessage() {}
  209. func (x *Doc) ProtoReflect() protoreflect.Message {
  210. mi := &file_stdlib_proto_msgTypes[2]
  211. if protoimpl.UnsafeEnabled && x != nil {
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. if ms.LoadMessageInfo() == nil {
  214. ms.StoreMessageInfo(mi)
  215. }
  216. return ms
  217. }
  218. return mi.MessageOf(x)
  219. }
  220. // Deprecated: Use Doc.ProtoReflect.Descriptor instead.
  221. func (*Doc) Descriptor() ([]byte, []int) {
  222. return file_stdlib_proto_rawDescGZIP(), []int{2}
  223. }
  224. func (x *Doc) GetDocId() string {
  225. if x != nil {
  226. return x.DocId
  227. }
  228. return ""
  229. }
  230. func (x *Doc) GetDocName() string {
  231. if x != nil {
  232. return x.DocName
  233. }
  234. return ""
  235. }
  236. func (x *Doc) GetPrice() int64 {
  237. if x != nil {
  238. return x.Price
  239. }
  240. return 0
  241. }
  242. func (x *Doc) GetDocFileSize() int64 {
  243. if x != nil {
  244. return x.DocFileSize
  245. }
  246. return 0
  247. }
  248. func (x *Doc) GetDocPageSize() int64 {
  249. if x != nil {
  250. return x.DocPageSize
  251. }
  252. return 0
  253. }
  254. func (x *Doc) GetDownTimes() int64 {
  255. if x != nil {
  256. return x.DownTimes
  257. }
  258. return 0
  259. }
  260. func (x *Doc) GetViewTimes() int64 {
  261. if x != nil {
  262. return x.ViewTimes
  263. }
  264. return 0
  265. }
  266. func (x *Doc) GetUploadDate() string {
  267. if x != nil {
  268. return x.UploadDate
  269. }
  270. return ""
  271. }
  272. func (x *Doc) GetDocSummary() string {
  273. if x != nil {
  274. return x.DocSummary
  275. }
  276. return ""
  277. }
  278. func (x *Doc) GetDocFileType() string {
  279. if x != nil {
  280. return x.DocFileType
  281. }
  282. return ""
  283. }
  284. type DocChangeReq struct {
  285. state protoimpl.MessageState
  286. sizeCache protoimpl.SizeCache
  287. unknownFields protoimpl.UnknownFields
  288. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
  289. Reason int32 `protobuf:"varint,2,opt,name=reason,proto3" json:"reason,omitempty"` //处理原因 1机审通过上架 2人审通过上加 10投诉下架 11过期下架
  290. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
  291. }
  292. func (x *DocChangeReq) Reset() {
  293. *x = DocChangeReq{}
  294. if protoimpl.UnsafeEnabled {
  295. mi := &file_stdlib_proto_msgTypes[3]
  296. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  297. ms.StoreMessageInfo(mi)
  298. }
  299. }
  300. func (x *DocChangeReq) String() string {
  301. return protoimpl.X.MessageStringOf(x)
  302. }
  303. func (*DocChangeReq) ProtoMessage() {}
  304. func (x *DocChangeReq) ProtoReflect() protoreflect.Message {
  305. mi := &file_stdlib_proto_msgTypes[3]
  306. if protoimpl.UnsafeEnabled && x != nil {
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. if ms.LoadMessageInfo() == nil {
  309. ms.StoreMessageInfo(mi)
  310. }
  311. return ms
  312. }
  313. return mi.MessageOf(x)
  314. }
  315. // Deprecated: Use DocChangeReq.ProtoReflect.Descriptor instead.
  316. func (*DocChangeReq) Descriptor() ([]byte, []int) {
  317. return file_stdlib_proto_rawDescGZIP(), []int{3}
  318. }
  319. func (x *DocChangeReq) GetId() string {
  320. if x != nil {
  321. return x.Id
  322. }
  323. return ""
  324. }
  325. func (x *DocChangeReq) GetReason() int32 {
  326. if x != nil {
  327. return x.Reason
  328. }
  329. return 0
  330. }
  331. func (x *DocChangeReq) GetAppId() string {
  332. if x != nil {
  333. return x.AppId
  334. }
  335. return ""
  336. }
  337. type DocChangeResp struct {
  338. state protoimpl.MessageState
  339. sizeCache protoimpl.SizeCache
  340. unknownFields protoimpl.UnknownFields
  341. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功
  342. }
  343. func (x *DocChangeResp) Reset() {
  344. *x = DocChangeResp{}
  345. if protoimpl.UnsafeEnabled {
  346. mi := &file_stdlib_proto_msgTypes[4]
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. ms.StoreMessageInfo(mi)
  349. }
  350. }
  351. func (x *DocChangeResp) String() string {
  352. return protoimpl.X.MessageStringOf(x)
  353. }
  354. func (*DocChangeResp) ProtoMessage() {}
  355. func (x *DocChangeResp) ProtoReflect() protoreflect.Message {
  356. mi := &file_stdlib_proto_msgTypes[4]
  357. if protoimpl.UnsafeEnabled && x != nil {
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. if ms.LoadMessageInfo() == nil {
  360. ms.StoreMessageInfo(mi)
  361. }
  362. return ms
  363. }
  364. return mi.MessageOf(x)
  365. }
  366. // Deprecated: Use DocChangeResp.ProtoReflect.Descriptor instead.
  367. func (*DocChangeResp) Descriptor() ([]byte, []int) {
  368. return file_stdlib_proto_rawDescGZIP(), []int{4}
  369. }
  370. func (x *DocChangeResp) GetState() bool {
  371. if x != nil {
  372. return x.State
  373. }
  374. return false
  375. }
  376. type DocStatisticsReq struct {
  377. state protoimpl.MessageState
  378. sizeCache protoimpl.SizeCache
  379. unknownFields protoimpl.UnknownFields
  380. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  381. DocStatisticsType int32 `protobuf:"varint,2,opt,name=DocStatisticsType,proto3" json:"DocStatisticsType,omitempty"` //文档统计类型 1增加下载次数 2增加浏览次数 3评分
  382. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
  383. }
  384. func (x *DocStatisticsReq) Reset() {
  385. *x = DocStatisticsReq{}
  386. if protoimpl.UnsafeEnabled {
  387. mi := &file_stdlib_proto_msgTypes[5]
  388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  389. ms.StoreMessageInfo(mi)
  390. }
  391. }
  392. func (x *DocStatisticsReq) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*DocStatisticsReq) ProtoMessage() {}
  396. func (x *DocStatisticsReq) ProtoReflect() protoreflect.Message {
  397. mi := &file_stdlib_proto_msgTypes[5]
  398. if protoimpl.UnsafeEnabled && x != nil {
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. if ms.LoadMessageInfo() == nil {
  401. ms.StoreMessageInfo(mi)
  402. }
  403. return ms
  404. }
  405. return mi.MessageOf(x)
  406. }
  407. // Deprecated: Use DocStatisticsReq.ProtoReflect.Descriptor instead.
  408. func (*DocStatisticsReq) Descriptor() ([]byte, []int) {
  409. return file_stdlib_proto_rawDescGZIP(), []int{5}
  410. }
  411. func (x *DocStatisticsReq) GetDocId() string {
  412. if x != nil {
  413. return x.DocId
  414. }
  415. return ""
  416. }
  417. func (x *DocStatisticsReq) GetDocStatisticsType() int32 {
  418. if x != nil {
  419. return x.DocStatisticsType
  420. }
  421. return 0
  422. }
  423. func (x *DocStatisticsReq) GetAppId() string {
  424. if x != nil {
  425. return x.AppId
  426. }
  427. return ""
  428. }
  429. type DocGetCheckReq struct {
  430. state protoimpl.MessageState
  431. sizeCache protoimpl.SizeCache
  432. unknownFields protoimpl.UnknownFields
  433. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  434. UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  435. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
  436. }
  437. func (x *DocGetCheckReq) Reset() {
  438. *x = DocGetCheckReq{}
  439. if protoimpl.UnsafeEnabled {
  440. mi := &file_stdlib_proto_msgTypes[6]
  441. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  442. ms.StoreMessageInfo(mi)
  443. }
  444. }
  445. func (x *DocGetCheckReq) String() string {
  446. return protoimpl.X.MessageStringOf(x)
  447. }
  448. func (*DocGetCheckReq) ProtoMessage() {}
  449. func (x *DocGetCheckReq) ProtoReflect() protoreflect.Message {
  450. mi := &file_stdlib_proto_msgTypes[6]
  451. if protoimpl.UnsafeEnabled && x != nil {
  452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  453. if ms.LoadMessageInfo() == nil {
  454. ms.StoreMessageInfo(mi)
  455. }
  456. return ms
  457. }
  458. return mi.MessageOf(x)
  459. }
  460. // Deprecated: Use DocGetCheckReq.ProtoReflect.Descriptor instead.
  461. func (*DocGetCheckReq) Descriptor() ([]byte, []int) {
  462. return file_stdlib_proto_rawDescGZIP(), []int{6}
  463. }
  464. func (x *DocGetCheckReq) GetDocId() string {
  465. if x != nil {
  466. return x.DocId
  467. }
  468. return ""
  469. }
  470. func (x *DocGetCheckReq) GetUserId() string {
  471. if x != nil {
  472. return x.UserId
  473. }
  474. return ""
  475. }
  476. func (x *DocGetCheckReq) GetAppId() string {
  477. if x != nil {
  478. return x.AppId
  479. }
  480. return ""
  481. }
  482. type DocGetCheckResp struct {
  483. state protoimpl.MessageState
  484. sizeCache protoimpl.SizeCache
  485. unknownFields protoimpl.UnknownFields
  486. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  487. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  488. DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
  489. DocType int32 `protobuf:"varint,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
  490. DocFileSize int32 `protobuf:"varint,5,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
  491. DocPageSize int32 `protobuf:"varint,6,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
  492. Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
  493. UserId string `protobuf:"bytes,8,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
  494. DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
  495. PreviewImgId string `protobuf:"bytes,10,opt,name=previewImgId,proto3" json:"previewImgId,omitempty"` //缩略图
  496. IsBuy bool `protobuf:"varint,11,opt,name=isBuy,proto3" json:"isBuy,omitempty"` //是否购买
  497. }
  498. func (x *DocGetCheckResp) Reset() {
  499. *x = DocGetCheckResp{}
  500. if protoimpl.UnsafeEnabled {
  501. mi := &file_stdlib_proto_msgTypes[7]
  502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  503. ms.StoreMessageInfo(mi)
  504. }
  505. }
  506. func (x *DocGetCheckResp) String() string {
  507. return protoimpl.X.MessageStringOf(x)
  508. }
  509. func (*DocGetCheckResp) ProtoMessage() {}
  510. func (x *DocGetCheckResp) ProtoReflect() protoreflect.Message {
  511. mi := &file_stdlib_proto_msgTypes[7]
  512. if protoimpl.UnsafeEnabled && x != nil {
  513. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  514. if ms.LoadMessageInfo() == nil {
  515. ms.StoreMessageInfo(mi)
  516. }
  517. return ms
  518. }
  519. return mi.MessageOf(x)
  520. }
  521. // Deprecated: Use DocGetCheckResp.ProtoReflect.Descriptor instead.
  522. func (*DocGetCheckResp) Descriptor() ([]byte, []int) {
  523. return file_stdlib_proto_rawDescGZIP(), []int{7}
  524. }
  525. func (x *DocGetCheckResp) GetCode() int32 {
  526. if x != nil {
  527. return x.Code
  528. }
  529. return 0
  530. }
  531. func (x *DocGetCheckResp) GetMsg() string {
  532. if x != nil {
  533. return x.Msg
  534. }
  535. return ""
  536. }
  537. func (x *DocGetCheckResp) GetDocName() string {
  538. if x != nil {
  539. return x.DocName
  540. }
  541. return ""
  542. }
  543. func (x *DocGetCheckResp) GetDocType() int32 {
  544. if x != nil {
  545. return x.DocType
  546. }
  547. return 0
  548. }
  549. func (x *DocGetCheckResp) GetDocFileSize() int32 {
  550. if x != nil {
  551. return x.DocFileSize
  552. }
  553. return 0
  554. }
  555. func (x *DocGetCheckResp) GetDocPageSize() int32 {
  556. if x != nil {
  557. return x.DocPageSize
  558. }
  559. return 0
  560. }
  561. func (x *DocGetCheckResp) GetTags() string {
  562. if x != nil {
  563. return x.Tags
  564. }
  565. return ""
  566. }
  567. func (x *DocGetCheckResp) GetUserId() string {
  568. if x != nil {
  569. return x.UserId
  570. }
  571. return ""
  572. }
  573. func (x *DocGetCheckResp) GetDocSummary() string {
  574. if x != nil {
  575. return x.DocSummary
  576. }
  577. return ""
  578. }
  579. func (x *DocGetCheckResp) GetPreviewImgId() string {
  580. if x != nil {
  581. return x.PreviewImgId
  582. }
  583. return ""
  584. }
  585. func (x *DocGetCheckResp) GetIsBuy() bool {
  586. if x != nil {
  587. return x.IsBuy
  588. }
  589. return false
  590. }
  591. type DocGetContentResp struct {
  592. state protoimpl.MessageState
  593. sizeCache protoimpl.SizeCache
  594. unknownFields protoimpl.UnknownFields
  595. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  596. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  597. DocContent []byte `protobuf:"bytes,3,opt,name=docContent,proto3" json:"docContent,omitempty"` //文件内容
  598. }
  599. func (x *DocGetContentResp) Reset() {
  600. *x = DocGetContentResp{}
  601. if protoimpl.UnsafeEnabled {
  602. mi := &file_stdlib_proto_msgTypes[8]
  603. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  604. ms.StoreMessageInfo(mi)
  605. }
  606. }
  607. func (x *DocGetContentResp) String() string {
  608. return protoimpl.X.MessageStringOf(x)
  609. }
  610. func (*DocGetContentResp) ProtoMessage() {}
  611. func (x *DocGetContentResp) ProtoReflect() protoreflect.Message {
  612. mi := &file_stdlib_proto_msgTypes[8]
  613. if protoimpl.UnsafeEnabled && x != nil {
  614. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  615. if ms.LoadMessageInfo() == nil {
  616. ms.StoreMessageInfo(mi)
  617. }
  618. return ms
  619. }
  620. return mi.MessageOf(x)
  621. }
  622. // Deprecated: Use DocGetContentResp.ProtoReflect.Descriptor instead.
  623. func (*DocGetContentResp) Descriptor() ([]byte, []int) {
  624. return file_stdlib_proto_rawDescGZIP(), []int{8}
  625. }
  626. func (x *DocGetContentResp) GetCode() int32 {
  627. if x != nil {
  628. return x.Code
  629. }
  630. return 0
  631. }
  632. func (x *DocGetContentResp) GetMsg() string {
  633. if x != nil {
  634. return x.Msg
  635. }
  636. return ""
  637. }
  638. func (x *DocGetContentResp) GetDocContent() []byte {
  639. if x != nil {
  640. return x.DocContent
  641. }
  642. return nil
  643. }
  644. type DocActivityReq struct {
  645. state protoimpl.MessageState
  646. sizeCache protoimpl.SizeCache
  647. unknownFields protoimpl.UnknownFields
  648. PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
  649. PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
  650. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` //appId
  651. ActivityId int32 `protobuf:"varint,4,opt,name=activityId,proto3" json:"activityId,omitempty"` //活动id
  652. }
  653. func (x *DocActivityReq) Reset() {
  654. *x = DocActivityReq{}
  655. if protoimpl.UnsafeEnabled {
  656. mi := &file_stdlib_proto_msgTypes[9]
  657. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  658. ms.StoreMessageInfo(mi)
  659. }
  660. }
  661. func (x *DocActivityReq) String() string {
  662. return protoimpl.X.MessageStringOf(x)
  663. }
  664. func (*DocActivityReq) ProtoMessage() {}
  665. func (x *DocActivityReq) ProtoReflect() protoreflect.Message {
  666. mi := &file_stdlib_proto_msgTypes[9]
  667. if protoimpl.UnsafeEnabled && x != nil {
  668. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  669. if ms.LoadMessageInfo() == nil {
  670. ms.StoreMessageInfo(mi)
  671. }
  672. return ms
  673. }
  674. return mi.MessageOf(x)
  675. }
  676. // Deprecated: Use DocActivityReq.ProtoReflect.Descriptor instead.
  677. func (*DocActivityReq) Descriptor() ([]byte, []int) {
  678. return file_stdlib_proto_rawDescGZIP(), []int{9}
  679. }
  680. func (x *DocActivityReq) GetPageNum() int32 {
  681. if x != nil {
  682. return x.PageNum
  683. }
  684. return 0
  685. }
  686. func (x *DocActivityReq) GetPageSize() int32 {
  687. if x != nil {
  688. return x.PageSize
  689. }
  690. return 0
  691. }
  692. func (x *DocActivityReq) GetAppId() string {
  693. if x != nil {
  694. return x.AppId
  695. }
  696. return ""
  697. }
  698. func (x *DocActivityReq) GetActivityId() int32 {
  699. if x != nil {
  700. return x.ActivityId
  701. }
  702. return 0
  703. }
  704. type DocActivity struct {
  705. state protoimpl.MessageState
  706. sizeCache protoimpl.SizeCache
  707. unknownFields protoimpl.UnknownFields
  708. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  709. ActivityId int32 `protobuf:"varint,2,opt,name=activityId,proto3" json:"activityId,omitempty"` //活动id
  710. DocTitle string `protobuf:"bytes,3,opt,name=docTitle,proto3" json:"docTitle,omitempty"` //文档标题
  711. DocSummary string `protobuf:"bytes,4,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //文档摘要
  712. DocImg string `protobuf:"bytes,5,opt,name=docImg,proto3" json:"docImg,omitempty"` //文档配图
  713. Price int32 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` //活动价
  714. CostPrice int32 `protobuf:"varint,7,opt,name=costPrice,proto3" json:"costPrice,omitempty"` //成本价
  715. }
  716. func (x *DocActivity) Reset() {
  717. *x = DocActivity{}
  718. if protoimpl.UnsafeEnabled {
  719. mi := &file_stdlib_proto_msgTypes[10]
  720. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  721. ms.StoreMessageInfo(mi)
  722. }
  723. }
  724. func (x *DocActivity) String() string {
  725. return protoimpl.X.MessageStringOf(x)
  726. }
  727. func (*DocActivity) ProtoMessage() {}
  728. func (x *DocActivity) ProtoReflect() protoreflect.Message {
  729. mi := &file_stdlib_proto_msgTypes[10]
  730. if protoimpl.UnsafeEnabled && x != nil {
  731. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  732. if ms.LoadMessageInfo() == nil {
  733. ms.StoreMessageInfo(mi)
  734. }
  735. return ms
  736. }
  737. return mi.MessageOf(x)
  738. }
  739. // Deprecated: Use DocActivity.ProtoReflect.Descriptor instead.
  740. func (*DocActivity) Descriptor() ([]byte, []int) {
  741. return file_stdlib_proto_rawDescGZIP(), []int{10}
  742. }
  743. func (x *DocActivity) GetDocId() string {
  744. if x != nil {
  745. return x.DocId
  746. }
  747. return ""
  748. }
  749. func (x *DocActivity) GetActivityId() int32 {
  750. if x != nil {
  751. return x.ActivityId
  752. }
  753. return 0
  754. }
  755. func (x *DocActivity) GetDocTitle() string {
  756. if x != nil {
  757. return x.DocTitle
  758. }
  759. return ""
  760. }
  761. func (x *DocActivity) GetDocSummary() string {
  762. if x != nil {
  763. return x.DocSummary
  764. }
  765. return ""
  766. }
  767. func (x *DocActivity) GetDocImg() string {
  768. if x != nil {
  769. return x.DocImg
  770. }
  771. return ""
  772. }
  773. func (x *DocActivity) GetPrice() int32 {
  774. if x != nil {
  775. return x.Price
  776. }
  777. return 0
  778. }
  779. func (x *DocActivity) GetCostPrice() int32 {
  780. if x != nil {
  781. return x.CostPrice
  782. }
  783. return 0
  784. }
  785. type DocActivityResp struct {
  786. state protoimpl.MessageState
  787. sizeCache protoimpl.SizeCache
  788. unknownFields protoimpl.UnknownFields
  789. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  790. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  791. Docs []*DocActivity `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //活动文档列表
  792. Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
  793. }
  794. func (x *DocActivityResp) Reset() {
  795. *x = DocActivityResp{}
  796. if protoimpl.UnsafeEnabled {
  797. mi := &file_stdlib_proto_msgTypes[11]
  798. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  799. ms.StoreMessageInfo(mi)
  800. }
  801. }
  802. func (x *DocActivityResp) String() string {
  803. return protoimpl.X.MessageStringOf(x)
  804. }
  805. func (*DocActivityResp) ProtoMessage() {}
  806. func (x *DocActivityResp) ProtoReflect() protoreflect.Message {
  807. mi := &file_stdlib_proto_msgTypes[11]
  808. if protoimpl.UnsafeEnabled && x != nil {
  809. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  810. if ms.LoadMessageInfo() == nil {
  811. ms.StoreMessageInfo(mi)
  812. }
  813. return ms
  814. }
  815. return mi.MessageOf(x)
  816. }
  817. // Deprecated: Use DocActivityResp.ProtoReflect.Descriptor instead.
  818. func (*DocActivityResp) Descriptor() ([]byte, []int) {
  819. return file_stdlib_proto_rawDescGZIP(), []int{11}
  820. }
  821. func (x *DocActivityResp) GetCode() int32 {
  822. if x != nil {
  823. return x.Code
  824. }
  825. return 0
  826. }
  827. func (x *DocActivityResp) GetMsg() string {
  828. if x != nil {
  829. return x.Msg
  830. }
  831. return ""
  832. }
  833. func (x *DocActivityResp) GetDocs() []*DocActivity {
  834. if x != nil {
  835. return x.Docs
  836. }
  837. return nil
  838. }
  839. func (x *DocActivityResp) GetTotal() int32 {
  840. if x != nil {
  841. return x.Total
  842. }
  843. return 0
  844. }
  845. var File_stdlib_proto protoreflect.FileDescriptor
  846. var file_stdlib_proto_rawDesc = []byte{
  847. 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  848. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0x95, 0x02, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75,
  849. 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
  850. 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67,
  851. 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  852. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  853. 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  854. 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x6f,
  855. 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f,
  856. 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x63, 0x54, 0x61, 0x67,
  857. 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x63, 0x54, 0x61, 0x67, 0x12, 0x26,
  858. 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x72, 0x74,
  859. 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
  860. 0x74, 0x65, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
  861. 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x6f,
  862. 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x69,
  863. 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x76, 0x69,
  864. 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  865. 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6f,
  866. 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  867. 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  868. 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20,
  869. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73,
  870. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
  871. 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74,
  872. 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22,
  873. 0xad, 0x02, 0x0a, 0x03, 0x44, 0x6f, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64,
  874. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a,
  875. 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  876. 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65,
  877. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a,
  878. 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
  879. 0x28, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
  880. 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05,
  881. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
  882. 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x6f, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x06,
  883. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x6f, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12,
  884. 0x1c, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01,
  885. 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x0a,
  886. 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
  887. 0x09, 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a,
  888. 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
  889. 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a,
  890. 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01,
  891. 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22,
  892. 0x4c, 0x0a, 0x0c, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
  893. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
  894. 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
  895. 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
  896. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x25, 0x0a,
  897. 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14,
  898. 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73,
  899. 0x74, 0x61, 0x74, 0x65, 0x22, 0x6c, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69,
  900. 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49,
  901. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x2c,
  902. 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54,
  903. 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74,
  904. 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
  905. 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  906. 0x49, 0x64, 0x22, 0x54, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63,
  907. 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20,
  908. 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
  909. 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  910. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  911. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0xb5, 0x02, 0x0a, 0x0f, 0x44, 0x6f, 0x63,
  912. 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04,
  913. 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
  914. 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
  915. 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
  916. 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07,
  917. 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64,
  918. 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c,
  919. 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63,
  920. 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50,
  921. 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64,
  922. 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61,
  923. 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16,
  924. 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  925. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d,
  926. 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53,
  927. 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65,
  928. 0x77, 0x49, 0x6d, 0x67, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
  929. 0x65, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6d, 0x67, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73,
  930. 0x42, 0x75, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x42, 0x75, 0x79,
  931. 0x22, 0x59, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  932. 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  933. 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
  934. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
  935. 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
  936. 0x0a, 0x64, 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x7c, 0x0a, 0x0e, 0x44,
  937. 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a,
  938. 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
  939. 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  940. 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  941. 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
  942. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74,
  943. 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61,
  944. 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x44, 0x6f,
  945. 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63,
  946. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12,
  947. 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20,
  948. 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12,
  949. 0x1a, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  950. 0x09, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
  951. 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  952. 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x64,
  953. 0x6f, 0x63, 0x49, 0x6d, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x63,
  954. 0x49, 0x6d, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01,
  955. 0x28, 0x05, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x73,
  956. 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6f,
  957. 0x73, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x76, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x41, 0x63,
  958. 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
  959. 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10,
  960. 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
  961. 0x12, 0x27, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
  962. 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76,
  963. 0x69, 0x74, 0x79, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74,
  964. 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x32,
  965. 0xba, 0x03, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d, 0x0a, 0x08, 0x44, 0x6f,
  966. 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
  967. 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  968. 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72,
  969. 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x44, 0x6f, 0x63,
  970. 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43,
  971. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69,
  972. 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
  973. 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c,
  974. 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a,
  975. 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e,
  976. 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61,
  977. 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
  978. 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65,
  979. 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68,
  980. 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x47,
  981. 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
  982. 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a,
  983. 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43,
  984. 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x47,
  985. 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c,
  986. 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
  987. 0x71, 0x1a, 0x19, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65,
  988. 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b,
  989. 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x16, 0x2e, 0x73, 0x74,
  990. 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
  991. 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  992. 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
  993. 0x6f, 0x74, 0x6f, 0x33,
  994. }
  995. var (
  996. file_stdlib_proto_rawDescOnce sync.Once
  997. file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc
  998. )
  999. func file_stdlib_proto_rawDescGZIP() []byte {
  1000. file_stdlib_proto_rawDescOnce.Do(func() {
  1001. file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData)
  1002. })
  1003. return file_stdlib_proto_rawDescData
  1004. }
  1005. var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
  1006. var file_stdlib_proto_goTypes = []interface{}{
  1007. (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest
  1008. (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse
  1009. (*Doc)(nil), // 2: stdlib.Doc
  1010. (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq
  1011. (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp
  1012. (*DocStatisticsReq)(nil), // 5: stdlib.DocStatisticsReq
  1013. (*DocGetCheckReq)(nil), // 6: stdlib.DocGetCheckReq
  1014. (*DocGetCheckResp)(nil), // 7: stdlib.DocGetCheckResp
  1015. (*DocGetContentResp)(nil), // 8: stdlib.DocGetContentResp
  1016. (*DocActivityReq)(nil), // 9: stdlib.DocActivityReq
  1017. (*DocActivity)(nil), // 10: stdlib.DocActivity
  1018. (*DocActivityResp)(nil), // 11: stdlib.DocActivityResp
  1019. }
  1020. var file_stdlib_proto_depIdxs = []int32{
  1021. 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc
  1022. 10, // 1: stdlib.DocActivityResp.docs:type_name -> stdlib.DocActivity
  1023. 0, // 2: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest
  1024. 3, // 3: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq
  1025. 3, // 4: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq
  1026. 5, // 5: stdlib.Stdlib.DocStatistics:input_type -> stdlib.DocStatisticsReq
  1027. 6, // 6: stdlib.Stdlib.DocGetCheck:input_type -> stdlib.DocGetCheckReq
  1028. 6, // 7: stdlib.Stdlib.DocGetContent:input_type -> stdlib.DocGetCheckReq
  1029. 9, // 8: stdlib.Stdlib.DocActivity:input_type -> stdlib.DocActivityReq
  1030. 1, // 9: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse
  1031. 4, // 10: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp
  1032. 4, // 11: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp
  1033. 4, // 12: stdlib.Stdlib.DocStatistics:output_type -> stdlib.DocChangeResp
  1034. 7, // 13: stdlib.Stdlib.DocGetCheck:output_type -> stdlib.DocGetCheckResp
  1035. 8, // 14: stdlib.Stdlib.DocGetContent:output_type -> stdlib.DocGetContentResp
  1036. 11, // 15: stdlib.Stdlib.DocActivity:output_type -> stdlib.DocActivityResp
  1037. 9, // [9:16] is the sub-list for method output_type
  1038. 2, // [2:9] is the sub-list for method input_type
  1039. 2, // [2:2] is the sub-list for extension type_name
  1040. 2, // [2:2] is the sub-list for extension extendee
  1041. 0, // [0:2] is the sub-list for field type_name
  1042. }
  1043. func init() { file_stdlib_proto_init() }
  1044. func file_stdlib_proto_init() {
  1045. if File_stdlib_proto != nil {
  1046. return
  1047. }
  1048. if !protoimpl.UnsafeEnabled {
  1049. file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1050. switch v := v.(*DocQueryRequest); i {
  1051. case 0:
  1052. return &v.state
  1053. case 1:
  1054. return &v.sizeCache
  1055. case 2:
  1056. return &v.unknownFields
  1057. default:
  1058. return nil
  1059. }
  1060. }
  1061. file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1062. switch v := v.(*DocQueryResponse); i {
  1063. case 0:
  1064. return &v.state
  1065. case 1:
  1066. return &v.sizeCache
  1067. case 2:
  1068. return &v.unknownFields
  1069. default:
  1070. return nil
  1071. }
  1072. }
  1073. file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1074. switch v := v.(*Doc); i {
  1075. case 0:
  1076. return &v.state
  1077. case 1:
  1078. return &v.sizeCache
  1079. case 2:
  1080. return &v.unknownFields
  1081. default:
  1082. return nil
  1083. }
  1084. }
  1085. file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1086. switch v := v.(*DocChangeReq); i {
  1087. case 0:
  1088. return &v.state
  1089. case 1:
  1090. return &v.sizeCache
  1091. case 2:
  1092. return &v.unknownFields
  1093. default:
  1094. return nil
  1095. }
  1096. }
  1097. file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1098. switch v := v.(*DocChangeResp); i {
  1099. case 0:
  1100. return &v.state
  1101. case 1:
  1102. return &v.sizeCache
  1103. case 2:
  1104. return &v.unknownFields
  1105. default:
  1106. return nil
  1107. }
  1108. }
  1109. file_stdlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1110. switch v := v.(*DocStatisticsReq); i {
  1111. case 0:
  1112. return &v.state
  1113. case 1:
  1114. return &v.sizeCache
  1115. case 2:
  1116. return &v.unknownFields
  1117. default:
  1118. return nil
  1119. }
  1120. }
  1121. file_stdlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1122. switch v := v.(*DocGetCheckReq); i {
  1123. case 0:
  1124. return &v.state
  1125. case 1:
  1126. return &v.sizeCache
  1127. case 2:
  1128. return &v.unknownFields
  1129. default:
  1130. return nil
  1131. }
  1132. }
  1133. file_stdlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1134. switch v := v.(*DocGetCheckResp); i {
  1135. case 0:
  1136. return &v.state
  1137. case 1:
  1138. return &v.sizeCache
  1139. case 2:
  1140. return &v.unknownFields
  1141. default:
  1142. return nil
  1143. }
  1144. }
  1145. file_stdlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1146. switch v := v.(*DocGetContentResp); i {
  1147. case 0:
  1148. return &v.state
  1149. case 1:
  1150. return &v.sizeCache
  1151. case 2:
  1152. return &v.unknownFields
  1153. default:
  1154. return nil
  1155. }
  1156. }
  1157. file_stdlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1158. switch v := v.(*DocActivityReq); i {
  1159. case 0:
  1160. return &v.state
  1161. case 1:
  1162. return &v.sizeCache
  1163. case 2:
  1164. return &v.unknownFields
  1165. default:
  1166. return nil
  1167. }
  1168. }
  1169. file_stdlib_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1170. switch v := v.(*DocActivity); i {
  1171. case 0:
  1172. return &v.state
  1173. case 1:
  1174. return &v.sizeCache
  1175. case 2:
  1176. return &v.unknownFields
  1177. default:
  1178. return nil
  1179. }
  1180. }
  1181. file_stdlib_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1182. switch v := v.(*DocActivityResp); i {
  1183. case 0:
  1184. return &v.state
  1185. case 1:
  1186. return &v.sizeCache
  1187. case 2:
  1188. return &v.unknownFields
  1189. default:
  1190. return nil
  1191. }
  1192. }
  1193. }
  1194. type x struct{}
  1195. out := protoimpl.TypeBuilder{
  1196. File: protoimpl.DescBuilder{
  1197. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1198. RawDescriptor: file_stdlib_proto_rawDesc,
  1199. NumEnums: 0,
  1200. NumMessages: 12,
  1201. NumExtensions: 0,
  1202. NumServices: 1,
  1203. },
  1204. GoTypes: file_stdlib_proto_goTypes,
  1205. DependencyIndexes: file_stdlib_proto_depIdxs,
  1206. MessageInfos: file_stdlib_proto_msgTypes,
  1207. }.Build()
  1208. File_stdlib_proto = out.File
  1209. file_stdlib_proto_rawDesc = nil
  1210. file_stdlib_proto_goTypes = nil
  1211. file_stdlib_proto_depIdxs = nil
  1212. }
  1213. // Reference imports to suppress errors if they are not otherwise used.
  1214. var _ context.Context
  1215. var _ grpc.ClientConnInterface
  1216. // This is a compile-time assertion to ensure that this generated file
  1217. // is compatible with the grpc package it is being compiled against.
  1218. const _ = grpc.SupportPackageIsVersion6
  1219. // StdlibClient is the client API for Stdlib service.
  1220. //
  1221. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1222. type StdlibClient interface {
  1223. DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error)
  1224. DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  1225. DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  1226. DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  1227. DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error)
  1228. DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error)
  1229. DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocActivityResp, error)
  1230. }
  1231. type stdlibClient struct {
  1232. cc grpc.ClientConnInterface
  1233. }
  1234. func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient {
  1235. return &stdlibClient{cc}
  1236. }
  1237. func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) {
  1238. out := new(DocQueryResponse)
  1239. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...)
  1240. if err != nil {
  1241. return nil, err
  1242. }
  1243. return out, nil
  1244. }
  1245. func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  1246. out := new(DocChangeResp)
  1247. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...)
  1248. if err != nil {
  1249. return nil, err
  1250. }
  1251. return out, nil
  1252. }
  1253. func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  1254. out := new(DocChangeResp)
  1255. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...)
  1256. if err != nil {
  1257. return nil, err
  1258. }
  1259. return out, nil
  1260. }
  1261. func (c *stdlibClient) DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  1262. out := new(DocChangeResp)
  1263. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocStatistics", in, out, opts...)
  1264. if err != nil {
  1265. return nil, err
  1266. }
  1267. return out, nil
  1268. }
  1269. func (c *stdlibClient) DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error) {
  1270. out := new(DocGetCheckResp)
  1271. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetCheck", in, out, opts...)
  1272. if err != nil {
  1273. return nil, err
  1274. }
  1275. return out, nil
  1276. }
  1277. func (c *stdlibClient) DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error) {
  1278. out := new(DocGetContentResp)
  1279. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetContent", in, out, opts...)
  1280. if err != nil {
  1281. return nil, err
  1282. }
  1283. return out, nil
  1284. }
  1285. func (c *stdlibClient) DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocActivityResp, error) {
  1286. out := new(DocActivityResp)
  1287. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocActivity", in, out, opts...)
  1288. if err != nil {
  1289. return nil, err
  1290. }
  1291. return out, nil
  1292. }
  1293. // StdlibServer is the server API for Stdlib service.
  1294. type StdlibServer interface {
  1295. DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error)
  1296. DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error)
  1297. DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error)
  1298. DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error)
  1299. DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error)
  1300. DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error)
  1301. DocActivity(context.Context, *DocActivityReq) (*DocActivityResp, error)
  1302. }
  1303. // UnimplementedStdlibServer can be embedded to have forward compatible implementations.
  1304. type UnimplementedStdlibServer struct {
  1305. }
  1306. func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) {
  1307. return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented")
  1308. }
  1309. func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  1310. return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented")
  1311. }
  1312. func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  1313. return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented")
  1314. }
  1315. func (*UnimplementedStdlibServer) DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error) {
  1316. return nil, status.Errorf(codes.Unimplemented, "method DocStatistics not implemented")
  1317. }
  1318. func (*UnimplementedStdlibServer) DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error) {
  1319. return nil, status.Errorf(codes.Unimplemented, "method DocGetCheck not implemented")
  1320. }
  1321. func (*UnimplementedStdlibServer) DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error) {
  1322. return nil, status.Errorf(codes.Unimplemented, "method DocGetContent not implemented")
  1323. }
  1324. func (*UnimplementedStdlibServer) DocActivity(context.Context, *DocActivityReq) (*DocActivityResp, error) {
  1325. return nil, status.Errorf(codes.Unimplemented, "method DocActivity not implemented")
  1326. }
  1327. func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) {
  1328. s.RegisterService(&_Stdlib_serviceDesc, srv)
  1329. }
  1330. func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1331. in := new(DocQueryRequest)
  1332. if err := dec(in); err != nil {
  1333. return nil, err
  1334. }
  1335. if interceptor == nil {
  1336. return srv.(StdlibServer).DocQuery(ctx, in)
  1337. }
  1338. info := &grpc.UnaryServerInfo{
  1339. Server: srv,
  1340. FullMethod: "/stdlib.Stdlib/DocQuery",
  1341. }
  1342. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1343. return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest))
  1344. }
  1345. return interceptor(ctx, in, info, handler)
  1346. }
  1347. func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1348. in := new(DocChangeReq)
  1349. if err := dec(in); err != nil {
  1350. return nil, err
  1351. }
  1352. if interceptor == nil {
  1353. return srv.(StdlibServer).DocOn(ctx, in)
  1354. }
  1355. info := &grpc.UnaryServerInfo{
  1356. Server: srv,
  1357. FullMethod: "/stdlib.Stdlib/DocOn",
  1358. }
  1359. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1360. return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq))
  1361. }
  1362. return interceptor(ctx, in, info, handler)
  1363. }
  1364. func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1365. in := new(DocChangeReq)
  1366. if err := dec(in); err != nil {
  1367. return nil, err
  1368. }
  1369. if interceptor == nil {
  1370. return srv.(StdlibServer).DocOff(ctx, in)
  1371. }
  1372. info := &grpc.UnaryServerInfo{
  1373. Server: srv,
  1374. FullMethod: "/stdlib.Stdlib/DocOff",
  1375. }
  1376. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1377. return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq))
  1378. }
  1379. return interceptor(ctx, in, info, handler)
  1380. }
  1381. func _Stdlib_DocStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1382. in := new(DocStatisticsReq)
  1383. if err := dec(in); err != nil {
  1384. return nil, err
  1385. }
  1386. if interceptor == nil {
  1387. return srv.(StdlibServer).DocStatistics(ctx, in)
  1388. }
  1389. info := &grpc.UnaryServerInfo{
  1390. Server: srv,
  1391. FullMethod: "/stdlib.Stdlib/DocStatistics",
  1392. }
  1393. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1394. return srv.(StdlibServer).DocStatistics(ctx, req.(*DocStatisticsReq))
  1395. }
  1396. return interceptor(ctx, in, info, handler)
  1397. }
  1398. func _Stdlib_DocGetCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1399. in := new(DocGetCheckReq)
  1400. if err := dec(in); err != nil {
  1401. return nil, err
  1402. }
  1403. if interceptor == nil {
  1404. return srv.(StdlibServer).DocGetCheck(ctx, in)
  1405. }
  1406. info := &grpc.UnaryServerInfo{
  1407. Server: srv,
  1408. FullMethod: "/stdlib.Stdlib/DocGetCheck",
  1409. }
  1410. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1411. return srv.(StdlibServer).DocGetCheck(ctx, req.(*DocGetCheckReq))
  1412. }
  1413. return interceptor(ctx, in, info, handler)
  1414. }
  1415. func _Stdlib_DocGetContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1416. in := new(DocGetCheckReq)
  1417. if err := dec(in); err != nil {
  1418. return nil, err
  1419. }
  1420. if interceptor == nil {
  1421. return srv.(StdlibServer).DocGetContent(ctx, in)
  1422. }
  1423. info := &grpc.UnaryServerInfo{
  1424. Server: srv,
  1425. FullMethod: "/stdlib.Stdlib/DocGetContent",
  1426. }
  1427. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1428. return srv.(StdlibServer).DocGetContent(ctx, req.(*DocGetCheckReq))
  1429. }
  1430. return interceptor(ctx, in, info, handler)
  1431. }
  1432. func _Stdlib_DocActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1433. in := new(DocActivityReq)
  1434. if err := dec(in); err != nil {
  1435. return nil, err
  1436. }
  1437. if interceptor == nil {
  1438. return srv.(StdlibServer).DocActivity(ctx, in)
  1439. }
  1440. info := &grpc.UnaryServerInfo{
  1441. Server: srv,
  1442. FullMethod: "/stdlib.Stdlib/DocActivity",
  1443. }
  1444. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1445. return srv.(StdlibServer).DocActivity(ctx, req.(*DocActivityReq))
  1446. }
  1447. return interceptor(ctx, in, info, handler)
  1448. }
  1449. var _Stdlib_serviceDesc = grpc.ServiceDesc{
  1450. ServiceName: "stdlib.Stdlib",
  1451. HandlerType: (*StdlibServer)(nil),
  1452. Methods: []grpc.MethodDesc{
  1453. {
  1454. MethodName: "DocQuery",
  1455. Handler: _Stdlib_DocQuery_Handler,
  1456. },
  1457. {
  1458. MethodName: "DocOn",
  1459. Handler: _Stdlib_DocOn_Handler,
  1460. },
  1461. {
  1462. MethodName: "DocOff",
  1463. Handler: _Stdlib_DocOff_Handler,
  1464. },
  1465. {
  1466. MethodName: "DocStatistics",
  1467. Handler: _Stdlib_DocStatistics_Handler,
  1468. },
  1469. {
  1470. MethodName: "DocGetCheck",
  1471. Handler: _Stdlib_DocGetCheck_Handler,
  1472. },
  1473. {
  1474. MethodName: "DocGetContent",
  1475. Handler: _Stdlib_DocGetContent_Handler,
  1476. },
  1477. {
  1478. MethodName: "DocActivity",
  1479. Handler: _Stdlib_DocActivity_Handler,
  1480. },
  1481. },
  1482. Streams: []grpc.StreamDesc{},
  1483. Metadata: "stdlib.proto",
  1484. }