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\Sheets; 19 20class DataSourceTable extends \Google\Collection 21{ 22 protected $collection_key = 'sortSpecs'; 23 /** 24 * @var string 25 */ 26 public $columnSelectionType; 27 protected $columnsType = DataSourceColumnReference::class; 28 protected $columnsDataType = 'array'; 29 protected $dataExecutionStatusType = DataExecutionStatus::class; 30 protected $dataExecutionStatusDataType = ''; 31 /** 32 * @var string 33 */ 34 public $dataSourceId; 35 protected $filterSpecsType = FilterSpec::class; 36 protected $filterSpecsDataType = 'array'; 37 /** 38 * @var int 39 */ 40 public $rowLimit; 41 protected $sortSpecsType = SortSpec::class; 42 protected $sortSpecsDataType = 'array'; 43 44 /** 45 * @param string 46 */ 47 public function setColumnSelectionType($columnSelectionType) 48 { 49 $this->columnSelectionType = $columnSelectionType; 50 } 51 /** 52 * @return string 53 */ 54 public function getColumnSelectionType() 55 { 56 return $this->columnSelectionType; 57 } 58 /** 59 * @param DataSourceColumnReference[] 60 */ 61 public function setColumns($columns) 62 { 63 $this->columns = $columns; 64 } 65 /** 66 * @return DataSourceColumnReference[] 67 */ 68 public function getColumns() 69 { 70 return $this->columns; 71 } 72 /** 73 * @param DataExecutionStatus 74 */ 75 public function setDataExecutionStatus(DataExecutionStatus $dataExecutionStatus) 76 { 77 $this->dataExecutionStatus = $dataExecutionStatus; 78 } 79 /** 80 * @return DataExecutionStatus 81 */ 82 public function getDataExecutionStatus() 83 { 84 return $this->dataExecutionStatus; 85 } 86 /** 87 * @param string 88 */ 89 public function setDataSourceId($dataSourceId) 90 { 91 $this->dataSourceId = $dataSourceId; 92 } 93 /** 94 * @return string 95 */ 96 public function getDataSourceId() 97 { 98 return $this->dataSourceId; 99 } 100 /** 101 * @param FilterSpec[] 102 */ 103 public function setFilterSpecs($filterSpecs) 104 { 105 $this->filterSpecs = $filterSpecs; 106 } 107 /** 108 * @return FilterSpec[] 109 */ 110 public function getFilterSpecs() 111 { 112 return $this->filterSpecs; 113 } 114 /** 115 * @param int 116 */ 117 public function setRowLimit($rowLimit) 118 { 119 $this->rowLimit = $rowLimit; 120 } 121 /** 122 * @return int 123 */ 124 public function getRowLimit() 125 { 126 return $this->rowLimit; 127 } 128 /** 129 * @param SortSpec[] 130 */ 131 public function setSortSpecs($sortSpecs) 132 { 133 $this->sortSpecs = $sortSpecs; 134 } 135 /** 136 * @return SortSpec[] 137 */ 138 public function getSortSpecs() 139 { 140 return $this->sortSpecs; 141 } 142} 143 144// Adding a class alias for backwards compatibility with the previous class name. 145class_alias(DataSourceTable::class, 'Google_Service_Sheets_DataSourceTable'); 146