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 Table extends \Google\Model
21{
22  protected $internal_gapi_mappings = [
23        "numActiveLogicalBytes" => "num_active_logical_bytes",
24        "numActivePhysicalBytes" => "num_active_physical_bytes",
25        "numLongTermLogicalBytes" => "num_long_term_logical_bytes",
26        "numLongTermPhysicalBytes" => "num_long_term_physical_bytes",
27        "numPartitions" => "num_partitions",
28        "numTimeTravelPhysicalBytes" => "num_time_travel_physical_bytes",
29        "numTotalLogicalBytes" => "num_total_logical_bytes",
30        "numTotalPhysicalBytes" => "num_total_physical_bytes",
31  ];
32  protected $cloneDefinitionType = CloneDefinition::class;
33  protected $cloneDefinitionDataType = '';
34  protected $clusteringType = Clustering::class;
35  protected $clusteringDataType = '';
36  /**
37   * @var string
38   */
39  public $creationTime;
40  /**
41   * @var string
42   */
43  public $defaultCollation;
44  /**
45   * @var string
46   */
47  public $description;
48  protected $encryptionConfigurationType = EncryptionConfiguration::class;
49  protected $encryptionConfigurationDataType = '';
50  /**
51   * @var string
52   */
53  public $etag;
54  /**
55   * @var string
56   */
57  public $expirationTime;
58  protected $externalDataConfigurationType = ExternalDataConfiguration::class;
59  protected $externalDataConfigurationDataType = '';
60  /**
61   * @var string
62   */
63  public $friendlyName;
64  /**
65   * @var string
66   */
67  public $id;
68  /**
69   * @var string
70   */
71  public $kind;
72  /**
73   * @var string[]
74   */
75  public $labels;
76  /**
77   * @var string
78   */
79  public $lastModifiedTime;
80  /**
81   * @var string
82   */
83  public $location;
84  protected $materializedViewType = MaterializedViewDefinition::class;
85  protected $materializedViewDataType = '';
86  protected $modelType = ModelDefinition::class;
87  protected $modelDataType = '';
88  /**
89   * @var string
90   */
91  public $numBytes;
92  /**
93   * @var string
94   */
95  public $numLongTermBytes;
96  /**
97   * @var string
98   */
99  public $numPhysicalBytes;
100  /**
101   * @var string
102   */
103  public $numRows;
104  /**
105   * @var string
106   */
107  public $numActiveLogicalBytes;
108  /**
109   * @var string
110   */
111  public $numActivePhysicalBytes;
112  /**
113   * @var string
114   */
115  public $numLongTermLogicalBytes;
116  /**
117   * @var string
118   */
119  public $numLongTermPhysicalBytes;
120  /**
121   * @var string
122   */
123  public $numPartitions;
124  /**
125   * @var string
126   */
127  public $numTimeTravelPhysicalBytes;
128  /**
129   * @var string
130   */
131  public $numTotalLogicalBytes;
132  /**
133   * @var string
134   */
135  public $numTotalPhysicalBytes;
136  protected $rangePartitioningType = RangePartitioning::class;
137  protected $rangePartitioningDataType = '';
138  /**
139   * @var bool
140   */
141  public $requirePartitionFilter;
142  protected $schemaType = TableSchema::class;
143  protected $schemaDataType = '';
144  /**
145   * @var string
146   */
147  public $selfLink;
148  protected $snapshotDefinitionType = SnapshotDefinition::class;
149  protected $snapshotDefinitionDataType = '';
150  protected $streamingBufferType = Streamingbuffer::class;
151  protected $streamingBufferDataType = '';
152  protected $tableReferenceType = TableReference::class;
153  protected $tableReferenceDataType = '';
154  protected $timePartitioningType = TimePartitioning::class;
155  protected $timePartitioningDataType = '';
156  /**
157   * @var string
158   */
159  public $type;
160  protected $viewType = ViewDefinition::class;
161  protected $viewDataType = '';
162
163  /**
164   * @param CloneDefinition
165   */
166  public function setCloneDefinition(CloneDefinition $cloneDefinition)
167  {
168    $this->cloneDefinition = $cloneDefinition;
169  }
170  /**
171   * @return CloneDefinition
172   */
173  public function getCloneDefinition()
174  {
175    return $this->cloneDefinition;
176  }
177  /**
178   * @param Clustering
179   */
180  public function setClustering(Clustering $clustering)
181  {
182    $this->clustering = $clustering;
183  }
184  /**
185   * @return Clustering
186   */
187  public function getClustering()
188  {
189    return $this->clustering;
190  }
191  /**
192   * @param string
193   */
194  public function setCreationTime($creationTime)
195  {
196    $this->creationTime = $creationTime;
197  }
198  /**
199   * @return string
200   */
201  public function getCreationTime()
202  {
203    return $this->creationTime;
204  }
205  /**
206   * @param string
207   */
208  public function setDefaultCollation($defaultCollation)
209  {
210    $this->defaultCollation = $defaultCollation;
211  }
212  /**
213   * @return string
214   */
215  public function getDefaultCollation()
216  {
217    return $this->defaultCollation;
218  }
219  /**
220   * @param string
221   */
222  public function setDescription($description)
223  {
224    $this->description = $description;
225  }
226  /**
227   * @return string
228   */
229  public function getDescription()
230  {
231    return $this->description;
232  }
233  /**
234   * @param EncryptionConfiguration
235   */
236  public function setEncryptionConfiguration(EncryptionConfiguration $encryptionConfiguration)
237  {
238    $this->encryptionConfiguration = $encryptionConfiguration;
239  }
240  /**
241   * @return EncryptionConfiguration
242   */
243  public function getEncryptionConfiguration()
244  {
245    return $this->encryptionConfiguration;
246  }
247  /**
248   * @param string
249   */
250  public function setEtag($etag)
251  {
252    $this->etag = $etag;
253  }
254  /**
255   * @return string
256   */
257  public function getEtag()
258  {
259    return $this->etag;
260  }
261  /**
262   * @param string
263   */
264  public function setExpirationTime($expirationTime)
265  {
266    $this->expirationTime = $expirationTime;
267  }
268  /**
269   * @return string
270   */
271  public function getExpirationTime()
272  {
273    return $this->expirationTime;
274  }
275  /**
276   * @param ExternalDataConfiguration
277   */
278  public function setExternalDataConfiguration(ExternalDataConfiguration $externalDataConfiguration)
279  {
280    $this->externalDataConfiguration = $externalDataConfiguration;
281  }
282  /**
283   * @return ExternalDataConfiguration
284   */
285  public function getExternalDataConfiguration()
286  {
287    return $this->externalDataConfiguration;
288  }
289  /**
290   * @param string
291   */
292  public function setFriendlyName($friendlyName)
293  {
294    $this->friendlyName = $friendlyName;
295  }
296  /**
297   * @return string
298   */
299  public function getFriendlyName()
300  {
301    return $this->friendlyName;
302  }
303  /**
304   * @param string
305   */
306  public function setId($id)
307  {
308    $this->id = $id;
309  }
310  /**
311   * @return string
312   */
313  public function getId()
314  {
315    return $this->id;
316  }
317  /**
318   * @param string
319   */
320  public function setKind($kind)
321  {
322    $this->kind = $kind;
323  }
324  /**
325   * @return string
326   */
327  public function getKind()
328  {
329    return $this->kind;
330  }
331  /**
332   * @param string[]
333   */
334  public function setLabels($labels)
335  {
336    $this->labels = $labels;
337  }
338  /**
339   * @return string[]
340   */
341  public function getLabels()
342  {
343    return $this->labels;
344  }
345  /**
346   * @param string
347   */
348  public function setLastModifiedTime($lastModifiedTime)
349  {
350    $this->lastModifiedTime = $lastModifiedTime;
351  }
352  /**
353   * @return string
354   */
355  public function getLastModifiedTime()
356  {
357    return $this->lastModifiedTime;
358  }
359  /**
360   * @param string
361   */
362  public function setLocation($location)
363  {
364    $this->location = $location;
365  }
366  /**
367   * @return string
368   */
369  public function getLocation()
370  {
371    return $this->location;
372  }
373  /**
374   * @param MaterializedViewDefinition
375   */
376  public function setMaterializedView(MaterializedViewDefinition $materializedView)
377  {
378    $this->materializedView = $materializedView;
379  }
380  /**
381   * @return MaterializedViewDefinition
382   */
383  public function getMaterializedView()
384  {
385    return $this->materializedView;
386  }
387  /**
388   * @param ModelDefinition
389   */
390  public function setModel(ModelDefinition $model)
391  {
392    $this->model = $model;
393  }
394  /**
395   * @return ModelDefinition
396   */
397  public function getModel()
398  {
399    return $this->model;
400  }
401  /**
402   * @param string
403   */
404  public function setNumBytes($numBytes)
405  {
406    $this->numBytes = $numBytes;
407  }
408  /**
409   * @return string
410   */
411  public function getNumBytes()
412  {
413    return $this->numBytes;
414  }
415  /**
416   * @param string
417   */
418  public function setNumLongTermBytes($numLongTermBytes)
419  {
420    $this->numLongTermBytes = $numLongTermBytes;
421  }
422  /**
423   * @return string
424   */
425  public function getNumLongTermBytes()
426  {
427    return $this->numLongTermBytes;
428  }
429  /**
430   * @param string
431   */
432  public function setNumPhysicalBytes($numPhysicalBytes)
433  {
434    $this->numPhysicalBytes = $numPhysicalBytes;
435  }
436  /**
437   * @return string
438   */
439  public function getNumPhysicalBytes()
440  {
441    return $this->numPhysicalBytes;
442  }
443  /**
444   * @param string
445   */
446  public function setNumRows($numRows)
447  {
448    $this->numRows = $numRows;
449  }
450  /**
451   * @return string
452   */
453  public function getNumRows()
454  {
455    return $this->numRows;
456  }
457  /**
458   * @param string
459   */
460  public function setNumActiveLogicalBytes($numActiveLogicalBytes)
461  {
462    $this->numActiveLogicalBytes = $numActiveLogicalBytes;
463  }
464  /**
465   * @return string
466   */
467  public function getNumActiveLogicalBytes()
468  {
469    return $this->numActiveLogicalBytes;
470  }
471  /**
472   * @param string
473   */
474  public function setNumActivePhysicalBytes($numActivePhysicalBytes)
475  {
476    $this->numActivePhysicalBytes = $numActivePhysicalBytes;
477  }
478  /**
479   * @return string
480   */
481  public function getNumActivePhysicalBytes()
482  {
483    return $this->numActivePhysicalBytes;
484  }
485  /**
486   * @param string
487   */
488  public function setNumLongTermLogicalBytes($numLongTermLogicalBytes)
489  {
490    $this->numLongTermLogicalBytes = $numLongTermLogicalBytes;
491  }
492  /**
493   * @return string
494   */
495  public function getNumLongTermLogicalBytes()
496  {
497    return $this->numLongTermLogicalBytes;
498  }
499  /**
500   * @param string
501   */
502  public function setNumLongTermPhysicalBytes($numLongTermPhysicalBytes)
503  {
504    $this->numLongTermPhysicalBytes = $numLongTermPhysicalBytes;
505  }
506  /**
507   * @return string
508   */
509  public function getNumLongTermPhysicalBytes()
510  {
511    return $this->numLongTermPhysicalBytes;
512  }
513  /**
514   * @param string
515   */
516  public function setNumPartitions($numPartitions)
517  {
518    $this->numPartitions = $numPartitions;
519  }
520  /**
521   * @return string
522   */
523  public function getNumPartitions()
524  {
525    return $this->numPartitions;
526  }
527  /**
528   * @param string
529   */
530  public function setNumTimeTravelPhysicalBytes($numTimeTravelPhysicalBytes)
531  {
532    $this->numTimeTravelPhysicalBytes = $numTimeTravelPhysicalBytes;
533  }
534  /**
535   * @return string
536   */
537  public function getNumTimeTravelPhysicalBytes()
538  {
539    return $this->numTimeTravelPhysicalBytes;
540  }
541  /**
542   * @param string
543   */
544  public function setNumTotalLogicalBytes($numTotalLogicalBytes)
545  {
546    $this->numTotalLogicalBytes = $numTotalLogicalBytes;
547  }
548  /**
549   * @return string
550   */
551  public function getNumTotalLogicalBytes()
552  {
553    return $this->numTotalLogicalBytes;
554  }
555  /**
556   * @param string
557   */
558  public function setNumTotalPhysicalBytes($numTotalPhysicalBytes)
559  {
560    $this->numTotalPhysicalBytes = $numTotalPhysicalBytes;
561  }
562  /**
563   * @return string
564   */
565  public function getNumTotalPhysicalBytes()
566  {
567    return $this->numTotalPhysicalBytes;
568  }
569  /**
570   * @param RangePartitioning
571   */
572  public function setRangePartitioning(RangePartitioning $rangePartitioning)
573  {
574    $this->rangePartitioning = $rangePartitioning;
575  }
576  /**
577   * @return RangePartitioning
578   */
579  public function getRangePartitioning()
580  {
581    return $this->rangePartitioning;
582  }
583  /**
584   * @param bool
585   */
586  public function setRequirePartitionFilter($requirePartitionFilter)
587  {
588    $this->requirePartitionFilter = $requirePartitionFilter;
589  }
590  /**
591   * @return bool
592   */
593  public function getRequirePartitionFilter()
594  {
595    return $this->requirePartitionFilter;
596  }
597  /**
598   * @param TableSchema
599   */
600  public function setSchema(TableSchema $schema)
601  {
602    $this->schema = $schema;
603  }
604  /**
605   * @return TableSchema
606   */
607  public function getSchema()
608  {
609    return $this->schema;
610  }
611  /**
612   * @param string
613   */
614  public function setSelfLink($selfLink)
615  {
616    $this->selfLink = $selfLink;
617  }
618  /**
619   * @return string
620   */
621  public function getSelfLink()
622  {
623    return $this->selfLink;
624  }
625  /**
626   * @param SnapshotDefinition
627   */
628  public function setSnapshotDefinition(SnapshotDefinition $snapshotDefinition)
629  {
630    $this->snapshotDefinition = $snapshotDefinition;
631  }
632  /**
633   * @return SnapshotDefinition
634   */
635  public function getSnapshotDefinition()
636  {
637    return $this->snapshotDefinition;
638  }
639  /**
640   * @param Streamingbuffer
641   */
642  public function setStreamingBuffer(Streamingbuffer $streamingBuffer)
643  {
644    $this->streamingBuffer = $streamingBuffer;
645  }
646  /**
647   * @return Streamingbuffer
648   */
649  public function getStreamingBuffer()
650  {
651    return $this->streamingBuffer;
652  }
653  /**
654   * @param TableReference
655   */
656  public function setTableReference(TableReference $tableReference)
657  {
658    $this->tableReference = $tableReference;
659  }
660  /**
661   * @return TableReference
662   */
663  public function getTableReference()
664  {
665    return $this->tableReference;
666  }
667  /**
668   * @param TimePartitioning
669   */
670  public function setTimePartitioning(TimePartitioning $timePartitioning)
671  {
672    $this->timePartitioning = $timePartitioning;
673  }
674  /**
675   * @return TimePartitioning
676   */
677  public function getTimePartitioning()
678  {
679    return $this->timePartitioning;
680  }
681  /**
682   * @param string
683   */
684  public function setType($type)
685  {
686    $this->type = $type;
687  }
688  /**
689   * @return string
690   */
691  public function getType()
692  {
693    return $this->type;
694  }
695  /**
696   * @param ViewDefinition
697   */
698  public function setView(ViewDefinition $view)
699  {
700    $this->view = $view;
701  }
702  /**
703   * @return ViewDefinition
704   */
705  public function getView()
706  {
707    return $this->view;
708  }
709}
710
711// Adding a class alias for backwards compatibility with the previous class name.
712class_alias(Table::class, 'Google_Service_Bigquery_Table');
713