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