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