query.pb.go 27 KB

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