stdlib.pb.go 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353
  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 int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
  32. PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
  33. KeyWords string `protobuf:"bytes,3,opt,name=keyWords,proto3" json:"keyWords,omitempty"` //检索词 文档名检索 模糊
  34. ItemArr []string `protobuf:"bytes,4,rep,name=itemArr,proto3" json:"itemArr,omitempty"` // 分类 []string
  35. TagArr []string `protobuf:"bytes,5,rep,name=tagArr,proto3" json:"tagArr,omitempty"` // 标签 []string
  36. PublishTimeSort int32 `protobuf:"varint,6,opt,name=publishTimeSort,proto3" json:"publishTimeSort,omitempty"` // 发布时间排序 1正序 2倒序
  37. DownloadSort int32 `protobuf:"varint,7,opt,name=downloadSort,proto3" json:"downloadSort,omitempty"` // 下载次数排序 1正序 2倒序
  38. ViewSort int32 `protobuf:"varint,8,opt,name=viewSort,proto3" json:"viewSort,omitempty"` // 浏览量排序 1正序 2倒序
  39. }
  40. func (x *DocQueryRequest) Reset() {
  41. *x = DocQueryRequest{}
  42. if protoimpl.UnsafeEnabled {
  43. mi := &file_stdlib_proto_msgTypes[0]
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. ms.StoreMessageInfo(mi)
  46. }
  47. }
  48. func (x *DocQueryRequest) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*DocQueryRequest) ProtoMessage() {}
  52. func (x *DocQueryRequest) ProtoReflect() protoreflect.Message {
  53. mi := &file_stdlib_proto_msgTypes[0]
  54. if protoimpl.UnsafeEnabled && x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use DocQueryRequest.ProtoReflect.Descriptor instead.
  64. func (*DocQueryRequest) Descriptor() ([]byte, []int) {
  65. return file_stdlib_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *DocQueryRequest) GetPageNum() int32 {
  68. if x != nil {
  69. return x.PageNum
  70. }
  71. return 0
  72. }
  73. func (x *DocQueryRequest) GetPageSize() int32 {
  74. if x != nil {
  75. return x.PageSize
  76. }
  77. return 0
  78. }
  79. func (x *DocQueryRequest) GetKeyWords() string {
  80. if x != nil {
  81. return x.KeyWords
  82. }
  83. return ""
  84. }
  85. func (x *DocQueryRequest) GetItemArr() []string {
  86. if x != nil {
  87. return x.ItemArr
  88. }
  89. return nil
  90. }
  91. func (x *DocQueryRequest) GetTagArr() []string {
  92. if x != nil {
  93. return x.TagArr
  94. }
  95. return nil
  96. }
  97. func (x *DocQueryRequest) GetPublishTimeSort() int32 {
  98. if x != nil {
  99. return x.PublishTimeSort
  100. }
  101. return 0
  102. }
  103. func (x *DocQueryRequest) GetDownloadSort() int32 {
  104. if x != nil {
  105. return x.DownloadSort
  106. }
  107. return 0
  108. }
  109. func (x *DocQueryRequest) GetViewSort() int32 {
  110. if x != nil {
  111. return x.ViewSort
  112. }
  113. return 0
  114. }
  115. type DocQueryResponse struct {
  116. state protoimpl.MessageState
  117. sizeCache protoimpl.SizeCache
  118. unknownFields protoimpl.UnknownFields
  119. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  120. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  121. Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数
  122. Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
  123. }
  124. func (x *DocQueryResponse) Reset() {
  125. *x = DocQueryResponse{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_stdlib_proto_msgTypes[1]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *DocQueryResponse) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*DocQueryResponse) ProtoMessage() {}
  136. func (x *DocQueryResponse) ProtoReflect() protoreflect.Message {
  137. mi := &file_stdlib_proto_msgTypes[1]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use DocQueryResponse.ProtoReflect.Descriptor instead.
  148. func (*DocQueryResponse) Descriptor() ([]byte, []int) {
  149. return file_stdlib_proto_rawDescGZIP(), []int{1}
  150. }
  151. func (x *DocQueryResponse) GetCode() int32 {
  152. if x != nil {
  153. return x.Code
  154. }
  155. return 0
  156. }
  157. func (x *DocQueryResponse) GetMsg() string {
  158. if x != nil {
  159. return x.Msg
  160. }
  161. return ""
  162. }
  163. func (x *DocQueryResponse) GetDocs() []*Doc {
  164. if x != nil {
  165. return x.Docs
  166. }
  167. return nil
  168. }
  169. func (x *DocQueryResponse) GetTotal() int32 {
  170. if x != nil {
  171. return x.Total
  172. }
  173. return 0
  174. }
  175. type Doc struct {
  176. state protoimpl.MessageState
  177. sizeCache protoimpl.SizeCache
  178. unknownFields protoimpl.UnknownFields
  179. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  180. DocName string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
  181. DocType int32 `protobuf:"varint,3,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
  182. DocFileSize int32 `protobuf:"varint,4,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
  183. DocPageSize int32 `protobuf:"varint,5,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
  184. Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
  185. UserId string `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
  186. DocSummary string `protobuf:"bytes,8,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
  187. }
  188. func (x *Doc) Reset() {
  189. *x = Doc{}
  190. if protoimpl.UnsafeEnabled {
  191. mi := &file_stdlib_proto_msgTypes[2]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. }
  196. func (x *Doc) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*Doc) ProtoMessage() {}
  200. func (x *Doc) ProtoReflect() protoreflect.Message {
  201. mi := &file_stdlib_proto_msgTypes[2]
  202. if protoimpl.UnsafeEnabled && x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use Doc.ProtoReflect.Descriptor instead.
  212. func (*Doc) Descriptor() ([]byte, []int) {
  213. return file_stdlib_proto_rawDescGZIP(), []int{2}
  214. }
  215. func (x *Doc) GetDocId() string {
  216. if x != nil {
  217. return x.DocId
  218. }
  219. return ""
  220. }
  221. func (x *Doc) GetDocName() string {
  222. if x != nil {
  223. return x.DocName
  224. }
  225. return ""
  226. }
  227. func (x *Doc) GetDocType() int32 {
  228. if x != nil {
  229. return x.DocType
  230. }
  231. return 0
  232. }
  233. func (x *Doc) GetDocFileSize() int32 {
  234. if x != nil {
  235. return x.DocFileSize
  236. }
  237. return 0
  238. }
  239. func (x *Doc) GetDocPageSize() int32 {
  240. if x != nil {
  241. return x.DocPageSize
  242. }
  243. return 0
  244. }
  245. func (x *Doc) GetTags() string {
  246. if x != nil {
  247. return x.Tags
  248. }
  249. return ""
  250. }
  251. func (x *Doc) GetUserId() string {
  252. if x != nil {
  253. return x.UserId
  254. }
  255. return ""
  256. }
  257. func (x *Doc) GetDocSummary() string {
  258. if x != nil {
  259. return x.DocSummary
  260. }
  261. return ""
  262. }
  263. type DocChangeReq struct {
  264. state protoimpl.MessageState
  265. sizeCache protoimpl.SizeCache
  266. unknownFields protoimpl.UnknownFields
  267. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
  268. Reason int32 `protobuf:"varint,2,opt,name=reason,proto3" json:"reason,omitempty"` //处理原因 1机审通过上架 2人审通过上加 10投诉下架 11过期下架
  269. }
  270. func (x *DocChangeReq) Reset() {
  271. *x = DocChangeReq{}
  272. if protoimpl.UnsafeEnabled {
  273. mi := &file_stdlib_proto_msgTypes[3]
  274. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  275. ms.StoreMessageInfo(mi)
  276. }
  277. }
  278. func (x *DocChangeReq) String() string {
  279. return protoimpl.X.MessageStringOf(x)
  280. }
  281. func (*DocChangeReq) ProtoMessage() {}
  282. func (x *DocChangeReq) ProtoReflect() protoreflect.Message {
  283. mi := &file_stdlib_proto_msgTypes[3]
  284. if protoimpl.UnsafeEnabled && x != nil {
  285. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  286. if ms.LoadMessageInfo() == nil {
  287. ms.StoreMessageInfo(mi)
  288. }
  289. return ms
  290. }
  291. return mi.MessageOf(x)
  292. }
  293. // Deprecated: Use DocChangeReq.ProtoReflect.Descriptor instead.
  294. func (*DocChangeReq) Descriptor() ([]byte, []int) {
  295. return file_stdlib_proto_rawDescGZIP(), []int{3}
  296. }
  297. func (x *DocChangeReq) GetId() string {
  298. if x != nil {
  299. return x.Id
  300. }
  301. return ""
  302. }
  303. func (x *DocChangeReq) GetReason() int32 {
  304. if x != nil {
  305. return x.Reason
  306. }
  307. return 0
  308. }
  309. type DocChangeResp struct {
  310. state protoimpl.MessageState
  311. sizeCache protoimpl.SizeCache
  312. unknownFields protoimpl.UnknownFields
  313. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功
  314. }
  315. func (x *DocChangeResp) Reset() {
  316. *x = DocChangeResp{}
  317. if protoimpl.UnsafeEnabled {
  318. mi := &file_stdlib_proto_msgTypes[4]
  319. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  320. ms.StoreMessageInfo(mi)
  321. }
  322. }
  323. func (x *DocChangeResp) String() string {
  324. return protoimpl.X.MessageStringOf(x)
  325. }
  326. func (*DocChangeResp) ProtoMessage() {}
  327. func (x *DocChangeResp) ProtoReflect() protoreflect.Message {
  328. mi := &file_stdlib_proto_msgTypes[4]
  329. if protoimpl.UnsafeEnabled && x != nil {
  330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  331. if ms.LoadMessageInfo() == nil {
  332. ms.StoreMessageInfo(mi)
  333. }
  334. return ms
  335. }
  336. return mi.MessageOf(x)
  337. }
  338. // Deprecated: Use DocChangeResp.ProtoReflect.Descriptor instead.
  339. func (*DocChangeResp) Descriptor() ([]byte, []int) {
  340. return file_stdlib_proto_rawDescGZIP(), []int{4}
  341. }
  342. func (x *DocChangeResp) GetState() bool {
  343. if x != nil {
  344. return x.State
  345. }
  346. return false
  347. }
  348. type DocStatisticsReq struct {
  349. state protoimpl.MessageState
  350. sizeCache protoimpl.SizeCache
  351. unknownFields protoimpl.UnknownFields
  352. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  353. DocStatisticsType int32 `protobuf:"varint,2,opt,name=DocStatisticsType,proto3" json:"DocStatisticsType,omitempty"` //文档统计类型 1增加下载次数 2增加浏览次数 3评分
  354. }
  355. func (x *DocStatisticsReq) Reset() {
  356. *x = DocStatisticsReq{}
  357. if protoimpl.UnsafeEnabled {
  358. mi := &file_stdlib_proto_msgTypes[5]
  359. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  360. ms.StoreMessageInfo(mi)
  361. }
  362. }
  363. func (x *DocStatisticsReq) String() string {
  364. return protoimpl.X.MessageStringOf(x)
  365. }
  366. func (*DocStatisticsReq) ProtoMessage() {}
  367. func (x *DocStatisticsReq) ProtoReflect() protoreflect.Message {
  368. mi := &file_stdlib_proto_msgTypes[5]
  369. if protoimpl.UnsafeEnabled && x != nil {
  370. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  371. if ms.LoadMessageInfo() == nil {
  372. ms.StoreMessageInfo(mi)
  373. }
  374. return ms
  375. }
  376. return mi.MessageOf(x)
  377. }
  378. // Deprecated: Use DocStatisticsReq.ProtoReflect.Descriptor instead.
  379. func (*DocStatisticsReq) Descriptor() ([]byte, []int) {
  380. return file_stdlib_proto_rawDescGZIP(), []int{5}
  381. }
  382. func (x *DocStatisticsReq) GetDocId() string {
  383. if x != nil {
  384. return x.DocId
  385. }
  386. return ""
  387. }
  388. func (x *DocStatisticsReq) GetDocStatisticsType() int32 {
  389. if x != nil {
  390. return x.DocStatisticsType
  391. }
  392. return 0
  393. }
  394. type DocGetCheckReq struct {
  395. state protoimpl.MessageState
  396. sizeCache protoimpl.SizeCache
  397. unknownFields protoimpl.UnknownFields
  398. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  399. UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  400. }
  401. func (x *DocGetCheckReq) Reset() {
  402. *x = DocGetCheckReq{}
  403. if protoimpl.UnsafeEnabled {
  404. mi := &file_stdlib_proto_msgTypes[6]
  405. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  406. ms.StoreMessageInfo(mi)
  407. }
  408. }
  409. func (x *DocGetCheckReq) String() string {
  410. return protoimpl.X.MessageStringOf(x)
  411. }
  412. func (*DocGetCheckReq) ProtoMessage() {}
  413. func (x *DocGetCheckReq) ProtoReflect() protoreflect.Message {
  414. mi := &file_stdlib_proto_msgTypes[6]
  415. if protoimpl.UnsafeEnabled && x != nil {
  416. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  417. if ms.LoadMessageInfo() == nil {
  418. ms.StoreMessageInfo(mi)
  419. }
  420. return ms
  421. }
  422. return mi.MessageOf(x)
  423. }
  424. // Deprecated: Use DocGetCheckReq.ProtoReflect.Descriptor instead.
  425. func (*DocGetCheckReq) Descriptor() ([]byte, []int) {
  426. return file_stdlib_proto_rawDescGZIP(), []int{6}
  427. }
  428. func (x *DocGetCheckReq) GetDocId() string {
  429. if x != nil {
  430. return x.DocId
  431. }
  432. return ""
  433. }
  434. func (x *DocGetCheckReq) GetUserId() string {
  435. if x != nil {
  436. return x.UserId
  437. }
  438. return ""
  439. }
  440. type DocGetCheckResp struct {
  441. state protoimpl.MessageState
  442. sizeCache protoimpl.SizeCache
  443. unknownFields protoimpl.UnknownFields
  444. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  445. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  446. DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
  447. DocType int32 `protobuf:"varint,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
  448. DocFileSize int32 `protobuf:"varint,5,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
  449. DocPageSize int32 `protobuf:"varint,6,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
  450. Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
  451. UserId string `protobuf:"bytes,8,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
  452. DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
  453. }
  454. func (x *DocGetCheckResp) Reset() {
  455. *x = DocGetCheckResp{}
  456. if protoimpl.UnsafeEnabled {
  457. mi := &file_stdlib_proto_msgTypes[7]
  458. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  459. ms.StoreMessageInfo(mi)
  460. }
  461. }
  462. func (x *DocGetCheckResp) String() string {
  463. return protoimpl.X.MessageStringOf(x)
  464. }
  465. func (*DocGetCheckResp) ProtoMessage() {}
  466. func (x *DocGetCheckResp) ProtoReflect() protoreflect.Message {
  467. mi := &file_stdlib_proto_msgTypes[7]
  468. if protoimpl.UnsafeEnabled && x != nil {
  469. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  470. if ms.LoadMessageInfo() == nil {
  471. ms.StoreMessageInfo(mi)
  472. }
  473. return ms
  474. }
  475. return mi.MessageOf(x)
  476. }
  477. // Deprecated: Use DocGetCheckResp.ProtoReflect.Descriptor instead.
  478. func (*DocGetCheckResp) Descriptor() ([]byte, []int) {
  479. return file_stdlib_proto_rawDescGZIP(), []int{7}
  480. }
  481. func (x *DocGetCheckResp) GetCode() int32 {
  482. if x != nil {
  483. return x.Code
  484. }
  485. return 0
  486. }
  487. func (x *DocGetCheckResp) GetMsg() string {
  488. if x != nil {
  489. return x.Msg
  490. }
  491. return ""
  492. }
  493. func (x *DocGetCheckResp) GetDocName() string {
  494. if x != nil {
  495. return x.DocName
  496. }
  497. return ""
  498. }
  499. func (x *DocGetCheckResp) GetDocType() int32 {
  500. if x != nil {
  501. return x.DocType
  502. }
  503. return 0
  504. }
  505. func (x *DocGetCheckResp) GetDocFileSize() int32 {
  506. if x != nil {
  507. return x.DocFileSize
  508. }
  509. return 0
  510. }
  511. func (x *DocGetCheckResp) GetDocPageSize() int32 {
  512. if x != nil {
  513. return x.DocPageSize
  514. }
  515. return 0
  516. }
  517. func (x *DocGetCheckResp) GetTags() string {
  518. if x != nil {
  519. return x.Tags
  520. }
  521. return ""
  522. }
  523. func (x *DocGetCheckResp) GetUserId() string {
  524. if x != nil {
  525. return x.UserId
  526. }
  527. return ""
  528. }
  529. func (x *DocGetCheckResp) GetDocSummary() string {
  530. if x != nil {
  531. return x.DocSummary
  532. }
  533. return ""
  534. }
  535. type DocGetContentResp struct {
  536. state protoimpl.MessageState
  537. sizeCache protoimpl.SizeCache
  538. unknownFields protoimpl.UnknownFields
  539. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  540. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
  541. DocContent []byte `protobuf:"bytes,3,opt,name=docContent,proto3" json:"docContent,omitempty"` //文件内容
  542. }
  543. func (x *DocGetContentResp) Reset() {
  544. *x = DocGetContentResp{}
  545. if protoimpl.UnsafeEnabled {
  546. mi := &file_stdlib_proto_msgTypes[8]
  547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  548. ms.StoreMessageInfo(mi)
  549. }
  550. }
  551. func (x *DocGetContentResp) String() string {
  552. return protoimpl.X.MessageStringOf(x)
  553. }
  554. func (*DocGetContentResp) ProtoMessage() {}
  555. func (x *DocGetContentResp) ProtoReflect() protoreflect.Message {
  556. mi := &file_stdlib_proto_msgTypes[8]
  557. if protoimpl.UnsafeEnabled && x != nil {
  558. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  559. if ms.LoadMessageInfo() == nil {
  560. ms.StoreMessageInfo(mi)
  561. }
  562. return ms
  563. }
  564. return mi.MessageOf(x)
  565. }
  566. // Deprecated: Use DocGetContentResp.ProtoReflect.Descriptor instead.
  567. func (*DocGetContentResp) Descriptor() ([]byte, []int) {
  568. return file_stdlib_proto_rawDescGZIP(), []int{8}
  569. }
  570. func (x *DocGetContentResp) GetCode() int32 {
  571. if x != nil {
  572. return x.Code
  573. }
  574. return 0
  575. }
  576. func (x *DocGetContentResp) GetMsg() string {
  577. if x != nil {
  578. return x.Msg
  579. }
  580. return ""
  581. }
  582. func (x *DocGetContentResp) GetDocContent() []byte {
  583. if x != nil {
  584. return x.DocContent
  585. }
  586. return nil
  587. }
  588. type DocActivityReq struct {
  589. state protoimpl.MessageState
  590. sizeCache protoimpl.SizeCache
  591. unknownFields protoimpl.UnknownFields
  592. PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
  593. PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
  594. }
  595. func (x *DocActivityReq) Reset() {
  596. *x = DocActivityReq{}
  597. if protoimpl.UnsafeEnabled {
  598. mi := &file_stdlib_proto_msgTypes[9]
  599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  600. ms.StoreMessageInfo(mi)
  601. }
  602. }
  603. func (x *DocActivityReq) String() string {
  604. return protoimpl.X.MessageStringOf(x)
  605. }
  606. func (*DocActivityReq) ProtoMessage() {}
  607. func (x *DocActivityReq) ProtoReflect() protoreflect.Message {
  608. mi := &file_stdlib_proto_msgTypes[9]
  609. if protoimpl.UnsafeEnabled && x != nil {
  610. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  611. if ms.LoadMessageInfo() == nil {
  612. ms.StoreMessageInfo(mi)
  613. }
  614. return ms
  615. }
  616. return mi.MessageOf(x)
  617. }
  618. // Deprecated: Use DocActivityReq.ProtoReflect.Descriptor instead.
  619. func (*DocActivityReq) Descriptor() ([]byte, []int) {
  620. return file_stdlib_proto_rawDescGZIP(), []int{9}
  621. }
  622. func (x *DocActivityReq) GetPageNum() int32 {
  623. if x != nil {
  624. return x.PageNum
  625. }
  626. return 0
  627. }
  628. func (x *DocActivityReq) GetPageSize() int32 {
  629. if x != nil {
  630. return x.PageSize
  631. }
  632. return 0
  633. }
  634. var File_stdlib_proto protoreflect.FileDescriptor
  635. var file_stdlib_proto_rawDesc = []byte{
  636. 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  637. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0xff, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75,
  638. 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
  639. 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x61, 0x67,
  640. 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  641. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  642. 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01,
  643. 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07,
  644. 0x69, 0x74, 0x65, 0x6d, 0x41, 0x72, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x69,
  645. 0x74, 0x65, 0x6d, 0x41, 0x72, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x67, 0x41, 0x72, 0x72,
  646. 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x67, 0x41, 0x72, 0x72, 0x12, 0x28,
  647. 0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x6f, 0x72,
  648. 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
  649. 0x54, 0x69, 0x6d, 0x65, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e,
  650. 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c,
  651. 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08,
  652. 0x76, 0x69, 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
  653. 0x76, 0x69, 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x22, 0x6f, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51,
  654. 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
  655. 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
  656. 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
  657. 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
  658. 0x32, 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64,
  659. 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01,
  660. 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xdf, 0x01, 0x0a, 0x03, 0x44, 0x6f,
  661. 0x63, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  662. 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61,
  663. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d,
  664. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  665. 0x28, 0x05, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64,
  666. 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
  667. 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a,
  668. 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
  669. 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
  670. 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
  671. 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20,
  672. 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
  673. 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
  674. 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x36, 0x0a, 0x0c, 0x44,
  675. 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  676. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72,
  677. 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x61,
  678. 0x73, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
  679. 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20,
  680. 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x6f,
  681. 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14,
  682. 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64,
  683. 0x6f, 0x63, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69,
  684. 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
  685. 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79,
  686. 0x70, 0x65, 0x22, 0x3e, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63,
  687. 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20,
  688. 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
  689. 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  690. 0x49, 0x64, 0x22, 0xfb, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65,
  691. 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  692. 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73,
  693. 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07,
  694. 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64,
  695. 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70,
  696. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65,
  697. 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18,
  698. 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69,
  699. 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
  700. 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65,
  701. 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01,
  702. 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
  703. 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  704. 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09,
  705. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,
  706. 0x22, 0x59, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  707. 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  708. 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
  709. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
  710. 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
  711. 0x0a, 0x64, 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44,
  712. 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a,
  713. 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
  714. 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  715. 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  716. 0x69, 0x7a, 0x65, 0x32, 0xbb, 0x03, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d,
  717. 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64,
  718. 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
  719. 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  720. 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a,
  721. 0x05, 0x44, 0x6f, 0x63, 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
  722. 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73,
  723. 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52,
  724. 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e,
  725. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
  726. 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  727. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x6f,
  728. 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x73, 0x74,
  729. 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
  730. 0x63, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44,
  731. 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b,
  732. 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x73, 0x74,
  733. 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b,
  734. 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  735. 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d,
  736. 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e,
  737. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65,
  738. 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44,
  739. 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
  740. 0x12, 0x3f, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12,
  741. 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69,
  742. 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
  743. 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  744. 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  745. }
  746. var (
  747. file_stdlib_proto_rawDescOnce sync.Once
  748. file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc
  749. )
  750. func file_stdlib_proto_rawDescGZIP() []byte {
  751. file_stdlib_proto_rawDescOnce.Do(func() {
  752. file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData)
  753. })
  754. return file_stdlib_proto_rawDescData
  755. }
  756. var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  757. var file_stdlib_proto_goTypes = []interface{}{
  758. (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest
  759. (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse
  760. (*Doc)(nil), // 2: stdlib.Doc
  761. (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq
  762. (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp
  763. (*DocStatisticsReq)(nil), // 5: stdlib.DocStatisticsReq
  764. (*DocGetCheckReq)(nil), // 6: stdlib.DocGetCheckReq
  765. (*DocGetCheckResp)(nil), // 7: stdlib.DocGetCheckResp
  766. (*DocGetContentResp)(nil), // 8: stdlib.DocGetContentResp
  767. (*DocActivityReq)(nil), // 9: stdlib.DocActivityReq
  768. }
  769. var file_stdlib_proto_depIdxs = []int32{
  770. 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc
  771. 0, // 1: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest
  772. 3, // 2: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq
  773. 3, // 3: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq
  774. 5, // 4: stdlib.Stdlib.DocStatistics:input_type -> stdlib.DocStatisticsReq
  775. 6, // 5: stdlib.Stdlib.DocGetCheck:input_type -> stdlib.DocGetCheckReq
  776. 6, // 6: stdlib.Stdlib.DocGetContent:input_type -> stdlib.DocGetCheckReq
  777. 9, // 7: stdlib.Stdlib.DocActivity:input_type -> stdlib.DocActivityReq
  778. 1, // 8: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse
  779. 4, // 9: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp
  780. 4, // 10: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp
  781. 4, // 11: stdlib.Stdlib.DocStatistics:output_type -> stdlib.DocChangeResp
  782. 7, // 12: stdlib.Stdlib.DocGetCheck:output_type -> stdlib.DocGetCheckResp
  783. 8, // 13: stdlib.Stdlib.DocGetContent:output_type -> stdlib.DocGetContentResp
  784. 1, // 14: stdlib.Stdlib.DocActivity:output_type -> stdlib.DocQueryResponse
  785. 8, // [8:15] is the sub-list for method output_type
  786. 1, // [1:8] is the sub-list for method input_type
  787. 1, // [1:1] is the sub-list for extension type_name
  788. 1, // [1:1] is the sub-list for extension extendee
  789. 0, // [0:1] is the sub-list for field type_name
  790. }
  791. func init() { file_stdlib_proto_init() }
  792. func file_stdlib_proto_init() {
  793. if File_stdlib_proto != nil {
  794. return
  795. }
  796. if !protoimpl.UnsafeEnabled {
  797. file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  798. switch v := v.(*DocQueryRequest); i {
  799. case 0:
  800. return &v.state
  801. case 1:
  802. return &v.sizeCache
  803. case 2:
  804. return &v.unknownFields
  805. default:
  806. return nil
  807. }
  808. }
  809. file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  810. switch v := v.(*DocQueryResponse); i {
  811. case 0:
  812. return &v.state
  813. case 1:
  814. return &v.sizeCache
  815. case 2:
  816. return &v.unknownFields
  817. default:
  818. return nil
  819. }
  820. }
  821. file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  822. switch v := v.(*Doc); i {
  823. case 0:
  824. return &v.state
  825. case 1:
  826. return &v.sizeCache
  827. case 2:
  828. return &v.unknownFields
  829. default:
  830. return nil
  831. }
  832. }
  833. file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  834. switch v := v.(*DocChangeReq); i {
  835. case 0:
  836. return &v.state
  837. case 1:
  838. return &v.sizeCache
  839. case 2:
  840. return &v.unknownFields
  841. default:
  842. return nil
  843. }
  844. }
  845. file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  846. switch v := v.(*DocChangeResp); i {
  847. case 0:
  848. return &v.state
  849. case 1:
  850. return &v.sizeCache
  851. case 2:
  852. return &v.unknownFields
  853. default:
  854. return nil
  855. }
  856. }
  857. file_stdlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  858. switch v := v.(*DocStatisticsReq); i {
  859. case 0:
  860. return &v.state
  861. case 1:
  862. return &v.sizeCache
  863. case 2:
  864. return &v.unknownFields
  865. default:
  866. return nil
  867. }
  868. }
  869. file_stdlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  870. switch v := v.(*DocGetCheckReq); i {
  871. case 0:
  872. return &v.state
  873. case 1:
  874. return &v.sizeCache
  875. case 2:
  876. return &v.unknownFields
  877. default:
  878. return nil
  879. }
  880. }
  881. file_stdlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  882. switch v := v.(*DocGetCheckResp); i {
  883. case 0:
  884. return &v.state
  885. case 1:
  886. return &v.sizeCache
  887. case 2:
  888. return &v.unknownFields
  889. default:
  890. return nil
  891. }
  892. }
  893. file_stdlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  894. switch v := v.(*DocGetContentResp); i {
  895. case 0:
  896. return &v.state
  897. case 1:
  898. return &v.sizeCache
  899. case 2:
  900. return &v.unknownFields
  901. default:
  902. return nil
  903. }
  904. }
  905. file_stdlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  906. switch v := v.(*DocActivityReq); i {
  907. case 0:
  908. return &v.state
  909. case 1:
  910. return &v.sizeCache
  911. case 2:
  912. return &v.unknownFields
  913. default:
  914. return nil
  915. }
  916. }
  917. }
  918. type x struct{}
  919. out := protoimpl.TypeBuilder{
  920. File: protoimpl.DescBuilder{
  921. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  922. RawDescriptor: file_stdlib_proto_rawDesc,
  923. NumEnums: 0,
  924. NumMessages: 10,
  925. NumExtensions: 0,
  926. NumServices: 1,
  927. },
  928. GoTypes: file_stdlib_proto_goTypes,
  929. DependencyIndexes: file_stdlib_proto_depIdxs,
  930. MessageInfos: file_stdlib_proto_msgTypes,
  931. }.Build()
  932. File_stdlib_proto = out.File
  933. file_stdlib_proto_rawDesc = nil
  934. file_stdlib_proto_goTypes = nil
  935. file_stdlib_proto_depIdxs = nil
  936. }
  937. // Reference imports to suppress errors if they are not otherwise used.
  938. var _ context.Context
  939. var _ grpc.ClientConnInterface
  940. // This is a compile-time assertion to ensure that this generated file
  941. // is compatible with the grpc package it is being compiled against.
  942. const _ = grpc.SupportPackageIsVersion6
  943. // StdlibClient is the client API for Stdlib service.
  944. //
  945. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  946. type StdlibClient interface {
  947. DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error)
  948. DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  949. DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  950. DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  951. DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error)
  952. DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error)
  953. DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocQueryResponse, error)
  954. }
  955. type stdlibClient struct {
  956. cc grpc.ClientConnInterface
  957. }
  958. func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient {
  959. return &stdlibClient{cc}
  960. }
  961. func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) {
  962. out := new(DocQueryResponse)
  963. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...)
  964. if err != nil {
  965. return nil, err
  966. }
  967. return out, nil
  968. }
  969. func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  970. out := new(DocChangeResp)
  971. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...)
  972. if err != nil {
  973. return nil, err
  974. }
  975. return out, nil
  976. }
  977. func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  978. out := new(DocChangeResp)
  979. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...)
  980. if err != nil {
  981. return nil, err
  982. }
  983. return out, nil
  984. }
  985. func (c *stdlibClient) DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  986. out := new(DocChangeResp)
  987. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocStatistics", in, out, opts...)
  988. if err != nil {
  989. return nil, err
  990. }
  991. return out, nil
  992. }
  993. func (c *stdlibClient) DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error) {
  994. out := new(DocGetCheckResp)
  995. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetCheck", in, out, opts...)
  996. if err != nil {
  997. return nil, err
  998. }
  999. return out, nil
  1000. }
  1001. func (c *stdlibClient) DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error) {
  1002. out := new(DocGetContentResp)
  1003. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetContent", in, out, opts...)
  1004. if err != nil {
  1005. return nil, err
  1006. }
  1007. return out, nil
  1008. }
  1009. func (c *stdlibClient) DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocQueryResponse, error) {
  1010. out := new(DocQueryResponse)
  1011. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocActivity", in, out, opts...)
  1012. if err != nil {
  1013. return nil, err
  1014. }
  1015. return out, nil
  1016. }
  1017. // StdlibServer is the server API for Stdlib service.
  1018. type StdlibServer interface {
  1019. DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error)
  1020. DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error)
  1021. DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error)
  1022. DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error)
  1023. DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error)
  1024. DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error)
  1025. DocActivity(context.Context, *DocActivityReq) (*DocQueryResponse, error)
  1026. }
  1027. // UnimplementedStdlibServer can be embedded to have forward compatible implementations.
  1028. type UnimplementedStdlibServer struct {
  1029. }
  1030. func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) {
  1031. return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented")
  1032. }
  1033. func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  1034. return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented")
  1035. }
  1036. func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  1037. return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented")
  1038. }
  1039. func (*UnimplementedStdlibServer) DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error) {
  1040. return nil, status.Errorf(codes.Unimplemented, "method DocStatistics not implemented")
  1041. }
  1042. func (*UnimplementedStdlibServer) DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error) {
  1043. return nil, status.Errorf(codes.Unimplemented, "method DocGetCheck not implemented")
  1044. }
  1045. func (*UnimplementedStdlibServer) DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error) {
  1046. return nil, status.Errorf(codes.Unimplemented, "method DocGetContent not implemented")
  1047. }
  1048. func (*UnimplementedStdlibServer) DocActivity(context.Context, *DocActivityReq) (*DocQueryResponse, error) {
  1049. return nil, status.Errorf(codes.Unimplemented, "method DocActivity not implemented")
  1050. }
  1051. func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) {
  1052. s.RegisterService(&_Stdlib_serviceDesc, srv)
  1053. }
  1054. func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1055. in := new(DocQueryRequest)
  1056. if err := dec(in); err != nil {
  1057. return nil, err
  1058. }
  1059. if interceptor == nil {
  1060. return srv.(StdlibServer).DocQuery(ctx, in)
  1061. }
  1062. info := &grpc.UnaryServerInfo{
  1063. Server: srv,
  1064. FullMethod: "/stdlib.Stdlib/DocQuery",
  1065. }
  1066. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1067. return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest))
  1068. }
  1069. return interceptor(ctx, in, info, handler)
  1070. }
  1071. func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1072. in := new(DocChangeReq)
  1073. if err := dec(in); err != nil {
  1074. return nil, err
  1075. }
  1076. if interceptor == nil {
  1077. return srv.(StdlibServer).DocOn(ctx, in)
  1078. }
  1079. info := &grpc.UnaryServerInfo{
  1080. Server: srv,
  1081. FullMethod: "/stdlib.Stdlib/DocOn",
  1082. }
  1083. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1084. return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq))
  1085. }
  1086. return interceptor(ctx, in, info, handler)
  1087. }
  1088. func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1089. in := new(DocChangeReq)
  1090. if err := dec(in); err != nil {
  1091. return nil, err
  1092. }
  1093. if interceptor == nil {
  1094. return srv.(StdlibServer).DocOff(ctx, in)
  1095. }
  1096. info := &grpc.UnaryServerInfo{
  1097. Server: srv,
  1098. FullMethod: "/stdlib.Stdlib/DocOff",
  1099. }
  1100. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1101. return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq))
  1102. }
  1103. return interceptor(ctx, in, info, handler)
  1104. }
  1105. func _Stdlib_DocStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1106. in := new(DocStatisticsReq)
  1107. if err := dec(in); err != nil {
  1108. return nil, err
  1109. }
  1110. if interceptor == nil {
  1111. return srv.(StdlibServer).DocStatistics(ctx, in)
  1112. }
  1113. info := &grpc.UnaryServerInfo{
  1114. Server: srv,
  1115. FullMethod: "/stdlib.Stdlib/DocStatistics",
  1116. }
  1117. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1118. return srv.(StdlibServer).DocStatistics(ctx, req.(*DocStatisticsReq))
  1119. }
  1120. return interceptor(ctx, in, info, handler)
  1121. }
  1122. func _Stdlib_DocGetCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1123. in := new(DocGetCheckReq)
  1124. if err := dec(in); err != nil {
  1125. return nil, err
  1126. }
  1127. if interceptor == nil {
  1128. return srv.(StdlibServer).DocGetCheck(ctx, in)
  1129. }
  1130. info := &grpc.UnaryServerInfo{
  1131. Server: srv,
  1132. FullMethod: "/stdlib.Stdlib/DocGetCheck",
  1133. }
  1134. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1135. return srv.(StdlibServer).DocGetCheck(ctx, req.(*DocGetCheckReq))
  1136. }
  1137. return interceptor(ctx, in, info, handler)
  1138. }
  1139. func _Stdlib_DocGetContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1140. in := new(DocGetCheckReq)
  1141. if err := dec(in); err != nil {
  1142. return nil, err
  1143. }
  1144. if interceptor == nil {
  1145. return srv.(StdlibServer).DocGetContent(ctx, in)
  1146. }
  1147. info := &grpc.UnaryServerInfo{
  1148. Server: srv,
  1149. FullMethod: "/stdlib.Stdlib/DocGetContent",
  1150. }
  1151. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1152. return srv.(StdlibServer).DocGetContent(ctx, req.(*DocGetCheckReq))
  1153. }
  1154. return interceptor(ctx, in, info, handler)
  1155. }
  1156. func _Stdlib_DocActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1157. in := new(DocActivityReq)
  1158. if err := dec(in); err != nil {
  1159. return nil, err
  1160. }
  1161. if interceptor == nil {
  1162. return srv.(StdlibServer).DocActivity(ctx, in)
  1163. }
  1164. info := &grpc.UnaryServerInfo{
  1165. Server: srv,
  1166. FullMethod: "/stdlib.Stdlib/DocActivity",
  1167. }
  1168. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1169. return srv.(StdlibServer).DocActivity(ctx, req.(*DocActivityReq))
  1170. }
  1171. return interceptor(ctx, in, info, handler)
  1172. }
  1173. var _Stdlib_serviceDesc = grpc.ServiceDesc{
  1174. ServiceName: "stdlib.Stdlib",
  1175. HandlerType: (*StdlibServer)(nil),
  1176. Methods: []grpc.MethodDesc{
  1177. {
  1178. MethodName: "DocQuery",
  1179. Handler: _Stdlib_DocQuery_Handler,
  1180. },
  1181. {
  1182. MethodName: "DocOn",
  1183. Handler: _Stdlib_DocOn_Handler,
  1184. },
  1185. {
  1186. MethodName: "DocOff",
  1187. Handler: _Stdlib_DocOff_Handler,
  1188. },
  1189. {
  1190. MethodName: "DocStatistics",
  1191. Handler: _Stdlib_DocStatistics_Handler,
  1192. },
  1193. {
  1194. MethodName: "DocGetCheck",
  1195. Handler: _Stdlib_DocGetCheck_Handler,
  1196. },
  1197. {
  1198. MethodName: "DocGetContent",
  1199. Handler: _Stdlib_DocGetContent_Handler,
  1200. },
  1201. {
  1202. MethodName: "DocActivity",
  1203. Handler: _Stdlib_DocActivity_Handler,
  1204. },
  1205. },
  1206. Streams: []grpc.StreamDesc{},
  1207. Metadata: "stdlib.proto",
  1208. }