Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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