query.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.12.4
  5. // source: v1/request/query.proto
  6. package request
  7. import (
  8. _ "github.com/mwitkow/go-proto-validators"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type QueryByWhereAndOrderByRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  25. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  26. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  27. Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
  28. Select []byte `protobuf:"bytes,5,opt,name=Select,proto3" json:"Select,omitempty"`
  29. Where []byte `protobuf:"bytes,6,opt,name=Where,proto3" json:"Where,omitempty"`
  30. OrderBy string `protobuf:"bytes,7,opt,name=OrderBy,proto3" json:"OrderBy,omitempty"`
  31. PageNo int32 `protobuf:"varint,8,opt,name=PageNo,proto3" json:"PageNo,omitempty"`
  32. PageSize int32 `protobuf:"varint,9,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
  33. }
  34. func (x *QueryByWhereAndOrderByRequest) Reset() {
  35. *x = QueryByWhereAndOrderByRequest{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_v1_request_query_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *QueryByWhereAndOrderByRequest) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*QueryByWhereAndOrderByRequest) ProtoMessage() {}
  46. func (x *QueryByWhereAndOrderByRequest) ProtoReflect() protoreflect.Message {
  47. mi := &file_v1_request_query_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 QueryByWhereAndOrderByRequest.ProtoReflect.Descriptor instead.
  58. func (*QueryByWhereAndOrderByRequest) Descriptor() ([]byte, []int) {
  59. return file_v1_request_query_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *QueryByWhereAndOrderByRequest) GetDatabaseID() string {
  62. if x != nil {
  63. return x.DatabaseID
  64. }
  65. return ""
  66. }
  67. func (x *QueryByWhereAndOrderByRequest) GetTablePrefixWithSchema() string {
  68. if x != nil {
  69. return x.TablePrefixWithSchema
  70. }
  71. return ""
  72. }
  73. func (x *QueryByWhereAndOrderByRequest) GetVersion() string {
  74. if x != nil {
  75. return x.Version
  76. }
  77. return ""
  78. }
  79. func (x *QueryByWhereAndOrderByRequest) GetTable() string {
  80. if x != nil {
  81. return x.Table
  82. }
  83. return ""
  84. }
  85. func (x *QueryByWhereAndOrderByRequest) GetSelect() []byte {
  86. if x != nil {
  87. return x.Select
  88. }
  89. return nil
  90. }
  91. func (x *QueryByWhereAndOrderByRequest) GetWhere() []byte {
  92. if x != nil {
  93. return x.Where
  94. }
  95. return nil
  96. }
  97. func (x *QueryByWhereAndOrderByRequest) GetOrderBy() string {
  98. if x != nil {
  99. return x.OrderBy
  100. }
  101. return ""
  102. }
  103. func (x *QueryByWhereAndOrderByRequest) GetPageNo() int32 {
  104. if x != nil {
  105. return x.PageNo
  106. }
  107. return 0
  108. }
  109. func (x *QueryByWhereAndOrderByRequest) GetPageSize() int32 {
  110. if x != nil {
  111. return x.PageSize
  112. }
  113. return 0
  114. }
  115. type CommonQueryRequest struct {
  116. state protoimpl.MessageState
  117. sizeCache protoimpl.SizeCache
  118. unknownFields protoimpl.UnknownFields
  119. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  120. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  121. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  122. Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
  123. Select []byte `protobuf:"bytes,5,opt,name=Select,proto3" json:"Select,omitempty"`
  124. Where []byte `protobuf:"bytes,6,opt,name=Where,proto3" json:"Where,omitempty"`
  125. OrderBy string `protobuf:"bytes,7,opt,name=OrderBy,proto3" json:"OrderBy,omitempty"`
  126. Or []byte `protobuf:"bytes,8,opt,name=Or,proto3" json:"Or,omitempty"`
  127. GroupBy string `protobuf:"bytes,9,opt,name=GroupBy,proto3" json:"GroupBy,omitempty"`
  128. Joins []byte `protobuf:"bytes,10,opt,name=Joins,proto3" json:"Joins,omitempty"`
  129. Having []byte `protobuf:"bytes,11,opt,name=Having,proto3" json:"Having,omitempty"`
  130. PageNo int32 `protobuf:"varint,12,opt,name=PageNo,proto3" json:"PageNo,omitempty"`
  131. PageSize int32 `protobuf:"varint,13,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
  132. }
  133. func (x *CommonQueryRequest) Reset() {
  134. *x = CommonQueryRequest{}
  135. if protoimpl.UnsafeEnabled {
  136. mi := &file_v1_request_query_proto_msgTypes[1]
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. ms.StoreMessageInfo(mi)
  139. }
  140. }
  141. func (x *CommonQueryRequest) String() string {
  142. return protoimpl.X.MessageStringOf(x)
  143. }
  144. func (*CommonQueryRequest) ProtoMessage() {}
  145. func (x *CommonQueryRequest) ProtoReflect() protoreflect.Message {
  146. mi := &file_v1_request_query_proto_msgTypes[1]
  147. if protoimpl.UnsafeEnabled && x != nil {
  148. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  149. if ms.LoadMessageInfo() == nil {
  150. ms.StoreMessageInfo(mi)
  151. }
  152. return ms
  153. }
  154. return mi.MessageOf(x)
  155. }
  156. // Deprecated: Use CommonQueryRequest.ProtoReflect.Descriptor instead.
  157. func (*CommonQueryRequest) Descriptor() ([]byte, []int) {
  158. return file_v1_request_query_proto_rawDescGZIP(), []int{1}
  159. }
  160. func (x *CommonQueryRequest) GetDatabaseID() string {
  161. if x != nil {
  162. return x.DatabaseID
  163. }
  164. return ""
  165. }
  166. func (x *CommonQueryRequest) GetTablePrefixWithSchema() string {
  167. if x != nil {
  168. return x.TablePrefixWithSchema
  169. }
  170. return ""
  171. }
  172. func (x *CommonQueryRequest) GetVersion() string {
  173. if x != nil {
  174. return x.Version
  175. }
  176. return ""
  177. }
  178. func (x *CommonQueryRequest) GetTable() string {
  179. if x != nil {
  180. return x.Table
  181. }
  182. return ""
  183. }
  184. func (x *CommonQueryRequest) GetSelect() []byte {
  185. if x != nil {
  186. return x.Select
  187. }
  188. return nil
  189. }
  190. func (x *CommonQueryRequest) GetWhere() []byte {
  191. if x != nil {
  192. return x.Where
  193. }
  194. return nil
  195. }
  196. func (x *CommonQueryRequest) GetOrderBy() string {
  197. if x != nil {
  198. return x.OrderBy
  199. }
  200. return ""
  201. }
  202. func (x *CommonQueryRequest) GetOr() []byte {
  203. if x != nil {
  204. return x.Or
  205. }
  206. return nil
  207. }
  208. func (x *CommonQueryRequest) GetGroupBy() string {
  209. if x != nil {
  210. return x.GroupBy
  211. }
  212. return ""
  213. }
  214. func (x *CommonQueryRequest) GetJoins() []byte {
  215. if x != nil {
  216. return x.Joins
  217. }
  218. return nil
  219. }
  220. func (x *CommonQueryRequest) GetHaving() []byte {
  221. if x != nil {
  222. return x.Having
  223. }
  224. return nil
  225. }
  226. func (x *CommonQueryRequest) GetPageNo() int32 {
  227. if x != nil {
  228. return x.PageNo
  229. }
  230. return 0
  231. }
  232. func (x *CommonQueryRequest) GetPageSize() int32 {
  233. if x != nil {
  234. return x.PageSize
  235. }
  236. return 0
  237. }
  238. type QueryByKeysRequest struct {
  239. state protoimpl.MessageState
  240. sizeCache protoimpl.SizeCache
  241. unknownFields protoimpl.UnknownFields
  242. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  243. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  244. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  245. Select []byte `protobuf:"bytes,4,opt,name=Select,proto3" json:"Select,omitempty"`
  246. KeyColumns []string `protobuf:"bytes,5,rep,name=KeyColumns,proto3" json:"KeyColumns,omitempty"`
  247. KeyValues []string `protobuf:"bytes,6,rep,name=KeyValues,proto3" json:"KeyValues,omitempty"`
  248. }
  249. func (x *QueryByKeysRequest) Reset() {
  250. *x = QueryByKeysRequest{}
  251. if protoimpl.UnsafeEnabled {
  252. mi := &file_v1_request_query_proto_msgTypes[2]
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. ms.StoreMessageInfo(mi)
  255. }
  256. }
  257. func (x *QueryByKeysRequest) String() string {
  258. return protoimpl.X.MessageStringOf(x)
  259. }
  260. func (*QueryByKeysRequest) ProtoMessage() {}
  261. func (x *QueryByKeysRequest) ProtoReflect() protoreflect.Message {
  262. mi := &file_v1_request_query_proto_msgTypes[2]
  263. if protoimpl.UnsafeEnabled && x != nil {
  264. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  265. if ms.LoadMessageInfo() == nil {
  266. ms.StoreMessageInfo(mi)
  267. }
  268. return ms
  269. }
  270. return mi.MessageOf(x)
  271. }
  272. // Deprecated: Use QueryByKeysRequest.ProtoReflect.Descriptor instead.
  273. func (*QueryByKeysRequest) Descriptor() ([]byte, []int) {
  274. return file_v1_request_query_proto_rawDescGZIP(), []int{2}
  275. }
  276. func (x *QueryByKeysRequest) GetDatabaseID() string {
  277. if x != nil {
  278. return x.DatabaseID
  279. }
  280. return ""
  281. }
  282. func (x *QueryByKeysRequest) GetTablePrefixWithSchema() string {
  283. if x != nil {
  284. return x.TablePrefixWithSchema
  285. }
  286. return ""
  287. }
  288. func (x *QueryByKeysRequest) GetVersion() string {
  289. if x != nil {
  290. return x.Version
  291. }
  292. return ""
  293. }
  294. func (x *QueryByKeysRequest) GetSelect() []byte {
  295. if x != nil {
  296. return x.Select
  297. }
  298. return nil
  299. }
  300. func (x *QueryByKeysRequest) GetKeyColumns() []string {
  301. if x != nil {
  302. return x.KeyColumns
  303. }
  304. return nil
  305. }
  306. func (x *QueryByKeysRequest) GetKeyValues() []string {
  307. if x != nil {
  308. return x.KeyValues
  309. }
  310. return nil
  311. }
  312. type CountWhereRequest struct {
  313. state protoimpl.MessageState
  314. sizeCache protoimpl.SizeCache
  315. unknownFields protoimpl.UnknownFields
  316. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  317. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  318. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  319. Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
  320. Where []byte `protobuf:"bytes,5,opt,name=Where,proto3" json:"Where,omitempty"`
  321. }
  322. func (x *CountWhereRequest) Reset() {
  323. *x = CountWhereRequest{}
  324. if protoimpl.UnsafeEnabled {
  325. mi := &file_v1_request_query_proto_msgTypes[3]
  326. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  327. ms.StoreMessageInfo(mi)
  328. }
  329. }
  330. func (x *CountWhereRequest) String() string {
  331. return protoimpl.X.MessageStringOf(x)
  332. }
  333. func (*CountWhereRequest) ProtoMessage() {}
  334. func (x *CountWhereRequest) ProtoReflect() protoreflect.Message {
  335. mi := &file_v1_request_query_proto_msgTypes[3]
  336. if protoimpl.UnsafeEnabled && x != nil {
  337. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  338. if ms.LoadMessageInfo() == nil {
  339. ms.StoreMessageInfo(mi)
  340. }
  341. return ms
  342. }
  343. return mi.MessageOf(x)
  344. }
  345. // Deprecated: Use CountWhereRequest.ProtoReflect.Descriptor instead.
  346. func (*CountWhereRequest) Descriptor() ([]byte, []int) {
  347. return file_v1_request_query_proto_rawDescGZIP(), []int{3}
  348. }
  349. func (x *CountWhereRequest) GetDatabaseID() string {
  350. if x != nil {
  351. return x.DatabaseID
  352. }
  353. return ""
  354. }
  355. func (x *CountWhereRequest) GetTablePrefixWithSchema() string {
  356. if x != nil {
  357. return x.TablePrefixWithSchema
  358. }
  359. return ""
  360. }
  361. func (x *CountWhereRequest) GetVersion() string {
  362. if x != nil {
  363. return x.Version
  364. }
  365. return ""
  366. }
  367. func (x *CountWhereRequest) GetTable() string {
  368. if x != nil {
  369. return x.Table
  370. }
  371. return ""
  372. }
  373. func (x *CountWhereRequest) GetWhere() []byte {
  374. if x != nil {
  375. return x.Where
  376. }
  377. return nil
  378. }
  379. type CommonCountRequest struct {
  380. state protoimpl.MessageState
  381. sizeCache protoimpl.SizeCache
  382. unknownFields protoimpl.UnknownFields
  383. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  384. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  385. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  386. Table string `protobuf:"bytes,4,opt,name=Table,proto3" json:"Table,omitempty"`
  387. Where []byte `protobuf:"bytes,5,opt,name=Where,proto3" json:"Where,omitempty"`
  388. Or []byte `protobuf:"bytes,6,opt,name=Or,proto3" json:"Or,omitempty"`
  389. GroupBy string `protobuf:"bytes,7,opt,name=GroupBy,proto3" json:"GroupBy,omitempty"`
  390. Joins []byte `protobuf:"bytes,8,opt,name=Joins,proto3" json:"Joins,omitempty"`
  391. Having []byte `protobuf:"bytes,9,opt,name=Having,proto3" json:"Having,omitempty"`
  392. }
  393. func (x *CommonCountRequest) Reset() {
  394. *x = CommonCountRequest{}
  395. if protoimpl.UnsafeEnabled {
  396. mi := &file_v1_request_query_proto_msgTypes[4]
  397. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  398. ms.StoreMessageInfo(mi)
  399. }
  400. }
  401. func (x *CommonCountRequest) String() string {
  402. return protoimpl.X.MessageStringOf(x)
  403. }
  404. func (*CommonCountRequest) ProtoMessage() {}
  405. func (x *CommonCountRequest) ProtoReflect() protoreflect.Message {
  406. mi := &file_v1_request_query_proto_msgTypes[4]
  407. if protoimpl.UnsafeEnabled && x != nil {
  408. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  409. if ms.LoadMessageInfo() == nil {
  410. ms.StoreMessageInfo(mi)
  411. }
  412. return ms
  413. }
  414. return mi.MessageOf(x)
  415. }
  416. // Deprecated: Use CommonCountRequest.ProtoReflect.Descriptor instead.
  417. func (*CommonCountRequest) Descriptor() ([]byte, []int) {
  418. return file_v1_request_query_proto_rawDescGZIP(), []int{4}
  419. }
  420. func (x *CommonCountRequest) GetDatabaseID() string {
  421. if x != nil {
  422. return x.DatabaseID
  423. }
  424. return ""
  425. }
  426. func (x *CommonCountRequest) GetTablePrefixWithSchema() string {
  427. if x != nil {
  428. return x.TablePrefixWithSchema
  429. }
  430. return ""
  431. }
  432. func (x *CommonCountRequest) GetVersion() string {
  433. if x != nil {
  434. return x.Version
  435. }
  436. return ""
  437. }
  438. func (x *CommonCountRequest) GetTable() string {
  439. if x != nil {
  440. return x.Table
  441. }
  442. return ""
  443. }
  444. func (x *CommonCountRequest) GetWhere() []byte {
  445. if x != nil {
  446. return x.Where
  447. }
  448. return nil
  449. }
  450. func (x *CommonCountRequest) GetOr() []byte {
  451. if x != nil {
  452. return x.Or
  453. }
  454. return nil
  455. }
  456. func (x *CommonCountRequest) GetGroupBy() string {
  457. if x != nil {
  458. return x.GroupBy
  459. }
  460. return ""
  461. }
  462. func (x *CommonCountRequest) GetJoins() []byte {
  463. if x != nil {
  464. return x.Joins
  465. }
  466. return nil
  467. }
  468. func (x *CommonCountRequest) GetHaving() []byte {
  469. if x != nil {
  470. return x.Having
  471. }
  472. return nil
  473. }
  474. var File_v1_request_query_proto protoreflect.FileDescriptor
  475. var file_v1_request_query_proto_rawDesc = []byte{
  476. 0x0a, 0x16, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x71, 0x75, 0x65,
  477. 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
  478. 0x74, 0x1a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77,
  479. 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76,
  480. 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
  481. 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x02, 0x0a, 0x1d, 0x51, 0x75,
  482. 0x65, 0x72, 0x79, 0x42, 0x79, 0x57, 0x68, 0x65, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x4f, 0x72, 0x64,
  483. 0x65, 0x72, 0x42, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44,
  484. 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
  485. 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
  486. 0x65, 0x49, 0x44, 0x12, 0x34, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66,
  487. 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01,
  488. 0x28, 0x09, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57,
  489. 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72,
  490. 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73,
  491. 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,
  492. 0x28, 0x09, 0x52, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x6c,
  493. 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63,
  494. 0x74, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c,
  495. 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
  496. 0x42, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42,
  497. 0x79, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28,
  498. 0x05, 0x52, 0x06, 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67,
  499. 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x61, 0x67,
  500. 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  501. 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a,
  502. 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  503. 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
  504. 0x73, 0x65, 0x49, 0x44, 0x12, 0x34, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65,
  505. 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20,
  506. 0x01, 0x28, 0x09, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78,
  507. 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65,
  508. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72,
  509. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20,
  510. 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65,
  511. 0x6c, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65,
  512. 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
  513. 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65,
  514. 0x72, 0x42, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
  515. 0x42, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02,
  516. 0x4f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x18, 0x09, 0x20,
  517. 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05,
  518. 0x4a, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x4a, 0x6f, 0x69,
  519. 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x0b, 0x20, 0x01,
  520. 0x28, 0x0c, 0x52, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x61,
  521. 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x67, 0x65,
  522. 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0d,
  523. 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x82,
  524. 0x02, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65,
  525. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
  526. 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58,
  527. 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x12, 0x3c, 0x0a,
  528. 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68,
  529. 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf,
  530. 0x1f, 0x02, 0x58, 0x01, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69,
  531. 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x20, 0x0a, 0x07, 0x56,
  532. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf,
  533. 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,
  534. 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53,
  535. 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75,
  536. 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x70,
  537. 0x00, 0x52, 0x0a, 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x24, 0x0a,
  538. 0x09, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09,
  539. 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x70, 0x00, 0x52, 0x09, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c,
  540. 0x75, 0x65, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x68, 0x65,
  541. 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74,
  542. 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2,
  543. 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49,
  544. 0x44, 0x12, 0x34, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78,
  545. 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  546. 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74,
  547. 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69,
  548. 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
  549. 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  550. 0x52, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65,
  551. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x22, 0x90, 0x02,
  552. 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
  553. 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
  554. 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01,
  555. 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x12, 0x34, 0x0a, 0x15,
  556. 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53,
  557. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x54, 0x61, 0x62,
  558. 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65,
  559. 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
  560. 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05,
  561. 0x54, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x61, 0x62,
  562. 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  563. 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x72, 0x18, 0x06,
  564. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x4f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75,
  565. 0x70, 0x42, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70,
  566. 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x4a, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
  567. 0x0c, 0x52, 0x05, 0x4a, 0x6f, 0x69, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x61, 0x76, 0x69,
  568. 0x6e, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67,
  569. 0x42, 0x20, 0x5a, 0x1e, 0x64, 0x70, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63,
  570. 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65,
  571. 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  572. }
  573. var (
  574. file_v1_request_query_proto_rawDescOnce sync.Once
  575. file_v1_request_query_proto_rawDescData = file_v1_request_query_proto_rawDesc
  576. )
  577. func file_v1_request_query_proto_rawDescGZIP() []byte {
  578. file_v1_request_query_proto_rawDescOnce.Do(func() {
  579. file_v1_request_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_request_query_proto_rawDescData)
  580. })
  581. return file_v1_request_query_proto_rawDescData
  582. }
  583. var file_v1_request_query_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  584. var file_v1_request_query_proto_goTypes = []interface{}{
  585. (*QueryByWhereAndOrderByRequest)(nil), // 0: request.QueryByWhereAndOrderByRequest
  586. (*CommonQueryRequest)(nil), // 1: request.CommonQueryRequest
  587. (*QueryByKeysRequest)(nil), // 2: request.QueryByKeysRequest
  588. (*CountWhereRequest)(nil), // 3: request.CountWhereRequest
  589. (*CommonCountRequest)(nil), // 4: request.CommonCountRequest
  590. }
  591. var file_v1_request_query_proto_depIdxs = []int32{
  592. 0, // [0:0] is the sub-list for method output_type
  593. 0, // [0:0] is the sub-list for method input_type
  594. 0, // [0:0] is the sub-list for extension type_name
  595. 0, // [0:0] is the sub-list for extension extendee
  596. 0, // [0:0] is the sub-list for field type_name
  597. }
  598. func init() { file_v1_request_query_proto_init() }
  599. func file_v1_request_query_proto_init() {
  600. if File_v1_request_query_proto != nil {
  601. return
  602. }
  603. if !protoimpl.UnsafeEnabled {
  604. file_v1_request_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  605. switch v := v.(*QueryByWhereAndOrderByRequest); i {
  606. case 0:
  607. return &v.state
  608. case 1:
  609. return &v.sizeCache
  610. case 2:
  611. return &v.unknownFields
  612. default:
  613. return nil
  614. }
  615. }
  616. file_v1_request_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  617. switch v := v.(*CommonQueryRequest); i {
  618. case 0:
  619. return &v.state
  620. case 1:
  621. return &v.sizeCache
  622. case 2:
  623. return &v.unknownFields
  624. default:
  625. return nil
  626. }
  627. }
  628. file_v1_request_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  629. switch v := v.(*QueryByKeysRequest); i {
  630. case 0:
  631. return &v.state
  632. case 1:
  633. return &v.sizeCache
  634. case 2:
  635. return &v.unknownFields
  636. default:
  637. return nil
  638. }
  639. }
  640. file_v1_request_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  641. switch v := v.(*CountWhereRequest); i {
  642. case 0:
  643. return &v.state
  644. case 1:
  645. return &v.sizeCache
  646. case 2:
  647. return &v.unknownFields
  648. default:
  649. return nil
  650. }
  651. }
  652. file_v1_request_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  653. switch v := v.(*CommonCountRequest); i {
  654. case 0:
  655. return &v.state
  656. case 1:
  657. return &v.sizeCache
  658. case 2:
  659. return &v.unknownFields
  660. default:
  661. return nil
  662. }
  663. }
  664. }
  665. type x struct{}
  666. out := protoimpl.TypeBuilder{
  667. File: protoimpl.DescBuilder{
  668. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  669. RawDescriptor: file_v1_request_query_proto_rawDesc,
  670. NumEnums: 0,
  671. NumMessages: 5,
  672. NumExtensions: 0,
  673. NumServices: 0,
  674. },
  675. GoTypes: file_v1_request_query_proto_goTypes,
  676. DependencyIndexes: file_v1_request_query_proto_depIdxs,
  677. MessageInfos: file_v1_request_query_proto_msgTypes,
  678. }.Build()
  679. File_v1_request_query_proto = out.File
  680. file_v1_request_query_proto_rawDesc = nil
  681. file_v1_request_query_proto_goTypes = nil
  682. file_v1_request_query_proto_depIdxs = nil
  683. }