Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

1259 Zeilen
48 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/datastore/v1/query.proto
  3. package datastore // import "google.golang.org/genproto/googleapis/datastore/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import _ "google.golang.org/genproto/googleapis/type/latlng"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // Specifies what data the 'entity' field contains.
  20. // A `ResultType` is either implied (for example, in `LookupResponse.missing`
  21. // from `datastore.proto`, it is always `KEY_ONLY`) or specified by context
  22. // (for example, in message `QueryResultBatch`, field `entity_result_type`
  23. // specifies a `ResultType` for all the values in field `entity_results`).
  24. type EntityResult_ResultType int32
  25. const (
  26. // Unspecified. This value is never used.
  27. EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0
  28. // The key and properties.
  29. EntityResult_FULL EntityResult_ResultType = 1
  30. // A projected subset of properties. The entity may have no key.
  31. EntityResult_PROJECTION EntityResult_ResultType = 2
  32. // Only the key.
  33. EntityResult_KEY_ONLY EntityResult_ResultType = 3
  34. )
  35. var EntityResult_ResultType_name = map[int32]string{
  36. 0: "RESULT_TYPE_UNSPECIFIED",
  37. 1: "FULL",
  38. 2: "PROJECTION",
  39. 3: "KEY_ONLY",
  40. }
  41. var EntityResult_ResultType_value = map[string]int32{
  42. "RESULT_TYPE_UNSPECIFIED": 0,
  43. "FULL": 1,
  44. "PROJECTION": 2,
  45. "KEY_ONLY": 3,
  46. }
  47. func (x EntityResult_ResultType) String() string {
  48. return proto.EnumName(EntityResult_ResultType_name, int32(x))
  49. }
  50. func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) {
  51. return fileDescriptor_query_469190755d01ba40, []int{0, 0}
  52. }
  53. // The sort direction.
  54. type PropertyOrder_Direction int32
  55. const (
  56. // Unspecified. This value must not be used.
  57. PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0
  58. // Ascending.
  59. PropertyOrder_ASCENDING PropertyOrder_Direction = 1
  60. // Descending.
  61. PropertyOrder_DESCENDING PropertyOrder_Direction = 2
  62. )
  63. var PropertyOrder_Direction_name = map[int32]string{
  64. 0: "DIRECTION_UNSPECIFIED",
  65. 1: "ASCENDING",
  66. 2: "DESCENDING",
  67. }
  68. var PropertyOrder_Direction_value = map[string]int32{
  69. "DIRECTION_UNSPECIFIED": 0,
  70. "ASCENDING": 1,
  71. "DESCENDING": 2,
  72. }
  73. func (x PropertyOrder_Direction) String() string {
  74. return proto.EnumName(PropertyOrder_Direction_name, int32(x))
  75. }
  76. func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) {
  77. return fileDescriptor_query_469190755d01ba40, []int{5, 0}
  78. }
  79. // A composite filter operator.
  80. type CompositeFilter_Operator int32
  81. const (
  82. // Unspecified. This value must not be used.
  83. CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0
  84. // The results are required to satisfy each of the combined filters.
  85. CompositeFilter_AND CompositeFilter_Operator = 1
  86. )
  87. var CompositeFilter_Operator_name = map[int32]string{
  88. 0: "OPERATOR_UNSPECIFIED",
  89. 1: "AND",
  90. }
  91. var CompositeFilter_Operator_value = map[string]int32{
  92. "OPERATOR_UNSPECIFIED": 0,
  93. "AND": 1,
  94. }
  95. func (x CompositeFilter_Operator) String() string {
  96. return proto.EnumName(CompositeFilter_Operator_name, int32(x))
  97. }
  98. func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) {
  99. return fileDescriptor_query_469190755d01ba40, []int{7, 0}
  100. }
  101. // A property filter operator.
  102. type PropertyFilter_Operator int32
  103. const (
  104. // Unspecified. This value must not be used.
  105. PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0
  106. // Less than.
  107. PropertyFilter_LESS_THAN PropertyFilter_Operator = 1
  108. // Less than or equal.
  109. PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2
  110. // Greater than.
  111. PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3
  112. // Greater than or equal.
  113. PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4
  114. // Equal.
  115. PropertyFilter_EQUAL PropertyFilter_Operator = 5
  116. // Has ancestor.
  117. PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11
  118. )
  119. var PropertyFilter_Operator_name = map[int32]string{
  120. 0: "OPERATOR_UNSPECIFIED",
  121. 1: "LESS_THAN",
  122. 2: "LESS_THAN_OR_EQUAL",
  123. 3: "GREATER_THAN",
  124. 4: "GREATER_THAN_OR_EQUAL",
  125. 5: "EQUAL",
  126. 11: "HAS_ANCESTOR",
  127. }
  128. var PropertyFilter_Operator_value = map[string]int32{
  129. "OPERATOR_UNSPECIFIED": 0,
  130. "LESS_THAN": 1,
  131. "LESS_THAN_OR_EQUAL": 2,
  132. "GREATER_THAN": 3,
  133. "GREATER_THAN_OR_EQUAL": 4,
  134. "EQUAL": 5,
  135. "HAS_ANCESTOR": 11,
  136. }
  137. func (x PropertyFilter_Operator) String() string {
  138. return proto.EnumName(PropertyFilter_Operator_name, int32(x))
  139. }
  140. func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) {
  141. return fileDescriptor_query_469190755d01ba40, []int{8, 0}
  142. }
  143. // The possible values for the `more_results` field.
  144. type QueryResultBatch_MoreResultsType int32
  145. const (
  146. // Unspecified. This value is never used.
  147. QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0
  148. // There may be additional batches to fetch from this query.
  149. QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1
  150. // The query is finished, but there may be more results after the limit.
  151. QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2
  152. // The query is finished, but there may be more results after the end
  153. // cursor.
  154. QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4
  155. // The query is finished, and there are no more results.
  156. QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3
  157. )
  158. var QueryResultBatch_MoreResultsType_name = map[int32]string{
  159. 0: "MORE_RESULTS_TYPE_UNSPECIFIED",
  160. 1: "NOT_FINISHED",
  161. 2: "MORE_RESULTS_AFTER_LIMIT",
  162. 4: "MORE_RESULTS_AFTER_CURSOR",
  163. 3: "NO_MORE_RESULTS",
  164. }
  165. var QueryResultBatch_MoreResultsType_value = map[string]int32{
  166. "MORE_RESULTS_TYPE_UNSPECIFIED": 0,
  167. "NOT_FINISHED": 1,
  168. "MORE_RESULTS_AFTER_LIMIT": 2,
  169. "MORE_RESULTS_AFTER_CURSOR": 4,
  170. "NO_MORE_RESULTS": 3,
  171. }
  172. func (x QueryResultBatch_MoreResultsType) String() string {
  173. return proto.EnumName(QueryResultBatch_MoreResultsType_name, int32(x))
  174. }
  175. func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int) {
  176. return fileDescriptor_query_469190755d01ba40, []int{11, 0}
  177. }
  178. // The result of fetching an entity from Datastore.
  179. type EntityResult struct {
  180. // The resulting entity.
  181. Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
  182. // The version of the entity, a strictly positive number that monotonically
  183. // increases with changes to the entity.
  184. //
  185. // This field is set for
  186. // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
  187. //
  188. // For [missing][google.datastore.v1.LookupResponse.missing] entities in
  189. // `LookupResponse`, this is the version of the snapshot that was used to look
  190. // up the entity, and it is always set except for eventually consistent reads.
  191. Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
  192. // A cursor that points to the position after the result entity.
  193. // Set only when the `EntityResult` is part of a `QueryResultBatch` message.
  194. Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
  195. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  196. XXX_unrecognized []byte `json:"-"`
  197. XXX_sizecache int32 `json:"-"`
  198. }
  199. func (m *EntityResult) Reset() { *m = EntityResult{} }
  200. func (m *EntityResult) String() string { return proto.CompactTextString(m) }
  201. func (*EntityResult) ProtoMessage() {}
  202. func (*EntityResult) Descriptor() ([]byte, []int) {
  203. return fileDescriptor_query_469190755d01ba40, []int{0}
  204. }
  205. func (m *EntityResult) XXX_Unmarshal(b []byte) error {
  206. return xxx_messageInfo_EntityResult.Unmarshal(m, b)
  207. }
  208. func (m *EntityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  209. return xxx_messageInfo_EntityResult.Marshal(b, m, deterministic)
  210. }
  211. func (dst *EntityResult) XXX_Merge(src proto.Message) {
  212. xxx_messageInfo_EntityResult.Merge(dst, src)
  213. }
  214. func (m *EntityResult) XXX_Size() int {
  215. return xxx_messageInfo_EntityResult.Size(m)
  216. }
  217. func (m *EntityResult) XXX_DiscardUnknown() {
  218. xxx_messageInfo_EntityResult.DiscardUnknown(m)
  219. }
  220. var xxx_messageInfo_EntityResult proto.InternalMessageInfo
  221. func (m *EntityResult) GetEntity() *Entity {
  222. if m != nil {
  223. return m.Entity
  224. }
  225. return nil
  226. }
  227. func (m *EntityResult) GetVersion() int64 {
  228. if m != nil {
  229. return m.Version
  230. }
  231. return 0
  232. }
  233. func (m *EntityResult) GetCursor() []byte {
  234. if m != nil {
  235. return m.Cursor
  236. }
  237. return nil
  238. }
  239. // A query for entities.
  240. type Query struct {
  241. // The projection to return. Defaults to returning all properties.
  242. Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"`
  243. // The kinds to query (if empty, returns entities of all kinds).
  244. // Currently at most 1 kind may be specified.
  245. Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"`
  246. // The filter to apply.
  247. Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
  248. // The order to apply to the query results (if empty, order is unspecified).
  249. Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"`
  250. // The properties to make distinct. The query results will contain the first
  251. // result for each distinct combination of values for the given properties
  252. // (if empty, all results are returned).
  253. DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"`
  254. // A starting point for the query results. Query cursors are
  255. // returned in query result batches and
  256. // [can only be used to continue the same
  257. // query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
  258. StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"`
  259. // An ending point for the query results. Query cursors are
  260. // returned in query result batches and
  261. // [can only be used to limit the same
  262. // query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
  263. EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
  264. // The number of results to skip. Applies before limit, but after all other
  265. // constraints. Optional. Must be >= 0 if specified.
  266. Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
  267. // The maximum number of results to return. Applies after all other
  268. // constraints. Optional.
  269. // Unspecified is interpreted as no limit.
  270. // Must be >= 0 if specified.
  271. Limit *wrappers.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"`
  272. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  273. XXX_unrecognized []byte `json:"-"`
  274. XXX_sizecache int32 `json:"-"`
  275. }
  276. func (m *Query) Reset() { *m = Query{} }
  277. func (m *Query) String() string { return proto.CompactTextString(m) }
  278. func (*Query) ProtoMessage() {}
  279. func (*Query) Descriptor() ([]byte, []int) {
  280. return fileDescriptor_query_469190755d01ba40, []int{1}
  281. }
  282. func (m *Query) XXX_Unmarshal(b []byte) error {
  283. return xxx_messageInfo_Query.Unmarshal(m, b)
  284. }
  285. func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  286. return xxx_messageInfo_Query.Marshal(b, m, deterministic)
  287. }
  288. func (dst *Query) XXX_Merge(src proto.Message) {
  289. xxx_messageInfo_Query.Merge(dst, src)
  290. }
  291. func (m *Query) XXX_Size() int {
  292. return xxx_messageInfo_Query.Size(m)
  293. }
  294. func (m *Query) XXX_DiscardUnknown() {
  295. xxx_messageInfo_Query.DiscardUnknown(m)
  296. }
  297. var xxx_messageInfo_Query proto.InternalMessageInfo
  298. func (m *Query) GetProjection() []*Projection {
  299. if m != nil {
  300. return m.Projection
  301. }
  302. return nil
  303. }
  304. func (m *Query) GetKind() []*KindExpression {
  305. if m != nil {
  306. return m.Kind
  307. }
  308. return nil
  309. }
  310. func (m *Query) GetFilter() *Filter {
  311. if m != nil {
  312. return m.Filter
  313. }
  314. return nil
  315. }
  316. func (m *Query) GetOrder() []*PropertyOrder {
  317. if m != nil {
  318. return m.Order
  319. }
  320. return nil
  321. }
  322. func (m *Query) GetDistinctOn() []*PropertyReference {
  323. if m != nil {
  324. return m.DistinctOn
  325. }
  326. return nil
  327. }
  328. func (m *Query) GetStartCursor() []byte {
  329. if m != nil {
  330. return m.StartCursor
  331. }
  332. return nil
  333. }
  334. func (m *Query) GetEndCursor() []byte {
  335. if m != nil {
  336. return m.EndCursor
  337. }
  338. return nil
  339. }
  340. func (m *Query) GetOffset() int32 {
  341. if m != nil {
  342. return m.Offset
  343. }
  344. return 0
  345. }
  346. func (m *Query) GetLimit() *wrappers.Int32Value {
  347. if m != nil {
  348. return m.Limit
  349. }
  350. return nil
  351. }
  352. // A representation of a kind.
  353. type KindExpression struct {
  354. // The name of the kind.
  355. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  356. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  357. XXX_unrecognized []byte `json:"-"`
  358. XXX_sizecache int32 `json:"-"`
  359. }
  360. func (m *KindExpression) Reset() { *m = KindExpression{} }
  361. func (m *KindExpression) String() string { return proto.CompactTextString(m) }
  362. func (*KindExpression) ProtoMessage() {}
  363. func (*KindExpression) Descriptor() ([]byte, []int) {
  364. return fileDescriptor_query_469190755d01ba40, []int{2}
  365. }
  366. func (m *KindExpression) XXX_Unmarshal(b []byte) error {
  367. return xxx_messageInfo_KindExpression.Unmarshal(m, b)
  368. }
  369. func (m *KindExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  370. return xxx_messageInfo_KindExpression.Marshal(b, m, deterministic)
  371. }
  372. func (dst *KindExpression) XXX_Merge(src proto.Message) {
  373. xxx_messageInfo_KindExpression.Merge(dst, src)
  374. }
  375. func (m *KindExpression) XXX_Size() int {
  376. return xxx_messageInfo_KindExpression.Size(m)
  377. }
  378. func (m *KindExpression) XXX_DiscardUnknown() {
  379. xxx_messageInfo_KindExpression.DiscardUnknown(m)
  380. }
  381. var xxx_messageInfo_KindExpression proto.InternalMessageInfo
  382. func (m *KindExpression) GetName() string {
  383. if m != nil {
  384. return m.Name
  385. }
  386. return ""
  387. }
  388. // A reference to a property relative to the kind expressions.
  389. type PropertyReference struct {
  390. // The name of the property.
  391. // If name includes "."s, it may be interpreted as a property name path.
  392. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  393. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  394. XXX_unrecognized []byte `json:"-"`
  395. XXX_sizecache int32 `json:"-"`
  396. }
  397. func (m *PropertyReference) Reset() { *m = PropertyReference{} }
  398. func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
  399. func (*PropertyReference) ProtoMessage() {}
  400. func (*PropertyReference) Descriptor() ([]byte, []int) {
  401. return fileDescriptor_query_469190755d01ba40, []int{3}
  402. }
  403. func (m *PropertyReference) XXX_Unmarshal(b []byte) error {
  404. return xxx_messageInfo_PropertyReference.Unmarshal(m, b)
  405. }
  406. func (m *PropertyReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  407. return xxx_messageInfo_PropertyReference.Marshal(b, m, deterministic)
  408. }
  409. func (dst *PropertyReference) XXX_Merge(src proto.Message) {
  410. xxx_messageInfo_PropertyReference.Merge(dst, src)
  411. }
  412. func (m *PropertyReference) XXX_Size() int {
  413. return xxx_messageInfo_PropertyReference.Size(m)
  414. }
  415. func (m *PropertyReference) XXX_DiscardUnknown() {
  416. xxx_messageInfo_PropertyReference.DiscardUnknown(m)
  417. }
  418. var xxx_messageInfo_PropertyReference proto.InternalMessageInfo
  419. func (m *PropertyReference) GetName() string {
  420. if m != nil {
  421. return m.Name
  422. }
  423. return ""
  424. }
  425. // A representation of a property in a projection.
  426. type Projection struct {
  427. // The property to project.
  428. Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
  429. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  430. XXX_unrecognized []byte `json:"-"`
  431. XXX_sizecache int32 `json:"-"`
  432. }
  433. func (m *Projection) Reset() { *m = Projection{} }
  434. func (m *Projection) String() string { return proto.CompactTextString(m) }
  435. func (*Projection) ProtoMessage() {}
  436. func (*Projection) Descriptor() ([]byte, []int) {
  437. return fileDescriptor_query_469190755d01ba40, []int{4}
  438. }
  439. func (m *Projection) XXX_Unmarshal(b []byte) error {
  440. return xxx_messageInfo_Projection.Unmarshal(m, b)
  441. }
  442. func (m *Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  443. return xxx_messageInfo_Projection.Marshal(b, m, deterministic)
  444. }
  445. func (dst *Projection) XXX_Merge(src proto.Message) {
  446. xxx_messageInfo_Projection.Merge(dst, src)
  447. }
  448. func (m *Projection) XXX_Size() int {
  449. return xxx_messageInfo_Projection.Size(m)
  450. }
  451. func (m *Projection) XXX_DiscardUnknown() {
  452. xxx_messageInfo_Projection.DiscardUnknown(m)
  453. }
  454. var xxx_messageInfo_Projection proto.InternalMessageInfo
  455. func (m *Projection) GetProperty() *PropertyReference {
  456. if m != nil {
  457. return m.Property
  458. }
  459. return nil
  460. }
  461. // The desired order for a specific property.
  462. type PropertyOrder struct {
  463. // The property to order by.
  464. Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
  465. // The direction to order by. Defaults to `ASCENDING`.
  466. Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1.PropertyOrder_Direction" json:"direction,omitempty"`
  467. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  468. XXX_unrecognized []byte `json:"-"`
  469. XXX_sizecache int32 `json:"-"`
  470. }
  471. func (m *PropertyOrder) Reset() { *m = PropertyOrder{} }
  472. func (m *PropertyOrder) String() string { return proto.CompactTextString(m) }
  473. func (*PropertyOrder) ProtoMessage() {}
  474. func (*PropertyOrder) Descriptor() ([]byte, []int) {
  475. return fileDescriptor_query_469190755d01ba40, []int{5}
  476. }
  477. func (m *PropertyOrder) XXX_Unmarshal(b []byte) error {
  478. return xxx_messageInfo_PropertyOrder.Unmarshal(m, b)
  479. }
  480. func (m *PropertyOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  481. return xxx_messageInfo_PropertyOrder.Marshal(b, m, deterministic)
  482. }
  483. func (dst *PropertyOrder) XXX_Merge(src proto.Message) {
  484. xxx_messageInfo_PropertyOrder.Merge(dst, src)
  485. }
  486. func (m *PropertyOrder) XXX_Size() int {
  487. return xxx_messageInfo_PropertyOrder.Size(m)
  488. }
  489. func (m *PropertyOrder) XXX_DiscardUnknown() {
  490. xxx_messageInfo_PropertyOrder.DiscardUnknown(m)
  491. }
  492. var xxx_messageInfo_PropertyOrder proto.InternalMessageInfo
  493. func (m *PropertyOrder) GetProperty() *PropertyReference {
  494. if m != nil {
  495. return m.Property
  496. }
  497. return nil
  498. }
  499. func (m *PropertyOrder) GetDirection() PropertyOrder_Direction {
  500. if m != nil {
  501. return m.Direction
  502. }
  503. return PropertyOrder_DIRECTION_UNSPECIFIED
  504. }
  505. // A holder for any type of filter.
  506. type Filter struct {
  507. // The type of filter.
  508. //
  509. // Types that are valid to be assigned to FilterType:
  510. // *Filter_CompositeFilter
  511. // *Filter_PropertyFilter
  512. FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
  513. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  514. XXX_unrecognized []byte `json:"-"`
  515. XXX_sizecache int32 `json:"-"`
  516. }
  517. func (m *Filter) Reset() { *m = Filter{} }
  518. func (m *Filter) String() string { return proto.CompactTextString(m) }
  519. func (*Filter) ProtoMessage() {}
  520. func (*Filter) Descriptor() ([]byte, []int) {
  521. return fileDescriptor_query_469190755d01ba40, []int{6}
  522. }
  523. func (m *Filter) XXX_Unmarshal(b []byte) error {
  524. return xxx_messageInfo_Filter.Unmarshal(m, b)
  525. }
  526. func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  527. return xxx_messageInfo_Filter.Marshal(b, m, deterministic)
  528. }
  529. func (dst *Filter) XXX_Merge(src proto.Message) {
  530. xxx_messageInfo_Filter.Merge(dst, src)
  531. }
  532. func (m *Filter) XXX_Size() int {
  533. return xxx_messageInfo_Filter.Size(m)
  534. }
  535. func (m *Filter) XXX_DiscardUnknown() {
  536. xxx_messageInfo_Filter.DiscardUnknown(m)
  537. }
  538. var xxx_messageInfo_Filter proto.InternalMessageInfo
  539. type isFilter_FilterType interface {
  540. isFilter_FilterType()
  541. }
  542. type Filter_CompositeFilter struct {
  543. CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
  544. }
  545. type Filter_PropertyFilter struct {
  546. PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"`
  547. }
  548. func (*Filter_CompositeFilter) isFilter_FilterType() {}
  549. func (*Filter_PropertyFilter) isFilter_FilterType() {}
  550. func (m *Filter) GetFilterType() isFilter_FilterType {
  551. if m != nil {
  552. return m.FilterType
  553. }
  554. return nil
  555. }
  556. func (m *Filter) GetCompositeFilter() *CompositeFilter {
  557. if x, ok := m.GetFilterType().(*Filter_CompositeFilter); ok {
  558. return x.CompositeFilter
  559. }
  560. return nil
  561. }
  562. func (m *Filter) GetPropertyFilter() *PropertyFilter {
  563. if x, ok := m.GetFilterType().(*Filter_PropertyFilter); ok {
  564. return x.PropertyFilter
  565. }
  566. return nil
  567. }
  568. // XXX_OneofFuncs is for the internal use of the proto package.
  569. func (*Filter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  570. return _Filter_OneofMarshaler, _Filter_OneofUnmarshaler, _Filter_OneofSizer, []interface{}{
  571. (*Filter_CompositeFilter)(nil),
  572. (*Filter_PropertyFilter)(nil),
  573. }
  574. }
  575. func _Filter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  576. m := msg.(*Filter)
  577. // filter_type
  578. switch x := m.FilterType.(type) {
  579. case *Filter_CompositeFilter:
  580. b.EncodeVarint(1<<3 | proto.WireBytes)
  581. if err := b.EncodeMessage(x.CompositeFilter); err != nil {
  582. return err
  583. }
  584. case *Filter_PropertyFilter:
  585. b.EncodeVarint(2<<3 | proto.WireBytes)
  586. if err := b.EncodeMessage(x.PropertyFilter); err != nil {
  587. return err
  588. }
  589. case nil:
  590. default:
  591. return fmt.Errorf("Filter.FilterType has unexpected type %T", x)
  592. }
  593. return nil
  594. }
  595. func _Filter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  596. m := msg.(*Filter)
  597. switch tag {
  598. case 1: // filter_type.composite_filter
  599. if wire != proto.WireBytes {
  600. return true, proto.ErrInternalBadWireType
  601. }
  602. msg := new(CompositeFilter)
  603. err := b.DecodeMessage(msg)
  604. m.FilterType = &Filter_CompositeFilter{msg}
  605. return true, err
  606. case 2: // filter_type.property_filter
  607. if wire != proto.WireBytes {
  608. return true, proto.ErrInternalBadWireType
  609. }
  610. msg := new(PropertyFilter)
  611. err := b.DecodeMessage(msg)
  612. m.FilterType = &Filter_PropertyFilter{msg}
  613. return true, err
  614. default:
  615. return false, nil
  616. }
  617. }
  618. func _Filter_OneofSizer(msg proto.Message) (n int) {
  619. m := msg.(*Filter)
  620. // filter_type
  621. switch x := m.FilterType.(type) {
  622. case *Filter_CompositeFilter:
  623. s := proto.Size(x.CompositeFilter)
  624. n += 1 // tag and wire
  625. n += proto.SizeVarint(uint64(s))
  626. n += s
  627. case *Filter_PropertyFilter:
  628. s := proto.Size(x.PropertyFilter)
  629. n += 1 // tag and wire
  630. n += proto.SizeVarint(uint64(s))
  631. n += s
  632. case nil:
  633. default:
  634. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  635. }
  636. return n
  637. }
  638. // A filter that merges multiple other filters using the given operator.
  639. type CompositeFilter struct {
  640. // The operator for combining multiple filters.
  641. Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1.CompositeFilter_Operator" json:"op,omitempty"`
  642. // The list of filters to combine.
  643. // Must contain at least one filter.
  644. Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
  645. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  646. XXX_unrecognized []byte `json:"-"`
  647. XXX_sizecache int32 `json:"-"`
  648. }
  649. func (m *CompositeFilter) Reset() { *m = CompositeFilter{} }
  650. func (m *CompositeFilter) String() string { return proto.CompactTextString(m) }
  651. func (*CompositeFilter) ProtoMessage() {}
  652. func (*CompositeFilter) Descriptor() ([]byte, []int) {
  653. return fileDescriptor_query_469190755d01ba40, []int{7}
  654. }
  655. func (m *CompositeFilter) XXX_Unmarshal(b []byte) error {
  656. return xxx_messageInfo_CompositeFilter.Unmarshal(m, b)
  657. }
  658. func (m *CompositeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  659. return xxx_messageInfo_CompositeFilter.Marshal(b, m, deterministic)
  660. }
  661. func (dst *CompositeFilter) XXX_Merge(src proto.Message) {
  662. xxx_messageInfo_CompositeFilter.Merge(dst, src)
  663. }
  664. func (m *CompositeFilter) XXX_Size() int {
  665. return xxx_messageInfo_CompositeFilter.Size(m)
  666. }
  667. func (m *CompositeFilter) XXX_DiscardUnknown() {
  668. xxx_messageInfo_CompositeFilter.DiscardUnknown(m)
  669. }
  670. var xxx_messageInfo_CompositeFilter proto.InternalMessageInfo
  671. func (m *CompositeFilter) GetOp() CompositeFilter_Operator {
  672. if m != nil {
  673. return m.Op
  674. }
  675. return CompositeFilter_OPERATOR_UNSPECIFIED
  676. }
  677. func (m *CompositeFilter) GetFilters() []*Filter {
  678. if m != nil {
  679. return m.Filters
  680. }
  681. return nil
  682. }
  683. // A filter on a specific property.
  684. type PropertyFilter struct {
  685. // The property to filter by.
  686. Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
  687. // The operator to filter by.
  688. Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1.PropertyFilter_Operator" json:"op,omitempty"`
  689. // The value to compare the property to.
  690. Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  691. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  692. XXX_unrecognized []byte `json:"-"`
  693. XXX_sizecache int32 `json:"-"`
  694. }
  695. func (m *PropertyFilter) Reset() { *m = PropertyFilter{} }
  696. func (m *PropertyFilter) String() string { return proto.CompactTextString(m) }
  697. func (*PropertyFilter) ProtoMessage() {}
  698. func (*PropertyFilter) Descriptor() ([]byte, []int) {
  699. return fileDescriptor_query_469190755d01ba40, []int{8}
  700. }
  701. func (m *PropertyFilter) XXX_Unmarshal(b []byte) error {
  702. return xxx_messageInfo_PropertyFilter.Unmarshal(m, b)
  703. }
  704. func (m *PropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  705. return xxx_messageInfo_PropertyFilter.Marshal(b, m, deterministic)
  706. }
  707. func (dst *PropertyFilter) XXX_Merge(src proto.Message) {
  708. xxx_messageInfo_PropertyFilter.Merge(dst, src)
  709. }
  710. func (m *PropertyFilter) XXX_Size() int {
  711. return xxx_messageInfo_PropertyFilter.Size(m)
  712. }
  713. func (m *PropertyFilter) XXX_DiscardUnknown() {
  714. xxx_messageInfo_PropertyFilter.DiscardUnknown(m)
  715. }
  716. var xxx_messageInfo_PropertyFilter proto.InternalMessageInfo
  717. func (m *PropertyFilter) GetProperty() *PropertyReference {
  718. if m != nil {
  719. return m.Property
  720. }
  721. return nil
  722. }
  723. func (m *PropertyFilter) GetOp() PropertyFilter_Operator {
  724. if m != nil {
  725. return m.Op
  726. }
  727. return PropertyFilter_OPERATOR_UNSPECIFIED
  728. }
  729. func (m *PropertyFilter) GetValue() *Value {
  730. if m != nil {
  731. return m.Value
  732. }
  733. return nil
  734. }
  735. // A [GQL
  736. // query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
  737. type GqlQuery struct {
  738. // A string of the format described
  739. // [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
  740. QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"`
  741. // When false, the query string must not contain any literals and instead must
  742. // bind all values. For example,
  743. // `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
  744. // `SELECT * FROM Kind WHERE a = @value` is.
  745. AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"`
  746. // For each non-reserved named binding site in the query string, there must be
  747. // a named parameter with that name, but not necessarily the inverse.
  748. //
  749. // Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
  750. // `__.*__`, and must not be `""`.
  751. NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings,proto3" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  752. // Numbered binding site @1 references the first numbered parameter,
  753. // effectively using 1-based indexing, rather than the usual 0.
  754. //
  755. // For each binding site numbered i in `query_string`, there must be an i-th
  756. // numbered parameter. The inverse must also be true.
  757. PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"`
  758. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  759. XXX_unrecognized []byte `json:"-"`
  760. XXX_sizecache int32 `json:"-"`
  761. }
  762. func (m *GqlQuery) Reset() { *m = GqlQuery{} }
  763. func (m *GqlQuery) String() string { return proto.CompactTextString(m) }
  764. func (*GqlQuery) ProtoMessage() {}
  765. func (*GqlQuery) Descriptor() ([]byte, []int) {
  766. return fileDescriptor_query_469190755d01ba40, []int{9}
  767. }
  768. func (m *GqlQuery) XXX_Unmarshal(b []byte) error {
  769. return xxx_messageInfo_GqlQuery.Unmarshal(m, b)
  770. }
  771. func (m *GqlQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  772. return xxx_messageInfo_GqlQuery.Marshal(b, m, deterministic)
  773. }
  774. func (dst *GqlQuery) XXX_Merge(src proto.Message) {
  775. xxx_messageInfo_GqlQuery.Merge(dst, src)
  776. }
  777. func (m *GqlQuery) XXX_Size() int {
  778. return xxx_messageInfo_GqlQuery.Size(m)
  779. }
  780. func (m *GqlQuery) XXX_DiscardUnknown() {
  781. xxx_messageInfo_GqlQuery.DiscardUnknown(m)
  782. }
  783. var xxx_messageInfo_GqlQuery proto.InternalMessageInfo
  784. func (m *GqlQuery) GetQueryString() string {
  785. if m != nil {
  786. return m.QueryString
  787. }
  788. return ""
  789. }
  790. func (m *GqlQuery) GetAllowLiterals() bool {
  791. if m != nil {
  792. return m.AllowLiterals
  793. }
  794. return false
  795. }
  796. func (m *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter {
  797. if m != nil {
  798. return m.NamedBindings
  799. }
  800. return nil
  801. }
  802. func (m *GqlQuery) GetPositionalBindings() []*GqlQueryParameter {
  803. if m != nil {
  804. return m.PositionalBindings
  805. }
  806. return nil
  807. }
  808. // A binding parameter for a GQL query.
  809. type GqlQueryParameter struct {
  810. // The type of parameter.
  811. //
  812. // Types that are valid to be assigned to ParameterType:
  813. // *GqlQueryParameter_Value
  814. // *GqlQueryParameter_Cursor
  815. ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
  816. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  817. XXX_unrecognized []byte `json:"-"`
  818. XXX_sizecache int32 `json:"-"`
  819. }
  820. func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} }
  821. func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) }
  822. func (*GqlQueryParameter) ProtoMessage() {}
  823. func (*GqlQueryParameter) Descriptor() ([]byte, []int) {
  824. return fileDescriptor_query_469190755d01ba40, []int{10}
  825. }
  826. func (m *GqlQueryParameter) XXX_Unmarshal(b []byte) error {
  827. return xxx_messageInfo_GqlQueryParameter.Unmarshal(m, b)
  828. }
  829. func (m *GqlQueryParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  830. return xxx_messageInfo_GqlQueryParameter.Marshal(b, m, deterministic)
  831. }
  832. func (dst *GqlQueryParameter) XXX_Merge(src proto.Message) {
  833. xxx_messageInfo_GqlQueryParameter.Merge(dst, src)
  834. }
  835. func (m *GqlQueryParameter) XXX_Size() int {
  836. return xxx_messageInfo_GqlQueryParameter.Size(m)
  837. }
  838. func (m *GqlQueryParameter) XXX_DiscardUnknown() {
  839. xxx_messageInfo_GqlQueryParameter.DiscardUnknown(m)
  840. }
  841. var xxx_messageInfo_GqlQueryParameter proto.InternalMessageInfo
  842. type isGqlQueryParameter_ParameterType interface {
  843. isGqlQueryParameter_ParameterType()
  844. }
  845. type GqlQueryParameter_Value struct {
  846. Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
  847. }
  848. type GqlQueryParameter_Cursor struct {
  849. Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
  850. }
  851. func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
  852. func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {}
  853. func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType {
  854. if m != nil {
  855. return m.ParameterType
  856. }
  857. return nil
  858. }
  859. func (m *GqlQueryParameter) GetValue() *Value {
  860. if x, ok := m.GetParameterType().(*GqlQueryParameter_Value); ok {
  861. return x.Value
  862. }
  863. return nil
  864. }
  865. func (m *GqlQueryParameter) GetCursor() []byte {
  866. if x, ok := m.GetParameterType().(*GqlQueryParameter_Cursor); ok {
  867. return x.Cursor
  868. }
  869. return nil
  870. }
  871. // XXX_OneofFuncs is for the internal use of the proto package.
  872. func (*GqlQueryParameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  873. return _GqlQueryParameter_OneofMarshaler, _GqlQueryParameter_OneofUnmarshaler, _GqlQueryParameter_OneofSizer, []interface{}{
  874. (*GqlQueryParameter_Value)(nil),
  875. (*GqlQueryParameter_Cursor)(nil),
  876. }
  877. }
  878. func _GqlQueryParameter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  879. m := msg.(*GqlQueryParameter)
  880. // parameter_type
  881. switch x := m.ParameterType.(type) {
  882. case *GqlQueryParameter_Value:
  883. b.EncodeVarint(2<<3 | proto.WireBytes)
  884. if err := b.EncodeMessage(x.Value); err != nil {
  885. return err
  886. }
  887. case *GqlQueryParameter_Cursor:
  888. b.EncodeVarint(3<<3 | proto.WireBytes)
  889. b.EncodeRawBytes(x.Cursor)
  890. case nil:
  891. default:
  892. return fmt.Errorf("GqlQueryParameter.ParameterType has unexpected type %T", x)
  893. }
  894. return nil
  895. }
  896. func _GqlQueryParameter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  897. m := msg.(*GqlQueryParameter)
  898. switch tag {
  899. case 2: // parameter_type.value
  900. if wire != proto.WireBytes {
  901. return true, proto.ErrInternalBadWireType
  902. }
  903. msg := new(Value)
  904. err := b.DecodeMessage(msg)
  905. m.ParameterType = &GqlQueryParameter_Value{msg}
  906. return true, err
  907. case 3: // parameter_type.cursor
  908. if wire != proto.WireBytes {
  909. return true, proto.ErrInternalBadWireType
  910. }
  911. x, err := b.DecodeRawBytes(true)
  912. m.ParameterType = &GqlQueryParameter_Cursor{x}
  913. return true, err
  914. default:
  915. return false, nil
  916. }
  917. }
  918. func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
  919. m := msg.(*GqlQueryParameter)
  920. // parameter_type
  921. switch x := m.ParameterType.(type) {
  922. case *GqlQueryParameter_Value:
  923. s := proto.Size(x.Value)
  924. n += 1 // tag and wire
  925. n += proto.SizeVarint(uint64(s))
  926. n += s
  927. case *GqlQueryParameter_Cursor:
  928. n += 1 // tag and wire
  929. n += proto.SizeVarint(uint64(len(x.Cursor)))
  930. n += len(x.Cursor)
  931. case nil:
  932. default:
  933. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  934. }
  935. return n
  936. }
  937. // A batch of results produced by a query.
  938. type QueryResultBatch struct {
  939. // The number of results skipped, typically because of an offset.
  940. SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"`
  941. // A cursor that points to the position after the last skipped result.
  942. // Will be set when `skipped_results` != 0.
  943. SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"`
  944. // The result type for every entity in `entity_results`.
  945. EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1.EntityResult_ResultType" json:"entity_result_type,omitempty"`
  946. // The results for this batch.
  947. EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"`
  948. // A cursor that points to the position after the last result in the batch.
  949. EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
  950. // The state of the query after the current batch.
  951. MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
  952. // The version number of the snapshot this batch was returned from.
  953. // This applies to the range of results from the query's `start_cursor` (or
  954. // the beginning of the query if no cursor was given) to this batch's
  955. // `end_cursor` (not the query's `end_cursor`).
  956. //
  957. // In a single transaction, subsequent query result batches for the same query
  958. // can have a greater snapshot version number. Each batch's snapshot version
  959. // is valid for all preceding batches.
  960. // The value will be zero for eventually consistent queries.
  961. SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
  962. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  963. XXX_unrecognized []byte `json:"-"`
  964. XXX_sizecache int32 `json:"-"`
  965. }
  966. func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} }
  967. func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) }
  968. func (*QueryResultBatch) ProtoMessage() {}
  969. func (*QueryResultBatch) Descriptor() ([]byte, []int) {
  970. return fileDescriptor_query_469190755d01ba40, []int{11}
  971. }
  972. func (m *QueryResultBatch) XXX_Unmarshal(b []byte) error {
  973. return xxx_messageInfo_QueryResultBatch.Unmarshal(m, b)
  974. }
  975. func (m *QueryResultBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  976. return xxx_messageInfo_QueryResultBatch.Marshal(b, m, deterministic)
  977. }
  978. func (dst *QueryResultBatch) XXX_Merge(src proto.Message) {
  979. xxx_messageInfo_QueryResultBatch.Merge(dst, src)
  980. }
  981. func (m *QueryResultBatch) XXX_Size() int {
  982. return xxx_messageInfo_QueryResultBatch.Size(m)
  983. }
  984. func (m *QueryResultBatch) XXX_DiscardUnknown() {
  985. xxx_messageInfo_QueryResultBatch.DiscardUnknown(m)
  986. }
  987. var xxx_messageInfo_QueryResultBatch proto.InternalMessageInfo
  988. func (m *QueryResultBatch) GetSkippedResults() int32 {
  989. if m != nil {
  990. return m.SkippedResults
  991. }
  992. return 0
  993. }
  994. func (m *QueryResultBatch) GetSkippedCursor() []byte {
  995. if m != nil {
  996. return m.SkippedCursor
  997. }
  998. return nil
  999. }
  1000. func (m *QueryResultBatch) GetEntityResultType() EntityResult_ResultType {
  1001. if m != nil {
  1002. return m.EntityResultType
  1003. }
  1004. return EntityResult_RESULT_TYPE_UNSPECIFIED
  1005. }
  1006. func (m *QueryResultBatch) GetEntityResults() []*EntityResult {
  1007. if m != nil {
  1008. return m.EntityResults
  1009. }
  1010. return nil
  1011. }
  1012. func (m *QueryResultBatch) GetEndCursor() []byte {
  1013. if m != nil {
  1014. return m.EndCursor
  1015. }
  1016. return nil
  1017. }
  1018. func (m *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType {
  1019. if m != nil {
  1020. return m.MoreResults
  1021. }
  1022. return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED
  1023. }
  1024. func (m *QueryResultBatch) GetSnapshotVersion() int64 {
  1025. if m != nil {
  1026. return m.SnapshotVersion
  1027. }
  1028. return 0
  1029. }
  1030. func init() {
  1031. proto.RegisterType((*EntityResult)(nil), "google.datastore.v1.EntityResult")
  1032. proto.RegisterType((*Query)(nil), "google.datastore.v1.Query")
  1033. proto.RegisterType((*KindExpression)(nil), "google.datastore.v1.KindExpression")
  1034. proto.RegisterType((*PropertyReference)(nil), "google.datastore.v1.PropertyReference")
  1035. proto.RegisterType((*Projection)(nil), "google.datastore.v1.Projection")
  1036. proto.RegisterType((*PropertyOrder)(nil), "google.datastore.v1.PropertyOrder")
  1037. proto.RegisterType((*Filter)(nil), "google.datastore.v1.Filter")
  1038. proto.RegisterType((*CompositeFilter)(nil), "google.datastore.v1.CompositeFilter")
  1039. proto.RegisterType((*PropertyFilter)(nil), "google.datastore.v1.PropertyFilter")
  1040. proto.RegisterType((*GqlQuery)(nil), "google.datastore.v1.GqlQuery")
  1041. proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1.GqlQuery.NamedBindingsEntry")
  1042. proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1.GqlQueryParameter")
  1043. proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1.QueryResultBatch")
  1044. proto.RegisterEnum("google.datastore.v1.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value)
  1045. proto.RegisterEnum("google.datastore.v1.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value)
  1046. proto.RegisterEnum("google.datastore.v1.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value)
  1047. proto.RegisterEnum("google.datastore.v1.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value)
  1048. proto.RegisterEnum("google.datastore.v1.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
  1049. }
  1050. func init() {
  1051. proto.RegisterFile("google/datastore/v1/query.proto", fileDescriptor_query_469190755d01ba40)
  1052. }
  1053. var fileDescriptor_query_469190755d01ba40 = []byte{
  1054. // 1313 bytes of a gzipped FileDescriptorProto
  1055. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x72, 0xd3, 0x46,
  1056. 0x14, 0x8e, 0x64, 0x3b, 0x89, 0x8f, 0xff, 0xc4, 0xd2, 0x82, 0x08, 0x50, 0x12, 0x41, 0x4b, 0x3a,
  1057. 0x03, 0x36, 0x31, 0xc3, 0x94, 0x69, 0xe9, 0x74, 0xfc, 0xa3, 0xc4, 0x06, 0x63, 0x39, 0x6b, 0x27,
  1058. 0x14, 0x86, 0x19, 0x8d, 0xb0, 0x37, 0x46, 0x45, 0x96, 0xc4, 0x4a, 0x09, 0xcd, 0x83, 0x74, 0xa6,
  1059. 0x37, 0x7d, 0x81, 0x3e, 0x40, 0x2f, 0xfa, 0x00, 0x6d, 0xa7, 0xcf, 0xd0, 0xeb, 0x5e, 0xf7, 0x11,
  1060. 0x3a, 0xda, 0x5d, 0xf9, 0x2f, 0xc6, 0xe4, 0x82, 0x3b, 0xed, 0xd9, 0xef, 0xfb, 0xce, 0x9e, 0xb3,
  1061. 0x67, 0x8f, 0x0e, 0xdc, 0x18, 0x7a, 0xde, 0xd0, 0x21, 0xa5, 0x81, 0x15, 0x5a, 0x41, 0xe8, 0x51,
  1062. 0x52, 0x3a, 0xd9, 0x29, 0xbd, 0x3d, 0x26, 0xf4, 0xb4, 0xe8, 0x53, 0x2f, 0xf4, 0xd0, 0x45, 0x0e,
  1063. 0x28, 0x8e, 0x01, 0xc5, 0x93, 0x9d, 0x8d, 0x6b, 0x82, 0x65, 0xf9, 0x76, 0xc9, 0x72, 0x5d, 0x2f,
  1064. 0xb4, 0x42, 0xdb, 0x73, 0x03, 0x4e, 0xd9, 0xd8, 0x5c, 0xa4, 0x49, 0xdc, 0xd0, 0x0e, 0x85, 0xe8,
  1065. 0xc6, 0x67, 0x02, 0xc1, 0x56, 0xaf, 0x8e, 0x8f, 0x4a, 0xef, 0xa8, 0xe5, 0xfb, 0x84, 0xc6, 0x0a,
  1066. 0xaa, 0xd8, 0x0f, 0x4f, 0x7d, 0x52, 0x72, 0xac, 0xd0, 0x71, 0x87, 0x7c, 0x47, 0xfb, 0x4b, 0x82,
  1067. 0xac, 0xce, 0xa4, 0x30, 0x09, 0x8e, 0x9d, 0x10, 0xdd, 0x87, 0x55, 0x2e, 0xad, 0x4a, 0x9b, 0xd2,
  1068. 0x76, 0xa6, 0x7c, 0xb5, 0xb8, 0xe0, 0xc0, 0x45, 0x41, 0x11, 0x50, 0xa4, 0xc2, 0xda, 0x09, 0xa1,
  1069. 0x81, 0xed, 0xb9, 0x6a, 0x72, 0x53, 0xda, 0x4e, 0xe0, 0x78, 0x89, 0x2e, 0xc1, 0x6a, 0xff, 0x98,
  1070. 0x06, 0x1e, 0x55, 0x13, 0x9b, 0xd2, 0x76, 0x16, 0x8b, 0x95, 0xb6, 0x0f, 0xc0, 0x1d, 0xf6, 0x4e,
  1071. 0x7d, 0x82, 0xae, 0xc2, 0x65, 0xac, 0x77, 0x0f, 0x5a, 0x3d, 0xb3, 0xf7, 0xbc, 0xa3, 0x9b, 0x07,
  1072. 0xed, 0x6e, 0x47, 0xaf, 0x35, 0x77, 0x9b, 0x7a, 0x5d, 0x59, 0x41, 0xeb, 0x90, 0xdc, 0x3d, 0x68,
  1073. 0xb5, 0x14, 0x09, 0xe5, 0x01, 0x3a, 0xd8, 0x78, 0xac, 0xd7, 0x7a, 0x4d, 0xa3, 0xad, 0xc8, 0x28,
  1074. 0x0b, 0xeb, 0x4f, 0xf4, 0xe7, 0xa6, 0xd1, 0x6e, 0x3d, 0x57, 0x12, 0xda, 0x1f, 0x09, 0x48, 0xed,
  1075. 0x47, 0x99, 0x46, 0xdf, 0x01, 0xf8, 0xd4, 0xfb, 0x81, 0xf4, 0xa3, 0x2c, 0xaa, 0xf2, 0x66, 0x62,
  1076. 0x3b, 0x53, 0xbe, 0xb1, 0x30, 0x8e, 0xce, 0x18, 0x86, 0xa7, 0x28, 0xe8, 0x2b, 0x48, 0xbe, 0xb1,
  1077. 0xdd, 0x81, 0x9a, 0x60, 0xd4, 0x9b, 0x0b, 0xa9, 0x4f, 0x6c, 0x77, 0xa0, 0xff, 0xe8, 0x53, 0x12,
  1078. 0x44, 0x81, 0x62, 0x46, 0x88, 0xb2, 0x77, 0x64, 0x3b, 0x21, 0xa1, 0x2c, 0x0f, 0xef, 0xcb, 0xde,
  1079. 0x2e, 0x83, 0x60, 0x01, 0x45, 0x0f, 0x21, 0xe5, 0xd1, 0x01, 0xa1, 0x6a, 0x8a, 0xb9, 0xd3, 0xde,
  1080. 0x77, 0x52, 0x9f, 0xd0, 0xf0, 0xd4, 0x88, 0x90, 0x98, 0x13, 0xd0, 0x1e, 0x64, 0x06, 0x76, 0x10,
  1081. 0xda, 0x6e, 0x3f, 0x34, 0x3d, 0x57, 0x5d, 0x65, 0xfc, 0x2f, 0x96, 0xf2, 0x31, 0x39, 0x22, 0x94,
  1082. 0xb8, 0x7d, 0x82, 0x21, 0xa6, 0x1a, 0x2e, 0xda, 0x82, 0x6c, 0x10, 0x5a, 0x34, 0x34, 0xc5, 0x65,
  1083. 0xad, 0xb1, 0xcb, 0xca, 0x30, 0x5b, 0x8d, 0x99, 0xd0, 0x75, 0x00, 0xe2, 0x0e, 0x62, 0xc0, 0x3a,
  1084. 0x03, 0xa4, 0x89, 0x3b, 0x10, 0xdb, 0x97, 0x60, 0xd5, 0x3b, 0x3a, 0x0a, 0x48, 0xa8, 0xc2, 0xa6,
  1085. 0xb4, 0x9d, 0xc2, 0x62, 0x85, 0x76, 0x20, 0xe5, 0xd8, 0x23, 0x3b, 0x54, 0xb3, 0xb3, 0x09, 0x89,
  1086. 0x4b, 0xb5, 0xd8, 0x74, 0xc3, 0xfb, 0xe5, 0x43, 0xcb, 0x39, 0x26, 0x98, 0x23, 0xb5, 0x5b, 0x90,
  1087. 0x9f, 0x4d, 0x2e, 0x42, 0x90, 0x74, 0xad, 0x11, 0x61, 0x25, 0x99, 0xc6, 0xec, 0x5b, 0xbb, 0x0d,
  1088. 0x17, 0xce, 0xc4, 0x34, 0x06, 0xca, 0x53, 0xc0, 0x0e, 0xc0, 0xe4, 0x9a, 0x51, 0x15, 0xd6, 0x7d,
  1089. 0x41, 0x13, 0x15, 0x7e, 0xde, 0x7c, 0x8d, 0x79, 0xda, 0xbf, 0x12, 0xe4, 0x66, 0xee, 0xe3, 0x63,
  1090. 0xa8, 0xa2, 0xc7, 0x90, 0x1e, 0xd8, 0x74, 0x5c, 0xb4, 0xd2, 0x76, 0xbe, 0x7c, 0xe7, 0xc3, 0xa5,
  1091. 0x50, 0xac, 0xc7, 0x1c, 0x3c, 0xa1, 0x6b, 0x3a, 0xa4, 0xc7, 0x76, 0x74, 0x05, 0x3e, 0xad, 0x37,
  1092. 0x31, 0x7f, 0x35, 0x73, 0x6f, 0x2b, 0x07, 0xe9, 0x4a, 0xb7, 0xa6, 0xb7, 0xeb, 0xcd, 0xf6, 0x1e,
  1093. 0x7f, 0x60, 0x75, 0x7d, 0xbc, 0x96, 0xb5, 0xdf, 0x25, 0x58, 0xe5, 0xc5, 0x8a, 0xf6, 0x41, 0xe9,
  1094. 0x7b, 0x23, 0xdf, 0x0b, 0xec, 0x90, 0x98, 0xa2, 0xc6, 0x79, 0xa4, 0xb7, 0x16, 0x1e, 0xb2, 0x16,
  1095. 0x83, 0x39, 0xbf, 0xb1, 0x82, 0x0b, 0xfd, 0x59, 0x13, 0x6a, 0x43, 0x21, 0x0e, 0x3e, 0x56, 0x94,
  1096. 0x99, 0xe2, 0xcd, 0xa5, 0x61, 0x8f, 0x05, 0xf3, 0xfe, 0x8c, 0xa5, 0x9a, 0x83, 0x0c, 0x97, 0x31,
  1097. 0xa3, 0x3e, 0xa7, 0xfd, 0x26, 0x41, 0x61, 0xee, 0x14, 0xe8, 0x5b, 0x90, 0x3d, 0x9f, 0x9d, 0x3b,
  1098. 0x5f, 0xbe, 0x7b, 0x9e, 0x73, 0x17, 0x0d, 0x9f, 0x50, 0x2b, 0xf4, 0x28, 0x96, 0x3d, 0x1f, 0x3d,
  1099. 0x80, 0x35, 0xee, 0x21, 0x10, 0x5d, 0x65, 0xe9, 0xfb, 0x8e, 0xb1, 0xda, 0x5d, 0x58, 0x8f, 0x65,
  1100. 0x90, 0x0a, 0x9f, 0x18, 0x1d, 0x1d, 0x57, 0x7a, 0x06, 0x9e, 0xbb, 0x8b, 0x35, 0x48, 0x54, 0xda,
  1101. 0x75, 0x45, 0xd2, 0xfe, 0x91, 0x21, 0x3f, 0x1b, 0xec, 0x47, 0xa9, 0xaf, 0x47, 0x2c, 0xf6, 0xf3,
  1102. 0x14, 0xd6, 0xa2, 0xd0, 0xef, 0x41, 0xea, 0x24, 0x7a, 0xa4, 0xac, 0x8f, 0x67, 0xca, 0x1b, 0x0b,
  1103. 0x05, 0xc4, 0x33, 0x66, 0x40, 0xed, 0x27, 0xe9, 0x5c, 0x61, 0xe7, 0x20, 0xdd, 0xd2, 0xbb, 0x5d,
  1104. 0xb3, 0xd7, 0xa8, 0xb4, 0x15, 0x09, 0x5d, 0x02, 0x34, 0x5e, 0x9a, 0x06, 0x36, 0xf5, 0xfd, 0x83,
  1105. 0x4a, 0x4b, 0x91, 0x91, 0x02, 0xd9, 0x3d, 0xac, 0x57, 0x7a, 0x3a, 0xe6, 0xc8, 0x44, 0x54, 0xd6,
  1106. 0xd3, 0x96, 0x09, 0x38, 0x89, 0xd2, 0x90, 0xe2, 0x9f, 0xa9, 0x88, 0xd7, 0xa8, 0x74, 0xcd, 0x4a,
  1107. 0xbb, 0xa6, 0x77, 0x7b, 0x06, 0x56, 0x32, 0xda, 0x7f, 0x32, 0xac, 0xef, 0xbd, 0x75, 0xf8, 0xaf,
  1108. 0x62, 0x0b, 0xb2, 0xec, 0xef, 0x6c, 0x06, 0x21, 0xb5, 0xdd, 0xa1, 0xe8, 0x30, 0x19, 0x66, 0xeb,
  1109. 0x32, 0x13, 0xfa, 0x1c, 0xf2, 0x96, 0xe3, 0x78, 0xef, 0x4c, 0xc7, 0x0e, 0x09, 0xb5, 0x9c, 0x80,
  1110. 0xe5, 0x70, 0x1d, 0xe7, 0x98, 0xb5, 0x25, 0x8c, 0xe8, 0x19, 0xe4, 0xa3, 0x76, 0x33, 0x30, 0x5f,
  1111. 0xd9, 0xee, 0xc0, 0x76, 0x87, 0x81, 0x68, 0xe7, 0xf7, 0x16, 0x66, 0x2a, 0x3e, 0x40, 0xb1, 0x1d,
  1112. 0x71, 0xaa, 0x82, 0xa2, 0xbb, 0x21, 0x3d, 0xc5, 0x39, 0x77, 0xda, 0x86, 0x9e, 0xc1, 0x45, 0x56,
  1113. 0x91, 0xb6, 0xe7, 0x5a, 0xce, 0x44, 0x3d, 0xb9, 0xa4, 0xd9, 0xc7, 0xea, 0x1d, 0x8b, 0x5a, 0x23,
  1114. 0x12, 0xd5, 0x22, 0x9a, 0x48, 0xc4, 0xc2, 0x1b, 0xaf, 0x01, 0x9d, 0xf5, 0x8e, 0x14, 0x48, 0xbc,
  1115. 0x21, 0xa7, 0x22, 0x11, 0xd1, 0x27, 0x7a, 0x14, 0x5f, 0xbd, 0xbc, 0xa4, 0xf2, 0xce, 0xba, 0xe4,
  1116. 0xa4, 0xaf, 0xe5, 0x87, 0x92, 0x16, 0xc0, 0x85, 0x33, 0xfb, 0xa8, 0x3c, 0x2b, 0xbb, 0xa4, 0xa2,
  1117. 0x1a, 0x2b, 0x42, 0x0c, 0xa9, 0xb3, 0xe3, 0x44, 0x63, 0x25, 0x1e, 0x28, 0xaa, 0x0a, 0xe4, 0xfd,
  1118. 0x58, 0x9a, 0xbf, 0xff, 0x3f, 0x93, 0xa0, 0x30, 0x97, 0x7c, 0xd0, 0xa8, 0x5a, 0x61, 0xff, 0x35,
  1119. 0xba, 0x0d, 0x85, 0xe0, 0x8d, 0xed, 0xfb, 0x64, 0x60, 0x52, 0x66, 0x0e, 0xd4, 0x55, 0xf6, 0xbf,
  1120. 0xca, 0x0b, 0x33, 0x07, 0x07, 0xd1, 0xad, 0xc7, 0xc0, 0x99, 0x01, 0x26, 0x27, 0xac, 0xe2, 0xb7,
  1121. 0xf7, 0x02, 0x10, 0x9f, 0x81, 0x84, 0x1c, 0x73, 0x2d, 0x1a, 0xcc, 0x9d, 0x65, 0xa3, 0x13, 0x43,
  1122. 0x17, 0x27, 0x33, 0x10, 0x56, 0xc8, 0xd4, 0x06, 0x9b, 0x8a, 0x1a, 0x90, 0x9f, 0xd1, 0x8e, 0x9b,
  1123. 0xce, 0xd6, 0x07, 0x75, 0x71, 0x6e, 0x5a, 0x2c, 0x98, 0xfb, 0x77, 0x27, 0xe7, 0xff, 0xdd, 0xdf,
  1124. 0x43, 0x76, 0xe4, 0x51, 0x32, 0x76, 0x93, 0x62, 0xc7, 0x7f, 0xb0, 0xd0, 0xcd, 0x7c, 0x46, 0x8b,
  1125. 0x4f, 0x3d, 0x4a, 0x84, 0x1f, 0x16, 0x47, 0x66, 0x34, 0x31, 0xa0, 0x2f, 0x41, 0x09, 0x5c, 0xcb,
  1126. 0x0f, 0x5e, 0x7b, 0xa1, 0x19, 0x4f, 0x88, 0x6b, 0x6c, 0x42, 0x2c, 0xc4, 0xf6, 0x43, 0x6e, 0xd6,
  1127. 0x7e, 0x96, 0xa0, 0x30, 0xa7, 0x85, 0xb6, 0xe0, 0xfa, 0x53, 0x03, 0xeb, 0x26, 0x1f, 0x0e, 0xbb,
  1128. 0x8b, 0xa6, 0x43, 0x05, 0xb2, 0x6d, 0xa3, 0x67, 0xee, 0x36, 0xdb, 0xcd, 0x6e, 0x43, 0xaf, 0x2b,
  1129. 0x12, 0xba, 0x06, 0xea, 0x0c, 0xa9, 0xb2, 0x1b, 0xb5, 0x88, 0x56, 0xf3, 0x69, 0xb3, 0xa7, 0xc8,
  1130. 0xe8, 0x3a, 0x5c, 0x59, 0xb0, 0x5b, 0x3b, 0xc0, 0x5d, 0x03, 0x2b, 0x49, 0x74, 0x11, 0x0a, 0x6d,
  1131. 0xc3, 0x9c, 0x46, 0x28, 0x89, 0xea, 0x2f, 0x12, 0x5c, 0xee, 0x7b, 0xa3, 0x45, 0xf9, 0xa8, 0x02,
  1132. 0xaf, 0xea, 0x68, 0x9a, 0xe9, 0x48, 0x2f, 0x1e, 0x09, 0xc8, 0xd0, 0x73, 0x2c, 0x77, 0x58, 0xf4,
  1133. 0xe8, 0xb0, 0x34, 0x24, 0x2e, 0x9b, 0x75, 0x4a, 0x7c, 0xcb, 0xf2, 0xed, 0x60, 0x66, 0x92, 0xff,
  1134. 0x66, 0xbc, 0xf8, 0x55, 0xbe, 0xb2, 0xc7, 0xe9, 0x35, 0xc7, 0x3b, 0x1e, 0x14, 0xeb, 0x63, 0x3f,
  1135. 0x87, 0x3b, 0x7f, 0xc7, 0x7b, 0x2f, 0xd9, 0xde, 0xcb, 0xf1, 0xde, 0xcb, 0xc3, 0x9d, 0x57, 0xab,
  1136. 0xcc, 0xc1, 0xfd, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x38, 0x05, 0xaa, 0x7d, 0x0c, 0x00,
  1137. 0x00,
  1138. }