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\CloudRetail;
19
20class GoogleCloudRetailV2UserEvent extends \Google\Collection
21{
22  protected $collection_key = 'productDetails';
23  protected $attributesType = GoogleCloudRetailV2CustomAttribute::class;
24  protected $attributesDataType = 'map';
25  /**
26   * @var string
27   */
28  public $attributionToken;
29  /**
30   * @var string
31   */
32  public $cartId;
33  protected $completionDetailType = GoogleCloudRetailV2CompletionDetail::class;
34  protected $completionDetailDataType = '';
35  /**
36   * @var string
37   */
38  public $eventTime;
39  /**
40   * @var string
41   */
42  public $eventType;
43  /**
44   * @var string[]
45   */
46  public $experimentIds;
47  /**
48   * @var string
49   */
50  public $filter;
51  /**
52   * @var int
53   */
54  public $offset;
55  /**
56   * @var string
57   */
58  public $orderBy;
59  /**
60   * @var string[]
61   */
62  public $pageCategories;
63  /**
64   * @var string
65   */
66  public $pageViewId;
67  protected $productDetailsType = GoogleCloudRetailV2ProductDetail::class;
68  protected $productDetailsDataType = 'array';
69  protected $purchaseTransactionType = GoogleCloudRetailV2PurchaseTransaction::class;
70  protected $purchaseTransactionDataType = '';
71  /**
72   * @var string
73   */
74  public $referrerUri;
75  /**
76   * @var string
77   */
78  public $searchQuery;
79  /**
80   * @var string
81   */
82  public $sessionId;
83  /**
84   * @var string
85   */
86  public $uri;
87  protected $userInfoType = GoogleCloudRetailV2UserInfo::class;
88  protected $userInfoDataType = '';
89  /**
90   * @var string
91   */
92  public $visitorId;
93
94  /**
95   * @param GoogleCloudRetailV2CustomAttribute[]
96   */
97  public function setAttributes($attributes)
98  {
99    $this->attributes = $attributes;
100  }
101  /**
102   * @return GoogleCloudRetailV2CustomAttribute[]
103   */
104  public function getAttributes()
105  {
106    return $this->attributes;
107  }
108  /**
109   * @param string
110   */
111  public function setAttributionToken($attributionToken)
112  {
113    $this->attributionToken = $attributionToken;
114  }
115  /**
116   * @return string
117   */
118  public function getAttributionToken()
119  {
120    return $this->attributionToken;
121  }
122  /**
123   * @param string
124   */
125  public function setCartId($cartId)
126  {
127    $this->cartId = $cartId;
128  }
129  /**
130   * @return string
131   */
132  public function getCartId()
133  {
134    return $this->cartId;
135  }
136  /**
137   * @param GoogleCloudRetailV2CompletionDetail
138   */
139  public function setCompletionDetail(GoogleCloudRetailV2CompletionDetail $completionDetail)
140  {
141    $this->completionDetail = $completionDetail;
142  }
143  /**
144   * @return GoogleCloudRetailV2CompletionDetail
145   */
146  public function getCompletionDetail()
147  {
148    return $this->completionDetail;
149  }
150  /**
151   * @param string
152   */
153  public function setEventTime($eventTime)
154  {
155    $this->eventTime = $eventTime;
156  }
157  /**
158   * @return string
159   */
160  public function getEventTime()
161  {
162    return $this->eventTime;
163  }
164  /**
165   * @param string
166   */
167  public function setEventType($eventType)
168  {
169    $this->eventType = $eventType;
170  }
171  /**
172   * @return string
173   */
174  public function getEventType()
175  {
176    return $this->eventType;
177  }
178  /**
179   * @param string[]
180   */
181  public function setExperimentIds($experimentIds)
182  {
183    $this->experimentIds = $experimentIds;
184  }
185  /**
186   * @return string[]
187   */
188  public function getExperimentIds()
189  {
190    return $this->experimentIds;
191  }
192  /**
193   * @param string
194   */
195  public function setFilter($filter)
196  {
197    $this->filter = $filter;
198  }
199  /**
200   * @return string
201   */
202  public function getFilter()
203  {
204    return $this->filter;
205  }
206  /**
207   * @param int
208   */
209  public function setOffset($offset)
210  {
211    $this->offset = $offset;
212  }
213  /**
214   * @return int
215   */
216  public function getOffset()
217  {
218    return $this->offset;
219  }
220  /**
221   * @param string
222   */
223  public function setOrderBy($orderBy)
224  {
225    $this->orderBy = $orderBy;
226  }
227  /**
228   * @return string
229   */
230  public function getOrderBy()
231  {
232    return $this->orderBy;
233  }
234  /**
235   * @param string[]
236   */
237  public function setPageCategories($pageCategories)
238  {
239    $this->pageCategories = $pageCategories;
240  }
241  /**
242   * @return string[]
243   */
244  public function getPageCategories()
245  {
246    return $this->pageCategories;
247  }
248  /**
249   * @param string
250   */
251  public function setPageViewId($pageViewId)
252  {
253    $this->pageViewId = $pageViewId;
254  }
255  /**
256   * @return string
257   */
258  public function getPageViewId()
259  {
260    return $this->pageViewId;
261  }
262  /**
263   * @param GoogleCloudRetailV2ProductDetail[]
264   */
265  public function setProductDetails($productDetails)
266  {
267    $this->productDetails = $productDetails;
268  }
269  /**
270   * @return GoogleCloudRetailV2ProductDetail[]
271   */
272  public function getProductDetails()
273  {
274    return $this->productDetails;
275  }
276  /**
277   * @param GoogleCloudRetailV2PurchaseTransaction
278   */
279  public function setPurchaseTransaction(GoogleCloudRetailV2PurchaseTransaction $purchaseTransaction)
280  {
281    $this->purchaseTransaction = $purchaseTransaction;
282  }
283  /**
284   * @return GoogleCloudRetailV2PurchaseTransaction
285   */
286  public function getPurchaseTransaction()
287  {
288    return $this->purchaseTransaction;
289  }
290  /**
291   * @param string
292   */
293  public function setReferrerUri($referrerUri)
294  {
295    $this->referrerUri = $referrerUri;
296  }
297  /**
298   * @return string
299   */
300  public function getReferrerUri()
301  {
302    return $this->referrerUri;
303  }
304  /**
305   * @param string
306   */
307  public function setSearchQuery($searchQuery)
308  {
309    $this->searchQuery = $searchQuery;
310  }
311  /**
312   * @return string
313   */
314  public function getSearchQuery()
315  {
316    return $this->searchQuery;
317  }
318  /**
319   * @param string
320   */
321  public function setSessionId($sessionId)
322  {
323    $this->sessionId = $sessionId;
324  }
325  /**
326   * @return string
327   */
328  public function getSessionId()
329  {
330    return $this->sessionId;
331  }
332  /**
333   * @param string
334   */
335  public function setUri($uri)
336  {
337    $this->uri = $uri;
338  }
339  /**
340   * @return string
341   */
342  public function getUri()
343  {
344    return $this->uri;
345  }
346  /**
347   * @param GoogleCloudRetailV2UserInfo
348   */
349  public function setUserInfo(GoogleCloudRetailV2UserInfo $userInfo)
350  {
351    $this->userInfo = $userInfo;
352  }
353  /**
354   * @return GoogleCloudRetailV2UserInfo
355   */
356  public function getUserInfo()
357  {
358    return $this->userInfo;
359  }
360  /**
361   * @param string
362   */
363  public function setVisitorId($visitorId)
364  {
365    $this->visitorId = $visitorId;
366  }
367  /**
368   * @return string
369   */
370  public function getVisitorId()
371  {
372    return $this->visitorId;
373  }
374}
375
376// Adding a class alias for backwards compatibility with the previous class name.
377class_alias(GoogleCloudRetailV2UserEvent::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2UserEvent');
378