PageRenderTime 50ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/Fitness.php

http://github.com/moodle/moodle
PHP | 1568 lines | 1195 code | 85 blank | 288 comment | 0 complexity | 0e2a6679e3b35b270abf6233c62b22c8 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
  1. <?php
  2. /*
  3. * Copyright 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. /**
  18. * Service definition for Fitness (v1).
  19. *
  20. * <p>
  21. * Google Fit API</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/fit/rest/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Fitness extends Google_Service
  31. {
  32. /** View your activity information in Google Fit. */
  33. const FITNESS_ACTIVITY_READ =
  34. "https://www.googleapis.com/auth/fitness.activity.read";
  35. /** View and store your activity information in Google Fit. */
  36. const FITNESS_ACTIVITY_WRITE =
  37. "https://www.googleapis.com/auth/fitness.activity.write";
  38. /** View body sensor information in Google Fit. */
  39. const FITNESS_BODY_READ =
  40. "https://www.googleapis.com/auth/fitness.body.read";
  41. /** View and store body sensor data in Google Fit. */
  42. const FITNESS_BODY_WRITE =
  43. "https://www.googleapis.com/auth/fitness.body.write";
  44. /** View your stored location data in Google Fit. */
  45. const FITNESS_LOCATION_READ =
  46. "https://www.googleapis.com/auth/fitness.location.read";
  47. /** View and store your location data in Google Fit. */
  48. const FITNESS_LOCATION_WRITE =
  49. "https://www.googleapis.com/auth/fitness.location.write";
  50. public $users_dataSources;
  51. public $users_dataSources_datasets;
  52. public $users_dataset;
  53. public $users_sessions;
  54. /**
  55. * Constructs the internal representation of the Fitness service.
  56. *
  57. * @param Google_Client $client
  58. */
  59. public function __construct(Google_Client $client)
  60. {
  61. parent::__construct($client);
  62. $this->rootUrl = 'https://www.googleapis.com/';
  63. $this->servicePath = 'fitness/v1/users/';
  64. $this->version = 'v1';
  65. $this->serviceName = 'fitness';
  66. $this->users_dataSources = new Google_Service_Fitness_UsersDataSources_Resource(
  67. $this,
  68. $this->serviceName,
  69. 'dataSources',
  70. array(
  71. 'methods' => array(
  72. 'create' => array(
  73. 'path' => '{userId}/dataSources',
  74. 'httpMethod' => 'POST',
  75. 'parameters' => array(
  76. 'userId' => array(
  77. 'location' => 'path',
  78. 'type' => 'string',
  79. 'required' => true,
  80. ),
  81. ),
  82. ),'delete' => array(
  83. 'path' => '{userId}/dataSources/{dataSourceId}',
  84. 'httpMethod' => 'DELETE',
  85. 'parameters' => array(
  86. 'userId' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. 'dataSourceId' => array(
  92. 'location' => 'path',
  93. 'type' => 'string',
  94. 'required' => true,
  95. ),
  96. ),
  97. ),'get' => array(
  98. 'path' => '{userId}/dataSources/{dataSourceId}',
  99. 'httpMethod' => 'GET',
  100. 'parameters' => array(
  101. 'userId' => array(
  102. 'location' => 'path',
  103. 'type' => 'string',
  104. 'required' => true,
  105. ),
  106. 'dataSourceId' => array(
  107. 'location' => 'path',
  108. 'type' => 'string',
  109. 'required' => true,
  110. ),
  111. ),
  112. ),'list' => array(
  113. 'path' => '{userId}/dataSources',
  114. 'httpMethod' => 'GET',
  115. 'parameters' => array(
  116. 'userId' => array(
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ),
  121. 'dataTypeName' => array(
  122. 'location' => 'query',
  123. 'type' => 'string',
  124. 'repeated' => true,
  125. ),
  126. ),
  127. ),'patch' => array(
  128. 'path' => '{userId}/dataSources/{dataSourceId}',
  129. 'httpMethod' => 'PATCH',
  130. 'parameters' => array(
  131. 'userId' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. 'dataSourceId' => array(
  137. 'location' => 'path',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ),
  141. ),
  142. ),'update' => array(
  143. 'path' => '{userId}/dataSources/{dataSourceId}',
  144. 'httpMethod' => 'PUT',
  145. 'parameters' => array(
  146. 'userId' => array(
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ),
  151. 'dataSourceId' => array(
  152. 'location' => 'path',
  153. 'type' => 'string',
  154. 'required' => true,
  155. ),
  156. ),
  157. ),
  158. )
  159. )
  160. );
  161. $this->users_dataSources_datasets = new Google_Service_Fitness_UsersDataSourcesDatasets_Resource(
  162. $this,
  163. $this->serviceName,
  164. 'datasets',
  165. array(
  166. 'methods' => array(
  167. 'delete' => array(
  168. 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
  169. 'httpMethod' => 'DELETE',
  170. 'parameters' => array(
  171. 'userId' => array(
  172. 'location' => 'path',
  173. 'type' => 'string',
  174. 'required' => true,
  175. ),
  176. 'dataSourceId' => array(
  177. 'location' => 'path',
  178. 'type' => 'string',
  179. 'required' => true,
  180. ),
  181. 'datasetId' => array(
  182. 'location' => 'path',
  183. 'type' => 'string',
  184. 'required' => true,
  185. ),
  186. 'modifiedTimeMillis' => array(
  187. 'location' => 'query',
  188. 'type' => 'string',
  189. ),
  190. 'currentTimeMillis' => array(
  191. 'location' => 'query',
  192. 'type' => 'string',
  193. ),
  194. ),
  195. ),'get' => array(
  196. 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
  197. 'httpMethod' => 'GET',
  198. 'parameters' => array(
  199. 'userId' => array(
  200. 'location' => 'path',
  201. 'type' => 'string',
  202. 'required' => true,
  203. ),
  204. 'dataSourceId' => array(
  205. 'location' => 'path',
  206. 'type' => 'string',
  207. 'required' => true,
  208. ),
  209. 'datasetId' => array(
  210. 'location' => 'path',
  211. 'type' => 'string',
  212. 'required' => true,
  213. ),
  214. 'limit' => array(
  215. 'location' => 'query',
  216. 'type' => 'integer',
  217. ),
  218. 'pageToken' => array(
  219. 'location' => 'query',
  220. 'type' => 'string',
  221. ),
  222. ),
  223. ),'patch' => array(
  224. 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
  225. 'httpMethod' => 'PATCH',
  226. 'parameters' => array(
  227. 'userId' => array(
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ),
  232. 'dataSourceId' => array(
  233. 'location' => 'path',
  234. 'type' => 'string',
  235. 'required' => true,
  236. ),
  237. 'datasetId' => array(
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ),
  242. 'currentTimeMillis' => array(
  243. 'location' => 'query',
  244. 'type' => 'string',
  245. ),
  246. ),
  247. ),
  248. )
  249. )
  250. );
  251. $this->users_dataset = new Google_Service_Fitness_UsersDataset_Resource(
  252. $this,
  253. $this->serviceName,
  254. 'dataset',
  255. array(
  256. 'methods' => array(
  257. 'aggregate' => array(
  258. 'path' => '{userId}/dataset:aggregate',
  259. 'httpMethod' => 'POST',
  260. 'parameters' => array(
  261. 'userId' => array(
  262. 'location' => 'path',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ),
  266. ),
  267. ),
  268. )
  269. )
  270. );
  271. $this->users_sessions = new Google_Service_Fitness_UsersSessions_Resource(
  272. $this,
  273. $this->serviceName,
  274. 'sessions',
  275. array(
  276. 'methods' => array(
  277. 'delete' => array(
  278. 'path' => '{userId}/sessions/{sessionId}',
  279. 'httpMethod' => 'DELETE',
  280. 'parameters' => array(
  281. 'userId' => array(
  282. 'location' => 'path',
  283. 'type' => 'string',
  284. 'required' => true,
  285. ),
  286. 'sessionId' => array(
  287. 'location' => 'path',
  288. 'type' => 'string',
  289. 'required' => true,
  290. ),
  291. 'currentTimeMillis' => array(
  292. 'location' => 'query',
  293. 'type' => 'string',
  294. ),
  295. ),
  296. ),'list' => array(
  297. 'path' => '{userId}/sessions',
  298. 'httpMethod' => 'GET',
  299. 'parameters' => array(
  300. 'userId' => array(
  301. 'location' => 'path',
  302. 'type' => 'string',
  303. 'required' => true,
  304. ),
  305. 'pageToken' => array(
  306. 'location' => 'query',
  307. 'type' => 'string',
  308. ),
  309. 'endTime' => array(
  310. 'location' => 'query',
  311. 'type' => 'string',
  312. ),
  313. 'includeDeleted' => array(
  314. 'location' => 'query',
  315. 'type' => 'boolean',
  316. ),
  317. 'startTime' => array(
  318. 'location' => 'query',
  319. 'type' => 'string',
  320. ),
  321. ),
  322. ),'update' => array(
  323. 'path' => '{userId}/sessions/{sessionId}',
  324. 'httpMethod' => 'PUT',
  325. 'parameters' => array(
  326. 'userId' => array(
  327. 'location' => 'path',
  328. 'type' => 'string',
  329. 'required' => true,
  330. ),
  331. 'sessionId' => array(
  332. 'location' => 'path',
  333. 'type' => 'string',
  334. 'required' => true,
  335. ),
  336. 'currentTimeMillis' => array(
  337. 'location' => 'query',
  338. 'type' => 'string',
  339. ),
  340. ),
  341. ),
  342. )
  343. )
  344. );
  345. }
  346. }
  347. /**
  348. * The "users" collection of methods.
  349. * Typical usage is:
  350. * <code>
  351. * $fitnessService = new Google_Service_Fitness(...);
  352. * $users = $fitnessService->users;
  353. * </code>
  354. */
  355. class Google_Service_Fitness_Users_Resource extends Google_Service_Resource
  356. {
  357. }
  358. /**
  359. * The "dataSources" collection of methods.
  360. * Typical usage is:
  361. * <code>
  362. * $fitnessService = new Google_Service_Fitness(...);
  363. * $dataSources = $fitnessService->dataSources;
  364. * </code>
  365. */
  366. class Google_Service_Fitness_UsersDataSources_Resource extends Google_Service_Resource
  367. {
  368. /**
  369. * Creates a new data source that is unique across all data sources belonging to
  370. * this user. The data stream ID field can be omitted and will be generated by
  371. * the server with the correct format. The data stream ID is an ordered
  372. * combination of some fields from the data source. In addition to the data
  373. * source fields reflected into the data source ID, the developer project number
  374. * that is authenticated when creating the data source is included. This
  375. * developer project number is obfuscated when read by any other developer
  376. * reading public data types. (dataSources.create)
  377. *
  378. * @param string $userId Create the data source for the person identified. Use
  379. * me to indicate the authenticated user. Only me is supported at this time.
  380. * @param Google_DataSource $postBody
  381. * @param array $optParams Optional parameters.
  382. * @return Google_Service_Fitness_DataSource
  383. */
  384. public function create($userId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
  385. {
  386. $params = array('userId' => $userId, 'postBody' => $postBody);
  387. $params = array_merge($params, $optParams);
  388. return $this->call('create', array($params), "Google_Service_Fitness_DataSource");
  389. }
  390. /**
  391. * Delete the data source if there are no datapoints associated with it
  392. * (dataSources.delete)
  393. *
  394. * @param string $userId Retrieve a data source for the person identified. Use
  395. * me to indicate the authenticated user. Only me is supported at this time.
  396. * @param string $dataSourceId The data stream ID of the data source to delete.
  397. * @param array $optParams Optional parameters.
  398. * @return Google_Service_Fitness_DataSource
  399. */
  400. public function delete($userId, $dataSourceId, $optParams = array())
  401. {
  402. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId);
  403. $params = array_merge($params, $optParams);
  404. return $this->call('delete', array($params), "Google_Service_Fitness_DataSource");
  405. }
  406. /**
  407. * Returns a data source identified by a data stream ID. (dataSources.get)
  408. *
  409. * @param string $userId Retrieve a data source for the person identified. Use
  410. * me to indicate the authenticated user. Only me is supported at this time.
  411. * @param string $dataSourceId The data stream ID of the data source to
  412. * retrieve.
  413. * @param array $optParams Optional parameters.
  414. * @return Google_Service_Fitness_DataSource
  415. */
  416. public function get($userId, $dataSourceId, $optParams = array())
  417. {
  418. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId);
  419. $params = array_merge($params, $optParams);
  420. return $this->call('get', array($params), "Google_Service_Fitness_DataSource");
  421. }
  422. /**
  423. * Lists all data sources that are visible to the developer, using the OAuth
  424. * scopes provided. The list is not exhaustive: the user may have private data
  425. * sources that are only visible to other developers or calls using other
  426. * scopes. (dataSources.listUsersDataSources)
  427. *
  428. * @param string $userId List data sources for the person identified. Use me to
  429. * indicate the authenticated user. Only me is supported at this time.
  430. * @param array $optParams Optional parameters.
  431. *
  432. * @opt_param string dataTypeName The names of data types to include in the
  433. * list. If not specified, all data sources will be returned.
  434. * @return Google_Service_Fitness_ListDataSourcesResponse
  435. */
  436. public function listUsersDataSources($userId, $optParams = array())
  437. {
  438. $params = array('userId' => $userId);
  439. $params = array_merge($params, $optParams);
  440. return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse");
  441. }
  442. /**
  443. * Updates a given data source. It is an error to modify the data source's data
  444. * stream ID, data type, type, stream name or device information apart from the
  445. * device version. Changing these fields would require a new unique data stream
  446. * ID and separate data source.
  447. *
  448. * Data sources are identified by their data stream ID. This method supports
  449. * patch semantics. (dataSources.patch)
  450. *
  451. * @param string $userId Update the data source for the person identified. Use
  452. * me to indicate the authenticated user. Only me is supported at this time.
  453. * @param string $dataSourceId The data stream ID of the data source to update.
  454. * @param Google_DataSource $postBody
  455. * @param array $optParams Optional parameters.
  456. * @return Google_Service_Fitness_DataSource
  457. */
  458. public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
  459. {
  460. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody);
  461. $params = array_merge($params, $optParams);
  462. return $this->call('patch', array($params), "Google_Service_Fitness_DataSource");
  463. }
  464. /**
  465. * Updates a given data source. It is an error to modify the data source's data
  466. * stream ID, data type, type, stream name or device information apart from the
  467. * device version. Changing these fields would require a new unique data stream
  468. * ID and separate data source.
  469. *
  470. * Data sources are identified by their data stream ID. (dataSources.update)
  471. *
  472. * @param string $userId Update the data source for the person identified. Use
  473. * me to indicate the authenticated user. Only me is supported at this time.
  474. * @param string $dataSourceId The data stream ID of the data source to update.
  475. * @param Google_DataSource $postBody
  476. * @param array $optParams Optional parameters.
  477. * @return Google_Service_Fitness_DataSource
  478. */
  479. public function update($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
  480. {
  481. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody);
  482. $params = array_merge($params, $optParams);
  483. return $this->call('update', array($params), "Google_Service_Fitness_DataSource");
  484. }
  485. }
  486. /**
  487. * The "datasets" collection of methods.
  488. * Typical usage is:
  489. * <code>
  490. * $fitnessService = new Google_Service_Fitness(...);
  491. * $datasets = $fitnessService->datasets;
  492. * </code>
  493. */
  494. class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Service_Resource
  495. {
  496. /**
  497. * Performs an inclusive delete of all data points whose start and end times
  498. * have any overlap with the time range specified by the dataset ID. For most
  499. * data types, the entire data point will be deleted. For data types where the
  500. * time span represents a consistent value (such as
  501. * com.google.activity.segment), and a data point straddles either end point of
  502. * the dataset, only the overlapping portion of the data point will be deleted.
  503. * (datasets.delete)
  504. *
  505. * @param string $userId Delete a dataset for the person identified. Use me to
  506. * indicate the authenticated user. Only me is supported at this time.
  507. * @param string $dataSourceId The data stream ID of the data source that
  508. * created the dataset.
  509. * @param string $datasetId Dataset identifier that is a composite of the
  510. * minimum data point start time and maximum data point end time represented as
  511. * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
  512. * where startTime and endTime are 64 bit integers.
  513. * @param array $optParams Optional parameters.
  514. *
  515. * @opt_param string modifiedTimeMillis When the operation was performed on the
  516. * client.
  517. * @opt_param string currentTimeMillis The client's current time in milliseconds
  518. * since epoch.
  519. */
  520. public function delete($userId, $dataSourceId, $datasetId, $optParams = array())
  521. {
  522. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId);
  523. $params = array_merge($params, $optParams);
  524. return $this->call('delete', array($params));
  525. }
  526. /**
  527. * Returns a dataset containing all data points whose start and end times
  528. * overlap with the specified range of the dataset minimum start time and
  529. * maximum end time. Specifically, any data point whose start time is less than
  530. * or equal to the dataset end time and whose end time is greater than or equal
  531. * to the dataset start time. (datasets.get)
  532. *
  533. * @param string $userId Retrieve a dataset for the person identified. Use me to
  534. * indicate the authenticated user. Only me is supported at this time.
  535. * @param string $dataSourceId The data stream ID of the data source that
  536. * created the dataset.
  537. * @param string $datasetId Dataset identifier that is a composite of the
  538. * minimum data point start time and maximum data point end time represented as
  539. * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
  540. * where startTime and endTime are 64 bit integers.
  541. * @param array $optParams Optional parameters.
  542. *
  543. * @opt_param int limit If specified, no more than this many data points will be
  544. * included in the dataset. If the there are more data points in the dataset,
  545. * nextPageToken will be set in the dataset response.
  546. * @opt_param string pageToken The continuation token, which is used to page
  547. * through large datasets. To get the next page of a dataset, set this parameter
  548. * to the value of nextPageToken from the previous response. Each subsequent
  549. * call will yield a partial dataset with data point end timestamps that are
  550. * strictly smaller than those in the previous partial response.
  551. * @return Google_Service_Fitness_Dataset
  552. */
  553. public function get($userId, $dataSourceId, $datasetId, $optParams = array())
  554. {
  555. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId);
  556. $params = array_merge($params, $optParams);
  557. return $this->call('get', array($params), "Google_Service_Fitness_Dataset");
  558. }
  559. /**
  560. * Adds data points to a dataset. The dataset need not be previously created.
  561. * All points within the given dataset will be returned with subsquent calls to
  562. * retrieve this dataset. Data points can belong to more than one dataset. This
  563. * method does not use patch semantics. (datasets.patch)
  564. *
  565. * @param string $userId Patch a dataset for the person identified. Use me to
  566. * indicate the authenticated user. Only me is supported at this time.
  567. * @param string $dataSourceId The data stream ID of the data source that
  568. * created the dataset.
  569. * @param string $datasetId Dataset identifier that is a composite of the
  570. * minimum data point start time and maximum data point end time represented as
  571. * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
  572. * where startTime and endTime are 64 bit integers.
  573. * @param Google_Dataset $postBody
  574. * @param array $optParams Optional parameters.
  575. *
  576. * @opt_param string currentTimeMillis The client's current time in milliseconds
  577. * since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the
  578. * request body are in nanoseconds instead of milliseconds.
  579. * @return Google_Service_Fitness_Dataset
  580. */
  581. public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness_Dataset $postBody, $optParams = array())
  582. {
  583. $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId, 'postBody' => $postBody);
  584. $params = array_merge($params, $optParams);
  585. return $this->call('patch', array($params), "Google_Service_Fitness_Dataset");
  586. }
  587. }
  588. /**
  589. * The "dataset" collection of methods.
  590. * Typical usage is:
  591. * <code>
  592. * $fitnessService = new Google_Service_Fitness(...);
  593. * $dataset = $fitnessService->dataset;
  594. * </code>
  595. */
  596. class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resource
  597. {
  598. /**
  599. * Aggregates data of a certain type or stream into buckets divided by a given
  600. * type of boundary. Multiple data sets of multiple types and from multiple
  601. * sources can be aggreated into exactly one bucket type per request.
  602. * (dataset.aggregate)
  603. *
  604. * @param string $userId Aggregate data for the person identified. Use me to
  605. * indicate the authenticated user. Only me is supported at this time.
  606. * @param Google_AggregateRequest $postBody
  607. * @param array $optParams Optional parameters.
  608. * @return Google_Service_Fitness_AggregateResponse
  609. */
  610. public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array())
  611. {
  612. $params = array('userId' => $userId, 'postBody' => $postBody);
  613. $params = array_merge($params, $optParams);
  614. return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse");
  615. }
  616. }
  617. /**
  618. * The "sessions" collection of methods.
  619. * Typical usage is:
  620. * <code>
  621. * $fitnessService = new Google_Service_Fitness(...);
  622. * $sessions = $fitnessService->sessions;
  623. * </code>
  624. */
  625. class Google_Service_Fitness_UsersSessions_Resource extends Google_Service_Resource
  626. {
  627. /**
  628. * Deletes a session specified by the given session ID. (sessions.delete)
  629. *
  630. * @param string $userId Delete a session for the person identified. Use me to
  631. * indicate the authenticated user. Only me is supported at this time.
  632. * @param string $sessionId The ID of the session to be deleted.
  633. * @param array $optParams Optional parameters.
  634. *
  635. * @opt_param string currentTimeMillis The client's current time in milliseconds
  636. * since epoch.
  637. */
  638. public function delete($userId, $sessionId, $optParams = array())
  639. {
  640. $params = array('userId' => $userId, 'sessionId' => $sessionId);
  641. $params = array_merge($params, $optParams);
  642. return $this->call('delete', array($params));
  643. }
  644. /**
  645. * Lists sessions previously created. (sessions.listUsersSessions)
  646. *
  647. * @param string $userId List sessions for the person identified. Use me to
  648. * indicate the authenticated user. Only me is supported at this time.
  649. * @param array $optParams Optional parameters.
  650. *
  651. * @opt_param string pageToken The continuation token, which is used to page
  652. * through large result sets. To get the next page of results, set this
  653. * parameter to the value of nextPageToken from the previous response.
  654. * @opt_param string endTime An RFC3339 timestamp. Only sessions ending between
  655. * the start and end times will be included in the response.
  656. * @opt_param bool includeDeleted If true, deleted sessions will be returned.
  657. * When set to true, sessions returned in this response will only have an ID and
  658. * will not have any other fields.
  659. * @opt_param string startTime An RFC3339 timestamp. Only sessions ending
  660. * between the start and end times will be included in the response.
  661. * @return Google_Service_Fitness_ListSessionsResponse
  662. */
  663. public function listUsersSessions($userId, $optParams = array())
  664. {
  665. $params = array('userId' => $userId);
  666. $params = array_merge($params, $optParams);
  667. return $this->call('list', array($params), "Google_Service_Fitness_ListSessionsResponse");
  668. }
  669. /**
  670. * Updates or insert a given session. (sessions.update)
  671. *
  672. * @param string $userId Create sessions for the person identified. Use me to
  673. * indicate the authenticated user. Only me is supported at this time.
  674. * @param string $sessionId The ID of the session to be created.
  675. * @param Google_Session $postBody
  676. * @param array $optParams Optional parameters.
  677. *
  678. * @opt_param string currentTimeMillis The client's current time in milliseconds
  679. * since epoch.
  680. * @return Google_Service_Fitness_Session
  681. */
  682. public function update($userId, $sessionId, Google_Service_Fitness_Session $postBody, $optParams = array())
  683. {
  684. $params = array('userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody);
  685. $params = array_merge($params, $optParams);
  686. return $this->call('update', array($params), "Google_Service_Fitness_Session");
  687. }
  688. }
  689. class Google_Service_Fitness_AggregateBucket extends Google_Collection
  690. {
  691. protected $collection_key = 'dataset';
  692. protected $internal_gapi_mappings = array(
  693. );
  694. public $activity;
  695. protected $datasetType = 'Google_Service_Fitness_Dataset';
  696. protected $datasetDataType = 'array';
  697. public $endTimeMillis;
  698. protected $sessionType = 'Google_Service_Fitness_Session';
  699. protected $sessionDataType = '';
  700. public $startTimeMillis;
  701. public $type;
  702. public function setActivity($activity)
  703. {
  704. $this->activity = $activity;
  705. }
  706. public function getActivity()
  707. {
  708. return $this->activity;
  709. }
  710. public function setDataset($dataset)
  711. {
  712. $this->dataset = $dataset;
  713. }
  714. public function getDataset()
  715. {
  716. return $this->dataset;
  717. }
  718. public function setEndTimeMillis($endTimeMillis)
  719. {
  720. $this->endTimeMillis = $endTimeMillis;
  721. }
  722. public function getEndTimeMillis()
  723. {
  724. return $this->endTimeMillis;
  725. }
  726. public function setSession(Google_Service_Fitness_Session $session)
  727. {
  728. $this->session = $session;
  729. }
  730. public function getSession()
  731. {
  732. return $this->session;
  733. }
  734. public function setStartTimeMillis($startTimeMillis)
  735. {
  736. $this->startTimeMillis = $startTimeMillis;
  737. }
  738. public function getStartTimeMillis()
  739. {
  740. return $this->startTimeMillis;
  741. }
  742. public function setType($type)
  743. {
  744. $this->type = $type;
  745. }
  746. public function getType()
  747. {
  748. return $this->type;
  749. }
  750. }
  751. class Google_Service_Fitness_AggregateBy extends Google_Model
  752. {
  753. protected $internal_gapi_mappings = array(
  754. );
  755. public $dataSourceId;
  756. public $dataTypeName;
  757. public function setDataSourceId($dataSourceId)
  758. {
  759. $this->dataSourceId = $dataSourceId;
  760. }
  761. public function getDataSourceId()
  762. {
  763. return $this->dataSourceId;
  764. }
  765. public function setDataTypeName($dataTypeName)
  766. {
  767. $this->dataTypeName = $dataTypeName;
  768. }
  769. public function getDataTypeName()
  770. {
  771. return $this->dataTypeName;
  772. }
  773. }
  774. class Google_Service_Fitness_AggregateRequest extends Google_Collection
  775. {
  776. protected $collection_key = 'aggregateBy';
  777. protected $internal_gapi_mappings = array(
  778. );
  779. protected $aggregateByType = 'Google_Service_Fitness_AggregateBy';
  780. protected $aggregateByDataType = 'array';
  781. protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity';
  782. protected $bucketByActivitySegmentDataType = '';
  783. protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity';
  784. protected $bucketByActivityTypeDataType = '';
  785. protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession';
  786. protected $bucketBySessionDataType = '';
  787. protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime';
  788. protected $bucketByTimeDataType = '';
  789. public $endTimeMillis;
  790. public $startTimeMillis;
  791. public function setAggregateBy($aggregateBy)
  792. {
  793. $this->aggregateBy = $aggregateBy;
  794. }
  795. public function getAggregateBy()
  796. {
  797. return $this->aggregateBy;
  798. }
  799. public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment)
  800. {
  801. $this->bucketByActivitySegment = $bucketByActivitySegment;
  802. }
  803. public function getBucketByActivitySegment()
  804. {
  805. return $this->bucketByActivitySegment;
  806. }
  807. public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType)
  808. {
  809. $this->bucketByActivityType = $bucketByActivityType;
  810. }
  811. public function getBucketByActivityType()
  812. {
  813. return $this->bucketByActivityType;
  814. }
  815. public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession)
  816. {
  817. $this->bucketBySession = $bucketBySession;
  818. }
  819. public function getBucketBySession()
  820. {
  821. return $this->bucketBySession;
  822. }
  823. public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime)
  824. {
  825. $this->bucketByTime = $bucketByTime;
  826. }
  827. public function getBucketByTime()
  828. {
  829. return $this->bucketByTime;
  830. }
  831. public function setEndTimeMillis($endTimeMillis)
  832. {
  833. $this->endTimeMillis = $endTimeMillis;
  834. }
  835. public function getEndTimeMillis()
  836. {
  837. return $this->endTimeMillis;
  838. }
  839. public function setStartTimeMillis($startTimeMillis)
  840. {
  841. $this->startTimeMillis = $startTimeMillis;
  842. }
  843. public function getStartTimeMillis()
  844. {
  845. return $this->startTimeMillis;
  846. }
  847. }
  848. class Google_Service_Fitness_AggregateResponse extends Google_Collection
  849. {
  850. protected $collection_key = 'bucket';
  851. protected $internal_gapi_mappings = array(
  852. );
  853. protected $bucketType = 'Google_Service_Fitness_AggregateBucket';
  854. protected $bucketDataType = 'array';
  855. public function setBucket($bucket)
  856. {
  857. $this->bucket = $bucket;
  858. }
  859. public function getBucket()
  860. {
  861. return $this->bucket;
  862. }
  863. }
  864. class Google_Service_Fitness_Application extends Google_Model
  865. {
  866. protected $internal_gapi_mappings = array(
  867. );
  868. public $detailsUrl;
  869. public $name;
  870. public $packageName;
  871. public $version;
  872. public function setDetailsUrl($detailsUrl)
  873. {
  874. $this->detailsUrl = $detailsUrl;
  875. }
  876. public function getDetailsUrl()
  877. {
  878. return $this->detailsUrl;
  879. }
  880. public function setName($name)
  881. {
  882. $this->name = $name;
  883. }
  884. public function getName()
  885. {
  886. return $this->name;
  887. }
  888. public function setPackageName($packageName)
  889. {
  890. $this->packageName = $packageName;
  891. }
  892. public function getPackageName()
  893. {
  894. return $this->packageName;
  895. }
  896. public function setVersion($version)
  897. {
  898. $this->version = $version;
  899. }
  900. public function getVersion()
  901. {
  902. return $this->version;
  903. }
  904. }
  905. class Google_Service_Fitness_BucketByActivity extends Google_Model
  906. {
  907. protected $internal_gapi_mappings = array(
  908. );
  909. public $activityDataSourceId;
  910. public $minDurationMillis;
  911. public function setActivityDataSourceId($activityDataSourceId)
  912. {
  913. $this->activityDataSourceId = $activityDataSourceId;
  914. }
  915. public function getActivityDataSourceId()
  916. {
  917. return $this->activityDataSourceId;
  918. }
  919. public function setMinDurationMillis($minDurationMillis)
  920. {
  921. $this->minDurationMillis = $minDurationMillis;
  922. }
  923. public function getMinDurationMillis()
  924. {
  925. return $this->minDurationMillis;
  926. }
  927. }
  928. class Google_Service_Fitness_BucketBySession extends Google_Model
  929. {
  930. protected $internal_gapi_mappings = array(
  931. );
  932. public $minDurationMillis;
  933. public function setMinDurationMillis($minDurationMillis)
  934. {
  935. $this->minDurationMillis = $minDurationMillis;
  936. }
  937. public function getMinDurationMillis()
  938. {
  939. return $this->minDurationMillis;
  940. }
  941. }
  942. class Google_Service_Fitness_BucketByTime extends Google_Model
  943. {
  944. protected $internal_gapi_mappings = array(
  945. );
  946. public $durationMillis;
  947. public function setDurationMillis($durationMillis)
  948. {
  949. $this->durationMillis = $durationMillis;
  950. }
  951. public function getDurationMillis()
  952. {
  953. return $this->durationMillis;
  954. }
  955. }
  956. class Google_Service_Fitness_DataPoint extends Google_Collection
  957. {
  958. protected $collection_key = 'value';
  959. protected $internal_gapi_mappings = array(
  960. );
  961. public $computationTimeMillis;
  962. public $dataTypeName;
  963. public $endTimeNanos;
  964. public $modifiedTimeMillis;
  965. public $originDataSourceId;
  966. public $rawTimestampNanos;
  967. public $startTimeNanos;
  968. protected $valueType = 'Google_Service_Fitness_Value';
  969. protected $valueDataType = 'array';
  970. public function setComputationTimeMillis($computationTimeMillis)
  971. {
  972. $this->computationTimeMillis = $computationTimeMillis;
  973. }
  974. public function getComputationTimeMillis()
  975. {
  976. return $this->computationTimeMillis;
  977. }
  978. public function setDataTypeName($dataTypeName)
  979. {
  980. $this->dataTypeName = $dataTypeName;
  981. }
  982. public function getDataTypeName()
  983. {
  984. return $this->dataTypeName;
  985. }
  986. public function setEndTimeNanos($endTimeNanos)
  987. {
  988. $this->endTimeNanos = $endTimeNanos;
  989. }
  990. public function getEndTimeNanos()
  991. {
  992. return $this->endTimeNanos;
  993. }
  994. public function setModifiedTimeMillis($modifiedTimeMillis)
  995. {
  996. $this->modifiedTimeMillis = $modifiedTimeMillis;
  997. }
  998. public function getModifiedTimeMillis()
  999. {
  1000. return $this->modifiedTimeMillis;
  1001. }
  1002. public function setOriginDataSourceId($originDataSourceId)
  1003. {
  1004. $this->originDataSourceId = $originDataSourceId;
  1005. }
  1006. public function getOriginDataSourceId()
  1007. {
  1008. return $this->originDataSourceId;
  1009. }
  1010. public function setRawTimestampNanos($rawTimestampNanos)
  1011. {
  1012. $this->rawTimestampNanos = $rawTimestampNanos;
  1013. }
  1014. public function getRawTimestampNanos()
  1015. {
  1016. return $this->rawTimestampNanos;
  1017. }
  1018. public function setStartTimeNanos($startTimeNanos)
  1019. {
  1020. $this->startTimeNanos = $startTimeNanos;
  1021. }
  1022. public function getStartTimeNanos()
  1023. {
  1024. return $this->startTimeNanos;
  1025. }
  1026. public function setValue($value)
  1027. {
  1028. $this->value = $value;
  1029. }
  1030. public function getValue()
  1031. {
  1032. return $this->value;
  1033. }
  1034. }
  1035. class Google_Service_Fitness_DataSource extends Google_Model
  1036. {
  1037. protected $internal_gapi_mappings = array(
  1038. );
  1039. protected $applicationType = 'Google_Service_Fitness_Application';
  1040. protected $applicationDataType = '';
  1041. public $dataStreamId;
  1042. public $dataStreamName;
  1043. protected $dataTypeType = 'Google_Service_Fitness_DataType';
  1044. protected $dataTypeDataType = '';
  1045. protected $deviceType = 'Google_Service_Fitness_Device';
  1046. protected $deviceDataType = '';
  1047. public $name;
  1048. public $type;
  1049. public function setApplication(Google_Service_Fitness_Application $application)
  1050. {
  1051. $this->application = $application;
  1052. }
  1053. public function getApplication()
  1054. {
  1055. return $this->application;
  1056. }
  1057. public function setDataStreamId($dataStreamId)
  1058. {
  1059. $this->dataStreamId = $dataStreamId;
  1060. }
  1061. public function getDataStreamId()
  1062. {
  1063. return $this->dataStreamId;
  1064. }
  1065. public function setDataStreamName($dataStreamName)
  1066. {
  1067. $this->dataStreamName = $dataStreamName;
  1068. }
  1069. public function getDataStreamName()
  1070. {
  1071. return $this->dataStreamName;
  1072. }
  1073. public function setDataType(Google_Service_Fitness_DataType $dataType)
  1074. {
  1075. $this->dataType = $dataType;
  1076. }
  1077. public function getDataType()
  1078. {
  1079. return $this->dataType;
  1080. }
  1081. public function setDevice(Google_Service_Fitness_Device $device)
  1082. {
  1083. $this->device = $device;
  1084. }
  1085. public function getDevice()
  1086. {
  1087. return $this->device;
  1088. }
  1089. public function setName($name)
  1090. {
  1091. $this->name = $name;
  1092. }
  1093. public function getName()
  1094. {
  1095. return $this->name;
  1096. }
  1097. public function setType($type)
  1098. {
  1099. $this->type = $type;
  1100. }
  1101. public function getType()
  1102. {
  1103. return $this->type;
  1104. }
  1105. }
  1106. class Google_Service_Fitness_DataType extends Google_Collection
  1107. {
  1108. protected $collection_key = 'field';
  1109. protected $internal_gapi_mappings = array(
  1110. );
  1111. protected $fieldType = 'Google_Service_Fitness_DataTypeField';
  1112. protected $fieldDataType = 'array';
  1113. public $name;
  1114. public function setField($field)
  1115. {
  1116. $this->field = $field;
  1117. }
  1118. public function getField()
  1119. {
  1120. return $this->field;
  1121. }
  1122. public function setName($name)
  1123. {
  1124. $this->name = $name;
  1125. }
  1126. public function getName()
  1127. {
  1128. return $this->name;
  1129. }
  1130. }
  1131. class Google_Service_Fitness_DataTypeField extends Google_Model
  1132. {
  1133. protected $internal_gapi_mappings = array(
  1134. );
  1135. public $format;
  1136. public $name;
  1137. public $optional;
  1138. public function setFormat($format)
  1139. {
  1140. $this->format = $format;
  1141. }
  1142. public function getFormat()
  1143. {
  1144. return $this->format;
  1145. }
  1146. public function setName($name)
  1147. {
  1148. $this->name = $name;
  1149. }
  1150. public function getName()
  1151. {
  1152. return $this->name;
  1153. }
  1154. public function setOptional($optional)
  1155. {
  1156. $this->optional = $optional;
  1157. }
  1158. public function getOptional()
  1159. {
  1160. return $this->optional;
  1161. }
  1162. }
  1163. class Google_Service_Fitness_Dataset extends Google_Collection
  1164. {
  1165. protected $collection_key = 'point';
  1166. protected $internal_gapi_mappings = array(
  1167. );
  1168. public $dataSourceId;
  1169. public $maxEndTimeNs;
  1170. public $minStartTimeNs;
  1171. public $nextPageToken;
  1172. protected $pointType = 'Google_Service_Fitness_DataPoint';
  1173. protected $pointDataType = 'array';
  1174. public function setDataSourceId($dataSourceId)
  1175. {
  1176. $this->dataSourceId = $dataSourceId;
  1177. }
  1178. public function getDataSourceId()
  1179. {
  1180. return $this->dataSourceId;
  1181. }
  1182. public function setMaxEndTimeNs($maxEndTimeNs)
  1183. {
  1184. $this->maxEndTimeNs = $maxEndTimeNs;
  1185. }
  1186. public function getMaxEndTimeNs()
  1187. {
  1188. return $this->maxEndTimeNs;
  1189. }
  1190. public function setMinStartTimeNs($minStartTimeNs)
  1191. {
  1192. $this->minStartTimeNs = $minStartTimeNs;
  1193. }
  1194. public function getMinStartTimeNs()
  1195. {
  1196. return $this->minStartTimeNs;
  1197. }
  1198. public function setNextPageToken($nextPageToken)
  1199. {
  1200. $this->nextPageToken = $nextPageToken;
  1201. }
  1202. public function getNextPageToken()
  1203. {
  1204. return $this->nextPageToken;
  1205. }
  1206. public function setPoint($point)
  1207. {
  1208. $this->point = $point;
  1209. }
  1210. public function getPoint()
  1211. {
  1212. return $this->point;
  1213. }
  1214. }
  1215. class Google_Service_Fitness_Device extends Google_Model
  1216. {
  1217. protected $internal_gapi_mappings = array(
  1218. );
  1219. public $manufacturer;
  1220. public $model;
  1221. public $type;
  1222. public $uid;
  1223. public $version;
  1224. public function setManufacturer($manufacturer)
  1225. {
  1226. $this->manufacturer = $manufacturer;
  1227. }
  1228. public function getManufacturer()
  1229. {
  1230. return $this->manufacturer;
  1231. }
  1232. public function setModel($model)
  1233. {
  1234. $this->model = $model;
  1235. }
  1236. public function getModel()
  1237. {
  1238. return $this->model;
  1239. }
  1240. public function setType($type)
  1241. {
  1242. $this->type = $type;
  1243. }
  1244. public function getType()
  1245. {
  1246. return $this->type;
  1247. }
  1248. public function setUid($uid)
  1249. {
  1250. $this->uid = $uid;
  1251. }
  1252. public function getUid()
  1253. {
  1254. return $this->uid;
  1255. }
  1256. public function setVersion($version)
  1257. {
  1258. $this->version = $version;
  1259. }
  1260. public function getVersion()
  1261. {
  1262. return $this->version;
  1263. }
  1264. }
  1265. class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection
  1266. {
  1267. protected $collection_key = 'dataSource';
  1268. protected $internal_gapi_mappings = array(
  1269. );
  1270. protected $dataSourceType = 'Google_Service_Fitness_DataSource';
  1271. protected $dataSourceDataType = 'array';
  1272. public function setDataSource($dataSource)
  1273. {
  1274. $this->dataSource = $dataSource;
  1275. }
  1276. public function getDataSource()
  1277. {
  1278. return $this->dataSource;
  1279. }
  1280. }
  1281. class Google_Service_Fitness_ListSessionsResponse extends Google_Collection
  1282. {
  1283. protected $collection_key = 'session';
  1284. protected $internal_gapi_mappings = array(
  1285. );
  1286. protected $deletedSessionType = 'Google_Service_Fitness_Session';
  1287. protected $deletedSessionDataType = 'array';
  1288. public $nextPageToken;
  1289. protected $sessionType = 'Google_Service_Fitness_Session';
  1290. protected $sessionDataType = 'array';
  1291. public function setDeletedSession($deletedSession)
  1292. {
  1293. $this->deletedSession = $deletedSession;
  1294. }
  1295. public function getDeletedSession()
  1296. {
  1297. return $this->deletedSession;
  1298. }
  1299. public function setNextPageToken($nextPageToken)
  1300. {
  1301. $this->nextPageToken = $nextPageToken;
  1302. }
  1303. public function getNextPageToken()
  1304. {
  1305. return $this->nextPageToken;
  1306. }
  1307. public function setSession($session)
  1308. {
  1309. $this->session = $session;
  1310. }
  1311. public function getSession()
  1312. {
  1313. return $this->session;
  1314. }
  1315. }
  1316. class Google_Service_Fitness_MapValue extends Google_Model
  1317. {
  1318. protected $internal_gapi_mappings = array(
  1319. );
  1320. public $fpVal;
  1321. public function setFpVal($fpVal)
  1322. {
  1323. $this->fpVal = $fpVal;
  1324. }
  1325. public function getFpVal()
  1326. {
  1327. return $this->fpVal;
  1328. }
  1329. }
  1330. class Google_Service_Fitness_Session extends Google_Model
  1331. {
  1332. protected $internal_gapi_mappings = array(
  1333. );
  1334. public $activeTimeMillis;
  1335. public $activityType;
  1336. protected $applicationType = 'Google_Service_Fitness_Application';
  1337. protected $applicationDataType = '';
  1338. public $description;
  1339. public $endTimeMillis;
  1340. public $id;
  1341. public $modifiedTimeMillis;
  1342. public $name;
  1343. public $startTimeMillis;
  1344. public function setActiveTimeMillis($activeTimeMillis)
  1345. {
  1346. $this->activeTimeMillis = $activeTimeMillis;
  1347. }
  1348. public function getActiveTimeMillis()
  1349. {
  1350. return $this->activeTimeMillis;
  1351. }
  1352. public function setActivityType($activityType)
  1353. {
  1354. $this->activityType = $activityType;
  1355. }
  1356. public function getActivityType()
  1357. {
  1358. return $this->activityType;
  1359. }
  1360. public function setApplication(Google_Service_Fitness_Application $application)
  1361. {
  1362. $this->application = $application;
  1363. }
  1364. public function getApplication()
  1365. {
  1366. return $this->application;
  1367. }
  1368. public function setDescription($description)
  1369. {
  1370. $this->description = $description;
  1371. }
  1372. public function getDescription()
  1373. {
  1374. return $this->description;
  1375. }
  1376. public function setEndTimeMillis($endTimeMillis)
  1377. {
  1378. $this->endTimeMillis = $endTimeMillis;
  1379. }
  1380. public function getEndTimeMillis()
  1381. {
  1382. return $this->endTimeMillis;
  1383. }
  1384. public function setId($id)
  1385. {
  1386. $this->id = $id;
  1387. }
  1388. public function getId()
  1389. {
  1390. return $this->id;
  1391. }
  1392. public function setModifiedTimeMillis($modifiedTimeMillis)
  1393. {
  1394. $this->modifiedTimeMillis = $modifiedTimeMillis;
  1395. }
  1396. public function getModifiedTimeMillis()
  1397. {
  1398. return $this->modifiedTimeMillis;
  1399. }
  1400. public function setName($name)
  1401. {
  1402. $this->name = $name;
  1403. }
  1404. public function getName()
  1405. {
  1406. return $this->name;
  1407. }
  1408. public function setStartTimeMillis($startTimeMillis)
  1409. {
  1410. $this->startTimeMillis = $startTimeMillis;
  1411. }
  1412. public function getStartTimeMillis()
  1413. {
  1414. return $this->startTimeMillis;
  1415. }
  1416. }
  1417. class Google_Service_Fitness_Value extends Google_Collection
  1418. {
  1419. protected $collection_key = 'mapVal';
  1420. protected $internal_gapi_mappings = array(
  1421. );
  1422. public $fpVal;
  1423. public $intVal;
  1424. protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry';
  1425. protected $mapValDataType = 'array';
  1426. public $stringVal;
  1427. public function setFpVal($fpVal)
  1428. {
  1429. $this->fpVal = $fpVal;
  1430. }
  1431. public function getFpVal()
  1432. {
  1433. return $this->fpVal;
  1434. }
  1435. public function setIntVal($intVal)
  1436. {
  1437. $this->intVal = $intVal;
  1438. }
  1439. public function getIntVal()
  1440. {
  1441. return $this->intVal;
  1442. }
  1443. public function setMapVal($mapVal)
  1444. {
  1445. $this->mapVal = $mapVal;
  1446. }
  1447. public function getMapVal()
  1448. {
  1449. return $this->mapVal;
  1450. }
  1451. public function setStringVal($stringVal)
  1452. {
  1453. $this->stringVal = $stringVal;
  1454. }
  1455. public function getStringVal()
  1456. {
  1457. return $this->stringVal;
  1458. }
  1459. }
  1460. class Google_Service_Fitness_ValueMapValEntry extends Google_Model
  1461. {
  1462. protected $internal_gapi_mappings = array(
  1463. );
  1464. public $key;
  1465. protected $valueType = 'Google_Service_Fitness_MapValue';
  1466. protected $valueDataType = '';
  1467. public function setKey($key)
  1468. {
  1469. $this->key = $key;
  1470. }
  1471. public function getKey()
  1472. {
  1473. return $this->key;
  1474. }
  1475. public function setValue(Google_Service_Fitness_MapValue $value)
  1476. {
  1477. $this->value = $value;
  1478. }
  1479. public function getValue()
  1480. {
  1481. return $this->value;
  1482. }
  1483. }