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 |
|
---|
18 | namespace Google\Service\Bigquery;
|
---|
19 |
|
---|
20 | class QueryRequest extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'queryParameters';
|
---|
23 | protected $connectionPropertiesType = ConnectionProperty::class;
|
---|
24 | protected $connectionPropertiesDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var bool
|
---|
27 | */
|
---|
28 | public $continuous;
|
---|
29 | /**
|
---|
30 | * @var bool
|
---|
31 | */
|
---|
32 | public $createSession;
|
---|
33 | protected $defaultDatasetType = DatasetReference::class;
|
---|
34 | protected $defaultDatasetDataType = '';
|
---|
35 | /**
|
---|
36 | * @var bool
|
---|
37 | */
|
---|
38 | public $dryRun;
|
---|
39 | protected $formatOptionsType = DataFormatOptions::class;
|
---|
40 | protected $formatOptionsDataType = '';
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $jobCreationMode;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $kind;
|
---|
49 | /**
|
---|
50 | * @var string[]
|
---|
51 | */
|
---|
52 | public $labels;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $location;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $maxResults;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $maximumBytesBilled;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $parameterMode;
|
---|
69 | /**
|
---|
70 | * @var bool
|
---|
71 | */
|
---|
72 | public $preserveNulls;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $query;
|
---|
77 | protected $queryParametersType = QueryParameter::class;
|
---|
78 | protected $queryParametersDataType = 'array';
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $requestId;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $timeoutMs;
|
---|
87 | /**
|
---|
88 | * @var bool
|
---|
89 | */
|
---|
90 | public $useLegacySql;
|
---|
91 | /**
|
---|
92 | * @var bool
|
---|
93 | */
|
---|
94 | public $useQueryCache;
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * @param ConnectionProperty[]
|
---|
98 | */
|
---|
99 | public function setConnectionProperties($connectionProperties)
|
---|
100 | {
|
---|
101 | $this->connectionProperties = $connectionProperties;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @return ConnectionProperty[]
|
---|
105 | */
|
---|
106 | public function getConnectionProperties()
|
---|
107 | {
|
---|
108 | return $this->connectionProperties;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @param bool
|
---|
112 | */
|
---|
113 | public function setContinuous($continuous)
|
---|
114 | {
|
---|
115 | $this->continuous = $continuous;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @return bool
|
---|
119 | */
|
---|
120 | public function getContinuous()
|
---|
121 | {
|
---|
122 | return $this->continuous;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @param bool
|
---|
126 | */
|
---|
127 | public function setCreateSession($createSession)
|
---|
128 | {
|
---|
129 | $this->createSession = $createSession;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @return bool
|
---|
133 | */
|
---|
134 | public function getCreateSession()
|
---|
135 | {
|
---|
136 | return $this->createSession;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @param DatasetReference
|
---|
140 | */
|
---|
141 | public function setDefaultDataset(DatasetReference $defaultDataset)
|
---|
142 | {
|
---|
143 | $this->defaultDataset = $defaultDataset;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @return DatasetReference
|
---|
147 | */
|
---|
148 | public function getDefaultDataset()
|
---|
149 | {
|
---|
150 | return $this->defaultDataset;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @param bool
|
---|
154 | */
|
---|
155 | public function setDryRun($dryRun)
|
---|
156 | {
|
---|
157 | $this->dryRun = $dryRun;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @return bool
|
---|
161 | */
|
---|
162 | public function getDryRun()
|
---|
163 | {
|
---|
164 | return $this->dryRun;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @param DataFormatOptions
|
---|
168 | */
|
---|
169 | public function setFormatOptions(DataFormatOptions $formatOptions)
|
---|
170 | {
|
---|
171 | $this->formatOptions = $formatOptions;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @return DataFormatOptions
|
---|
175 | */
|
---|
176 | public function getFormatOptions()
|
---|
177 | {
|
---|
178 | return $this->formatOptions;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @param string
|
---|
182 | */
|
---|
183 | public function setJobCreationMode($jobCreationMode)
|
---|
184 | {
|
---|
185 | $this->jobCreationMode = $jobCreationMode;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @return string
|
---|
189 | */
|
---|
190 | public function getJobCreationMode()
|
---|
191 | {
|
---|
192 | return $this->jobCreationMode;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @param string
|
---|
196 | */
|
---|
197 | public function setKind($kind)
|
---|
198 | {
|
---|
199 | $this->kind = $kind;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @return string
|
---|
203 | */
|
---|
204 | public function getKind()
|
---|
205 | {
|
---|
206 | return $this->kind;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @param string[]
|
---|
210 | */
|
---|
211 | public function setLabels($labels)
|
---|
212 | {
|
---|
213 | $this->labels = $labels;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @return string[]
|
---|
217 | */
|
---|
218 | public function getLabels()
|
---|
219 | {
|
---|
220 | return $this->labels;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @param string
|
---|
224 | */
|
---|
225 | public function setLocation($location)
|
---|
226 | {
|
---|
227 | $this->location = $location;
|
---|
228 | }
|
---|
229 | /**
|
---|
230 | * @return string
|
---|
231 | */
|
---|
232 | public function getLocation()
|
---|
233 | {
|
---|
234 | return $this->location;
|
---|
235 | }
|
---|
236 | /**
|
---|
237 | * @param string
|
---|
238 | */
|
---|
239 | public function setMaxResults($maxResults)
|
---|
240 | {
|
---|
241 | $this->maxResults = $maxResults;
|
---|
242 | }
|
---|
243 | /**
|
---|
244 | * @return string
|
---|
245 | */
|
---|
246 | public function getMaxResults()
|
---|
247 | {
|
---|
248 | return $this->maxResults;
|
---|
249 | }
|
---|
250 | /**
|
---|
251 | * @param string
|
---|
252 | */
|
---|
253 | public function setMaximumBytesBilled($maximumBytesBilled)
|
---|
254 | {
|
---|
255 | $this->maximumBytesBilled = $maximumBytesBilled;
|
---|
256 | }
|
---|
257 | /**
|
---|
258 | * @return string
|
---|
259 | */
|
---|
260 | public function getMaximumBytesBilled()
|
---|
261 | {
|
---|
262 | return $this->maximumBytesBilled;
|
---|
263 | }
|
---|
264 | /**
|
---|
265 | * @param string
|
---|
266 | */
|
---|
267 | public function setParameterMode($parameterMode)
|
---|
268 | {
|
---|
269 | $this->parameterMode = $parameterMode;
|
---|
270 | }
|
---|
271 | /**
|
---|
272 | * @return string
|
---|
273 | */
|
---|
274 | public function getParameterMode()
|
---|
275 | {
|
---|
276 | return $this->parameterMode;
|
---|
277 | }
|
---|
278 | /**
|
---|
279 | * @param bool
|
---|
280 | */
|
---|
281 | public function setPreserveNulls($preserveNulls)
|
---|
282 | {
|
---|
283 | $this->preserveNulls = $preserveNulls;
|
---|
284 | }
|
---|
285 | /**
|
---|
286 | * @return bool
|
---|
287 | */
|
---|
288 | public function getPreserveNulls()
|
---|
289 | {
|
---|
290 | return $this->preserveNulls;
|
---|
291 | }
|
---|
292 | /**
|
---|
293 | * @param string
|
---|
294 | */
|
---|
295 | public function setQuery($query)
|
---|
296 | {
|
---|
297 | $this->query = $query;
|
---|
298 | }
|
---|
299 | /**
|
---|
300 | * @return string
|
---|
301 | */
|
---|
302 | public function getQuery()
|
---|
303 | {
|
---|
304 | return $this->query;
|
---|
305 | }
|
---|
306 | /**
|
---|
307 | * @param QueryParameter[]
|
---|
308 | */
|
---|
309 | public function setQueryParameters($queryParameters)
|
---|
310 | {
|
---|
311 | $this->queryParameters = $queryParameters;
|
---|
312 | }
|
---|
313 | /**
|
---|
314 | * @return QueryParameter[]
|
---|
315 | */
|
---|
316 | public function getQueryParameters()
|
---|
317 | {
|
---|
318 | return $this->queryParameters;
|
---|
319 | }
|
---|
320 | /**
|
---|
321 | * @param string
|
---|
322 | */
|
---|
323 | public function setRequestId($requestId)
|
---|
324 | {
|
---|
325 | $this->requestId = $requestId;
|
---|
326 | }
|
---|
327 | /**
|
---|
328 | * @return string
|
---|
329 | */
|
---|
330 | public function getRequestId()
|
---|
331 | {
|
---|
332 | return $this->requestId;
|
---|
333 | }
|
---|
334 | /**
|
---|
335 | * @param string
|
---|
336 | */
|
---|
337 | public function setTimeoutMs($timeoutMs)
|
---|
338 | {
|
---|
339 | $this->timeoutMs = $timeoutMs;
|
---|
340 | }
|
---|
341 | /**
|
---|
342 | * @return string
|
---|
343 | */
|
---|
344 | public function getTimeoutMs()
|
---|
345 | {
|
---|
346 | return $this->timeoutMs;
|
---|
347 | }
|
---|
348 | /**
|
---|
349 | * @param bool
|
---|
350 | */
|
---|
351 | public function setUseLegacySql($useLegacySql)
|
---|
352 | {
|
---|
353 | $this->useLegacySql = $useLegacySql;
|
---|
354 | }
|
---|
355 | /**
|
---|
356 | * @return bool
|
---|
357 | */
|
---|
358 | public function getUseLegacySql()
|
---|
359 | {
|
---|
360 | return $this->useLegacySql;
|
---|
361 | }
|
---|
362 | /**
|
---|
363 | * @param bool
|
---|
364 | */
|
---|
365 | public function setUseQueryCache($useQueryCache)
|
---|
366 | {
|
---|
367 | $this->useQueryCache = $useQueryCache;
|
---|
368 | }
|
---|
369 | /**
|
---|
370 | * @return bool
|
---|
371 | */
|
---|
372 | public function getUseQueryCache()
|
---|
373 | {
|
---|
374 | return $this->useQueryCache;
|
---|
375 | }
|
---|
376 | }
|
---|
377 |
|
---|
378 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
379 | class_alias(QueryRequest::class, 'Google_Service_Bigquery_QueryRequest');
|
---|