query.pb.go 28 KB

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