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\AnalyticsReporting;
|
---|
19 |
|
---|
20 | class SearchUserActivityResponse extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'sessions';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $nextPageToken;
|
---|
27 | public $sampleRate;
|
---|
28 | protected $sessionsType = UserActivitySession::class;
|
---|
29 | protected $sessionsDataType = 'array';
|
---|
30 | /**
|
---|
31 | * @var int
|
---|
32 | */
|
---|
33 | public $totalRows;
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * @param string
|
---|
37 | */
|
---|
38 | public function setNextPageToken($nextPageToken)
|
---|
39 | {
|
---|
40 | $this->nextPageToken = $nextPageToken;
|
---|
41 | }
|
---|
42 | /**
|
---|
43 | * @return string
|
---|
44 | */
|
---|
45 | public function getNextPageToken()
|
---|
46 | {
|
---|
47 | return $this->nextPageToken;
|
---|
48 | }
|
---|
49 | public function setSampleRate($sampleRate)
|
---|
50 | {
|
---|
51 | $this->sampleRate = $sampleRate;
|
---|
52 | }
|
---|
53 | public function getSampleRate()
|
---|
54 | {
|
---|
55 | return $this->sampleRate;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @param UserActivitySession[]
|
---|
59 | */
|
---|
60 | public function setSessions($sessions)
|
---|
61 | {
|
---|
62 | $this->sessions = $sessions;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @return UserActivitySession[]
|
---|
66 | */
|
---|
67 | public function getSessions()
|
---|
68 | {
|
---|
69 | return $this->sessions;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @param int
|
---|
73 | */
|
---|
74 | public function setTotalRows($totalRows)
|
---|
75 | {
|
---|
76 | $this->totalRows = $totalRows;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @return int
|
---|
80 | */
|
---|
81 | public function getTotalRows()
|
---|
82 | {
|
---|
83 | return $this->totalRows;
|
---|
84 | }
|
---|
85 | }
|
---|
86 |
|
---|
87 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
88 | class_alias(SearchUserActivityResponse::class, 'Google_Service_AnalyticsReporting_SearchUserActivityResponse');
|
---|