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 JobStatistics2 extends \Google\Collection
21{
22  protected $collection_key = 'undeclaredQueryParameters';
23  protected $biEngineStatisticsType = BiEngineStatistics::class;
24  protected $biEngineStatisticsDataType = '';
25  /**
26   * @var int
27   */
28  public $billingTier;
29  /**
30   * @var bool
31   */
32  public $cacheHit;
33  /**
34   * @var string
35   */
36  public $ddlAffectedRowAccessPolicyCount;
37  protected $ddlDestinationTableType = TableReference::class;
38  protected $ddlDestinationTableDataType = '';
39  /**
40   * @var string
41   */
42  public $ddlOperationPerformed;
43  protected $ddlTargetDatasetType = DatasetReference::class;
44  protected $ddlTargetDatasetDataType = '';
45  protected $ddlTargetRoutineType = RoutineReference::class;
46  protected $ddlTargetRoutineDataType = '';
47  protected $ddlTargetRowAccessPolicyType = RowAccessPolicyReference::class;
48  protected $ddlTargetRowAccessPolicyDataType = '';
49  protected $ddlTargetTableType = TableReference::class;
50  protected $ddlTargetTableDataType = '';
51  protected $dmlStatsType = DmlStatistics::class;
52  protected $dmlStatsDataType = '';
53  /**
54   * @var string
55   */
56  public $estimatedBytesProcessed;
57  protected $mlStatisticsType = MlStatistics::class;
58  protected $mlStatisticsDataType = '';
59  protected $modelTrainingType = BigQueryModelTraining::class;
60  protected $modelTrainingDataType = '';
61  /**
62   * @var int
63   */
64  public $modelTrainingCurrentIteration;
65  /**
66   * @var string
67   */
68  public $modelTrainingExpectedTotalIteration;
69  /**
70   * @var string
71   */
72  public $numDmlAffectedRows;
73  protected $queryPlanType = ExplainQueryStage::class;
74  protected $queryPlanDataType = 'array';
75  protected $referencedRoutinesType = RoutineReference::class;
76  protected $referencedRoutinesDataType = 'array';
77  protected $referencedTablesType = TableReference::class;
78  protected $referencedTablesDataType = 'array';
79  protected $reservationUsageType = JobStatistics2ReservationUsage::class;
80  protected $reservationUsageDataType = 'array';
81  protected $schemaType = TableSchema::class;
82  protected $schemaDataType = '';
83  /**
84   * @var string
85   */
86  public $statementType;
87  protected $timelineType = QueryTimelineSample::class;
88  protected $timelineDataType = 'array';
89  /**
90   * @var string
91   */
92  public $totalBytesBilled;
93  /**
94   * @var string
95   */
96  public $totalBytesProcessed;
97  /**
98   * @var string
99   */
100  public $totalBytesProcessedAccuracy;
101  /**
102   * @var string
103   */
104  public $totalPartitionsProcessed;
105  /**
106   * @var string
107   */
108  public $totalSlotMs;
109  protected $undeclaredQueryParametersType = QueryParameter::class;
110  protected $undeclaredQueryParametersDataType = 'array';
111
112  /**
113   * @param BiEngineStatistics
114   */
115  public function setBiEngineStatistics(BiEngineStatistics $biEngineStatistics)
116  {
117    $this->biEngineStatistics = $biEngineStatistics;
118  }
119  /**
120   * @return BiEngineStatistics
121   */
122  public function getBiEngineStatistics()
123  {
124    return $this->biEngineStatistics;
125  }
126  /**
127   * @param int
128   */
129  public function setBillingTier($billingTier)
130  {
131    $this->billingTier = $billingTier;
132  }
133  /**
134   * @return int
135   */
136  public function getBillingTier()
137  {
138    return $this->billingTier;
139  }
140  /**
141   * @param bool
142   */
143  public function setCacheHit($cacheHit)
144  {
145    $this->cacheHit = $cacheHit;
146  }
147  /**
148   * @return bool
149   */
150  public function getCacheHit()
151  {
152    return $this->cacheHit;
153  }
154  /**
155   * @param string
156   */
157  public function setDdlAffectedRowAccessPolicyCount($ddlAffectedRowAccessPolicyCount)
158  {
159    $this->ddlAffectedRowAccessPolicyCount = $ddlAffectedRowAccessPolicyCount;
160  }
161  /**
162   * @return string
163   */
164  public function getDdlAffectedRowAccessPolicyCount()
165  {
166    return $this->ddlAffectedRowAccessPolicyCount;
167  }
168  /**
169   * @param TableReference
170   */
171  public function setDdlDestinationTable(TableReference $ddlDestinationTable)
172  {
173    $this->ddlDestinationTable = $ddlDestinationTable;
174  }
175  /**
176   * @return TableReference
177   */
178  public function getDdlDestinationTable()
179  {
180    return $this->ddlDestinationTable;
181  }
182  /**
183   * @param string
184   */
185  public function setDdlOperationPerformed($ddlOperationPerformed)
186  {
187    $this->ddlOperationPerformed = $ddlOperationPerformed;
188  }
189  /**
190   * @return string
191   */
192  public function getDdlOperationPerformed()
193  {
194    return $this->ddlOperationPerformed;
195  }
196  /**
197   * @param DatasetReference
198   */
199  public function setDdlTargetDataset(DatasetReference $ddlTargetDataset)
200  {
201    $this->ddlTargetDataset = $ddlTargetDataset;
202  }
203  /**
204   * @return DatasetReference
205   */
206  public function getDdlTargetDataset()
207  {
208    return $this->ddlTargetDataset;
209  }
210  /**
211   * @param RoutineReference
212   */
213  public function setDdlTargetRoutine(RoutineReference $ddlTargetRoutine)
214  {
215    $this->ddlTargetRoutine = $ddlTargetRoutine;
216  }
217  /**
218   * @return RoutineReference
219   */
220  public function getDdlTargetRoutine()
221  {
222    return $this->ddlTargetRoutine;
223  }
224  /**
225   * @param RowAccessPolicyReference
226   */
227  public function setDdlTargetRowAccessPolicy(RowAccessPolicyReference $ddlTargetRowAccessPolicy)
228  {
229    $this->ddlTargetRowAccessPolicy = $ddlTargetRowAccessPolicy;
230  }
231  /**
232   * @return RowAccessPolicyReference
233   */
234  public function getDdlTargetRowAccessPolicy()
235  {
236    return $this->ddlTargetRowAccessPolicy;
237  }
238  /**
239   * @param TableReference
240   */
241  public function setDdlTargetTable(TableReference $ddlTargetTable)
242  {
243    $this->ddlTargetTable = $ddlTargetTable;
244  }
245  /**
246   * @return TableReference
247   */
248  public function getDdlTargetTable()
249  {
250    return $this->ddlTargetTable;
251  }
252  /**
253   * @param DmlStatistics
254   */
255  public function setDmlStats(DmlStatistics $dmlStats)
256  {
257    $this->dmlStats = $dmlStats;
258  }
259  /**
260   * @return DmlStatistics
261   */
262  public function getDmlStats()
263  {
264    return $this->dmlStats;
265  }
266  /**
267   * @param string
268   */
269  public function setEstimatedBytesProcessed($estimatedBytesProcessed)
270  {
271    $this->estimatedBytesProcessed = $estimatedBytesProcessed;
272  }
273  /**
274   * @return string
275   */
276  public function getEstimatedBytesProcessed()
277  {
278    return $this->estimatedBytesProcessed;
279  }
280  /**
281   * @param MlStatistics
282   */
283  public function setMlStatistics(MlStatistics $mlStatistics)
284  {
285    $this->mlStatistics = $mlStatistics;
286  }
287  /**
288   * @return MlStatistics
289   */
290  public function getMlStatistics()
291  {
292    return $this->mlStatistics;
293  }
294  /**
295   * @param BigQueryModelTraining
296   */
297  public function setModelTraining(BigQueryModelTraining $modelTraining)
298  {
299    $this->modelTraining = $modelTraining;
300  }
301  /**
302   * @return BigQueryModelTraining
303   */
304  public function getModelTraining()
305  {
306    return $this->modelTraining;
307  }
308  /**
309   * @param int
310   */
311  public function setModelTrainingCurrentIteration($modelTrainingCurrentIteration)
312  {
313    $this->modelTrainingCurrentIteration = $modelTrainingCurrentIteration;
314  }
315  /**
316   * @return int
317   */
318  public function getModelTrainingCurrentIteration()
319  {
320    return $this->modelTrainingCurrentIteration;
321  }
322  /**
323   * @param string
324   */
325  public function setModelTrainingExpectedTotalIteration($modelTrainingExpectedTotalIteration)
326  {
327    $this->modelTrainingExpectedTotalIteration = $modelTrainingExpectedTotalIteration;
328  }
329  /**
330   * @return string
331   */
332  public function getModelTrainingExpectedTotalIteration()
333  {
334    return $this->modelTrainingExpectedTotalIteration;
335  }
336  /**
337   * @param string
338   */
339  public function setNumDmlAffectedRows($numDmlAffectedRows)
340  {
341    $this->numDmlAffectedRows = $numDmlAffectedRows;
342  }
343  /**
344   * @return string
345   */
346  public function getNumDmlAffectedRows()
347  {
348    return $this->numDmlAffectedRows;
349  }
350  /**
351   * @param ExplainQueryStage[]
352   */
353  public function setQueryPlan($queryPlan)
354  {
355    $this->queryPlan = $queryPlan;
356  }
357  /**
358   * @return ExplainQueryStage[]
359   */
360  public function getQueryPlan()
361  {
362    return $this->queryPlan;
363  }
364  /**
365   * @param RoutineReference[]
366   */
367  public function setReferencedRoutines($referencedRoutines)
368  {
369    $this->referencedRoutines = $referencedRoutines;
370  }
371  /**
372   * @return RoutineReference[]
373   */
374  public function getReferencedRoutines()
375  {
376    return $this->referencedRoutines;
377  }
378  /**
379   * @param TableReference[]
380   */
381  public function setReferencedTables($referencedTables)
382  {
383    $this->referencedTables = $referencedTables;
384  }
385  /**
386   * @return TableReference[]
387   */
388  public function getReferencedTables()
389  {
390    return $this->referencedTables;
391  }
392  /**
393   * @param JobStatistics2ReservationUsage[]
394   */
395  public function setReservationUsage($reservationUsage)
396  {
397    $this->reservationUsage = $reservationUsage;
398  }
399  /**
400   * @return JobStatistics2ReservationUsage[]
401   */
402  public function getReservationUsage()
403  {
404    return $this->reservationUsage;
405  }
406  /**
407   * @param TableSchema
408   */
409  public function setSchema(TableSchema $schema)
410  {
411    $this->schema = $schema;
412  }
413  /**
414   * @return TableSchema
415   */
416  public function getSchema()
417  {
418    return $this->schema;
419  }
420  /**
421   * @param string
422   */
423  public function setStatementType($statementType)
424  {
425    $this->statementType = $statementType;
426  }
427  /**
428   * @return string
429   */
430  public function getStatementType()
431  {
432    return $this->statementType;
433  }
434  /**
435   * @param QueryTimelineSample[]
436   */
437  public function setTimeline($timeline)
438  {
439    $this->timeline = $timeline;
440  }
441  /**
442   * @return QueryTimelineSample[]
443   */
444  public function getTimeline()
445  {
446    return $this->timeline;
447  }
448  /**
449   * @param string
450   */
451  public function setTotalBytesBilled($totalBytesBilled)
452  {
453    $this->totalBytesBilled = $totalBytesBilled;
454  }
455  /**
456   * @return string
457   */
458  public function getTotalBytesBilled()
459  {
460    return $this->totalBytesBilled;
461  }
462  /**
463   * @param string
464   */
465  public function setTotalBytesProcessed($totalBytesProcessed)
466  {
467    $this->totalBytesProcessed = $totalBytesProcessed;
468  }
469  /**
470   * @return string
471   */
472  public function getTotalBytesProcessed()
473  {
474    return $this->totalBytesProcessed;
475  }
476  /**
477   * @param string
478   */
479  public function setTotalBytesProcessedAccuracy($totalBytesProcessedAccuracy)
480  {
481    $this->totalBytesProcessedAccuracy = $totalBytesProcessedAccuracy;
482  }
483  /**
484   * @return string
485   */
486  public function getTotalBytesProcessedAccuracy()
487  {
488    return $this->totalBytesProcessedAccuracy;
489  }
490  /**
491   * @param string
492   */
493  public function setTotalPartitionsProcessed($totalPartitionsProcessed)
494  {
495    $this->totalPartitionsProcessed = $totalPartitionsProcessed;
496  }
497  /**
498   * @return string
499   */
500  public function getTotalPartitionsProcessed()
501  {
502    return $this->totalPartitionsProcessed;
503  }
504  /**
505   * @param string
506   */
507  public function setTotalSlotMs($totalSlotMs)
508  {
509    $this->totalSlotMs = $totalSlotMs;
510  }
511  /**
512   * @return string
513   */
514  public function getTotalSlotMs()
515  {
516    return $this->totalSlotMs;
517  }
518  /**
519   * @param QueryParameter[]
520   */
521  public function setUndeclaredQueryParameters($undeclaredQueryParameters)
522  {
523    $this->undeclaredQueryParameters = $undeclaredQueryParameters;
524  }
525  /**
526   * @return QueryParameter[]
527   */
528  public function getUndeclaredQueryParameters()
529  {
530    return $this->undeclaredQueryParameters;
531  }
532}
533
534// Adding a class alias for backwards compatibility with the previous class name.
535class_alias(JobStatistics2::class, 'Google_Service_Bigquery_JobStatistics2');
536