stdlib.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  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. KeyWords string `protobuf:"bytes,1,opt,name=keyWords,proto3" json:"keyWords,omitempty"` //检索词
  32. PageNum int32 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
  33. }
  34. func (x *DocQueryRequest) Reset() {
  35. *x = DocQueryRequest{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_stdlib_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *DocQueryRequest) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*DocQueryRequest) ProtoMessage() {}
  46. func (x *DocQueryRequest) ProtoReflect() protoreflect.Message {
  47. mi := &file_stdlib_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use DocQueryRequest.ProtoReflect.Descriptor instead.
  58. func (*DocQueryRequest) Descriptor() ([]byte, []int) {
  59. return file_stdlib_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *DocQueryRequest) GetKeyWords() string {
  62. if x != nil {
  63. return x.KeyWords
  64. }
  65. return ""
  66. }
  67. func (x *DocQueryRequest) GetPageNum() int32 {
  68. if x != nil {
  69. return x.PageNum
  70. }
  71. return 0
  72. }
  73. type DocQueryResponse struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  78. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  79. Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数
  80. Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
  81. }
  82. func (x *DocQueryResponse) Reset() {
  83. *x = DocQueryResponse{}
  84. if protoimpl.UnsafeEnabled {
  85. mi := &file_stdlib_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. }
  90. func (x *DocQueryResponse) String() string {
  91. return protoimpl.X.MessageStringOf(x)
  92. }
  93. func (*DocQueryResponse) ProtoMessage() {}
  94. func (x *DocQueryResponse) ProtoReflect() protoreflect.Message {
  95. mi := &file_stdlib_proto_msgTypes[1]
  96. if protoimpl.UnsafeEnabled && x != nil {
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. if ms.LoadMessageInfo() == nil {
  99. ms.StoreMessageInfo(mi)
  100. }
  101. return ms
  102. }
  103. return mi.MessageOf(x)
  104. }
  105. // Deprecated: Use DocQueryResponse.ProtoReflect.Descriptor instead.
  106. func (*DocQueryResponse) Descriptor() ([]byte, []int) {
  107. return file_stdlib_proto_rawDescGZIP(), []int{1}
  108. }
  109. func (x *DocQueryResponse) GetCode() int32 {
  110. if x != nil {
  111. return x.Code
  112. }
  113. return 0
  114. }
  115. func (x *DocQueryResponse) GetMessage() string {
  116. if x != nil {
  117. return x.Message
  118. }
  119. return ""
  120. }
  121. func (x *DocQueryResponse) GetDocs() []*Doc {
  122. if x != nil {
  123. return x.Docs
  124. }
  125. return nil
  126. }
  127. func (x *DocQueryResponse) GetTotal() int32 {
  128. if x != nil {
  129. return x.Total
  130. }
  131. return 0
  132. }
  133. type Doc struct {
  134. state protoimpl.MessageState
  135. sizeCache protoimpl.SizeCache
  136. unknownFields protoimpl.UnknownFields
  137. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
  138. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //文档名称
  139. Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` //文档类型
  140. FileSize int32 `protobuf:"varint,4,opt,name=fileSize,proto3" json:"fileSize,omitempty"` //文档大小
  141. PageSize int32 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //文档页码数
  142. Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
  143. UserId string `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
  144. }
  145. func (x *Doc) Reset() {
  146. *x = Doc{}
  147. if protoimpl.UnsafeEnabled {
  148. mi := &file_stdlib_proto_msgTypes[2]
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. ms.StoreMessageInfo(mi)
  151. }
  152. }
  153. func (x *Doc) String() string {
  154. return protoimpl.X.MessageStringOf(x)
  155. }
  156. func (*Doc) ProtoMessage() {}
  157. func (x *Doc) ProtoReflect() protoreflect.Message {
  158. mi := &file_stdlib_proto_msgTypes[2]
  159. if protoimpl.UnsafeEnabled && x != nil {
  160. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  161. if ms.LoadMessageInfo() == nil {
  162. ms.StoreMessageInfo(mi)
  163. }
  164. return ms
  165. }
  166. return mi.MessageOf(x)
  167. }
  168. // Deprecated: Use Doc.ProtoReflect.Descriptor instead.
  169. func (*Doc) Descriptor() ([]byte, []int) {
  170. return file_stdlib_proto_rawDescGZIP(), []int{2}
  171. }
  172. func (x *Doc) GetId() string {
  173. if x != nil {
  174. return x.Id
  175. }
  176. return ""
  177. }
  178. func (x *Doc) GetName() string {
  179. if x != nil {
  180. return x.Name
  181. }
  182. return ""
  183. }
  184. func (x *Doc) GetType() int32 {
  185. if x != nil {
  186. return x.Type
  187. }
  188. return 0
  189. }
  190. func (x *Doc) GetFileSize() int32 {
  191. if x != nil {
  192. return x.FileSize
  193. }
  194. return 0
  195. }
  196. func (x *Doc) GetPageSize() int32 {
  197. if x != nil {
  198. return x.PageSize
  199. }
  200. return 0
  201. }
  202. func (x *Doc) GetTags() string {
  203. if x != nil {
  204. return x.Tags
  205. }
  206. return ""
  207. }
  208. func (x *Doc) GetUserId() string {
  209. if x != nil {
  210. return x.UserId
  211. }
  212. return ""
  213. }
  214. type DocChangeReq struct {
  215. state protoimpl.MessageState
  216. sizeCache protoimpl.SizeCache
  217. unknownFields protoimpl.UnknownFields
  218. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
  219. Reason int32 `protobuf:"varint,2,opt,name=reason,proto3" json:"reason,omitempty"` //处理原因 1机审通过上架 2人审通过上加 10投诉下架 11过期下架
  220. }
  221. func (x *DocChangeReq) Reset() {
  222. *x = DocChangeReq{}
  223. if protoimpl.UnsafeEnabled {
  224. mi := &file_stdlib_proto_msgTypes[3]
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. ms.StoreMessageInfo(mi)
  227. }
  228. }
  229. func (x *DocChangeReq) String() string {
  230. return protoimpl.X.MessageStringOf(x)
  231. }
  232. func (*DocChangeReq) ProtoMessage() {}
  233. func (x *DocChangeReq) ProtoReflect() protoreflect.Message {
  234. mi := &file_stdlib_proto_msgTypes[3]
  235. if protoimpl.UnsafeEnabled && x != nil {
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. if ms.LoadMessageInfo() == nil {
  238. ms.StoreMessageInfo(mi)
  239. }
  240. return ms
  241. }
  242. return mi.MessageOf(x)
  243. }
  244. // Deprecated: Use DocChangeReq.ProtoReflect.Descriptor instead.
  245. func (*DocChangeReq) Descriptor() ([]byte, []int) {
  246. return file_stdlib_proto_rawDescGZIP(), []int{3}
  247. }
  248. func (x *DocChangeReq) GetId() string {
  249. if x != nil {
  250. return x.Id
  251. }
  252. return ""
  253. }
  254. func (x *DocChangeReq) GetReason() int32 {
  255. if x != nil {
  256. return x.Reason
  257. }
  258. return 0
  259. }
  260. type DocChangeResp struct {
  261. state protoimpl.MessageState
  262. sizeCache protoimpl.SizeCache
  263. unknownFields protoimpl.UnknownFields
  264. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功
  265. }
  266. func (x *DocChangeResp) Reset() {
  267. *x = DocChangeResp{}
  268. if protoimpl.UnsafeEnabled {
  269. mi := &file_stdlib_proto_msgTypes[4]
  270. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  271. ms.StoreMessageInfo(mi)
  272. }
  273. }
  274. func (x *DocChangeResp) String() string {
  275. return protoimpl.X.MessageStringOf(x)
  276. }
  277. func (*DocChangeResp) ProtoMessage() {}
  278. func (x *DocChangeResp) ProtoReflect() protoreflect.Message {
  279. mi := &file_stdlib_proto_msgTypes[4]
  280. if protoimpl.UnsafeEnabled && x != nil {
  281. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  282. if ms.LoadMessageInfo() == nil {
  283. ms.StoreMessageInfo(mi)
  284. }
  285. return ms
  286. }
  287. return mi.MessageOf(x)
  288. }
  289. // Deprecated: Use DocChangeResp.ProtoReflect.Descriptor instead.
  290. func (*DocChangeResp) Descriptor() ([]byte, []int) {
  291. return file_stdlib_proto_rawDescGZIP(), []int{4}
  292. }
  293. func (x *DocChangeResp) GetState() bool {
  294. if x != nil {
  295. return x.State
  296. }
  297. return false
  298. }
  299. type DocStatisticsReq struct {
  300. state protoimpl.MessageState
  301. sizeCache protoimpl.SizeCache
  302. unknownFields protoimpl.UnknownFields
  303. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  304. DocStatisticsType int32 `protobuf:"varint,2,opt,name=DocStatisticsType,proto3" json:"DocStatisticsType,omitempty"` //文档统计类型 1增加下载次数 2增加浏览次数 3评分
  305. }
  306. func (x *DocStatisticsReq) Reset() {
  307. *x = DocStatisticsReq{}
  308. if protoimpl.UnsafeEnabled {
  309. mi := &file_stdlib_proto_msgTypes[5]
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. ms.StoreMessageInfo(mi)
  312. }
  313. }
  314. func (x *DocStatisticsReq) String() string {
  315. return protoimpl.X.MessageStringOf(x)
  316. }
  317. func (*DocStatisticsReq) ProtoMessage() {}
  318. func (x *DocStatisticsReq) ProtoReflect() protoreflect.Message {
  319. mi := &file_stdlib_proto_msgTypes[5]
  320. if protoimpl.UnsafeEnabled && x != nil {
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. if ms.LoadMessageInfo() == nil {
  323. ms.StoreMessageInfo(mi)
  324. }
  325. return ms
  326. }
  327. return mi.MessageOf(x)
  328. }
  329. // Deprecated: Use DocStatisticsReq.ProtoReflect.Descriptor instead.
  330. func (*DocStatisticsReq) Descriptor() ([]byte, []int) {
  331. return file_stdlib_proto_rawDescGZIP(), []int{5}
  332. }
  333. func (x *DocStatisticsReq) GetDocId() string {
  334. if x != nil {
  335. return x.DocId
  336. }
  337. return ""
  338. }
  339. func (x *DocStatisticsReq) GetDocStatisticsType() int32 {
  340. if x != nil {
  341. return x.DocStatisticsType
  342. }
  343. return 0
  344. }
  345. var File_stdlib_proto protoreflect.FileDescriptor
  346. var file_stdlib_proto_rawDesc = []byte{
  347. 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  348. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0x47, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65,
  349. 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79,
  350. 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79,
  351. 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d,
  352. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x22,
  353. 0x77, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f,
  354. 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  355. 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  356. 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  357. 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
  358. 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f,
  359. 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
  360. 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xa1, 0x01, 0x0a, 0x03, 0x44, 0x6f, 0x63,
  361. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  362. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  363. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  364. 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65,
  365. 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
  366. 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  367. 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  368. 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  369. 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07,
  370. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x0c,
  371. 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02,
  372. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
  373. 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65,
  374. 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67,
  375. 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01,
  376. 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x56, 0x0a, 0x10, 0x44,
  377. 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x12,
  378. 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  379. 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74,
  380. 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
  381. 0x52, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54,
  382. 0x79, 0x70, 0x65, 0x32, 0xf6, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d,
  383. 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64,
  384. 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
  385. 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  386. 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a,
  387. 0x05, 0x44, 0x6f, 0x63, 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
  388. 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73,
  389. 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52,
  390. 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e,
  391. 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
  392. 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
  393. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x6f,
  394. 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x73, 0x74,
  395. 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
  396. 0x63, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44,
  397. 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
  398. 0x6f, 0x74, 0x6f, 0x33,
  399. }
  400. var (
  401. file_stdlib_proto_rawDescOnce sync.Once
  402. file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc
  403. )
  404. func file_stdlib_proto_rawDescGZIP() []byte {
  405. file_stdlib_proto_rawDescOnce.Do(func() {
  406. file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData)
  407. })
  408. return file_stdlib_proto_rawDescData
  409. }
  410. var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  411. var file_stdlib_proto_goTypes = []interface{}{
  412. (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest
  413. (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse
  414. (*Doc)(nil), // 2: stdlib.Doc
  415. (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq
  416. (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp
  417. (*DocStatisticsReq)(nil), // 5: stdlib.DocStatisticsReq
  418. }
  419. var file_stdlib_proto_depIdxs = []int32{
  420. 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc
  421. 0, // 1: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest
  422. 3, // 2: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq
  423. 3, // 3: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq
  424. 5, // 4: stdlib.Stdlib.DocStatistics:input_type -> stdlib.DocStatisticsReq
  425. 1, // 5: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse
  426. 4, // 6: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp
  427. 4, // 7: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp
  428. 4, // 8: stdlib.Stdlib.DocStatistics:output_type -> stdlib.DocChangeResp
  429. 5, // [5:9] is the sub-list for method output_type
  430. 1, // [1:5] is the sub-list for method input_type
  431. 1, // [1:1] is the sub-list for extension type_name
  432. 1, // [1:1] is the sub-list for extension extendee
  433. 0, // [0:1] is the sub-list for field type_name
  434. }
  435. func init() { file_stdlib_proto_init() }
  436. func file_stdlib_proto_init() {
  437. if File_stdlib_proto != nil {
  438. return
  439. }
  440. if !protoimpl.UnsafeEnabled {
  441. file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  442. switch v := v.(*DocQueryRequest); i {
  443. case 0:
  444. return &v.state
  445. case 1:
  446. return &v.sizeCache
  447. case 2:
  448. return &v.unknownFields
  449. default:
  450. return nil
  451. }
  452. }
  453. file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  454. switch v := v.(*DocQueryResponse); i {
  455. case 0:
  456. return &v.state
  457. case 1:
  458. return &v.sizeCache
  459. case 2:
  460. return &v.unknownFields
  461. default:
  462. return nil
  463. }
  464. }
  465. file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  466. switch v := v.(*Doc); i {
  467. case 0:
  468. return &v.state
  469. case 1:
  470. return &v.sizeCache
  471. case 2:
  472. return &v.unknownFields
  473. default:
  474. return nil
  475. }
  476. }
  477. file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  478. switch v := v.(*DocChangeReq); i {
  479. case 0:
  480. return &v.state
  481. case 1:
  482. return &v.sizeCache
  483. case 2:
  484. return &v.unknownFields
  485. default:
  486. return nil
  487. }
  488. }
  489. file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  490. switch v := v.(*DocChangeResp); i {
  491. case 0:
  492. return &v.state
  493. case 1:
  494. return &v.sizeCache
  495. case 2:
  496. return &v.unknownFields
  497. default:
  498. return nil
  499. }
  500. }
  501. file_stdlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  502. switch v := v.(*DocStatisticsReq); i {
  503. case 0:
  504. return &v.state
  505. case 1:
  506. return &v.sizeCache
  507. case 2:
  508. return &v.unknownFields
  509. default:
  510. return nil
  511. }
  512. }
  513. }
  514. type x struct{}
  515. out := protoimpl.TypeBuilder{
  516. File: protoimpl.DescBuilder{
  517. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  518. RawDescriptor: file_stdlib_proto_rawDesc,
  519. NumEnums: 0,
  520. NumMessages: 6,
  521. NumExtensions: 0,
  522. NumServices: 1,
  523. },
  524. GoTypes: file_stdlib_proto_goTypes,
  525. DependencyIndexes: file_stdlib_proto_depIdxs,
  526. MessageInfos: file_stdlib_proto_msgTypes,
  527. }.Build()
  528. File_stdlib_proto = out.File
  529. file_stdlib_proto_rawDesc = nil
  530. file_stdlib_proto_goTypes = nil
  531. file_stdlib_proto_depIdxs = nil
  532. }
  533. // Reference imports to suppress errors if they are not otherwise used.
  534. var _ context.Context
  535. var _ grpc.ClientConnInterface
  536. // This is a compile-time assertion to ensure that this generated file
  537. // is compatible with the grpc package it is being compiled against.
  538. const _ = grpc.SupportPackageIsVersion6
  539. // StdlibClient is the client API for Stdlib service.
  540. //
  541. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  542. type StdlibClient interface {
  543. DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error)
  544. DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  545. DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  546. DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error)
  547. }
  548. type stdlibClient struct {
  549. cc grpc.ClientConnInterface
  550. }
  551. func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient {
  552. return &stdlibClient{cc}
  553. }
  554. func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) {
  555. out := new(DocQueryResponse)
  556. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...)
  557. if err != nil {
  558. return nil, err
  559. }
  560. return out, nil
  561. }
  562. func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  563. out := new(DocChangeResp)
  564. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...)
  565. if err != nil {
  566. return nil, err
  567. }
  568. return out, nil
  569. }
  570. func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  571. out := new(DocChangeResp)
  572. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...)
  573. if err != nil {
  574. return nil, err
  575. }
  576. return out, nil
  577. }
  578. func (c *stdlibClient) DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
  579. out := new(DocChangeResp)
  580. err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocStatistics", in, out, opts...)
  581. if err != nil {
  582. return nil, err
  583. }
  584. return out, nil
  585. }
  586. // StdlibServer is the server API for Stdlib service.
  587. type StdlibServer interface {
  588. DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error)
  589. DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error)
  590. DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error)
  591. DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error)
  592. }
  593. // UnimplementedStdlibServer can be embedded to have forward compatible implementations.
  594. type UnimplementedStdlibServer struct {
  595. }
  596. func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) {
  597. return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented")
  598. }
  599. func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  600. return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented")
  601. }
  602. func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) {
  603. return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented")
  604. }
  605. func (*UnimplementedStdlibServer) DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error) {
  606. return nil, status.Errorf(codes.Unimplemented, "method DocStatistics not implemented")
  607. }
  608. func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) {
  609. s.RegisterService(&_Stdlib_serviceDesc, srv)
  610. }
  611. func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  612. in := new(DocQueryRequest)
  613. if err := dec(in); err != nil {
  614. return nil, err
  615. }
  616. if interceptor == nil {
  617. return srv.(StdlibServer).DocQuery(ctx, in)
  618. }
  619. info := &grpc.UnaryServerInfo{
  620. Server: srv,
  621. FullMethod: "/stdlib.Stdlib/DocQuery",
  622. }
  623. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  624. return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest))
  625. }
  626. return interceptor(ctx, in, info, handler)
  627. }
  628. func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  629. in := new(DocChangeReq)
  630. if err := dec(in); err != nil {
  631. return nil, err
  632. }
  633. if interceptor == nil {
  634. return srv.(StdlibServer).DocOn(ctx, in)
  635. }
  636. info := &grpc.UnaryServerInfo{
  637. Server: srv,
  638. FullMethod: "/stdlib.Stdlib/DocOn",
  639. }
  640. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  641. return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq))
  642. }
  643. return interceptor(ctx, in, info, handler)
  644. }
  645. func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  646. in := new(DocChangeReq)
  647. if err := dec(in); err != nil {
  648. return nil, err
  649. }
  650. if interceptor == nil {
  651. return srv.(StdlibServer).DocOff(ctx, in)
  652. }
  653. info := &grpc.UnaryServerInfo{
  654. Server: srv,
  655. FullMethod: "/stdlib.Stdlib/DocOff",
  656. }
  657. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  658. return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq))
  659. }
  660. return interceptor(ctx, in, info, handler)
  661. }
  662. func _Stdlib_DocStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  663. in := new(DocStatisticsReq)
  664. if err := dec(in); err != nil {
  665. return nil, err
  666. }
  667. if interceptor == nil {
  668. return srv.(StdlibServer).DocStatistics(ctx, in)
  669. }
  670. info := &grpc.UnaryServerInfo{
  671. Server: srv,
  672. FullMethod: "/stdlib.Stdlib/DocStatistics",
  673. }
  674. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  675. return srv.(StdlibServer).DocStatistics(ctx, req.(*DocStatisticsReq))
  676. }
  677. return interceptor(ctx, in, info, handler)
  678. }
  679. var _Stdlib_serviceDesc = grpc.ServiceDesc{
  680. ServiceName: "stdlib.Stdlib",
  681. HandlerType: (*StdlibServer)(nil),
  682. Methods: []grpc.MethodDesc{
  683. {
  684. MethodName: "DocQuery",
  685. Handler: _Stdlib_DocQuery_Handler,
  686. },
  687. {
  688. MethodName: "DocOn",
  689. Handler: _Stdlib_DocOn_Handler,
  690. },
  691. {
  692. MethodName: "DocOff",
  693. Handler: _Stdlib_DocOff_Handler,
  694. },
  695. {
  696. MethodName: "DocStatistics",
  697. Handler: _Stdlib_DocStatistics_Handler,
  698. },
  699. },
  700. Streams: []grpc.StreamDesc{},
  701. Metadata: "stdlib.proto",
  702. }