1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Datastore;
19
20class Query extends \Google\Collection
21{
22  protected $collection_key = 'projection';
23  protected $distinctOnType = PropertyReference::class;
24  protected $distinctOnDataType = 'array';
25  /**
26   * @var string
27   */
28  public $endCursor;
29  protected $filterType = Filter::class;
30  protected $filterDataType = '';
31  protected $kindType = KindExpression::class;
32  protected $kindDataType = 'array';
33  /**
34   * @var int
35   */
36  public $limit;
37  /**
38   * @var int
39   */
40  public $offset;
41  protected $orderType = PropertyOrder::class;
42  protected $orderDataType = 'array';
43  protected $projectionType = Projection::class;
44  protected $projectionDataType = 'array';
45  /**
46   * @var string
47   */
48  public $startCursor;
49
50  /**
51   * @param PropertyReference[]
52   */
53  public function setDistinctOn($distinctOn)
54  {
55    $this->distinctOn = $distinctOn;
56  }
57  /**
58   * @return PropertyReference[]
59   */
60  public function getDistinctOn()
61  {
62    return $this->distinctOn;
63  }
64  /**
65   * @param string
66   */
67  public function setEndCursor($endCursor)
68  {
69    $this->endCursor = $endCursor;
70  }
71  /**
72   * @return string
73   */
74  public function getEndCursor()
75  {
76    return $this->endCursor;
77  }
78  /**
79   * @param Filter
80   */
81  public function setFilter(Filter $filter)
82  {
83    $this->filter = $filter;
84  }
85  /**
86   * @return Filter
87   */
88  public function getFilter()
89  {
90    return $this->filter;
91  }
92  /**
93   * @param KindExpression[]
94   */
95  public function setKind($kind)
96  {
97    $this->kind = $kind;
98  }
99  /**
100   * @return KindExpression[]
101   */
102  public function getKind()
103  {
104    return $this->kind;
105  }
106  /**
107   * @param int
108   */
109  public function setLimit($limit)
110  {
111    $this->limit = $limit;
112  }
113  /**
114   * @return int
115   */
116  public function getLimit()
117  {
118    return $this->limit;
119  }
120  /**
121   * @param int
122   */
123  public function setOffset($offset)
124  {
125    $this->offset = $offset;
126  }
127  /**
128   * @return int
129   */
130  public function getOffset()
131  {
132    return $this->offset;
133  }
134  /**
135   * @param PropertyOrder[]
136   */
137  public function setOrder($order)
138  {
139    $this->order = $order;
140  }
141  /**
142   * @return PropertyOrder[]
143   */
144  public function getOrder()
145  {
146    return $this->order;
147  }
148  /**
149   * @param Projection[]
150   */
151  public function setProjection($projection)
152  {
153    $this->projection = $projection;
154  }
155  /**
156   * @return Projection[]
157   */
158  public function getProjection()
159  {
160    return $this->projection;
161  }
162  /**
163   * @param string
164   */
165  public function setStartCursor($startCursor)
166  {
167    $this->startCursor = $startCursor;
168  }
169  /**
170   * @return string
171   */
172  public function getStartCursor()
173  {
174    return $this->startCursor;
175  }
176}
177
178// Adding a class alias for backwards compatibility with the previous class name.
179class_alias(Query::class, 'Google_Service_Datastore_Query');
180