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 QueryResponse extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'rows';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $cacheHit;
|
---|
27 | protected $dmlStatsType = DmlStatistics::class;
|
---|
28 | protected $dmlStatsDataType = '';
|
---|
29 | protected $errorsType = ErrorProto::class;
|
---|
30 | protected $errorsDataType = 'array';
|
---|
31 | /**
|
---|
32 | * @var bool
|
---|
33 | */
|
---|
34 | public $jobComplete;
|
---|
35 | protected $jobCreationReasonType = JobCreationReason::class;
|
---|
36 | protected $jobCreationReasonDataType = '';
|
---|
37 | protected $jobReferenceType = JobReference::class;
|
---|
38 | protected $jobReferenceDataType = '';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $kind;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $numDmlAffectedRows;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $pageToken;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $queryId;
|
---|
55 | protected $rowsType = TableRow::class;
|
---|
56 | protected $rowsDataType = 'array';
|
---|
57 | protected $schemaType = TableSchema::class;
|
---|
58 | protected $schemaDataType = '';
|
---|
59 | protected $sessionInfoType = SessionInfo::class;
|
---|
60 | protected $sessionInfoDataType = '';
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $totalBytesProcessed;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $totalRows;
|
---|
69 |
|
---|
70 | /**
|
---|
71 | * @param bool
|
---|
72 | */
|
---|
73 | public function setCacheHit($cacheHit)
|
---|
74 | {
|
---|
75 | $this->cacheHit = $cacheHit;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @return bool
|
---|
79 | */
|
---|
80 | public function getCacheHit()
|
---|
81 | {
|
---|
82 | return $this->cacheHit;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @param DmlStatistics
|
---|
86 | */
|
---|
87 | public function setDmlStats(DmlStatistics $dmlStats)
|
---|
88 | {
|
---|
89 | $this->dmlStats = $dmlStats;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @return DmlStatistics
|
---|
93 | */
|
---|
94 | public function getDmlStats()
|
---|
95 | {
|
---|
96 | return $this->dmlStats;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @param ErrorProto[]
|
---|
100 | */
|
---|
101 | public function setErrors($errors)
|
---|
102 | {
|
---|
103 | $this->errors = $errors;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return ErrorProto[]
|
---|
107 | */
|
---|
108 | public function getErrors()
|
---|
109 | {
|
---|
110 | return $this->errors;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param bool
|
---|
114 | */
|
---|
115 | public function setJobComplete($jobComplete)
|
---|
116 | {
|
---|
117 | $this->jobComplete = $jobComplete;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return bool
|
---|
121 | */
|
---|
122 | public function getJobComplete()
|
---|
123 | {
|
---|
124 | return $this->jobComplete;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param JobCreationReason
|
---|
128 | */
|
---|
129 | public function setJobCreationReason(JobCreationReason $jobCreationReason)
|
---|
130 | {
|
---|
131 | $this->jobCreationReason = $jobCreationReason;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return JobCreationReason
|
---|
135 | */
|
---|
136 | public function getJobCreationReason()
|
---|
137 | {
|
---|
138 | return $this->jobCreationReason;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param JobReference
|
---|
142 | */
|
---|
143 | public function setJobReference(JobReference $jobReference)
|
---|
144 | {
|
---|
145 | $this->jobReference = $jobReference;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return JobReference
|
---|
149 | */
|
---|
150 | public function getJobReference()
|
---|
151 | {
|
---|
152 | return $this->jobReference;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param string
|
---|
156 | */
|
---|
157 | public function setKind($kind)
|
---|
158 | {
|
---|
159 | $this->kind = $kind;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return string
|
---|
163 | */
|
---|
164 | public function getKind()
|
---|
165 | {
|
---|
166 | return $this->kind;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param string
|
---|
170 | */
|
---|
171 | public function setNumDmlAffectedRows($numDmlAffectedRows)
|
---|
172 | {
|
---|
173 | $this->numDmlAffectedRows = $numDmlAffectedRows;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return string
|
---|
177 | */
|
---|
178 | public function getNumDmlAffectedRows()
|
---|
179 | {
|
---|
180 | return $this->numDmlAffectedRows;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param string
|
---|
184 | */
|
---|
185 | public function setPageToken($pageToken)
|
---|
186 | {
|
---|
187 | $this->pageToken = $pageToken;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return string
|
---|
191 | */
|
---|
192 | public function getPageToken()
|
---|
193 | {
|
---|
194 | return $this->pageToken;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param string
|
---|
198 | */
|
---|
199 | public function setQueryId($queryId)
|
---|
200 | {
|
---|
201 | $this->queryId = $queryId;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return string
|
---|
205 | */
|
---|
206 | public function getQueryId()
|
---|
207 | {
|
---|
208 | return $this->queryId;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param TableRow[]
|
---|
212 | */
|
---|
213 | public function setRows($rows)
|
---|
214 | {
|
---|
215 | $this->rows = $rows;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return TableRow[]
|
---|
219 | */
|
---|
220 | public function getRows()
|
---|
221 | {
|
---|
222 | return $this->rows;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param TableSchema
|
---|
226 | */
|
---|
227 | public function setSchema(TableSchema $schema)
|
---|
228 | {
|
---|
229 | $this->schema = $schema;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return TableSchema
|
---|
233 | */
|
---|
234 | public function getSchema()
|
---|
235 | {
|
---|
236 | return $this->schema;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param SessionInfo
|
---|
240 | */
|
---|
241 | public function setSessionInfo(SessionInfo $sessionInfo)
|
---|
242 | {
|
---|
243 | $this->sessionInfo = $sessionInfo;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return SessionInfo
|
---|
247 | */
|
---|
248 | public function getSessionInfo()
|
---|
249 | {
|
---|
250 | return $this->sessionInfo;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string
|
---|
254 | */
|
---|
255 | public function setTotalBytesProcessed($totalBytesProcessed)
|
---|
256 | {
|
---|
257 | $this->totalBytesProcessed = $totalBytesProcessed;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string
|
---|
261 | */
|
---|
262 | public function getTotalBytesProcessed()
|
---|
263 | {
|
---|
264 | return $this->totalBytesProcessed;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param string
|
---|
268 | */
|
---|
269 | public function setTotalRows($totalRows)
|
---|
270 | {
|
---|
271 | $this->totalRows = $totalRows;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return string
|
---|
275 | */
|
---|
276 | public function getTotalRows()
|
---|
277 | {
|
---|
278 | return $this->totalRows;
|
---|
279 | }
|
---|
280 | }
|
---|
281 |
|
---|
282 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
283 | class_alias(QueryResponse::class, 'Google_Service_Bigquery_QueryResponse');
|
---|