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.
 
 
 

1260 Zeilen
48 KiB

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