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