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 Activity extends \Google\Collection
21{
22  protected $collection_key = 'customDimension';
23  /**
24   * @var string
25   */
26  public $activityTime;
27  /**
28   * @var string
29   */
30  public $activityType;
31  protected $appviewType = ScreenviewData::class;
32  protected $appviewDataType = '';
33  /**
34   * @var string
35   */
36  public $campaign;
37  /**
38   * @var string
39   */
40  public $channelGrouping;
41  protected $customDimensionType = CustomDimension::class;
42  protected $customDimensionDataType = 'array';
43  protected $ecommerceType = EcommerceData::class;
44  protected $ecommerceDataType = '';
45  protected $eventType = EventData::class;
46  protected $eventDataType = '';
47  protected $goalsType = GoalSetData::class;
48  protected $goalsDataType = '';
49  /**
50   * @var string
51   */
52  public $hostname;
53  /**
54   * @var string
55   */
56  public $keyword;
57  /**
58   * @var string
59   */
60  public $landingPagePath;
61  /**
62   * @var string
63   */
64  public $medium;
65  protected $pageviewType = PageviewData::class;
66  protected $pageviewDataType = '';
67  /**
68   * @var string
69   */
70  public $source;
71
72  /**
73   * @param string
74   */
75  public function setActivityTime($activityTime)
76  {
77    $this->activityTime = $activityTime;
78  }
79  /**
80   * @return string
81   */
82  public function getActivityTime()
83  {
84    return $this->activityTime;
85  }
86  /**
87   * @param string
88   */
89  public function setActivityType($activityType)
90  {
91    $this->activityType = $activityType;
92  }
93  /**
94   * @return string
95   */
96  public function getActivityType()
97  {
98    return $this->activityType;
99  }
100  /**
101   * @param ScreenviewData
102   */
103  public function setAppview(ScreenviewData $appview)
104  {
105    $this->appview = $appview;
106  }
107  /**
108   * @return ScreenviewData
109   */
110  public function getAppview()
111  {
112    return $this->appview;
113  }
114  /**
115   * @param string
116   */
117  public function setCampaign($campaign)
118  {
119    $this->campaign = $campaign;
120  }
121  /**
122   * @return string
123   */
124  public function getCampaign()
125  {
126    return $this->campaign;
127  }
128  /**
129   * @param string
130   */
131  public function setChannelGrouping($channelGrouping)
132  {
133    $this->channelGrouping = $channelGrouping;
134  }
135  /**
136   * @return string
137   */
138  public function getChannelGrouping()
139  {
140    return $this->channelGrouping;
141  }
142  /**
143   * @param CustomDimension[]
144   */
145  public function setCustomDimension($customDimension)
146  {
147    $this->customDimension = $customDimension;
148  }
149  /**
150   * @return CustomDimension[]
151   */
152  public function getCustomDimension()
153  {
154    return $this->customDimension;
155  }
156  /**
157   * @param EcommerceData
158   */
159  public function setEcommerce(EcommerceData $ecommerce)
160  {
161    $this->ecommerce = $ecommerce;
162  }
163  /**
164   * @return EcommerceData
165   */
166  public function getEcommerce()
167  {
168    return $this->ecommerce;
169  }
170  /**
171   * @param EventData
172   */
173  public function setEvent(EventData $event)
174  {
175    $this->event = $event;
176  }
177  /**
178   * @return EventData
179   */
180  public function getEvent()
181  {
182    return $this->event;
183  }
184  /**
185   * @param GoalSetData
186   */
187  public function setGoals(GoalSetData $goals)
188  {
189    $this->goals = $goals;
190  }
191  /**
192   * @return GoalSetData
193   */
194  public function getGoals()
195  {
196    return $this->goals;
197  }
198  /**
199   * @param string
200   */
201  public function setHostname($hostname)
202  {
203    $this->hostname = $hostname;
204  }
205  /**
206   * @return string
207   */
208  public function getHostname()
209  {
210    return $this->hostname;
211  }
212  /**
213   * @param string
214   */
215  public function setKeyword($keyword)
216  {
217    $this->keyword = $keyword;
218  }
219  /**
220   * @return string
221   */
222  public function getKeyword()
223  {
224    return $this->keyword;
225  }
226  /**
227   * @param string
228   */
229  public function setLandingPagePath($landingPagePath)
230  {
231    $this->landingPagePath = $landingPagePath;
232  }
233  /**
234   * @return string
235   */
236  public function getLandingPagePath()
237  {
238    return $this->landingPagePath;
239  }
240  /**
241   * @param string
242   */
243  public function setMedium($medium)
244  {
245    $this->medium = $medium;
246  }
247  /**
248   * @return string
249   */
250  public function getMedium()
251  {
252    return $this->medium;
253  }
254  /**
255   * @param PageviewData
256   */
257  public function setPageview(PageviewData $pageview)
258  {
259    $this->pageview = $pageview;
260  }
261  /**
262   * @return PageviewData
263   */
264  public function getPageview()
265  {
266    return $this->pageview;
267  }
268  /**
269   * @param string
270   */
271  public function setSource($source)
272  {
273    $this->source = $source;
274  }
275  /**
276   * @return string
277   */
278  public function getSource()
279  {
280    return $this->source;
281  }
282}
283
284// Adding a class alias for backwards compatibility with the previous class name.
285class_alias(Activity::class, 'Google_Service_AnalyticsReporting_Activity');
286