query.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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 []byte `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() []byte {
  79. if x != nil {
  80. return x.Select
  81. }
  82. return nil
  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 []byte `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. Joins []byte `protobuf:"bytes,9,opt,name=Joins,proto3" json:"Joins,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() []byte {
  171. if x != nil {
  172. return x.Select
  173. }
  174. return nil
  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) GetJoins() []byte {
  201. if x != nil {
  202. return x.Joins
  203. }
  204. return nil
  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 []byte `protobuf:"bytes,4,opt,name=Select,proto3" json:"Select,omitempty"`
  232. KeyColumns []string `protobuf:"bytes,5,rep,name=KeyColumns,proto3" json:"KeyColumns,omitempty"`
  233. KeyValues []string `protobuf:"bytes,6,rep,name=KeyValues,proto3" json:"KeyValues,omitempty"`
  234. }
  235. func (x *QueryByKeysRequest) Reset() {
  236. *x = QueryByKeysRequest{}
  237. if protoimpl.UnsafeEnabled {
  238. mi := &file_v1_request_query_proto_msgTypes[2]
  239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  240. ms.StoreMessageInfo(mi)
  241. }
  242. }
  243. func (x *QueryByKeysRequest) String() string {
  244. return protoimpl.X.MessageStringOf(x)
  245. }
  246. func (*QueryByKeysRequest) ProtoMessage() {}
  247. func (x *QueryByKeysRequest) ProtoReflect() protoreflect.Message {
  248. mi := &file_v1_request_query_proto_msgTypes[2]
  249. if protoimpl.UnsafeEnabled && x != nil {
  250. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  251. if ms.LoadMessageInfo() == nil {
  252. ms.StoreMessageInfo(mi)
  253. }
  254. return ms
  255. }
  256. return mi.MessageOf(x)
  257. }
  258. // Deprecated: Use QueryByKeysRequest.ProtoReflect.Descriptor instead.
  259. func (*QueryByKeysRequest) Descriptor() ([]byte, []int) {
  260. return file_v1_request_query_proto_rawDescGZIP(), []int{2}
  261. }
  262. func (x *QueryByKeysRequest) GetDatabaseID() string {
  263. if x != nil {
  264. return x.DatabaseID
  265. }
  266. return ""
  267. }
  268. func (x *QueryByKeysRequest) GetTablePrefixWithSchema() string {
  269. if x != nil {
  270. return x.TablePrefixWithSchema
  271. }
  272. return ""
  273. }
  274. func (x *QueryByKeysRequest) GetVersion() string {
  275. if x != nil {
  276. return x.Version
  277. }
  278. return ""
  279. }
  280. func (x *QueryByKeysRequest) GetSelect() []byte {
  281. if x != nil {
  282. return x.Select
  283. }
  284. return nil
  285. }
  286. func (x *QueryByKeysRequest) GetKeyColumns() []string {
  287. if x != nil {
  288. return x.KeyColumns
  289. }
  290. return nil
  291. }
  292. func (x *QueryByKeysRequest) GetKeyValues() []string {
  293. if x != nil {
  294. return x.KeyValues
  295. }
  296. return nil
  297. }
  298. type CountWhereRequest struct {
  299. state protoimpl.MessageState
  300. sizeCache protoimpl.SizeCache
  301. unknownFields protoimpl.UnknownFields
  302. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  303. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  304. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  305. Where []byte `protobuf:"bytes,4,opt,name=Where,proto3" json:"Where,omitempty"`
  306. }
  307. func (x *CountWhereRequest) Reset() {
  308. *x = CountWhereRequest{}
  309. if protoimpl.UnsafeEnabled {
  310. mi := &file_v1_request_query_proto_msgTypes[3]
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. ms.StoreMessageInfo(mi)
  313. }
  314. }
  315. func (x *CountWhereRequest) String() string {
  316. return protoimpl.X.MessageStringOf(x)
  317. }
  318. func (*CountWhereRequest) ProtoMessage() {}
  319. func (x *CountWhereRequest) ProtoReflect() protoreflect.Message {
  320. mi := &file_v1_request_query_proto_msgTypes[3]
  321. if protoimpl.UnsafeEnabled && x != nil {
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. if ms.LoadMessageInfo() == nil {
  324. ms.StoreMessageInfo(mi)
  325. }
  326. return ms
  327. }
  328. return mi.MessageOf(x)
  329. }
  330. // Deprecated: Use CountWhereRequest.ProtoReflect.Descriptor instead.
  331. func (*CountWhereRequest) Descriptor() ([]byte, []int) {
  332. return file_v1_request_query_proto_rawDescGZIP(), []int{3}
  333. }
  334. func (x *CountWhereRequest) GetDatabaseID() string {
  335. if x != nil {
  336. return x.DatabaseID
  337. }
  338. return ""
  339. }
  340. func (x *CountWhereRequest) GetTablePrefixWithSchema() string {
  341. if x != nil {
  342. return x.TablePrefixWithSchema
  343. }
  344. return ""
  345. }
  346. func (x *CountWhereRequest) GetVersion() string {
  347. if x != nil {
  348. return x.Version
  349. }
  350. return ""
  351. }
  352. func (x *CountWhereRequest) GetWhere() []byte {
  353. if x != nil {
  354. return x.Where
  355. }
  356. return nil
  357. }
  358. type CommonCountRequest struct {
  359. state protoimpl.MessageState
  360. sizeCache protoimpl.SizeCache
  361. unknownFields protoimpl.UnknownFields
  362. DatabaseID string `protobuf:"bytes,1,opt,name=DatabaseID,proto3" json:"DatabaseID,omitempty"`
  363. TablePrefixWithSchema string `protobuf:"bytes,2,opt,name=TablePrefixWithSchema,proto3" json:"TablePrefixWithSchema,omitempty"`
  364. Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
  365. Where []byte `protobuf:"bytes,4,opt,name=Where,proto3" json:"Where,omitempty"`
  366. Or []byte `protobuf:"bytes,5,opt,name=Or,proto3" json:"Or,omitempty"`
  367. GroupBy []string `protobuf:"bytes,6,rep,name=GroupBy,proto3" json:"GroupBy,omitempty"`
  368. Joins []byte `protobuf:"bytes,7,opt,name=Joins,proto3" json:"Joins,omitempty"`
  369. Having []byte `protobuf:"bytes,8,opt,name=Having,proto3" json:"Having,omitempty"`
  370. }
  371. func (x *CommonCountRequest) Reset() {
  372. *x = CommonCountRequest{}
  373. if protoimpl.UnsafeEnabled {
  374. mi := &file_v1_request_query_proto_msgTypes[4]
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. ms.StoreMessageInfo(mi)
  377. }
  378. }
  379. func (x *CommonCountRequest) String() string {
  380. return protoimpl.X.MessageStringOf(x)
  381. }
  382. func (*CommonCountRequest) ProtoMessage() {}
  383. func (x *CommonCountRequest) ProtoReflect() protoreflect.Message {
  384. mi := &file_v1_request_query_proto_msgTypes[4]
  385. if protoimpl.UnsafeEnabled && x != nil {
  386. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  387. if ms.LoadMessageInfo() == nil {
  388. ms.StoreMessageInfo(mi)
  389. }
  390. return ms
  391. }
  392. return mi.MessageOf(x)
  393. }
  394. // Deprecated: Use CommonCountRequest.ProtoReflect.Descriptor instead.
  395. func (*CommonCountRequest) Descriptor() ([]byte, []int) {
  396. return file_v1_request_query_proto_rawDescGZIP(), []int{4}
  397. }
  398. func (x *CommonCountRequest) GetDatabaseID() string {
  399. if x != nil {
  400. return x.DatabaseID
  401. }
  402. return ""
  403. }
  404. func (x *CommonCountRequest) GetTablePrefixWithSchema() string {
  405. if x != nil {
  406. return x.TablePrefixWithSchema
  407. }
  408. return ""
  409. }
  410. func (x *CommonCountRequest) GetVersion() string {
  411. if x != nil {
  412. return x.Version
  413. }
  414. return ""
  415. }
  416. func (x *CommonCountRequest) GetWhere() []byte {
  417. if x != nil {
  418. return x.Where
  419. }
  420. return nil
  421. }
  422. func (x *CommonCountRequest) GetOr() []byte {
  423. if x != nil {
  424. return x.Or
  425. }
  426. return nil
  427. }
  428. func (x *CommonCountRequest) GetGroupBy() []string {
  429. if x != nil {
  430. return x.GroupBy
  431. }
  432. return nil
  433. }
  434. func (x *CommonCountRequest) GetJoins() []byte {
  435. if x != nil {
  436. return x.Joins
  437. }
  438. return nil
  439. }
  440. func (x *CommonCountRequest) GetHaving() []byte {
  441. if x != nil {
  442. return x.Having
  443. }
  444. return nil
  445. }
  446. var File_v1_request_query_proto protoreflect.FileDescriptor
  447. var file_v1_request_query_proto_rawDesc = []byte{
  448. 0x0a, 0x16, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x71, 0x75, 0x65,
  449. 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
  450. 0x74, 0x1a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77,
  451. 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76,
  452. 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
  453. 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x02, 0x0a, 0x1d, 0x51, 0x75,
  454. 0x65, 0x72, 0x79, 0x42, 0x79, 0x57, 0x68, 0x65, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x4f, 0x72, 0x64,
  455. 0x65, 0x72, 0x42, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44,
  456. 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
  457. 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
  458. 0x65, 0x49, 0x44, 0x12, 0x3c, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66,
  459. 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01,
  460. 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c,
  461. 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d,
  462. 0x61, 0x12, 0x20, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
  463. 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73,
  464. 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20,
  465. 0x01, 0x28, 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x57,
  466. 0x68, 0x65, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72,
  467. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x18, 0x06, 0x20, 0x03,
  468. 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x50,
  469. 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x50, 0x61, 0x67,
  470. 0x65, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18,
  471. 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22,
  472. 0xf0, 0x02, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52,
  473. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
  474. 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02,
  475. 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x12, 0x3c,
  476. 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74,
  477. 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2,
  478. 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66,
  479. 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x20, 0x0a, 0x07,
  480. 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2,
  481. 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16,
  482. 0x0a, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
  483. 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18,
  484. 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07,
  485. 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x4f,
  486. 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x72, 0x18, 0x07, 0x20, 0x01,
  487. 0x28, 0x0c, 0x52, 0x02, 0x4f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42,
  488. 0x79, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79,
  489. 0x12, 0x14, 0x0a, 0x05, 0x4a, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52,
  490. 0x05, 0x4a, 0x6f, 0x69, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67,
  491. 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x12, 0x16,
  492. 0x0a, 0x06, 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
  493. 0x50, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69,
  494. 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69,
  495. 0x7a, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x4b, 0x65,
  496. 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74,
  497. 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2,
  498. 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49,
  499. 0x44, 0x12, 0x3c, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78,
  500. 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  501. 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50,
  502. 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
  503. 0x20, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  504. 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
  505. 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
  506. 0x0c, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x4b, 0x65, 0x79,
  507. 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x06, 0xe2,
  508. 0xdf, 0x1f, 0x02, 0x70, 0x00, 0x52, 0x0a, 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
  509. 0x73, 0x12, 0x24, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06,
  510. 0x20, 0x03, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x70, 0x00, 0x52, 0x09, 0x4b, 0x65,
  511. 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x75, 0x6e,
  512. 0x74, 0x57, 0x68, 0x65, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a,
  513. 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28,
  514. 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62,
  515. 0x61, 0x73, 0x65, 0x49, 0x44, 0x12, 0x3c, 0x0a, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72,
  516. 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02,
  517. 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x15, 0x54, 0x61,
  518. 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68,
  519. 0x65, 0x6d, 0x61, 0x12, 0x20, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03,
  520. 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x56, 0x65,
  521. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x18, 0x04,
  522. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65, 0x22, 0x8a, 0x02, 0x0a, 0x12,
  523. 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  524. 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44,
  525. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a,
  526. 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x44, 0x12, 0x3c, 0x0a, 0x15, 0x54, 0x61,
  527. 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69, 0x74, 0x68, 0x53, 0x63, 0x68,
  528. 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58,
  529. 0x01, 0x52, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x57, 0x69,
  530. 0x74, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x20, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73,
  531. 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58,
  532. 0x01, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x68,
  533. 0x65, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x57, 0x68, 0x65, 0x72, 0x65,
  534. 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x4f, 0x72,
  535. 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28,
  536. 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x4a, 0x6f,
  537. 0x69, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x4a, 0x6f, 0x69, 0x6e, 0x73,
  538. 0x12, 0x16, 0x0a, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c,
  539. 0x52, 0x06, 0x48, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x42, 0x20, 0x5a, 0x1e, 0x64, 0x70, 0x73, 0x2f,
  540. 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x62, 0x2f,
  541. 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  542. 0x6f, 0x33,
  543. }
  544. var (
  545. file_v1_request_query_proto_rawDescOnce sync.Once
  546. file_v1_request_query_proto_rawDescData = file_v1_request_query_proto_rawDesc
  547. )
  548. func file_v1_request_query_proto_rawDescGZIP() []byte {
  549. file_v1_request_query_proto_rawDescOnce.Do(func() {
  550. file_v1_request_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_request_query_proto_rawDescData)
  551. })
  552. return file_v1_request_query_proto_rawDescData
  553. }
  554. var file_v1_request_query_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  555. var file_v1_request_query_proto_goTypes = []interface{}{
  556. (*QueryByWhereAndOrderByRequest)(nil), // 0: request.QueryByWhereAndOrderByRequest
  557. (*CommonQueryRequest)(nil), // 1: request.CommonQueryRequest
  558. (*QueryByKeysRequest)(nil), // 2: request.QueryByKeysRequest
  559. (*CountWhereRequest)(nil), // 3: request.CountWhereRequest
  560. (*CommonCountRequest)(nil), // 4: request.CommonCountRequest
  561. }
  562. var file_v1_request_query_proto_depIdxs = []int32{
  563. 0, // [0:0] is the sub-list for method output_type
  564. 0, // [0:0] is the sub-list for method input_type
  565. 0, // [0:0] is the sub-list for extension type_name
  566. 0, // [0:0] is the sub-list for extension extendee
  567. 0, // [0:0] is the sub-list for field type_name
  568. }
  569. func init() { file_v1_request_query_proto_init() }
  570. func file_v1_request_query_proto_init() {
  571. if File_v1_request_query_proto != nil {
  572. return
  573. }
  574. if !protoimpl.UnsafeEnabled {
  575. file_v1_request_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  576. switch v := v.(*QueryByWhereAndOrderByRequest); i {
  577. case 0:
  578. return &v.state
  579. case 1:
  580. return &v.sizeCache
  581. case 2:
  582. return &v.unknownFields
  583. default:
  584. return nil
  585. }
  586. }
  587. file_v1_request_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  588. switch v := v.(*CommonQueryRequest); i {
  589. case 0:
  590. return &v.state
  591. case 1:
  592. return &v.sizeCache
  593. case 2:
  594. return &v.unknownFields
  595. default:
  596. return nil
  597. }
  598. }
  599. file_v1_request_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  600. switch v := v.(*QueryByKeysRequest); i {
  601. case 0:
  602. return &v.state
  603. case 1:
  604. return &v.sizeCache
  605. case 2:
  606. return &v.unknownFields
  607. default:
  608. return nil
  609. }
  610. }
  611. file_v1_request_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  612. switch v := v.(*CountWhereRequest); i {
  613. case 0:
  614. return &v.state
  615. case 1:
  616. return &v.sizeCache
  617. case 2:
  618. return &v.unknownFields
  619. default:
  620. return nil
  621. }
  622. }
  623. file_v1_request_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  624. switch v := v.(*CommonCountRequest); i {
  625. case 0:
  626. return &v.state
  627. case 1:
  628. return &v.sizeCache
  629. case 2:
  630. return &v.unknownFields
  631. default:
  632. return nil
  633. }
  634. }
  635. }
  636. type x struct{}
  637. out := protoimpl.TypeBuilder{
  638. File: protoimpl.DescBuilder{
  639. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  640. RawDescriptor: file_v1_request_query_proto_rawDesc,
  641. NumEnums: 0,
  642. NumMessages: 5,
  643. NumExtensions: 0,
  644. NumServices: 0,
  645. },
  646. GoTypes: file_v1_request_query_proto_goTypes,
  647. DependencyIndexes: file_v1_request_query_proto_depIdxs,
  648. MessageInfos: file_v1_request_query_proto_msgTypes,
  649. }.Build()
  650. File_v1_request_query_proto = out.File
  651. file_v1_request_query_proto_rawDesc = nil
  652. file_v1_request_query_proto_goTypes = nil
  653. file_v1_request_query_proto_depIdxs = nil
  654. }