PageRenderTime 56ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/src/contrib/apiAnalyticsService.php

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