Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

   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 Tasks (v1).
  20   *
  21   * <p>
  22   * Lets you manage your tasks and task lists.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/google-apps/tasks/firstapp" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_Tasks extends Google_Service
  32  {
  33    /** Manage your tasks. */
  34    const TASKS =
  35        "https://www.googleapis.com/auth/tasks";
  36    /** View your tasks. */
  37    const TASKS_READONLY =
  38        "https://www.googleapis.com/auth/tasks.readonly";
  39  
  40    public $tasklists;
  41    public $tasks;
  42    
  43  
  44    /**
  45     * Constructs the internal representation of the Tasks service.
  46     *
  47     * @param Google_Client $client
  48     */
  49    public function __construct(Google_Client $client)
  50    {
  51      parent::__construct($client);
  52      $this->rootUrl = 'https://www.googleapis.com/';
  53      $this->servicePath = 'tasks/v1/';
  54      $this->version = 'v1';
  55      $this->serviceName = 'tasks';
  56  
  57      $this->tasklists = new Google_Service_Tasks_Tasklists_Resource(
  58          $this,
  59          $this->serviceName,
  60          'tasklists',
  61          array(
  62            'methods' => array(
  63              'delete' => array(
  64                'path' => 'users/@me/lists/{tasklist}',
  65                'httpMethod' => 'DELETE',
  66                'parameters' => array(
  67                  'tasklist' => array(
  68                    'location' => 'path',
  69                    'type' => 'string',
  70                    'required' => true,
  71                  ),
  72                ),
  73              ),'get' => array(
  74                'path' => 'users/@me/lists/{tasklist}',
  75                'httpMethod' => 'GET',
  76                'parameters' => array(
  77                  'tasklist' => array(
  78                    'location' => 'path',
  79                    'type' => 'string',
  80                    'required' => true,
  81                  ),
  82                ),
  83              ),'insert' => array(
  84                'path' => 'users/@me/lists',
  85                'httpMethod' => 'POST',
  86                'parameters' => array(),
  87              ),'list' => array(
  88                'path' => 'users/@me/lists',
  89                'httpMethod' => 'GET',
  90                'parameters' => array(
  91                  'pageToken' => array(
  92                    'location' => 'query',
  93                    'type' => 'string',
  94                  ),
  95                  'maxResults' => array(
  96                    'location' => 'query',
  97                    'type' => 'string',
  98                  ),
  99                ),
 100              ),'patch' => array(
 101                'path' => 'users/@me/lists/{tasklist}',
 102                'httpMethod' => 'PATCH',
 103                'parameters' => array(
 104                  'tasklist' => array(
 105                    'location' => 'path',
 106                    'type' => 'string',
 107                    'required' => true,
 108                  ),
 109                ),
 110              ),'update' => array(
 111                'path' => 'users/@me/lists/{tasklist}',
 112                'httpMethod' => 'PUT',
 113                'parameters' => array(
 114                  'tasklist' => array(
 115                    'location' => 'path',
 116                    'type' => 'string',
 117                    'required' => true,
 118                  ),
 119                ),
 120              ),
 121            )
 122          )
 123      );
 124      $this->tasks = new Google_Service_Tasks_Tasks_Resource(
 125          $this,
 126          $this->serviceName,
 127          'tasks',
 128          array(
 129            'methods' => array(
 130              'clear' => array(
 131                'path' => 'lists/{tasklist}/clear',
 132                'httpMethod' => 'POST',
 133                'parameters' => array(
 134                  'tasklist' => array(
 135                    'location' => 'path',
 136                    'type' => 'string',
 137                    'required' => true,
 138                  ),
 139                ),
 140              ),'delete' => array(
 141                'path' => 'lists/{tasklist}/tasks/{task}',
 142                'httpMethod' => 'DELETE',
 143                'parameters' => array(
 144                  'tasklist' => array(
 145                    'location' => 'path',
 146                    'type' => 'string',
 147                    'required' => true,
 148                  ),
 149                  'task' => array(
 150                    'location' => 'path',
 151                    'type' => 'string',
 152                    'required' => true,
 153                  ),
 154                ),
 155              ),'get' => array(
 156                'path' => 'lists/{tasklist}/tasks/{task}',
 157                'httpMethod' => 'GET',
 158                'parameters' => array(
 159                  'tasklist' => array(
 160                    'location' => 'path',
 161                    'type' => 'string',
 162                    'required' => true,
 163                  ),
 164                  'task' => array(
 165                    'location' => 'path',
 166                    'type' => 'string',
 167                    'required' => true,
 168                  ),
 169                ),
 170              ),'insert' => array(
 171                'path' => 'lists/{tasklist}/tasks',
 172                'httpMethod' => 'POST',
 173                'parameters' => array(
 174                  'tasklist' => array(
 175                    'location' => 'path',
 176                    'type' => 'string',
 177                    'required' => true,
 178                  ),
 179                  'parent' => array(
 180                    'location' => 'query',
 181                    'type' => 'string',
 182                  ),
 183                  'previous' => array(
 184                    'location' => 'query',
 185                    'type' => 'string',
 186                  ),
 187                ),
 188              ),'list' => array(
 189                'path' => 'lists/{tasklist}/tasks',
 190                'httpMethod' => 'GET',
 191                'parameters' => array(
 192                  'tasklist' => array(
 193                    'location' => 'path',
 194                    'type' => 'string',
 195                    'required' => true,
 196                  ),
 197                  'dueMax' => array(
 198                    'location' => 'query',
 199                    'type' => 'string',
 200                  ),
 201                  'showDeleted' => array(
 202                    'location' => 'query',
 203                    'type' => 'boolean',
 204                  ),
 205                  'updatedMin' => array(
 206                    'location' => 'query',
 207                    'type' => 'string',
 208                  ),
 209                  'completedMin' => array(
 210                    'location' => 'query',
 211                    'type' => 'string',
 212                  ),
 213                  'maxResults' => array(
 214                    'location' => 'query',
 215                    'type' => 'string',
 216                  ),
 217                  'showCompleted' => array(
 218                    'location' => 'query',
 219                    'type' => 'boolean',
 220                  ),
 221                  'pageToken' => array(
 222                    'location' => 'query',
 223                    'type' => 'string',
 224                  ),
 225                  'completedMax' => array(
 226                    'location' => 'query',
 227                    'type' => 'string',
 228                  ),
 229                  'showHidden' => array(
 230                    'location' => 'query',
 231                    'type' => 'boolean',
 232                  ),
 233                  'dueMin' => array(
 234                    'location' => 'query',
 235                    'type' => 'string',
 236                  ),
 237                ),
 238              ),'move' => array(
 239                'path' => 'lists/{tasklist}/tasks/{task}/move',
 240                'httpMethod' => 'POST',
 241                'parameters' => array(
 242                  'tasklist' => array(
 243                    'location' => 'path',
 244                    'type' => 'string',
 245                    'required' => true,
 246                  ),
 247                  'task' => array(
 248                    'location' => 'path',
 249                    'type' => 'string',
 250                    'required' => true,
 251                  ),
 252                  'parent' => array(
 253                    'location' => 'query',
 254                    'type' => 'string',
 255                  ),
 256                  'previous' => array(
 257                    'location' => 'query',
 258                    'type' => 'string',
 259                  ),
 260                ),
 261              ),'patch' => array(
 262                'path' => 'lists/{tasklist}/tasks/{task}',
 263                'httpMethod' => 'PATCH',
 264                'parameters' => array(
 265                  'tasklist' => array(
 266                    'location' => 'path',
 267                    'type' => 'string',
 268                    'required' => true,
 269                  ),
 270                  'task' => array(
 271                    'location' => 'path',
 272                    'type' => 'string',
 273                    'required' => true,
 274                  ),
 275                ),
 276              ),'update' => array(
 277                'path' => 'lists/{tasklist}/tasks/{task}',
 278                'httpMethod' => 'PUT',
 279                'parameters' => array(
 280                  'tasklist' => array(
 281                    'location' => 'path',
 282                    'type' => 'string',
 283                    'required' => true,
 284                  ),
 285                  'task' => array(
 286                    'location' => 'path',
 287                    'type' => 'string',
 288                    'required' => true,
 289                  ),
 290                ),
 291              ),
 292            )
 293          )
 294      );
 295    }
 296  }
 297  
 298  
 299  /**
 300   * The "tasklists" collection of methods.
 301   * Typical usage is:
 302   *  <code>
 303   *   $tasksService = new Google_Service_Tasks(...);
 304   *   $tasklists = $tasksService->tasklists;
 305   *  </code>
 306   */
 307  class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource
 308  {
 309  
 310    /**
 311     * Deletes the authenticated user's specified task list. (tasklists.delete)
 312     *
 313     * @param string $tasklist Task list identifier.
 314     * @param array $optParams Optional parameters.
 315     */
 316    public function delete($tasklist, $optParams = array())
 317    {
 318      $params = array('tasklist' => $tasklist);
 319      $params = array_merge($params, $optParams);
 320      return $this->call('delete', array($params));
 321    }
 322  
 323    /**
 324     * Returns the authenticated user's specified task list. (tasklists.get)
 325     *
 326     * @param string $tasklist Task list identifier.
 327     * @param array $optParams Optional parameters.
 328     * @return Google_Service_Tasks_TaskList
 329     */
 330    public function get($tasklist, $optParams = array())
 331    {
 332      $params = array('tasklist' => $tasklist);
 333      $params = array_merge($params, $optParams);
 334      return $this->call('get', array($params), "Google_Service_Tasks_TaskList");
 335    }
 336  
 337    /**
 338     * Creates a new task list and adds it to the authenticated user's task lists.
 339     * (tasklists.insert)
 340     *
 341     * @param Google_TaskList $postBody
 342     * @param array $optParams Optional parameters.
 343     * @return Google_Service_Tasks_TaskList
 344     */
 345    public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array())
 346    {
 347      $params = array('postBody' => $postBody);
 348      $params = array_merge($params, $optParams);
 349      return $this->call('insert', array($params), "Google_Service_Tasks_TaskList");
 350    }
 351  
 352    /**
 353     * Returns all the authenticated user's task lists. (tasklists.listTasklists)
 354     *
 355     * @param array $optParams Optional parameters.
 356     *
 357     * @opt_param string pageToken Token specifying the result page to return.
 358     * Optional.
 359     * @opt_param string maxResults Maximum number of task lists returned on one
 360     * page. Optional. The default is 100.
 361     * @return Google_Service_Tasks_TaskLists
 362     */
 363    public function listTasklists($optParams = array())
 364    {
 365      $params = array();
 366      $params = array_merge($params, $optParams);
 367      return $this->call('list', array($params), "Google_Service_Tasks_TaskLists");
 368    }
 369  
 370    /**
 371     * Updates the authenticated user's specified task list. This method supports
 372     * patch semantics. (tasklists.patch)
 373     *
 374     * @param string $tasklist Task list identifier.
 375     * @param Google_TaskList $postBody
 376     * @param array $optParams Optional parameters.
 377     * @return Google_Service_Tasks_TaskList
 378     */
 379    public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
 380    {
 381      $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
 382      $params = array_merge($params, $optParams);
 383      return $this->call('patch', array($params), "Google_Service_Tasks_TaskList");
 384    }
 385  
 386    /**
 387     * Updates the authenticated user's specified task list. (tasklists.update)
 388     *
 389     * @param string $tasklist Task list identifier.
 390     * @param Google_TaskList $postBody
 391     * @param array $optParams Optional parameters.
 392     * @return Google_Service_Tasks_TaskList
 393     */
 394    public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
 395    {
 396      $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
 397      $params = array_merge($params, $optParams);
 398      return $this->call('update', array($params), "Google_Service_Tasks_TaskList");
 399    }
 400  }
 401  
 402  /**
 403   * The "tasks" collection of methods.
 404   * Typical usage is:
 405   *  <code>
 406   *   $tasksService = new Google_Service_Tasks(...);
 407   *   $tasks = $tasksService->tasks;
 408   *  </code>
 409   */
 410  class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource
 411  {
 412  
 413    /**
 414     * Clears all completed tasks from the specified task list. The affected tasks
 415     * will be marked as 'hidden' and no longer be returned by default when
 416     * retrieving all tasks for a task list. (tasks.clear)
 417     *
 418     * @param string $tasklist Task list identifier.
 419     * @param array $optParams Optional parameters.
 420     */
 421    public function clear($tasklist, $optParams = array())
 422    {
 423      $params = array('tasklist' => $tasklist);
 424      $params = array_merge($params, $optParams);
 425      return $this->call('clear', array($params));
 426    }
 427  
 428    /**
 429     * Deletes the specified task from the task list. (tasks.delete)
 430     *
 431     * @param string $tasklist Task list identifier.
 432     * @param string $task Task identifier.
 433     * @param array $optParams Optional parameters.
 434     */
 435    public function delete($tasklist, $task, $optParams = array())
 436    {
 437      $params = array('tasklist' => $tasklist, 'task' => $task);
 438      $params = array_merge($params, $optParams);
 439      return $this->call('delete', array($params));
 440    }
 441  
 442    /**
 443     * Returns the specified task. (tasks.get)
 444     *
 445     * @param string $tasklist Task list identifier.
 446     * @param string $task Task identifier.
 447     * @param array $optParams Optional parameters.
 448     * @return Google_Service_Tasks_Task
 449     */
 450    public function get($tasklist, $task, $optParams = array())
 451    {
 452      $params = array('tasklist' => $tasklist, 'task' => $task);
 453      $params = array_merge($params, $optParams);
 454      return $this->call('get', array($params), "Google_Service_Tasks_Task");
 455    }
 456  
 457    /**
 458     * Creates a new task on the specified task list. (tasks.insert)
 459     *
 460     * @param string $tasklist Task list identifier.
 461     * @param Google_Task $postBody
 462     * @param array $optParams Optional parameters.
 463     *
 464     * @opt_param string parent Parent task identifier. If the task is created at
 465     * the top level, this parameter is omitted. Optional.
 466     * @opt_param string previous Previous sibling task identifier. If the task is
 467     * created at the first position among its siblings, this parameter is omitted.
 468     * Optional.
 469     * @return Google_Service_Tasks_Task
 470     */
 471    public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array())
 472    {
 473      $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
 474      $params = array_merge($params, $optParams);
 475      return $this->call('insert', array($params), "Google_Service_Tasks_Task");
 476    }
 477  
 478    /**
 479     * Returns all tasks in the specified task list. (tasks.listTasks)
 480     *
 481     * @param string $tasklist Task list identifier.
 482     * @param array $optParams Optional parameters.
 483     *
 484     * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339
 485     * timestamp) to filter by. Optional. The default is not to filter by due date.
 486     * @opt_param bool showDeleted Flag indicating whether deleted tasks are
 487     * returned in the result. Optional. The default is False.
 488     * @opt_param string updatedMin Lower bound for a task's last modification time
 489     * (as a RFC 3339 timestamp) to filter by. Optional. The default is not to
 490     * filter by last modification time.
 491     * @opt_param string completedMin Lower bound for a task's completion date (as a
 492     * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
 493     * completion date.
 494     * @opt_param string maxResults Maximum number of task lists returned on one
 495     * page. Optional. The default is 100.
 496     * @opt_param bool showCompleted Flag indicating whether completed tasks are
 497     * returned in the result. Optional. The default is True.
 498     * @opt_param string pageToken Token specifying the result page to return.
 499     * Optional.
 500     * @opt_param string completedMax Upper bound for a task's completion date (as a
 501     * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
 502     * completion date.
 503     * @opt_param bool showHidden Flag indicating whether hidden tasks are returned
 504     * in the result. Optional. The default is False.
 505     * @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339
 506     * timestamp) to filter by. Optional. The default is not to filter by due date.
 507     * @return Google_Service_Tasks_Tasks
 508     */
 509    public function listTasks($tasklist, $optParams = array())
 510    {
 511      $params = array('tasklist' => $tasklist);
 512      $params = array_merge($params, $optParams);
 513      return $this->call('list', array($params), "Google_Service_Tasks_Tasks");
 514    }
 515  
 516    /**
 517     * Moves the specified task to another position in the task list. This can
 518     * include putting it as a child task under a new parent and/or move it to a
 519     * different position among its sibling tasks. (tasks.move)
 520     *
 521     * @param string $tasklist Task list identifier.
 522     * @param string $task Task identifier.
 523     * @param array $optParams Optional parameters.
 524     *
 525     * @opt_param string parent New parent task identifier. If the task is moved to
 526     * the top level, this parameter is omitted. Optional.
 527     * @opt_param string previous New previous sibling task identifier. If the task
 528     * is moved to the first position among its siblings, this parameter is omitted.
 529     * Optional.
 530     * @return Google_Service_Tasks_Task
 531     */
 532    public function move($tasklist, $task, $optParams = array())
 533    {
 534      $params = array('tasklist' => $tasklist, 'task' => $task);
 535      $params = array_merge($params, $optParams);
 536      return $this->call('move', array($params), "Google_Service_Tasks_Task");
 537    }
 538  
 539    /**
 540     * Updates the specified task. This method supports patch semantics.
 541     * (tasks.patch)
 542     *
 543     * @param string $tasklist Task list identifier.
 544     * @param string $task Task identifier.
 545     * @param Google_Task $postBody
 546     * @param array $optParams Optional parameters.
 547     * @return Google_Service_Tasks_Task
 548     */
 549    public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
 550    {
 551      $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
 552      $params = array_merge($params, $optParams);
 553      return $this->call('patch', array($params), "Google_Service_Tasks_Task");
 554    }
 555  
 556    /**
 557     * Updates the specified task. (tasks.update)
 558     *
 559     * @param string $tasklist Task list identifier.
 560     * @param string $task Task identifier.
 561     * @param Google_Task $postBody
 562     * @param array $optParams Optional parameters.
 563     * @return Google_Service_Tasks_Task
 564     */
 565    public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
 566    {
 567      $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
 568      $params = array_merge($params, $optParams);
 569      return $this->call('update', array($params), "Google_Service_Tasks_Task");
 570    }
 571  }
 572  
 573  
 574  
 575  
 576  class Google_Service_Tasks_Task extends Google_Collection
 577  {
 578    protected $collection_key = 'links';
 579    protected $internal_gapi_mappings = array(
 580    );
 581    public $completed;
 582    public $deleted;
 583    public $due;
 584    public $etag;
 585    public $hidden;
 586    public $id;
 587    public $kind;
 588    protected $linksType = 'Google_Service_Tasks_TaskLinks';
 589    protected $linksDataType = 'array';
 590    public $notes;
 591    public $parent;
 592    public $position;
 593    public $selfLink;
 594    public $status;
 595    public $title;
 596    public $updated;
 597  
 598  
 599    public function setCompleted($completed)
 600    {
 601      $this->completed = $completed;
 602    }
 603    public function getCompleted()
 604    {
 605      return $this->completed;
 606    }
 607    public function setDeleted($deleted)
 608    {
 609      $this->deleted = $deleted;
 610    }
 611    public function getDeleted()
 612    {
 613      return $this->deleted;
 614    }
 615    public function setDue($due)
 616    {
 617      $this->due = $due;
 618    }
 619    public function getDue()
 620    {
 621      return $this->due;
 622    }
 623    public function setEtag($etag)
 624    {
 625      $this->etag = $etag;
 626    }
 627    public function getEtag()
 628    {
 629      return $this->etag;
 630    }
 631    public function setHidden($hidden)
 632    {
 633      $this->hidden = $hidden;
 634    }
 635    public function getHidden()
 636    {
 637      return $this->hidden;
 638    }
 639    public function setId($id)
 640    {
 641      $this->id = $id;
 642    }
 643    public function getId()
 644    {
 645      return $this->id;
 646    }
 647    public function setKind($kind)
 648    {
 649      $this->kind = $kind;
 650    }
 651    public function getKind()
 652    {
 653      return $this->kind;
 654    }
 655    public function setLinks($links)
 656    {
 657      $this->links = $links;
 658    }
 659    public function getLinks()
 660    {
 661      return $this->links;
 662    }
 663    public function setNotes($notes)
 664    {
 665      $this->notes = $notes;
 666    }
 667    public function getNotes()
 668    {
 669      return $this->notes;
 670    }
 671    public function setParent($parent)
 672    {
 673      $this->parent = $parent;
 674    }
 675    public function getParent()
 676    {
 677      return $this->parent;
 678    }
 679    public function setPosition($position)
 680    {
 681      $this->position = $position;
 682    }
 683    public function getPosition()
 684    {
 685      return $this->position;
 686    }
 687    public function setSelfLink($selfLink)
 688    {
 689      $this->selfLink = $selfLink;
 690    }
 691    public function getSelfLink()
 692    {
 693      return $this->selfLink;
 694    }
 695    public function setStatus($status)
 696    {
 697      $this->status = $status;
 698    }
 699    public function getStatus()
 700    {
 701      return $this->status;
 702    }
 703    public function setTitle($title)
 704    {
 705      $this->title = $title;
 706    }
 707    public function getTitle()
 708    {
 709      return $this->title;
 710    }
 711    public function setUpdated($updated)
 712    {
 713      $this->updated = $updated;
 714    }
 715    public function getUpdated()
 716    {
 717      return $this->updated;
 718    }
 719  }
 720  
 721  class Google_Service_Tasks_TaskLinks extends Google_Model
 722  {
 723    protected $internal_gapi_mappings = array(
 724    );
 725    public $description;
 726    public $link;
 727    public $type;
 728  
 729  
 730    public function setDescription($description)
 731    {
 732      $this->description = $description;
 733    }
 734    public function getDescription()
 735    {
 736      return $this->description;
 737    }
 738    public function setLink($link)
 739    {
 740      $this->link = $link;
 741    }
 742    public function getLink()
 743    {
 744      return $this->link;
 745    }
 746    public function setType($type)
 747    {
 748      $this->type = $type;
 749    }
 750    public function getType()
 751    {
 752      return $this->type;
 753    }
 754  }
 755  
 756  class Google_Service_Tasks_TaskList extends Google_Model
 757  {
 758    protected $internal_gapi_mappings = array(
 759    );
 760    public $etag;
 761    public $id;
 762    public $kind;
 763    public $selfLink;
 764    public $title;
 765    public $updated;
 766  
 767  
 768    public function setEtag($etag)
 769    {
 770      $this->etag = $etag;
 771    }
 772    public function getEtag()
 773    {
 774      return $this->etag;
 775    }
 776    public function setId($id)
 777    {
 778      $this->id = $id;
 779    }
 780    public function getId()
 781    {
 782      return $this->id;
 783    }
 784    public function setKind($kind)
 785    {
 786      $this->kind = $kind;
 787    }
 788    public function getKind()
 789    {
 790      return $this->kind;
 791    }
 792    public function setSelfLink($selfLink)
 793    {
 794      $this->selfLink = $selfLink;
 795    }
 796    public function getSelfLink()
 797    {
 798      return $this->selfLink;
 799    }
 800    public function setTitle($title)
 801    {
 802      $this->title = $title;
 803    }
 804    public function getTitle()
 805    {
 806      return $this->title;
 807    }
 808    public function setUpdated($updated)
 809    {
 810      $this->updated = $updated;
 811    }
 812    public function getUpdated()
 813    {
 814      return $this->updated;
 815    }
 816  }
 817  
 818  class Google_Service_Tasks_TaskLists extends Google_Collection
 819  {
 820    protected $collection_key = 'items';
 821    protected $internal_gapi_mappings = array(
 822    );
 823    public $etag;
 824    protected $itemsType = 'Google_Service_Tasks_TaskList';
 825    protected $itemsDataType = 'array';
 826    public $kind;
 827    public $nextPageToken;
 828  
 829  
 830    public function setEtag($etag)
 831    {
 832      $this->etag = $etag;
 833    }
 834    public function getEtag()
 835    {
 836      return $this->etag;
 837    }
 838    public function setItems($items)
 839    {
 840      $this->items = $items;
 841    }
 842    public function getItems()
 843    {
 844      return $this->items;
 845    }
 846    public function setKind($kind)
 847    {
 848      $this->kind = $kind;
 849    }
 850    public function getKind()
 851    {
 852      return $this->kind;
 853    }
 854    public function setNextPageToken($nextPageToken)
 855    {
 856      $this->nextPageToken = $nextPageToken;
 857    }
 858    public function getNextPageToken()
 859    {
 860      return $this->nextPageToken;
 861    }
 862  }
 863  
 864  class Google_Service_Tasks_Tasks extends Google_Collection
 865  {
 866    protected $collection_key = 'items';
 867    protected $internal_gapi_mappings = array(
 868    );
 869    public $etag;
 870    protected $itemsType = 'Google_Service_Tasks_Task';
 871    protected $itemsDataType = 'array';
 872    public $kind;
 873    public $nextPageToken;
 874  
 875  
 876    public function setEtag($etag)
 877    {
 878      $this->etag = $etag;
 879    }
 880    public function getEtag()
 881    {
 882      return $this->etag;
 883    }
 884    public function setItems($items)
 885    {
 886      $this->items = $items;
 887    }
 888    public function getItems()
 889    {
 890      return $this->items;
 891    }
 892    public function setKind($kind)
 893    {
 894      $this->kind = $kind;
 895    }
 896    public function getKind()
 897    {
 898      return $this->kind;
 899    }
 900    public function setNextPageToken($nextPageToken)
 901    {
 902      $this->nextPageToken = $nextPageToken;
 903    }
 904    public function getNextPageToken()
 905    {
 906      return $this->nextPageToken;
 907    }
 908  }