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 PivotGroup extends \Google\Collection
21{
22  protected $collection_key = 'valueMetadata';
23  protected $dataSourceColumnReferenceType = DataSourceColumnReference::class;
24  protected $dataSourceColumnReferenceDataType = '';
25  protected $groupLimitType = PivotGroupLimit::class;
26  protected $groupLimitDataType = '';
27  protected $groupRuleType = PivotGroupRule::class;
28  protected $groupRuleDataType = '';
29  /**
30   * @var string
31   */
32  public $label;
33  /**
34   * @var bool
35   */
36  public $repeatHeadings;
37  /**
38   * @var bool
39   */
40  public $showTotals;
41  /**
42   * @var string
43   */
44  public $sortOrder;
45  /**
46   * @var int
47   */
48  public $sourceColumnOffset;
49  protected $valueBucketType = PivotGroupSortValueBucket::class;
50  protected $valueBucketDataType = '';
51  protected $valueMetadataType = PivotGroupValueMetadata::class;
52  protected $valueMetadataDataType = 'array';
53
54  /**
55   * @param DataSourceColumnReference
56   */
57  public function setDataSourceColumnReference(DataSourceColumnReference $dataSourceColumnReference)
58  {
59    $this->dataSourceColumnReference = $dataSourceColumnReference;
60  }
61  /**
62   * @return DataSourceColumnReference
63   */
64  public function getDataSourceColumnReference()
65  {
66    return $this->dataSourceColumnReference;
67  }
68  /**
69   * @param PivotGroupLimit
70   */
71  public function setGroupLimit(PivotGroupLimit $groupLimit)
72  {
73    $this->groupLimit = $groupLimit;
74  }
75  /**
76   * @return PivotGroupLimit
77   */
78  public function getGroupLimit()
79  {
80    return $this->groupLimit;
81  }
82  /**
83   * @param PivotGroupRule
84   */
85  public function setGroupRule(PivotGroupRule $groupRule)
86  {
87    $this->groupRule = $groupRule;
88  }
89  /**
90   * @return PivotGroupRule
91   */
92  public function getGroupRule()
93  {
94    return $this->groupRule;
95  }
96  /**
97   * @param string
98   */
99  public function setLabel($label)
100  {
101    $this->label = $label;
102  }
103  /**
104   * @return string
105   */
106  public function getLabel()
107  {
108    return $this->label;
109  }
110  /**
111   * @param bool
112   */
113  public function setRepeatHeadings($repeatHeadings)
114  {
115    $this->repeatHeadings = $repeatHeadings;
116  }
117  /**
118   * @return bool
119   */
120  public function getRepeatHeadings()
121  {
122    return $this->repeatHeadings;
123  }
124  /**
125   * @param bool
126   */
127  public function setShowTotals($showTotals)
128  {
129    $this->showTotals = $showTotals;
130  }
131  /**
132   * @return bool
133   */
134  public function getShowTotals()
135  {
136    return $this->showTotals;
137  }
138  /**
139   * @param string
140   */
141  public function setSortOrder($sortOrder)
142  {
143    $this->sortOrder = $sortOrder;
144  }
145  /**
146   * @return string
147   */
148  public function getSortOrder()
149  {
150    return $this->sortOrder;
151  }
152  /**
153   * @param int
154   */
155  public function setSourceColumnOffset($sourceColumnOffset)
156  {
157    $this->sourceColumnOffset = $sourceColumnOffset;
158  }
159  /**
160   * @return int
161   */
162  public function getSourceColumnOffset()
163  {
164    return $this->sourceColumnOffset;
165  }
166  /**
167   * @param PivotGroupSortValueBucket
168   */
169  public function setValueBucket(PivotGroupSortValueBucket $valueBucket)
170  {
171    $this->valueBucket = $valueBucket;
172  }
173  /**
174   * @return PivotGroupSortValueBucket
175   */
176  public function getValueBucket()
177  {
178    return $this->valueBucket;
179  }
180  /**
181   * @param PivotGroupValueMetadata[]
182   */
183  public function setValueMetadata($valueMetadata)
184  {
185    $this->valueMetadata = $valueMetadata;
186  }
187  /**
188   * @return PivotGroupValueMetadata[]
189   */
190  public function getValueMetadata()
191  {
192    return $this->valueMetadata;
193  }
194}
195
196// Adding a class alias for backwards compatibility with the previous class name.
197class_alias(PivotGroup::class, 'Google_Service_Sheets_PivotGroup');
198