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\Firestore;
19
20class StructuredQuery extends \Google\Collection
21{
22  protected $collection_key = 'orderBy';
23  protected $endAtType = Cursor::class;
24  protected $endAtDataType = '';
25  protected $fromType = CollectionSelector::class;
26  protected $fromDataType = 'array';
27  /**
28   * @var int
29   */
30  public $limit;
31  /**
32   * @var int
33   */
34  public $offset;
35  protected $orderByType = Order::class;
36  protected $orderByDataType = 'array';
37  protected $selectType = Projection::class;
38  protected $selectDataType = '';
39  protected $startAtType = Cursor::class;
40  protected $startAtDataType = '';
41  protected $whereType = Filter::class;
42  protected $whereDataType = '';
43
44  /**
45   * @param Cursor
46   */
47  public function setEndAt(Cursor $endAt)
48  {
49    $this->endAt = $endAt;
50  }
51  /**
52   * @return Cursor
53   */
54  public function getEndAt()
55  {
56    return $this->endAt;
57  }
58  /**
59   * @param CollectionSelector[]
60   */
61  public function setFrom($from)
62  {
63    $this->from = $from;
64  }
65  /**
66   * @return CollectionSelector[]
67   */
68  public function getFrom()
69  {
70    return $this->from;
71  }
72  /**
73   * @param int
74   */
75  public function setLimit($limit)
76  {
77    $this->limit = $limit;
78  }
79  /**
80   * @return int
81   */
82  public function getLimit()
83  {
84    return $this->limit;
85  }
86  /**
87   * @param int
88   */
89  public function setOffset($offset)
90  {
91    $this->offset = $offset;
92  }
93  /**
94   * @return int
95   */
96  public function getOffset()
97  {
98    return $this->offset;
99  }
100  /**
101   * @param Order[]
102   */
103  public function setOrderBy($orderBy)
104  {
105    $this->orderBy = $orderBy;
106  }
107  /**
108   * @return Order[]
109   */
110  public function getOrderBy()
111  {
112    return $this->orderBy;
113  }
114  /**
115   * @param Projection
116   */
117  public function setSelect(Projection $select)
118  {
119    $this->select = $select;
120  }
121  /**
122   * @return Projection
123   */
124  public function getSelect()
125  {
126    return $this->select;
127  }
128  /**
129   * @param Cursor
130   */
131  public function setStartAt(Cursor $startAt)
132  {
133    $this->startAt = $startAt;
134  }
135  /**
136   * @return Cursor
137   */
138  public function getStartAt()
139  {
140    return $this->startAt;
141  }
142  /**
143   * @param Filter
144   */
145  public function setWhere(Filter $where)
146  {
147    $this->where = $where;
148  }
149  /**
150   * @return Filter
151   */
152  public function getWhere()
153  {
154    return $this->where;
155  }
156}
157
158// Adding a class alias for backwards compatibility with the previous class name.
159class_alias(StructuredQuery::class, 'Google_Service_Firestore_StructuredQuery');
160