source: vendor/google/apiclient-services/src/Datastore/Query.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.7 KB
Line 
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 $findNearestType = FindNearest::class;
32 protected $findNearestDataType = '';
33 protected $kindType = KindExpression::class;
34 protected $kindDataType = 'array';
35 /**
36 * @var int
37 */
38 public $limit;
39 /**
40 * @var int
41 */
42 public $offset;
43 protected $orderType = PropertyOrder::class;
44 protected $orderDataType = 'array';
45 protected $projectionType = Projection::class;
46 protected $projectionDataType = 'array';
47 /**
48 * @var string
49 */
50 public $startCursor;
51
52 /**
53 * @param PropertyReference[]
54 */
55 public function setDistinctOn($distinctOn)
56 {
57 $this->distinctOn = $distinctOn;
58 }
59 /**
60 * @return PropertyReference[]
61 */
62 public function getDistinctOn()
63 {
64 return $this->distinctOn;
65 }
66 /**
67 * @param string
68 */
69 public function setEndCursor($endCursor)
70 {
71 $this->endCursor = $endCursor;
72 }
73 /**
74 * @return string
75 */
76 public function getEndCursor()
77 {
78 return $this->endCursor;
79 }
80 /**
81 * @param Filter
82 */
83 public function setFilter(Filter $filter)
84 {
85 $this->filter = $filter;
86 }
87 /**
88 * @return Filter
89 */
90 public function getFilter()
91 {
92 return $this->filter;
93 }
94 /**
95 * @param FindNearest
96 */
97 public function setFindNearest(FindNearest $findNearest)
98 {
99 $this->findNearest = $findNearest;
100 }
101 /**
102 * @return FindNearest
103 */
104 public function getFindNearest()
105 {
106 return $this->findNearest;
107 }
108 /**
109 * @param KindExpression[]
110 */
111 public function setKind($kind)
112 {
113 $this->kind = $kind;
114 }
115 /**
116 * @return KindExpression[]
117 */
118 public function getKind()
119 {
120 return $this->kind;
121 }
122 /**
123 * @param int
124 */
125 public function setLimit($limit)
126 {
127 $this->limit = $limit;
128 }
129 /**
130 * @return int
131 */
132 public function getLimit()
133 {
134 return $this->limit;
135 }
136 /**
137 * @param int
138 */
139 public function setOffset($offset)
140 {
141 $this->offset = $offset;
142 }
143 /**
144 * @return int
145 */
146 public function getOffset()
147 {
148 return $this->offset;
149 }
150 /**
151 * @param PropertyOrder[]
152 */
153 public function setOrder($order)
154 {
155 $this->order = $order;
156 }
157 /**
158 * @return PropertyOrder[]
159 */
160 public function getOrder()
161 {
162 return $this->order;
163 }
164 /**
165 * @param Projection[]
166 */
167 public function setProjection($projection)
168 {
169 $this->projection = $projection;
170 }
171 /**
172 * @return Projection[]
173 */
174 public function getProjection()
175 {
176 return $this->projection;
177 }
178 /**
179 * @param string
180 */
181 public function setStartCursor($startCursor)
182 {
183 $this->startCursor = $startCursor;
184 }
185 /**
186 * @return string
187 */
188 public function getStartCursor()
189 {
190 return $this->startCursor;
191 }
192}
193
194// Adding a class alias for backwards compatibility with the previous class name.
195class_alias(Query::class, 'Google_Service_Datastore_Query');
Note: See TracBrowser for help on using the repository browser.