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\AnalyticsData; 19 20class RunPivotReportRequest extends \Google\Collection 21{ 22 protected $collection_key = 'pivots'; 23 protected $cohortSpecType = CohortSpec::class; 24 protected $cohortSpecDataType = ''; 25 /** 26 * @var string 27 */ 28 public $currencyCode; 29 protected $dateRangesType = DateRange::class; 30 protected $dateRangesDataType = 'array'; 31 protected $dimensionFilterType = FilterExpression::class; 32 protected $dimensionFilterDataType = ''; 33 protected $dimensionsType = Dimension::class; 34 protected $dimensionsDataType = 'array'; 35 /** 36 * @var bool 37 */ 38 public $keepEmptyRows; 39 protected $metricFilterType = FilterExpression::class; 40 protected $metricFilterDataType = ''; 41 protected $metricsType = Metric::class; 42 protected $metricsDataType = 'array'; 43 protected $pivotsType = Pivot::class; 44 protected $pivotsDataType = 'array'; 45 /** 46 * @var string 47 */ 48 public $property; 49 /** 50 * @var bool 51 */ 52 public $returnPropertyQuota; 53 54 /** 55 * @param CohortSpec 56 */ 57 public function setCohortSpec(CohortSpec $cohortSpec) 58 { 59 $this->cohortSpec = $cohortSpec; 60 } 61 /** 62 * @return CohortSpec 63 */ 64 public function getCohortSpec() 65 { 66 return $this->cohortSpec; 67 } 68 /** 69 * @param string 70 */ 71 public function setCurrencyCode($currencyCode) 72 { 73 $this->currencyCode = $currencyCode; 74 } 75 /** 76 * @return string 77 */ 78 public function getCurrencyCode() 79 { 80 return $this->currencyCode; 81 } 82 /** 83 * @param DateRange[] 84 */ 85 public function setDateRanges($dateRanges) 86 { 87 $this->dateRanges = $dateRanges; 88 } 89 /** 90 * @return DateRange[] 91 */ 92 public function getDateRanges() 93 { 94 return $this->dateRanges; 95 } 96 /** 97 * @param FilterExpression 98 */ 99 public function setDimensionFilter(FilterExpression $dimensionFilter) 100 { 101 $this->dimensionFilter = $dimensionFilter; 102 } 103 /** 104 * @return FilterExpression 105 */ 106 public function getDimensionFilter() 107 { 108 return $this->dimensionFilter; 109 } 110 /** 111 * @param Dimension[] 112 */ 113 public function setDimensions($dimensions) 114 { 115 $this->dimensions = $dimensions; 116 } 117 /** 118 * @return Dimension[] 119 */ 120 public function getDimensions() 121 { 122 return $this->dimensions; 123 } 124 /** 125 * @param bool 126 */ 127 public function setKeepEmptyRows($keepEmptyRows) 128 { 129 $this->keepEmptyRows = $keepEmptyRows; 130 } 131 /** 132 * @return bool 133 */ 134 public function getKeepEmptyRows() 135 { 136 return $this->keepEmptyRows; 137 } 138 /** 139 * @param FilterExpression 140 */ 141 public function setMetricFilter(FilterExpression $metricFilter) 142 { 143 $this->metricFilter = $metricFilter; 144 } 145 /** 146 * @return FilterExpression 147 */ 148 public function getMetricFilter() 149 { 150 return $this->metricFilter; 151 } 152 /** 153 * @param Metric[] 154 */ 155 public function setMetrics($metrics) 156 { 157 $this->metrics = $metrics; 158 } 159 /** 160 * @return Metric[] 161 */ 162 public function getMetrics() 163 { 164 return $this->metrics; 165 } 166 /** 167 * @param Pivot[] 168 */ 169 public function setPivots($pivots) 170 { 171 $this->pivots = $pivots; 172 } 173 /** 174 * @return Pivot[] 175 */ 176 public function getPivots() 177 { 178 return $this->pivots; 179 } 180 /** 181 * @param string 182 */ 183 public function setProperty($property) 184 { 185 $this->property = $property; 186 } 187 /** 188 * @return string 189 */ 190 public function getProperty() 191 { 192 return $this->property; 193 } 194 /** 195 * @param bool 196 */ 197 public function setReturnPropertyQuota($returnPropertyQuota) 198 { 199 $this->returnPropertyQuota = $returnPropertyQuota; 200 } 201 /** 202 * @return bool 203 */ 204 public function getReturnPropertyQuota() 205 { 206 return $this->returnPropertyQuota; 207 } 208} 209 210// Adding a class alias for backwards compatibility with the previous class name. 211class_alias(RunPivotReportRequest::class, 'Google_Service_AnalyticsData_RunPivotReportRequest'); 212