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\AnalyticsReporting;
19
20class ReportRequest extends \Google\Collection
21{
22  protected $collection_key = 'segments';
23  protected $cohortGroupType = CohortGroup::class;
24  protected $cohortGroupDataType = '';
25  protected $dateRangesType = DateRange::class;
26  protected $dateRangesDataType = 'array';
27  protected $dimensionFilterClausesType = DimensionFilterClause::class;
28  protected $dimensionFilterClausesDataType = 'array';
29  protected $dimensionsType = Dimension::class;
30  protected $dimensionsDataType = 'array';
31  /**
32   * @var string
33   */
34  public $filtersExpression;
35  /**
36   * @var bool
37   */
38  public $hideTotals;
39  /**
40   * @var bool
41   */
42  public $hideValueRanges;
43  /**
44   * @var bool
45   */
46  public $includeEmptyRows;
47  protected $metricFilterClausesType = MetricFilterClause::class;
48  protected $metricFilterClausesDataType = 'array';
49  protected $metricsType = Metric::class;
50  protected $metricsDataType = 'array';
51  protected $orderBysType = OrderBy::class;
52  protected $orderBysDataType = 'array';
53  /**
54   * @var int
55   */
56  public $pageSize;
57  /**
58   * @var string
59   */
60  public $pageToken;
61  protected $pivotsType = Pivot::class;
62  protected $pivotsDataType = 'array';
63  /**
64   * @var string
65   */
66  public $samplingLevel;
67  protected $segmentsType = Segment::class;
68  protected $segmentsDataType = 'array';
69  /**
70   * @var string
71   */
72  public $viewId;
73
74  /**
75   * @param CohortGroup
76   */
77  public function setCohortGroup(CohortGroup $cohortGroup)
78  {
79    $this->cohortGroup = $cohortGroup;
80  }
81  /**
82   * @return CohortGroup
83   */
84  public function getCohortGroup()
85  {
86    return $this->cohortGroup;
87  }
88  /**
89   * @param DateRange[]
90   */
91  public function setDateRanges($dateRanges)
92  {
93    $this->dateRanges = $dateRanges;
94  }
95  /**
96   * @return DateRange[]
97   */
98  public function getDateRanges()
99  {
100    return $this->dateRanges;
101  }
102  /**
103   * @param DimensionFilterClause[]
104   */
105  public function setDimensionFilterClauses($dimensionFilterClauses)
106  {
107    $this->dimensionFilterClauses = $dimensionFilterClauses;
108  }
109  /**
110   * @return DimensionFilterClause[]
111   */
112  public function getDimensionFilterClauses()
113  {
114    return $this->dimensionFilterClauses;
115  }
116  /**
117   * @param Dimension[]
118   */
119  public function setDimensions($dimensions)
120  {
121    $this->dimensions = $dimensions;
122  }
123  /**
124   * @return Dimension[]
125   */
126  public function getDimensions()
127  {
128    return $this->dimensions;
129  }
130  /**
131   * @param string
132   */
133  public function setFiltersExpression($filtersExpression)
134  {
135    $this->filtersExpression = $filtersExpression;
136  }
137  /**
138   * @return string
139   */
140  public function getFiltersExpression()
141  {
142    return $this->filtersExpression;
143  }
144  /**
145   * @param bool
146   */
147  public function setHideTotals($hideTotals)
148  {
149    $this->hideTotals = $hideTotals;
150  }
151  /**
152   * @return bool
153   */
154  public function getHideTotals()
155  {
156    return $this->hideTotals;
157  }
158  /**
159   * @param bool
160   */
161  public function setHideValueRanges($hideValueRanges)
162  {
163    $this->hideValueRanges = $hideValueRanges;
164  }
165  /**
166   * @return bool
167   */
168  public function getHideValueRanges()
169  {
170    return $this->hideValueRanges;
171  }
172  /**
173   * @param bool
174   */
175  public function setIncludeEmptyRows($includeEmptyRows)
176  {
177    $this->includeEmptyRows = $includeEmptyRows;
178  }
179  /**
180   * @return bool
181   */
182  public function getIncludeEmptyRows()
183  {
184    return $this->includeEmptyRows;
185  }
186  /**
187   * @param MetricFilterClause[]
188   */
189  public function setMetricFilterClauses($metricFilterClauses)
190  {
191    $this->metricFilterClauses = $metricFilterClauses;
192  }
193  /**
194   * @return MetricFilterClause[]
195   */
196  public function getMetricFilterClauses()
197  {
198    return $this->metricFilterClauses;
199  }
200  /**
201   * @param Metric[]
202   */
203  public function setMetrics($metrics)
204  {
205    $this->metrics = $metrics;
206  }
207  /**
208   * @return Metric[]
209   */
210  public function getMetrics()
211  {
212    return $this->metrics;
213  }
214  /**
215   * @param OrderBy[]
216   */
217  public function setOrderBys($orderBys)
218  {
219    $this->orderBys = $orderBys;
220  }
221  /**
222   * @return OrderBy[]
223   */
224  public function getOrderBys()
225  {
226    return $this->orderBys;
227  }
228  /**
229   * @param int
230   */
231  public function setPageSize($pageSize)
232  {
233    $this->pageSize = $pageSize;
234  }
235  /**
236   * @return int
237   */
238  public function getPageSize()
239  {
240    return $this->pageSize;
241  }
242  /**
243   * @param string
244   */
245  public function setPageToken($pageToken)
246  {
247    $this->pageToken = $pageToken;
248  }
249  /**
250   * @return string
251   */
252  public function getPageToken()
253  {
254    return $this->pageToken;
255  }
256  /**
257   * @param Pivot[]
258   */
259  public function setPivots($pivots)
260  {
261    $this->pivots = $pivots;
262  }
263  /**
264   * @return Pivot[]
265   */
266  public function getPivots()
267  {
268    return $this->pivots;
269  }
270  /**
271   * @param string
272   */
273  public function setSamplingLevel($samplingLevel)
274  {
275    $this->samplingLevel = $samplingLevel;
276  }
277  /**
278   * @return string
279   */
280  public function getSamplingLevel()
281  {
282    return $this->samplingLevel;
283  }
284  /**
285   * @param Segment[]
286   */
287  public function setSegments($segments)
288  {
289    $this->segments = $segments;
290  }
291  /**
292   * @return Segment[]
293   */
294  public function getSegments()
295  {
296    return $this->segments;
297  }
298  /**
299   * @param string
300   */
301  public function setViewId($viewId)
302  {
303    $this->viewId = $viewId;
304  }
305  /**
306   * @return string
307   */
308  public function getViewId()
309  {
310    return $this->viewId;
311  }
312}
313
314// Adding a class alias for backwards compatibility with the previous class name.
315class_alias(ReportRequest::class, 'Google_Service_AnalyticsReporting_ReportRequest');
316