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 PivotTable extends \Google\Collection
21{
22  protected $collection_key = 'values';
23  protected $columnsType = PivotGroup::class;
24  protected $columnsDataType = 'array';
25  protected $criteriaType = PivotFilterCriteria::class;
26  protected $criteriaDataType = 'map';
27  protected $dataExecutionStatusType = DataExecutionStatus::class;
28  protected $dataExecutionStatusDataType = '';
29  /**
30   * @var string
31   */
32  public $dataSourceId;
33  protected $filterSpecsType = PivotFilterSpec::class;
34  protected $filterSpecsDataType = 'array';
35  protected $rowsType = PivotGroup::class;
36  protected $rowsDataType = 'array';
37  protected $sourceType = GridRange::class;
38  protected $sourceDataType = '';
39  /**
40   * @var string
41   */
42  public $valueLayout;
43  protected $valuesType = PivotValue::class;
44  protected $valuesDataType = 'array';
45
46  /**
47   * @param PivotGroup[]
48   */
49  public function setColumns($columns)
50  {
51    $this->columns = $columns;
52  }
53  /**
54   * @return PivotGroup[]
55   */
56  public function getColumns()
57  {
58    return $this->columns;
59  }
60  /**
61   * @param PivotFilterCriteria[]
62   */
63  public function setCriteria($criteria)
64  {
65    $this->criteria = $criteria;
66  }
67  /**
68   * @return PivotFilterCriteria[]
69   */
70  public function getCriteria()
71  {
72    return $this->criteria;
73  }
74  /**
75   * @param DataExecutionStatus
76   */
77  public function setDataExecutionStatus(DataExecutionStatus $dataExecutionStatus)
78  {
79    $this->dataExecutionStatus = $dataExecutionStatus;
80  }
81  /**
82   * @return DataExecutionStatus
83   */
84  public function getDataExecutionStatus()
85  {
86    return $this->dataExecutionStatus;
87  }
88  /**
89   * @param string
90   */
91  public function setDataSourceId($dataSourceId)
92  {
93    $this->dataSourceId = $dataSourceId;
94  }
95  /**
96   * @return string
97   */
98  public function getDataSourceId()
99  {
100    return $this->dataSourceId;
101  }
102  /**
103   * @param PivotFilterSpec[]
104   */
105  public function setFilterSpecs($filterSpecs)
106  {
107    $this->filterSpecs = $filterSpecs;
108  }
109  /**
110   * @return PivotFilterSpec[]
111   */
112  public function getFilterSpecs()
113  {
114    return $this->filterSpecs;
115  }
116  /**
117   * @param PivotGroup[]
118   */
119  public function setRows($rows)
120  {
121    $this->rows = $rows;
122  }
123  /**
124   * @return PivotGroup[]
125   */
126  public function getRows()
127  {
128    return $this->rows;
129  }
130  /**
131   * @param GridRange
132   */
133  public function setSource(GridRange $source)
134  {
135    $this->source = $source;
136  }
137  /**
138   * @return GridRange
139   */
140  public function getSource()
141  {
142    return $this->source;
143  }
144  /**
145   * @param string
146   */
147  public function setValueLayout($valueLayout)
148  {
149    $this->valueLayout = $valueLayout;
150  }
151  /**
152   * @return string
153   */
154  public function getValueLayout()
155  {
156    return $this->valueLayout;
157  }
158  /**
159   * @param PivotValue[]
160   */
161  public function setValues($values)
162  {
163    $this->values = $values;
164  }
165  /**
166   * @return PivotValue[]
167   */
168  public function getValues()
169  {
170    return $this->values;
171  }
172}
173
174// Adding a class alias for backwards compatibility with the previous class name.
175class_alias(PivotTable::class, 'Google_Service_Sheets_PivotTable');
176