PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/webui/google-api/contrib/apiAnalyticsService.php

https://bitbucket.org/sailsdigital/piler-remi
PHP | 1572 lines | 1352 code | 54 blank | 166 comment | 12 complexity | 7457f9c0bf1079c65fa692b309afc9fa MD5 | raw file
Possible License(s): GPL-3.0
  1. <?php
  2. /*
  3. * Copyright (c) 2010 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. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "management" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $analyticsService = new apiAnalyticsService(...);
  25. * $management = $analyticsService->management;
  26. * </code>
  27. */
  28. class ManagementServiceResource extends apiServiceResource {
  29. }
  30. /**
  31. * The "webproperties" collection of methods.
  32. * Typical usage is:
  33. * <code>
  34. * $analyticsService = new apiAnalyticsService(...);
  35. * $webproperties = $analyticsService->webproperties;
  36. * </code>
  37. */
  38. class ManagementWebpropertiesServiceResource extends apiServiceResource {
  39. /**
  40. * Lists web properties to which the user has access. (webproperties.list)
  41. *
  42. * @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which user has access.
  43. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  44. *
  45. * @opt_param int max-results The maximum number of entries to include in this response.
  46. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  47. * @return Webproperties
  48. */
  49. public function listManagementWebproperties($accountId, $optParams = array()) {
  50. $params = array('accountId' => $accountId);
  51. $params = array_merge($params, $optParams);
  52. $data = $this->__call('list', array($params));
  53. if ($this->useObjects()) {
  54. return new Webproperties($data);
  55. } else {
  56. return $data;
  57. }
  58. }
  59. }
  60. /**
  61. * The "segments" collection of methods.
  62. * Typical usage is:
  63. * <code>
  64. * $analyticsService = new apiAnalyticsService(...);
  65. * $segments = $analyticsService->segments;
  66. * </code>
  67. */
  68. class ManagementSegmentsServiceResource extends apiServiceResource {
  69. /**
  70. * Lists advanced segments to which the user has access. (segments.list)
  71. *
  72. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  73. *
  74. * @opt_param int max-results The maximum number of entries to include in this response.
  75. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  76. * @return Segments
  77. */
  78. public function listManagementSegments($optParams = array()) {
  79. $params = array();
  80. $params = array_merge($params, $optParams);
  81. $data = $this->__call('list', array($params));
  82. if ($this->useObjects()) {
  83. return new Segments($data);
  84. } else {
  85. return $data;
  86. }
  87. }
  88. }
  89. /**
  90. * The "accounts" collection of methods.
  91. * Typical usage is:
  92. * <code>
  93. * $analyticsService = new apiAnalyticsService(...);
  94. * $accounts = $analyticsService->accounts;
  95. * </code>
  96. */
  97. class ManagementAccountsServiceResource extends apiServiceResource {
  98. /**
  99. * Lists all accounts to which the user has access. (accounts.list)
  100. *
  101. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  102. *
  103. * @opt_param int max-results The maximum number of entries to include in this response.
  104. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  105. * @return Accounts
  106. */
  107. public function listManagementAccounts($optParams = array()) {
  108. $params = array();
  109. $params = array_merge($params, $optParams);
  110. $data = $this->__call('list', array($params));
  111. if ($this->useObjects()) {
  112. return new Accounts($data);
  113. } else {
  114. return $data;
  115. }
  116. }
  117. }
  118. /**
  119. * The "goals" collection of methods.
  120. * Typical usage is:
  121. * <code>
  122. * $analyticsService = new apiAnalyticsService(...);
  123. * $goals = $analyticsService->goals;
  124. * </code>
  125. */
  126. class ManagementGoalsServiceResource extends apiServiceResource {
  127. /**
  128. * Lists goals to which the user has access. (goals.list)
  129. *
  130. * @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
  131. * @param string $webPropertyId Web property ID for the web properties to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
  132. * @param string $profileId Profile ID for the web properties to retrieve. Can either be a specific profile ID or '~all', which refers to all the profiles to which the user has access.
  133. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  134. *
  135. * @opt_param int max-results The maximum number of entries to include in this response.
  136. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  137. * @return Goals
  138. */
  139. public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
  140. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
  141. $params = array_merge($params, $optParams);
  142. $data = $this->__call('list', array($params));
  143. if ($this->useObjects()) {
  144. return new Goals($data);
  145. } else {
  146. return $data;
  147. }
  148. }
  149. }
  150. /**
  151. * The "profiles" collection of methods.
  152. * Typical usage is:
  153. * <code>
  154. * $analyticsService = new apiAnalyticsService(...);
  155. * $profiles = $analyticsService->profiles;
  156. * </code>
  157. */
  158. class ManagementProfilesServiceResource extends apiServiceResource {
  159. /**
  160. * Lists profiles to which the user has access. (profiles.list)
  161. *
  162. * @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
  163. * @param string $webPropertyId Web property ID for the web properties to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
  164. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  165. *
  166. * @opt_param int max-results The maximum number of entries to include in this response.
  167. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  168. * @return Profiles
  169. */
  170. public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
  171. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
  172. $params = array_merge($params, $optParams);
  173. $data = $this->__call('list', array($params));
  174. if ($this->useObjects()) {
  175. return new Profiles($data);
  176. } else {
  177. return $data;
  178. }
  179. }
  180. }
  181. /**
  182. * The "data" collection of methods.
  183. * Typical usage is:
  184. * <code>
  185. * $analyticsService = new apiAnalyticsService(...);
  186. * $data = $analyticsService->data;
  187. * </code>
  188. */
  189. class DataServiceResource extends apiServiceResource {
  190. }
  191. /**
  192. * The "ga" collection of methods.
  193. * Typical usage is:
  194. * <code>
  195. * $analyticsService = new apiAnalyticsService(...);
  196. * $ga = $analyticsService->ga;
  197. * </code>
  198. */
  199. class DataGaServiceResource extends apiServiceResource {
  200. /**
  201. * Returns Analytics data for a profile. (ga.get)
  202. *
  203. * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
  204. * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
  205. * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
  206. * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
  207. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  208. *
  209. * @opt_param int max-results The maximum number of entries to include in this feed.
  210. * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
  211. * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
  212. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  213. * @opt_param string segment An Analytics advanced segment to be applied to data.
  214. * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
  215. * @return GaData
  216. */
  217. public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
  218. $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
  219. $params = array_merge($params, $optParams);
  220. $data = $this->__call('get', array($params));
  221. if ($this->useObjects()) {
  222. return new GaData($data);
  223. } else {
  224. return $data;
  225. }
  226. }
  227. }
  228. /**
  229. * Service definition for Analytics (v3).
  230. *
  231. * <p>
  232. * View and manage your Google Analytics data
  233. * </p>
  234. *
  235. * <p>
  236. * For more information about this service, see the
  237. * <a href="http://code.google.com/apis/analytics" target="_blank">API Documentation</a>
  238. * </p>
  239. *
  240. * @author Google, Inc.
  241. */
  242. class apiAnalyticsService extends apiService {
  243. public $management_webproperties;
  244. public $management_segments;
  245. public $management_accounts;
  246. public $management_goals;
  247. public $management_profiles;
  248. public $data_ga;
  249. /**
  250. * Constructs the internal representation of the Analytics service.
  251. *
  252. * @param apiClient apiClient
  253. */
  254. public function __construct(apiClient $apiClient) {
  255. $this->rpcPath = '/rpc';
  256. $this->restBasePath = '/analytics/v3/';
  257. $this->version = 'v3';
  258. $this->serviceName = 'analytics';
  259. $apiClient->addService($this->serviceName, $this->version);
  260. $this->management_webproperties = new ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.webproperties.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties", "response": {"$ref": "Webproperties"}}}}', true));
  261. $this->management_segments = new ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "response": {"$ref": "Segments"}, "httpMethod": "GET", "path": "management/segments", "id": "analytics.management.segments.list"}}}', true));
  262. $this->management_accounts = new ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "management/accounts", "id": "analytics.management.accounts.list"}}}', true));
  263. $this->management_goals = new ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "profileId": {"required": true, "type": "string", "location": "path"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.goals.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "response": {"$ref": "Goals"}}}}', true));
  264. $this->management_profiles = new ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.profiles.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "response": {"$ref": "Profiles"}}}}', true));
  265. $this->data_ga = new DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "segment": {"type": "string", "location": "query"}}, "id": "analytics.data.ga.get", "httpMethod": "GET", "path": "data/ga", "response": {"$ref": "GaData"}}}}', true));
  266. }
  267. }
  268. class Account extends apiModel {
  269. public $kind;
  270. public $name;
  271. public $created;
  272. public $updated;
  273. protected $__childLinkType = 'AccountChildLink';
  274. protected $__childLinkDataType = '';
  275. public $childLink;
  276. public $id;
  277. public $selfLink;
  278. public function setKind($kind) {
  279. $this->kind = $kind;
  280. }
  281. public function getKind() {
  282. return $this->kind;
  283. }
  284. public function setName($name) {
  285. $this->name = $name;
  286. }
  287. public function getName() {
  288. return $this->name;
  289. }
  290. public function setCreated($created) {
  291. $this->created = $created;
  292. }
  293. public function getCreated() {
  294. return $this->created;
  295. }
  296. public function setUpdated($updated) {
  297. $this->updated = $updated;
  298. }
  299. public function getUpdated() {
  300. return $this->updated;
  301. }
  302. public function setChildLink(AccountChildLink $childLink) {
  303. $this->childLink = $childLink;
  304. }
  305. public function getChildLink() {
  306. return $this->childLink;
  307. }
  308. public function setId($id) {
  309. $this->id = $id;
  310. }
  311. public function getId() {
  312. return $this->id;
  313. }
  314. public function setSelfLink($selfLink) {
  315. $this->selfLink = $selfLink;
  316. }
  317. public function getSelfLink() {
  318. return $this->selfLink;
  319. }
  320. }
  321. class AccountChildLink extends apiModel {
  322. public $href;
  323. public $type;
  324. public function setHref($href) {
  325. $this->href = $href;
  326. }
  327. public function getHref() {
  328. return $this->href;
  329. }
  330. public function setType($type) {
  331. $this->type = $type;
  332. }
  333. public function getType() {
  334. return $this->type;
  335. }
  336. }
  337. class Accounts extends apiModel {
  338. public $username;
  339. public $kind;
  340. protected $__itemsType = 'Account';
  341. protected $__itemsDataType = 'array';
  342. public $items;
  343. public $itemsPerPage;
  344. public $previousLink;
  345. public $startIndex;
  346. public $nextLink;
  347. public $totalResults;
  348. public function setUsername($username) {
  349. $this->username = $username;
  350. }
  351. public function getUsername() {
  352. return $this->username;
  353. }
  354. public function setKind($kind) {
  355. $this->kind = $kind;
  356. }
  357. public function getKind() {
  358. return $this->kind;
  359. }
  360. public function setItems(/* array(Account) */ $items) {
  361. $this->assertIsArray($items, 'Account', __METHOD__);
  362. $this->items = $items;
  363. }
  364. public function getItems() {
  365. return $this->items;
  366. }
  367. public function setItemsPerPage($itemsPerPage) {
  368. $this->itemsPerPage = $itemsPerPage;
  369. }
  370. public function getItemsPerPage() {
  371. return $this->itemsPerPage;
  372. }
  373. public function setPreviousLink($previousLink) {
  374. $this->previousLink = $previousLink;
  375. }
  376. public function getPreviousLink() {
  377. return $this->previousLink;
  378. }
  379. public function setStartIndex($startIndex) {
  380. $this->startIndex = $startIndex;
  381. }
  382. public function getStartIndex() {
  383. return $this->startIndex;
  384. }
  385. public function setNextLink($nextLink) {
  386. $this->nextLink = $nextLink;
  387. }
  388. public function getNextLink() {
  389. return $this->nextLink;
  390. }
  391. public function setTotalResults($totalResults) {
  392. $this->totalResults = $totalResults;
  393. }
  394. public function getTotalResults() {
  395. return $this->totalResults;
  396. }
  397. }
  398. class GaData extends apiModel {
  399. public $kind;
  400. public $rows;
  401. public $containsSampledData;
  402. public $totalResults;
  403. public $itemsPerPage;
  404. public $totalsForAllResults;
  405. public $nextLink;
  406. public $id;
  407. protected $__queryType = 'GaDataQuery';
  408. protected $__queryDataType = '';
  409. public $query;
  410. public $previousLink;
  411. protected $__profileInfoType = 'GaDataProfileInfo';
  412. protected $__profileInfoDataType = '';
  413. public $profileInfo;
  414. protected $__columnHeadersType = 'GaDataColumnHeaders';
  415. protected $__columnHeadersDataType = 'array';
  416. public $columnHeaders;
  417. public $selfLink;
  418. public function setKind($kind) {
  419. $this->kind = $kind;
  420. }
  421. public function getKind() {
  422. return $this->kind;
  423. }
  424. public function setRows(/* array(string) */ $rows) {
  425. $this->assertIsArray($rows, 'string', __METHOD__);
  426. $this->rows = $rows;
  427. }
  428. public function getRows() {
  429. return $this->rows;
  430. }
  431. public function setContainsSampledData($containsSampledData) {
  432. $this->containsSampledData = $containsSampledData;
  433. }
  434. public function getContainsSampledData() {
  435. return $this->containsSampledData;
  436. }
  437. public function setTotalResults($totalResults) {
  438. $this->totalResults = $totalResults;
  439. }
  440. public function getTotalResults() {
  441. return $this->totalResults;
  442. }
  443. public function setItemsPerPage($itemsPerPage) {
  444. $this->itemsPerPage = $itemsPerPage;
  445. }
  446. public function getItemsPerPage() {
  447. return $this->itemsPerPage;
  448. }
  449. public function setTotalsForAllResults($totalsForAllResults) {
  450. $this->totalsForAllResults = $totalsForAllResults;
  451. }
  452. public function getTotalsForAllResults() {
  453. return $this->totalsForAllResults;
  454. }
  455. public function setNextLink($nextLink) {
  456. $this->nextLink = $nextLink;
  457. }
  458. public function getNextLink() {
  459. return $this->nextLink;
  460. }
  461. public function setId($id) {
  462. $this->id = $id;
  463. }
  464. public function getId() {
  465. return $this->id;
  466. }
  467. public function setQuery(GaDataQuery $query) {
  468. $this->query = $query;
  469. }
  470. public function getQuery() {
  471. return $this->query;
  472. }
  473. public function setPreviousLink($previousLink) {
  474. $this->previousLink = $previousLink;
  475. }
  476. public function getPreviousLink() {
  477. return $this->previousLink;
  478. }
  479. public function setProfileInfo(GaDataProfileInfo $profileInfo) {
  480. $this->profileInfo = $profileInfo;
  481. }
  482. public function getProfileInfo() {
  483. return $this->profileInfo;
  484. }
  485. public function setColumnHeaders(/* array(GaDataColumnHeaders) */ $columnHeaders) {
  486. $this->assertIsArray($columnHeaders, 'GaDataColumnHeaders', __METHOD__);
  487. $this->columnHeaders = $columnHeaders;
  488. }
  489. public function getColumnHeaders() {
  490. return $this->columnHeaders;
  491. }
  492. public function setSelfLink($selfLink) {
  493. $this->selfLink = $selfLink;
  494. }
  495. public function getSelfLink() {
  496. return $this->selfLink;
  497. }
  498. }
  499. class GaDataColumnHeaders extends apiModel {
  500. public $dataType;
  501. public $columnType;
  502. public $name;
  503. public function setDataType($dataType) {
  504. $this->dataType = $dataType;
  505. }
  506. public function getDataType() {
  507. return $this->dataType;
  508. }
  509. public function setColumnType($columnType) {
  510. $this->columnType = $columnType;
  511. }
  512. public function getColumnType() {
  513. return $this->columnType;
  514. }
  515. public function setName($name) {
  516. $this->name = $name;
  517. }
  518. public function getName() {
  519. return $this->name;
  520. }
  521. }
  522. class GaDataProfileInfo extends apiModel {
  523. public $webPropertyId;
  524. public $internalWebPropertyId;
  525. public $tableId;
  526. public $profileId;
  527. public $profileName;
  528. public $accountId;
  529. public function setWebPropertyId($webPropertyId) {
  530. $this->webPropertyId = $webPropertyId;
  531. }
  532. public function getWebPropertyId() {
  533. return $this->webPropertyId;
  534. }
  535. public function setInternalWebPropertyId($internalWebPropertyId) {
  536. $this->internalWebPropertyId = $internalWebPropertyId;
  537. }
  538. public function getInternalWebPropertyId() {
  539. return $this->internalWebPropertyId;
  540. }
  541. public function setTableId($tableId) {
  542. $this->tableId = $tableId;
  543. }
  544. public function getTableId() {
  545. return $this->tableId;
  546. }
  547. public function setProfileId($profileId) {
  548. $this->profileId = $profileId;
  549. }
  550. public function getProfileId() {
  551. return $this->profileId;
  552. }
  553. public function setProfileName($profileName) {
  554. $this->profileName = $profileName;
  555. }
  556. public function getProfileName() {
  557. return $this->profileName;
  558. }
  559. public function setAccountId($accountId) {
  560. $this->accountId = $accountId;
  561. }
  562. public function getAccountId() {
  563. return $this->accountId;
  564. }
  565. }
  566. class GaDataQuery extends apiModel {
  567. public $max_results;
  568. public $sort;
  569. public $dimensions;
  570. public $start_date;
  571. public $start_index;
  572. public $segment;
  573. public $ids;
  574. public $metrics;
  575. public $filters;
  576. public $end_date;
  577. public function setMax_results($max_results) {
  578. $this->max_results = $max_results;
  579. }
  580. public function getMax_results() {
  581. return $this->max_results;
  582. }
  583. public function setSort(/* array(string) */ $sort) {
  584. $this->assertIsArray($sort, 'string', __METHOD__);
  585. $this->sort = $sort;
  586. }
  587. public function getSort() {
  588. return $this->sort;
  589. }
  590. public function setDimensions($dimensions) {
  591. $this->dimensions = $dimensions;
  592. }
  593. public function getDimensions() {
  594. return $this->dimensions;
  595. }
  596. public function setStart_date($start_date) {
  597. $this->start_date = $start_date;
  598. }
  599. public function getStart_date() {
  600. return $this->start_date;
  601. }
  602. public function setStart_index($start_index) {
  603. $this->start_index = $start_index;
  604. }
  605. public function getStart_index() {
  606. return $this->start_index;
  607. }
  608. public function setSegment($segment) {
  609. $this->segment = $segment;
  610. }
  611. public function getSegment() {
  612. return $this->segment;
  613. }
  614. public function setIds($ids) {
  615. $this->ids = $ids;
  616. }
  617. public function getIds() {
  618. return $this->ids;
  619. }
  620. public function setMetrics(/* array(string) */ $metrics) {
  621. $this->assertIsArray($metrics, 'string', __METHOD__);
  622. $this->metrics = $metrics;
  623. }
  624. public function getMetrics() {
  625. return $this->metrics;
  626. }
  627. public function setFilters($filters) {
  628. $this->filters = $filters;
  629. }
  630. public function getFilters() {
  631. return $this->filters;
  632. }
  633. public function setEnd_date($end_date) {
  634. $this->end_date = $end_date;
  635. }
  636. public function getEnd_date() {
  637. return $this->end_date;
  638. }
  639. }
  640. class Goal extends apiModel {
  641. public $kind;
  642. protected $__visitTimeOnSiteDetailsType = 'GoalVisitTimeOnSiteDetails';
  643. protected $__visitTimeOnSiteDetailsDataType = '';
  644. public $visitTimeOnSiteDetails;
  645. public $name;
  646. public $created;
  647. protected $__urlDestinationDetailsType = 'GoalUrlDestinationDetails';
  648. protected $__urlDestinationDetailsDataType = '';
  649. public $urlDestinationDetails;
  650. public $updated;
  651. public $value;
  652. protected $__visitNumPagesDetailsType = 'GoalVisitNumPagesDetails';
  653. protected $__visitNumPagesDetailsDataType = '';
  654. public $visitNumPagesDetails;
  655. public $internalWebPropertyId;
  656. protected $__eventDetailsType = 'GoalEventDetails';
  657. protected $__eventDetailsDataType = '';
  658. public $eventDetails;
  659. public $webPropertyId;
  660. public $active;
  661. public $profileId;
  662. protected $__parentLinkType = 'GoalParentLink';
  663. protected $__parentLinkDataType = '';
  664. public $parentLink;
  665. public $type;
  666. public $id;
  667. public $selfLink;
  668. public $accountId;
  669. public function setKind($kind) {
  670. $this->kind = $kind;
  671. }
  672. public function getKind() {
  673. return $this->kind;
  674. }
  675. public function setVisitTimeOnSiteDetails(GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
  676. $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
  677. }
  678. public function getVisitTimeOnSiteDetails() {
  679. return $this->visitTimeOnSiteDetails;
  680. }
  681. public function setName($name) {
  682. $this->name = $name;
  683. }
  684. public function getName() {
  685. return $this->name;
  686. }
  687. public function setCreated($created) {
  688. $this->created = $created;
  689. }
  690. public function getCreated() {
  691. return $this->created;
  692. }
  693. public function setUrlDestinationDetails(GoalUrlDestinationDetails $urlDestinationDetails) {
  694. $this->urlDestinationDetails = $urlDestinationDetails;
  695. }
  696. public function getUrlDestinationDetails() {
  697. return $this->urlDestinationDetails;
  698. }
  699. public function setUpdated($updated) {
  700. $this->updated = $updated;
  701. }
  702. public function getUpdated() {
  703. return $this->updated;
  704. }
  705. public function setValue($value) {
  706. $this->value = $value;
  707. }
  708. public function getValue() {
  709. return $this->value;
  710. }
  711. public function setVisitNumPagesDetails(GoalVisitNumPagesDetails $visitNumPagesDetails) {
  712. $this->visitNumPagesDetails = $visitNumPagesDetails;
  713. }
  714. public function getVisitNumPagesDetails() {
  715. return $this->visitNumPagesDetails;
  716. }
  717. public function setInternalWebPropertyId($internalWebPropertyId) {
  718. $this->internalWebPropertyId = $internalWebPropertyId;
  719. }
  720. public function getInternalWebPropertyId() {
  721. return $this->internalWebPropertyId;
  722. }
  723. public function setEventDetails(GoalEventDetails $eventDetails) {
  724. $this->eventDetails = $eventDetails;
  725. }
  726. public function getEventDetails() {
  727. return $this->eventDetails;
  728. }
  729. public function setWebPropertyId($webPropertyId) {
  730. $this->webPropertyId = $webPropertyId;
  731. }
  732. public function getWebPropertyId() {
  733. return $this->webPropertyId;
  734. }
  735. public function setActive($active) {
  736. $this->active = $active;
  737. }
  738. public function getActive() {
  739. return $this->active;
  740. }
  741. public function setProfileId($profileId) {
  742. $this->profileId = $profileId;
  743. }
  744. public function getProfileId() {
  745. return $this->profileId;
  746. }
  747. public function setParentLink(GoalParentLink $parentLink) {
  748. $this->parentLink = $parentLink;
  749. }
  750. public function getParentLink() {
  751. return $this->parentLink;
  752. }
  753. public function setType($type) {
  754. $this->type = $type;
  755. }
  756. public function getType() {
  757. return $this->type;
  758. }
  759. public function setId($id) {
  760. $this->id = $id;
  761. }
  762. public function getId() {
  763. return $this->id;
  764. }
  765. public function setSelfLink($selfLink) {
  766. $this->selfLink = $selfLink;
  767. }
  768. public function getSelfLink() {
  769. return $this->selfLink;
  770. }
  771. public function setAccountId($accountId) {
  772. $this->accountId = $accountId;
  773. }
  774. public function getAccountId() {
  775. return $this->accountId;
  776. }
  777. }
  778. class GoalEventDetails extends apiModel {
  779. protected $__eventConditionsType = 'GoalEventDetailsEventConditions';
  780. protected $__eventConditionsDataType = 'array';
  781. public $eventConditions;
  782. public $useEventValue;
  783. public function setEventConditions(/* array(GoalEventDetailsEventConditions) */ $eventConditions) {
  784. $this->assertIsArray($eventConditions, 'GoalEventDetailsEventConditions', __METHOD__);
  785. $this->eventConditions = $eventConditions;
  786. }
  787. public function getEventConditions() {
  788. return $this->eventConditions;
  789. }
  790. public function setUseEventValue($useEventValue) {
  791. $this->useEventValue = $useEventValue;
  792. }
  793. public function getUseEventValue() {
  794. return $this->useEventValue;
  795. }
  796. }
  797. class GoalEventDetailsEventConditions extends apiModel {
  798. public $type;
  799. public $matchType;
  800. public $expression;
  801. public $comparisonType;
  802. public $comparisonValue;
  803. public function setType($type) {
  804. $this->type = $type;
  805. }
  806. public function getType() {
  807. return $this->type;
  808. }
  809. public function setMatchType($matchType) {
  810. $this->matchType = $matchType;
  811. }
  812. public function getMatchType() {
  813. return $this->matchType;
  814. }
  815. public function setExpression($expression) {
  816. $this->expression = $expression;
  817. }
  818. public function getExpression() {
  819. return $this->expression;
  820. }
  821. public function setComparisonType($comparisonType) {
  822. $this->comparisonType = $comparisonType;
  823. }
  824. public function getComparisonType() {
  825. return $this->comparisonType;
  826. }
  827. public function setComparisonValue($comparisonValue) {
  828. $this->comparisonValue = $comparisonValue;
  829. }
  830. public function getComparisonValue() {
  831. return $this->comparisonValue;
  832. }
  833. }
  834. class GoalParentLink extends apiModel {
  835. public $href;
  836. public $type;
  837. public function setHref($href) {
  838. $this->href = $href;
  839. }
  840. public function getHref() {
  841. return $this->href;
  842. }
  843. public function setType($type) {
  844. $this->type = $type;
  845. }
  846. public function getType() {
  847. return $this->type;
  848. }
  849. }
  850. class GoalUrlDestinationDetails extends apiModel {
  851. public $url;
  852. public $caseSensitive;
  853. public $matchType;
  854. protected $__stepsType = 'GoalUrlDestinationDetailsSteps';
  855. protected $__stepsDataType = 'array';
  856. public $steps;
  857. public $firstStepRequired;
  858. public function setUrl($url) {
  859. $this->url = $url;
  860. }
  861. public function getUrl() {
  862. return $this->url;
  863. }
  864. public function setCaseSensitive($caseSensitive) {
  865. $this->caseSensitive = $caseSensitive;
  866. }
  867. public function getCaseSensitive() {
  868. return $this->caseSensitive;
  869. }
  870. public function setMatchType($matchType) {
  871. $this->matchType = $matchType;
  872. }
  873. public function getMatchType() {
  874. return $this->matchType;
  875. }
  876. public function setSteps(/* array(GoalUrlDestinationDetailsSteps) */ $steps) {
  877. $this->assertIsArray($steps, 'GoalUrlDestinationDetailsSteps', __METHOD__);
  878. $this->steps = $steps;
  879. }
  880. public function getSteps() {
  881. return $this->steps;
  882. }
  883. public function setFirstStepRequired($firstStepRequired) {
  884. $this->firstStepRequired = $firstStepRequired;
  885. }
  886. public function getFirstStepRequired() {
  887. return $this->firstStepRequired;
  888. }
  889. }
  890. class GoalUrlDestinationDetailsSteps extends apiModel {
  891. public $url;
  892. public $name;
  893. public $number;
  894. public function setUrl($url) {
  895. $this->url = $url;
  896. }
  897. public function getUrl() {
  898. return $this->url;
  899. }
  900. public function setName($name) {
  901. $this->name = $name;
  902. }
  903. public function getName() {
  904. return $this->name;
  905. }
  906. public function setNumber($number) {
  907. $this->number = $number;
  908. }
  909. public function getNumber() {
  910. return $this->number;
  911. }
  912. }
  913. class GoalVisitNumPagesDetails extends apiModel {
  914. public $comparisonType;
  915. public $comparisonValue;
  916. public function setComparisonType($comparisonType) {
  917. $this->comparisonType = $comparisonType;
  918. }
  919. public function getComparisonType() {
  920. return $this->comparisonType;
  921. }
  922. public function setComparisonValue($comparisonValue) {
  923. $this->comparisonValue = $comparisonValue;
  924. }
  925. public function getComparisonValue() {
  926. return $this->comparisonValue;
  927. }
  928. }
  929. class GoalVisitTimeOnSiteDetails extends apiModel {
  930. public $comparisonType;
  931. public $comparisonValue;
  932. public function setComparisonType($comparisonType) {
  933. $this->comparisonType = $comparisonType;
  934. }
  935. public function getComparisonType() {
  936. return $this->comparisonType;
  937. }
  938. public function setComparisonValue($comparisonValue) {
  939. $this->comparisonValue = $comparisonValue;
  940. }
  941. public function getComparisonValue() {
  942. return $this->comparisonValue;
  943. }
  944. }
  945. class Goals extends apiModel {
  946. public $username;
  947. public $kind;
  948. protected $__itemsType = 'Goal';
  949. protected $__itemsDataType = 'array';
  950. public $items;
  951. public $itemsPerPage;
  952. public $previousLink;
  953. public $startIndex;
  954. public $nextLink;
  955. public $totalResults;
  956. public function setUsername($username) {
  957. $this->username = $username;
  958. }
  959. public function getUsername() {
  960. return $this->username;
  961. }
  962. public function setKind($kind) {
  963. $this->kind = $kind;
  964. }
  965. public function getKind() {
  966. return $this->kind;
  967. }
  968. public function setItems(/* array(Goal) */ $items) {
  969. $this->assertIsArray($items, 'Goal', __METHOD__);
  970. $this->items = $items;
  971. }
  972. public function getItems() {
  973. return $this->items;
  974. }
  975. public function setItemsPerPage($itemsPerPage) {
  976. $this->itemsPerPage = $itemsPerPage;
  977. }
  978. public function getItemsPerPage() {
  979. return $this->itemsPerPage;
  980. }
  981. public function setPreviousLink($previousLink) {
  982. $this->previousLink = $previousLink;
  983. }
  984. public function getPreviousLink() {
  985. return $this->previousLink;
  986. }
  987. public function setStartIndex($startIndex) {
  988. $this->startIndex = $startIndex;
  989. }
  990. public function getStartIndex() {
  991. return $this->startIndex;
  992. }
  993. public function setNextLink($nextLink) {
  994. $this->nextLink = $nextLink;
  995. }
  996. public function getNextLink() {
  997. return $this->nextLink;
  998. }
  999. public function setTotalResults($totalResults) {
  1000. $this->totalResults = $totalResults;
  1001. }
  1002. public function getTotalResults() {
  1003. return $this->totalResults;
  1004. }
  1005. }
  1006. class Profile extends apiModel {
  1007. public $defaultPage;
  1008. public $kind;
  1009. public $excludeQueryParameters;
  1010. public $name;
  1011. public $created;
  1012. public $webPropertyId;
  1013. public $updated;
  1014. public $siteSearchQueryParameters;
  1015. public $currency;
  1016. public $internalWebPropertyId;
  1017. protected $__childLinkType = 'ProfileChildLink';
  1018. protected $__childLinkDataType = '';
  1019. public $childLink;
  1020. public $timezone;
  1021. public $siteSearchCategoryParameters;
  1022. protected $__parentLinkType = 'ProfileParentLink';
  1023. protected $__parentLinkDataType = '';
  1024. public $parentLink;
  1025. public $id;
  1026. public $selfLink;
  1027. public $accountId;
  1028. public function setDefaultPage($defaultPage) {
  1029. $this->defaultPage = $defaultPage;
  1030. }
  1031. public function getDefaultPage() {
  1032. return $this->defaultPage;
  1033. }
  1034. public function setKind($kind) {
  1035. $this->kind = $kind;
  1036. }
  1037. public function getKind() {
  1038. return $this->kind;
  1039. }
  1040. public function setExcludeQueryParameters($excludeQueryParameters) {
  1041. $this->excludeQueryParameters = $excludeQueryParameters;
  1042. }
  1043. public function getExcludeQueryParameters() {
  1044. return $this->excludeQueryParameters;
  1045. }
  1046. public function setName($name) {
  1047. $this->name = $name;
  1048. }
  1049. public function getName() {
  1050. return $this->name;
  1051. }
  1052. public function setCreated($created) {
  1053. $this->created = $created;
  1054. }
  1055. public function getCreated() {
  1056. return $this->created;
  1057. }
  1058. public function setWebPropertyId($webPropertyId) {
  1059. $this->webPropertyId = $webPropertyId;
  1060. }
  1061. public function getWebPropertyId() {
  1062. return $this->webPropertyId;
  1063. }
  1064. public function setUpdated($updated) {
  1065. $this->updated = $updated;
  1066. }
  1067. public function getUpdated() {
  1068. return $this->updated;
  1069. }
  1070. public function setSiteSearchQueryParameters($siteSearchQueryParameters) {
  1071. $this->siteSearchQueryParameters = $siteSearchQueryParameters;
  1072. }
  1073. public function getSiteSearchQueryParameters() {
  1074. return $this->siteSearchQueryParameters;
  1075. }
  1076. public function setCurrency($currency) {
  1077. $this->currency = $currency;
  1078. }
  1079. public function getCurrency() {
  1080. return $this->currency;
  1081. }
  1082. public function setInternalWebPropertyId($internalWebPropertyId) {
  1083. $this->internalWebPropertyId = $internalWebPropertyId;
  1084. }
  1085. public function getInternalWebPropertyId() {
  1086. return $this->internalWebPropertyId;
  1087. }
  1088. public function setChildLink(ProfileChildLink $childLink) {
  1089. $this->childLink = $childLink;
  1090. }
  1091. public function getChildLink() {
  1092. return $this->childLink;
  1093. }
  1094. public function setTimezone($timezone) {
  1095. $this->timezone = $timezone;
  1096. }
  1097. public function getTimezone() {
  1098. return $this->timezone;
  1099. }
  1100. public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) {
  1101. $this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
  1102. }
  1103. public function getSiteSearchCategoryParameters() {
  1104. return $this->siteSearchCategoryParameters;
  1105. }
  1106. public function setParentLink(ProfileParentLink $parentLink) {
  1107. $this->parentLink = $parentLink;
  1108. }
  1109. public function getParentLink() {
  1110. return $this->parentLink;
  1111. }
  1112. public function setId($id) {
  1113. $this->id = $id;
  1114. }
  1115. public function getId() {
  1116. return $this->id;
  1117. }
  1118. public function setSelfLink($selfLink) {
  1119. $this->selfLink = $selfLink;
  1120. }
  1121. public function getSelfLink() {
  1122. return $this->selfLink;
  1123. }
  1124. public function setAccountId($accountId) {
  1125. $this->accountId = $accountId;
  1126. }
  1127. public function getAccountId() {
  1128. return $this->accountId;
  1129. }
  1130. }
  1131. class ProfileChildLink extends apiModel {
  1132. public $href;
  1133. public $type;
  1134. public function setHref($href) {
  1135. $this->href = $href;
  1136. }
  1137. public function getHref() {
  1138. return $this->href;
  1139. }
  1140. public function setType($type) {
  1141. $this->type = $type;
  1142. }
  1143. public function getType() {
  1144. return $this->type;
  1145. }
  1146. }
  1147. class ProfileParentLink extends apiModel {
  1148. public $href;
  1149. public $type;
  1150. public function setHref($href) {
  1151. $this->href = $href;
  1152. }
  1153. public function getHref() {
  1154. return $this->href;
  1155. }
  1156. public function setType($type) {
  1157. $this->type = $type;
  1158. }
  1159. public function getType() {
  1160. return $this->type;
  1161. }
  1162. }
  1163. class Profiles extends apiModel {
  1164. public $username;
  1165. public $kind;
  1166. protected $__itemsType = 'Profile';
  1167. protected $__itemsDataType = 'array';
  1168. public $items;
  1169. public $itemsPerPage;
  1170. public $previousLink;
  1171. public $startIndex;
  1172. public $nextLink;
  1173. public $totalResults;
  1174. public function setUsername($username) {
  1175. $this->username = $username;
  1176. }
  1177. public function getUsername() {
  1178. return $this->username;
  1179. }
  1180. public function setKind($kind) {
  1181. $this->kind = $kind;
  1182. }
  1183. public function getKind() {
  1184. return $this->kind;
  1185. }
  1186. public function setItems(/* array(Profile) */ $items) {
  1187. $this->assertIsArray($items, 'Profile', __METHOD__);
  1188. $this->items = $items;
  1189. }
  1190. public function getItems() {
  1191. return $this->items;
  1192. }
  1193. public function setItemsPerPage($itemsPerPage) {
  1194. $this->itemsPerPage = $itemsPerPage;
  1195. }
  1196. public function getItemsPerPage() {
  1197. return $this->itemsPerPage;
  1198. }
  1199. public function setPreviousLink($previousLink) {
  1200. $this->previousLink = $previousLink;
  1201. }
  1202. public function getPreviousLink() {
  1203. return $this->previousLink;
  1204. }
  1205. public function setStartIndex($startIndex) {
  1206. $this->startIndex = $startIndex;
  1207. }
  1208. public function getStartIndex() {
  1209. return $this->startIndex;
  1210. }
  1211. public function setNextLink($nextLink) {
  1212. $this->nextLink = $nextLink;
  1213. }
  1214. public function getNextLink() {
  1215. return $this->nextLink;
  1216. }
  1217. public function setTotalResults($totalResults) {
  1218. $this->totalResults = $totalResults;
  1219. }
  1220. public function getTotalResults() {
  1221. return $this->totalResults;
  1222. }
  1223. }
  1224. class Segment extends apiModel {
  1225. public $definition;
  1226. public $kind;
  1227. public $segmentId;
  1228. public $created;
  1229. public $updated;
  1230. public $id;
  1231. public $selfLink;
  1232. public $name;
  1233. public function setDefinition($definition) {
  1234. $this->definition = $definition;
  1235. }
  1236. public function getDefinition() {
  1237. return $this->definition;
  1238. }
  1239. public function setKind($kind) {
  1240. $this->kind = $kind;
  1241. }
  1242. public function getKind() {
  1243. return $this->kind;
  1244. }
  1245. public function setSegmentId($segmentId) {
  1246. $this->segmentId = $segmentId;
  1247. }
  1248. public function getSegmentId() {
  1249. return $this->segmentId;
  1250. }
  1251. public function setCreated($created) {
  1252. $this->created = $created;
  1253. }
  1254. public function getCreated() {
  1255. return $this->created;
  1256. }
  1257. public function setUpdated($updated) {
  1258. $this->updated = $updated;
  1259. }
  1260. public function getUpdated() {
  1261. return $this->updated;
  1262. }
  1263. public function setId($id) {
  1264. $this->id = $id;
  1265. }
  1266. public function getId() {
  1267. return $this->id;
  1268. }
  1269. public function setSelfLink($selfLink) {
  1270. $this->selfLink = $selfLink;
  1271. }
  1272. public function getSelfLink() {
  1273. return $this->selfLink;
  1274. }
  1275. public function setName($name) {
  1276. $this->name = $name;
  1277. }
  1278. public function getName() {
  1279. return $this->name;
  1280. }
  1281. }
  1282. class Segments extends apiModel {
  1283. public $username;
  1284. public $kind;
  1285. protected $__itemsType = 'Segment';
  1286. protected $__itemsDataType = 'array';
  1287. public $items;
  1288. public $itemsPerPage;
  1289. public $previousLink;
  1290. public $startIndex;
  1291. public $nextLink;
  1292. public $totalResults;
  1293. public function setUsername($username) {
  1294. $this->username = $username;
  1295. }
  1296. public function getUsername() {
  1297. return $this->username;
  1298. }
  1299. public function setKind($kind) {
  1300. $this->kind = $kind;
  1301. }
  1302. public function getKind() {
  1303. return $this->kind;
  1304. }
  1305. public function setItems(/* array(Segment) */ $items) {
  1306. $this->assertIsArray($items, 'Segment', __METHOD__);
  1307. $this->items = $items;
  1308. }
  1309. public function getItems() {
  1310. return $this->items;
  1311. }
  1312. public function setItemsPerPage($itemsPerPage) {
  1313. $this->itemsPerPage = $itemsPerPage;
  1314. }
  1315. public function getItemsPerPage() {
  1316. return $this->itemsPerPage;
  1317. }
  1318. public function setPreviousLink($previousLink) {
  1319. $this->previousLink = $previousLink;
  1320. }
  1321. public function getPreviousLink() {
  1322. return $this->previousLink;
  1323. }
  1324. public function setStartIndex($startIndex) {
  1325. $this->startIndex = $startIndex;
  1326. }
  1327. public function getStartIndex() {
  1328. return $this->startIndex;
  1329. }
  1330. public function setNextLink($nextLink) {
  1331. $this->nextLink = $nextLink;
  1332. }
  1333. public function getNextLink() {
  1334. return $this->nextLink;
  1335. }
  1336. public function setTotalResults($totalResults) {
  1337. $this->totalResults = $totalResults;
  1338. }
  1339. public function getTotalResults() {
  1340. return $this->totalResults;
  1341. }
  1342. }
  1343. class Webproperties extends apiModel {
  1344. public $username;
  1345. public $kind;
  1346. protected $__itemsType = 'Webproperty';
  1347. protected $__itemsDataType = 'array';
  1348. public $items;
  1349. public $itemsPerPage;
  1350. public $previousLink;
  1351. public $startIndex;
  1352. public $nextLink;
  1353. public $totalResults;
  1354. public function setUsername($username) {
  1355. $this->username = $username;
  1356. }
  1357. public function getUsername() {
  1358. return $this->username;
  1359. }
  1360. public function setKind($kind) {
  1361. $this->kind = $kind;
  1362. }
  1363. public function getKind() {
  1364. return $this->kind;
  1365. }
  1366. public function setItems(/* array(Webproperty) */ $items) {
  1367. $this->assertIsArray($items, 'Webproperty', __METHOD__);
  1368. $this->items = $items;
  1369. }
  1370. public function getItems() {
  1371. return $this->items;
  1372. }
  1373. public function setItemsPerPage($itemsPerPage) {
  1374. $this->itemsPerPage = $itemsPerPage;
  1375. }
  1376. public function getItemsPerPage() {
  1377. return $this->itemsPerPage;
  1378. }
  1379. public function setPreviousLink($previousLink) {
  1380. $this->previousLink = $previousLink;
  1381. }
  1382. public function getPreviousLink() {
  1383. return $this->previousLink;
  1384. }
  1385. public function setStartIndex($startIndex) {
  1386. $this->startIndex = $startIndex;
  1387. }
  1388. public function getStartIndex() {
  1389. return $this->startIndex;
  1390. }
  1391. public function setNextLink($nextLink) {
  1392. $this->nextLink = $nextLink;
  1393. }
  1394. public function getNextLink() {
  1395. return $this->nextLink;
  1396. }
  1397. public function setTotalResults($totalResults) {
  1398. $this->totalResults = $totalResults;
  1399. }
  1400. public function getTotalResults() {
  1401. return $this->totalResults;
  1402. }
  1403. }
  1404. class Webproperty extends apiModel {
  1405. public $kind;
  1406. public $name;
  1407. public $created;
  1408. public $updated;
  1409. public $websiteUrl;
  1410. public $internalWebPropertyId;
  1411. protected $__childLinkType = 'WebpropertyChildLink';
  1412. protected $__childLinkDataType = '';
  1413. public $childLink;
  1414. protected $__parentLinkType = 'WebpropertyParentLink';
  1415. protected $__parentLinkDataType = '';
  1416. public $parentLink;
  1417. public $id;
  1418. public $selfLink;
  1419. public $accountId;
  1420. public function setKind($kind) {
  1421. $this->kind = $kind;
  1422. }
  1423. public function getKind() {
  1424. return $this->kind;
  1425. }
  1426. public function setName($name) {
  1427. $this->name = $name;
  1428. }
  1429. public function getName() {
  1430. return $this->name;
  1431. }
  1432. public function setCreated($created) {
  1433. $this->created = $created;
  1434. }
  1435. public function getCreated() {
  1436. return $this->created;
  1437. }
  1438. public function setUpdated($updated) {
  1439. $this->updated = $updated;
  1440. }
  1441. public function getUpdated() {
  1442. return $this->updated;
  1443. }
  1444. public function setWebsiteUrl($websiteUrl) {
  1445. $this->websiteUrl = $websiteUrl;
  1446. }
  1447. public function getWebsiteUrl() {
  1448. return $this->websiteUrl;
  1449. }
  1450. public function setInternalWebPropertyId($internalWebPropertyId) {
  1451. $this->internalWebPropertyId = $internalWebPropertyId;
  1452. }
  1453. public function getInternalWebPropertyId() {
  1454. return $this->internalWebPropertyId;
  1455. }
  1456. public function setChildLink(WebpropertyChildLink $childLink) {
  1457. $this->childLink = $childLink;
  1458. }
  1459. public function getChildLink() {
  1460. return $this->childLink;
  1461. }
  1462. public function setParentLink(WebpropertyParentLink $parentLink) {
  1463. $this->parentLink = $parentLink;
  1464. }
  1465. public function getParentLink() {
  1466. return $this->parentLink;
  1467. }
  1468. public function setId($id) {
  1469. $this->id = $id;
  1470. }
  1471. public function getId() {
  1472. return $this->id;
  1473. }
  1474. public function setSelfLink($selfLink) {
  1475. $this->selfLink = $selfLink;
  1476. }
  1477. public function getSelfLink() {
  1478. return $this->selfLink;
  1479. }
  1480. public function setAccountId($accountId) {
  1481. $this->accountId = $accountId;
  1482. }
  1483. public function getAccountId() {
  1484. return $this->accountId;
  1485. }
  1486. }
  1487. class WebpropertyChildLink extends apiModel {
  1488. public $href;
  1489. public $type;
  1490. public function setHref($href) {
  1491. $this->href = $href;
  1492. }
  1493. public function getHref() {
  1494. return $this->href;
  1495. }
  1496. public function setType($type) {
  1497. $this->type = $type;
  1498. }
  1499. public function getType() {
  1500. return $this->type;
  1501. }
  1502. }
  1503. class WebpropertyParentLink extends apiModel {
  1504. public $href;
  1505. public $type;
  1506. public function setHref($href) {
  1507. $this->href = $href;
  1508. }
  1509. public function getHref() {
  1510. return $this->href;
  1511. }
  1512. public function setType($type) {
  1513. $this->type = $type;
  1514. }
  1515. public function getType() {
  1516. return $this->type;
  1517. }
  1518. }