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 Drive (v2).
  20   *
  21   * <p>
  22   * The API to interact with Drive.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_Drive extends Google_Service
  32  {
  33    /** View and manage the files in your Google Drive. */
  34    const DRIVE =
  35        "https://www.googleapis.com/auth/drive";
  36    /** View and manage its own configuration data in your Google Drive. */
  37    const DRIVE_APPDATA =
  38        "https://www.googleapis.com/auth/drive.appdata";
  39    /** View your Google Drive apps. */
  40    const DRIVE_APPS_READONLY =
  41        "https://www.googleapis.com/auth/drive.apps.readonly";
  42    /** View and manage Google Drive files and folders that you have opened or created with this app. */
  43    const DRIVE_FILE =
  44        "https://www.googleapis.com/auth/drive.file";
  45    /** View and manage metadata of files in your Google Drive. */
  46    const DRIVE_METADATA =
  47        "https://www.googleapis.com/auth/drive.metadata";
  48    /** View metadata for files in your Google Drive. */
  49    const DRIVE_METADATA_READONLY =
  50        "https://www.googleapis.com/auth/drive.metadata.readonly";
  51    /** View the photos, videos and albums in your Google Photos. */
  52    const DRIVE_PHOTOS_READONLY =
  53        "https://www.googleapis.com/auth/drive.photos.readonly";
  54    /** View the files in your Google Drive. */
  55    const DRIVE_READONLY =
  56        "https://www.googleapis.com/auth/drive.readonly";
  57    /** Modify your Google Apps Script scripts' behavior. */
  58    const DRIVE_SCRIPTS =
  59        "https://www.googleapis.com/auth/drive.scripts";
  60  
  61    public $about;
  62    public $apps;
  63    public $changes;
  64    public $channels;
  65    public $children;
  66    public $comments;
  67    public $files;
  68    public $parents;
  69    public $permissions;
  70    public $properties;
  71    public $realtime;
  72    public $replies;
  73    public $revisions;
  74    
  75  
  76    /**
  77     * Constructs the internal representation of the Drive service.
  78     *
  79     * @param Google_Client $client
  80     */
  81    public function __construct(Google_Client $client)
  82    {
  83      parent::__construct($client);
  84      $this->rootUrl = 'https://www.googleapis.com/';
  85      $this->servicePath = 'drive/v2/';
  86      $this->version = 'v2';
  87      $this->serviceName = 'drive';
  88  
  89      $this->about = new Google_Service_Drive_About_Resource(
  90          $this,
  91          $this->serviceName,
  92          'about',
  93          array(
  94            'methods' => array(
  95              'get' => array(
  96                'path' => 'about',
  97                'httpMethod' => 'GET',
  98                'parameters' => array(
  99                  'includeSubscribed' => array(
 100                    'location' => 'query',
 101                    'type' => 'boolean',
 102                  ),
 103                  'maxChangeIdCount' => array(
 104                    'location' => 'query',
 105                    'type' => 'string',
 106                  ),
 107                  'startChangeId' => array(
 108                    'location' => 'query',
 109                    'type' => 'string',
 110                  ),
 111                ),
 112              ),
 113            )
 114          )
 115      );
 116      $this->apps = new Google_Service_Drive_Apps_Resource(
 117          $this,
 118          $this->serviceName,
 119          'apps',
 120          array(
 121            'methods' => array(
 122              'get' => array(
 123                'path' => 'apps/{appId}',
 124                'httpMethod' => 'GET',
 125                'parameters' => array(
 126                  'appId' => array(
 127                    'location' => 'path',
 128                    'type' => 'string',
 129                    'required' => true,
 130                  ),
 131                ),
 132              ),'list' => array(
 133                'path' => 'apps',
 134                'httpMethod' => 'GET',
 135                'parameters' => array(
 136                  'languageCode' => array(
 137                    'location' => 'query',
 138                    'type' => 'string',
 139                  ),
 140                  'appFilterExtensions' => array(
 141                    'location' => 'query',
 142                    'type' => 'string',
 143                  ),
 144                  'appFilterMimeTypes' => array(
 145                    'location' => 'query',
 146                    'type' => 'string',
 147                  ),
 148                ),
 149              ),
 150            )
 151          )
 152      );
 153      $this->changes = new Google_Service_Drive_Changes_Resource(
 154          $this,
 155          $this->serviceName,
 156          'changes',
 157          array(
 158            'methods' => array(
 159              'get' => array(
 160                'path' => 'changes/{changeId}',
 161                'httpMethod' => 'GET',
 162                'parameters' => array(
 163                  'changeId' => array(
 164                    'location' => 'path',
 165                    'type' => 'string',
 166                    'required' => true,
 167                  ),
 168                ),
 169              ),'list' => array(
 170                'path' => 'changes',
 171                'httpMethod' => 'GET',
 172                'parameters' => array(
 173                  'includeSubscribed' => array(
 174                    'location' => 'query',
 175                    'type' => 'boolean',
 176                  ),
 177                  'includeDeleted' => array(
 178                    'location' => 'query',
 179                    'type' => 'boolean',
 180                  ),
 181                  'maxResults' => array(
 182                    'location' => 'query',
 183                    'type' => 'integer',
 184                  ),
 185                  'pageToken' => array(
 186                    'location' => 'query',
 187                    'type' => 'string',
 188                  ),
 189                  'spaces' => array(
 190                    'location' => 'query',
 191                    'type' => 'string',
 192                  ),
 193                  'startChangeId' => array(
 194                    'location' => 'query',
 195                    'type' => 'string',
 196                  ),
 197                ),
 198              ),'watch' => array(
 199                'path' => 'changes/watch',
 200                'httpMethod' => 'POST',
 201                'parameters' => array(
 202                  'includeSubscribed' => array(
 203                    'location' => 'query',
 204                    'type' => 'boolean',
 205                  ),
 206                  'includeDeleted' => array(
 207                    'location' => 'query',
 208                    'type' => 'boolean',
 209                  ),
 210                  'maxResults' => array(
 211                    'location' => 'query',
 212                    'type' => 'integer',
 213                  ),
 214                  'pageToken' => array(
 215                    'location' => 'query',
 216                    'type' => 'string',
 217                  ),
 218                  'spaces' => array(
 219                    'location' => 'query',
 220                    'type' => 'string',
 221                  ),
 222                  'startChangeId' => array(
 223                    'location' => 'query',
 224                    'type' => 'string',
 225                  ),
 226                ),
 227              ),
 228            )
 229          )
 230      );
 231      $this->channels = new Google_Service_Drive_Channels_Resource(
 232          $this,
 233          $this->serviceName,
 234          'channels',
 235          array(
 236            'methods' => array(
 237              'stop' => array(
 238                'path' => 'channels/stop',
 239                'httpMethod' => 'POST',
 240                'parameters' => array(),
 241              ),
 242            )
 243          )
 244      );
 245      $this->children = new Google_Service_Drive_Children_Resource(
 246          $this,
 247          $this->serviceName,
 248          'children',
 249          array(
 250            'methods' => array(
 251              'delete' => array(
 252                'path' => 'files/{folderId}/children/{childId}',
 253                'httpMethod' => 'DELETE',
 254                'parameters' => array(
 255                  'folderId' => array(
 256                    'location' => 'path',
 257                    'type' => 'string',
 258                    'required' => true,
 259                  ),
 260                  'childId' => array(
 261                    'location' => 'path',
 262                    'type' => 'string',
 263                    'required' => true,
 264                  ),
 265                ),
 266              ),'get' => array(
 267                'path' => 'files/{folderId}/children/{childId}',
 268                'httpMethod' => 'GET',
 269                'parameters' => array(
 270                  'folderId' => array(
 271                    'location' => 'path',
 272                    'type' => 'string',
 273                    'required' => true,
 274                  ),
 275                  'childId' => array(
 276                    'location' => 'path',
 277                    'type' => 'string',
 278                    'required' => true,
 279                  ),
 280                ),
 281              ),'insert' => array(
 282                'path' => 'files/{folderId}/children',
 283                'httpMethod' => 'POST',
 284                'parameters' => array(
 285                  'folderId' => array(
 286                    'location' => 'path',
 287                    'type' => 'string',
 288                    'required' => true,
 289                  ),
 290                ),
 291              ),'list' => array(
 292                'path' => 'files/{folderId}/children',
 293                'httpMethod' => 'GET',
 294                'parameters' => array(
 295                  'folderId' => array(
 296                    'location' => 'path',
 297                    'type' => 'string',
 298                    'required' => true,
 299                  ),
 300                  'orderBy' => array(
 301                    'location' => 'query',
 302                    'type' => 'string',
 303                  ),
 304                  'pageToken' => array(
 305                    'location' => 'query',
 306                    'type' => 'string',
 307                  ),
 308                  'q' => array(
 309                    'location' => 'query',
 310                    'type' => 'string',
 311                  ),
 312                  'maxResults' => array(
 313                    'location' => 'query',
 314                    'type' => 'integer',
 315                  ),
 316                ),
 317              ),
 318            )
 319          )
 320      );
 321      $this->comments = new Google_Service_Drive_Comments_Resource(
 322          $this,
 323          $this->serviceName,
 324          'comments',
 325          array(
 326            'methods' => array(
 327              'delete' => array(
 328                'path' => 'files/{fileId}/comments/{commentId}',
 329                'httpMethod' => 'DELETE',
 330                'parameters' => array(
 331                  'fileId' => array(
 332                    'location' => 'path',
 333                    'type' => 'string',
 334                    'required' => true,
 335                  ),
 336                  'commentId' => array(
 337                    'location' => 'path',
 338                    'type' => 'string',
 339                    'required' => true,
 340                  ),
 341                ),
 342              ),'get' => array(
 343                'path' => 'files/{fileId}/comments/{commentId}',
 344                'httpMethod' => 'GET',
 345                'parameters' => array(
 346                  'fileId' => array(
 347                    'location' => 'path',
 348                    'type' => 'string',
 349                    'required' => true,
 350                  ),
 351                  'commentId' => array(
 352                    'location' => 'path',
 353                    'type' => 'string',
 354                    'required' => true,
 355                  ),
 356                  'includeDeleted' => array(
 357                    'location' => 'query',
 358                    'type' => 'boolean',
 359                  ),
 360                ),
 361              ),'insert' => array(
 362                'path' => 'files/{fileId}/comments',
 363                'httpMethod' => 'POST',
 364                'parameters' => array(
 365                  'fileId' => array(
 366                    'location' => 'path',
 367                    'type' => 'string',
 368                    'required' => true,
 369                  ),
 370                ),
 371              ),'list' => array(
 372                'path' => 'files/{fileId}/comments',
 373                'httpMethod' => 'GET',
 374                'parameters' => array(
 375                  'fileId' => array(
 376                    'location' => 'path',
 377                    'type' => 'string',
 378                    'required' => true,
 379                  ),
 380                  'pageToken' => array(
 381                    'location' => 'query',
 382                    'type' => 'string',
 383                  ),
 384                  'updatedMin' => array(
 385                    'location' => 'query',
 386                    'type' => 'string',
 387                  ),
 388                  'includeDeleted' => array(
 389                    'location' => 'query',
 390                    'type' => 'boolean',
 391                  ),
 392                  'maxResults' => array(
 393                    'location' => 'query',
 394                    'type' => 'integer',
 395                  ),
 396                ),
 397              ),'patch' => array(
 398                'path' => 'files/{fileId}/comments/{commentId}',
 399                'httpMethod' => 'PATCH',
 400                'parameters' => array(
 401                  'fileId' => array(
 402                    'location' => 'path',
 403                    'type' => 'string',
 404                    'required' => true,
 405                  ),
 406                  'commentId' => array(
 407                    'location' => 'path',
 408                    'type' => 'string',
 409                    'required' => true,
 410                  ),
 411                ),
 412              ),'update' => array(
 413                'path' => 'files/{fileId}/comments/{commentId}',
 414                'httpMethod' => 'PUT',
 415                'parameters' => array(
 416                  'fileId' => array(
 417                    'location' => 'path',
 418                    'type' => 'string',
 419                    'required' => true,
 420                  ),
 421                  'commentId' => array(
 422                    'location' => 'path',
 423                    'type' => 'string',
 424                    'required' => true,
 425                  ),
 426                ),
 427              ),
 428            )
 429          )
 430      );
 431      $this->files = new Google_Service_Drive_Files_Resource(
 432          $this,
 433          $this->serviceName,
 434          'files',
 435          array(
 436            'methods' => array(
 437              'copy' => array(
 438                'path' => 'files/{fileId}/copy',
 439                'httpMethod' => 'POST',
 440                'parameters' => array(
 441                  'fileId' => array(
 442                    'location' => 'path',
 443                    'type' => 'string',
 444                    'required' => true,
 445                  ),
 446                  'convert' => array(
 447                    'location' => 'query',
 448                    'type' => 'boolean',
 449                  ),
 450                  'ocrLanguage' => array(
 451                    'location' => 'query',
 452                    'type' => 'string',
 453                  ),
 454                  'visibility' => array(
 455                    'location' => 'query',
 456                    'type' => 'string',
 457                  ),
 458                  'pinned' => array(
 459                    'location' => 'query',
 460                    'type' => 'boolean',
 461                  ),
 462                  'ocr' => array(
 463                    'location' => 'query',
 464                    'type' => 'boolean',
 465                  ),
 466                  'timedTextTrackName' => array(
 467                    'location' => 'query',
 468                    'type' => 'string',
 469                  ),
 470                  'timedTextLanguage' => array(
 471                    'location' => 'query',
 472                    'type' => 'string',
 473                  ),
 474                ),
 475              ),'delete' => array(
 476                'path' => 'files/{fileId}',
 477                'httpMethod' => 'DELETE',
 478                'parameters' => array(
 479                  'fileId' => array(
 480                    'location' => 'path',
 481                    'type' => 'string',
 482                    'required' => true,
 483                  ),
 484                ),
 485              ),'emptyTrash' => array(
 486                'path' => 'files/trash',
 487                'httpMethod' => 'DELETE',
 488                'parameters' => array(),
 489              ),'generateIds' => array(
 490                'path' => 'files/generateIds',
 491                'httpMethod' => 'GET',
 492                'parameters' => array(
 493                  'maxResults' => array(
 494                    'location' => 'query',
 495                    'type' => 'integer',
 496                  ),
 497                  'space' => array(
 498                    'location' => 'query',
 499                    'type' => 'string',
 500                  ),
 501                ),
 502              ),'get' => array(
 503                'path' => 'files/{fileId}',
 504                'httpMethod' => 'GET',
 505                'parameters' => array(
 506                  'fileId' => array(
 507                    'location' => 'path',
 508                    'type' => 'string',
 509                    'required' => true,
 510                  ),
 511                  'acknowledgeAbuse' => array(
 512                    'location' => 'query',
 513                    'type' => 'boolean',
 514                  ),
 515                  'updateViewedDate' => array(
 516                    'location' => 'query',
 517                    'type' => 'boolean',
 518                  ),
 519                  'revisionId' => array(
 520                    'location' => 'query',
 521                    'type' => 'string',
 522                  ),
 523                  'projection' => array(
 524                    'location' => 'query',
 525                    'type' => 'string',
 526                  ),
 527                ),
 528              ),'insert' => array(
 529                'path' => 'files',
 530                'httpMethod' => 'POST',
 531                'parameters' => array(
 532                  'convert' => array(
 533                    'location' => 'query',
 534                    'type' => 'boolean',
 535                  ),
 536                  'useContentAsIndexableText' => array(
 537                    'location' => 'query',
 538                    'type' => 'boolean',
 539                  ),
 540                  'ocrLanguage' => array(
 541                    'location' => 'query',
 542                    'type' => 'string',
 543                  ),
 544                  'visibility' => array(
 545                    'location' => 'query',
 546                    'type' => 'string',
 547                  ),
 548                  'pinned' => array(
 549                    'location' => 'query',
 550                    'type' => 'boolean',
 551                  ),
 552                  'ocr' => array(
 553                    'location' => 'query',
 554                    'type' => 'boolean',
 555                  ),
 556                  'timedTextTrackName' => array(
 557                    'location' => 'query',
 558                    'type' => 'string',
 559                  ),
 560                  'timedTextLanguage' => array(
 561                    'location' => 'query',
 562                    'type' => 'string',
 563                  ),
 564                ),
 565              ),'list' => array(
 566                'path' => 'files',
 567                'httpMethod' => 'GET',
 568                'parameters' => array(
 569                  'orderBy' => array(
 570                    'location' => 'query',
 571                    'type' => 'string',
 572                  ),
 573                  'projection' => array(
 574                    'location' => 'query',
 575                    'type' => 'string',
 576                  ),
 577                  'maxResults' => array(
 578                    'location' => 'query',
 579                    'type' => 'integer',
 580                  ),
 581                  'q' => array(
 582                    'location' => 'query',
 583                    'type' => 'string',
 584                  ),
 585                  'pageToken' => array(
 586                    'location' => 'query',
 587                    'type' => 'string',
 588                  ),
 589                  'spaces' => array(
 590                    'location' => 'query',
 591                    'type' => 'string',
 592                  ),
 593                  'corpus' => array(
 594                    'location' => 'query',
 595                    'type' => 'string',
 596                  ),
 597                ),
 598              ),'patch' => array(
 599                'path' => 'files/{fileId}',
 600                'httpMethod' => 'PATCH',
 601                'parameters' => array(
 602                  'fileId' => array(
 603                    'location' => 'path',
 604                    'type' => 'string',
 605                    'required' => true,
 606                  ),
 607                  'addParents' => array(
 608                    'location' => 'query',
 609                    'type' => 'string',
 610                  ),
 611                  'modifiedDateBehavior' => array(
 612                    'location' => 'query',
 613                    'type' => 'string',
 614                  ),
 615                  'removeParents' => array(
 616                    'location' => 'query',
 617                    'type' => 'string',
 618                  ),
 619                  'updateViewedDate' => array(
 620                    'location' => 'query',
 621                    'type' => 'boolean',
 622                  ),
 623                  'setModifiedDate' => array(
 624                    'location' => 'query',
 625                    'type' => 'boolean',
 626                  ),
 627                  'useContentAsIndexableText' => array(
 628                    'location' => 'query',
 629                    'type' => 'boolean',
 630                  ),
 631                  'convert' => array(
 632                    'location' => 'query',
 633                    'type' => 'boolean',
 634                  ),
 635                  'ocrLanguage' => array(
 636                    'location' => 'query',
 637                    'type' => 'string',
 638                  ),
 639                  'pinned' => array(
 640                    'location' => 'query',
 641                    'type' => 'boolean',
 642                  ),
 643                  'newRevision' => array(
 644                    'location' => 'query',
 645                    'type' => 'boolean',
 646                  ),
 647                  'ocr' => array(
 648                    'location' => 'query',
 649                    'type' => 'boolean',
 650                  ),
 651                  'timedTextLanguage' => array(
 652                    'location' => 'query',
 653                    'type' => 'string',
 654                  ),
 655                  'timedTextTrackName' => array(
 656                    'location' => 'query',
 657                    'type' => 'string',
 658                  ),
 659                ),
 660              ),'touch' => array(
 661                'path' => 'files/{fileId}/touch',
 662                'httpMethod' => 'POST',
 663                'parameters' => array(
 664                  'fileId' => array(
 665                    'location' => 'path',
 666                    'type' => 'string',
 667                    'required' => true,
 668                  ),
 669                ),
 670              ),'trash' => array(
 671                'path' => 'files/{fileId}/trash',
 672                'httpMethod' => 'POST',
 673                'parameters' => array(
 674                  'fileId' => array(
 675                    'location' => 'path',
 676                    'type' => 'string',
 677                    'required' => true,
 678                  ),
 679                ),
 680              ),'untrash' => array(
 681                'path' => 'files/{fileId}/untrash',
 682                'httpMethod' => 'POST',
 683                'parameters' => array(
 684                  'fileId' => array(
 685                    'location' => 'path',
 686                    'type' => 'string',
 687                    'required' => true,
 688                  ),
 689                ),
 690              ),'update' => array(
 691                'path' => 'files/{fileId}',
 692                'httpMethod' => 'PUT',
 693                'parameters' => array(
 694                  'fileId' => array(
 695                    'location' => 'path',
 696                    'type' => 'string',
 697                    'required' => true,
 698                  ),
 699                  'addParents' => array(
 700                    'location' => 'query',
 701                    'type' => 'string',
 702                  ),
 703                  'modifiedDateBehavior' => array(
 704                    'location' => 'query',
 705                    'type' => 'string',
 706                  ),
 707                  'removeParents' => array(
 708                    'location' => 'query',
 709                    'type' => 'string',
 710                  ),
 711                  'updateViewedDate' => array(
 712                    'location' => 'query',
 713                    'type' => 'boolean',
 714                  ),
 715                  'setModifiedDate' => array(
 716                    'location' => 'query',
 717                    'type' => 'boolean',
 718                  ),
 719                  'useContentAsIndexableText' => array(
 720                    'location' => 'query',
 721                    'type' => 'boolean',
 722                  ),
 723                  'convert' => array(
 724                    'location' => 'query',
 725                    'type' => 'boolean',
 726                  ),
 727                  'ocrLanguage' => array(
 728                    'location' => 'query',
 729                    'type' => 'string',
 730                  ),
 731                  'pinned' => array(
 732                    'location' => 'query',
 733                    'type' => 'boolean',
 734                  ),
 735                  'newRevision' => array(
 736                    'location' => 'query',
 737                    'type' => 'boolean',
 738                  ),
 739                  'ocr' => array(
 740                    'location' => 'query',
 741                    'type' => 'boolean',
 742                  ),
 743                  'timedTextLanguage' => array(
 744                    'location' => 'query',
 745                    'type' => 'string',
 746                  ),
 747                  'timedTextTrackName' => array(
 748                    'location' => 'query',
 749                    'type' => 'string',
 750                  ),
 751                ),
 752              ),'watch' => array(
 753                'path' => 'files/{fileId}/watch',
 754                'httpMethod' => 'POST',
 755                'parameters' => array(
 756                  'fileId' => array(
 757                    'location' => 'path',
 758                    'type' => 'string',
 759                    'required' => true,
 760                  ),
 761                  'acknowledgeAbuse' => array(
 762                    'location' => 'query',
 763                    'type' => 'boolean',
 764                  ),
 765                  'updateViewedDate' => array(
 766                    'location' => 'query',
 767                    'type' => 'boolean',
 768                  ),
 769                  'revisionId' => array(
 770                    'location' => 'query',
 771                    'type' => 'string',
 772                  ),
 773                  'projection' => array(
 774                    'location' => 'query',
 775                    'type' => 'string',
 776                  ),
 777                ),
 778              ),
 779            )
 780          )
 781      );
 782      $this->parents = new Google_Service_Drive_Parents_Resource(
 783          $this,
 784          $this->serviceName,
 785          'parents',
 786          array(
 787            'methods' => array(
 788              'delete' => array(
 789                'path' => 'files/{fileId}/parents/{parentId}',
 790                'httpMethod' => 'DELETE',
 791                'parameters' => array(
 792                  'fileId' => array(
 793                    'location' => 'path',
 794                    'type' => 'string',
 795                    'required' => true,
 796                  ),
 797                  'parentId' => array(
 798                    'location' => 'path',
 799                    'type' => 'string',
 800                    'required' => true,
 801                  ),
 802                ),
 803              ),'get' => array(
 804                'path' => 'files/{fileId}/parents/{parentId}',
 805                'httpMethod' => 'GET',
 806                'parameters' => array(
 807                  'fileId' => array(
 808                    'location' => 'path',
 809                    'type' => 'string',
 810                    'required' => true,
 811                  ),
 812                  'parentId' => array(
 813                    'location' => 'path',
 814                    'type' => 'string',
 815                    'required' => true,
 816                  ),
 817                ),
 818              ),'insert' => array(
 819                'path' => 'files/{fileId}/parents',
 820                'httpMethod' => 'POST',
 821                'parameters' => array(
 822                  'fileId' => array(
 823                    'location' => 'path',
 824                    'type' => 'string',
 825                    'required' => true,
 826                  ),
 827                ),
 828              ),'list' => array(
 829                'path' => 'files/{fileId}/parents',
 830                'httpMethod' => 'GET',
 831                'parameters' => array(
 832                  'fileId' => array(
 833                    'location' => 'path',
 834                    'type' => 'string',
 835                    'required' => true,
 836                  ),
 837                ),
 838              ),
 839            )
 840          )
 841      );
 842      $this->permissions = new Google_Service_Drive_Permissions_Resource(
 843          $this,
 844          $this->serviceName,
 845          'permissions',
 846          array(
 847            'methods' => array(
 848              'delete' => array(
 849                'path' => 'files/{fileId}/permissions/{permissionId}',
 850                'httpMethod' => 'DELETE',
 851                'parameters' => array(
 852                  'fileId' => array(
 853                    'location' => 'path',
 854                    'type' => 'string',
 855                    'required' => true,
 856                  ),
 857                  'permissionId' => array(
 858                    'location' => 'path',
 859                    'type' => 'string',
 860                    'required' => true,
 861                  ),
 862                ),
 863              ),'get' => array(
 864                'path' => 'files/{fileId}/permissions/{permissionId}',
 865                'httpMethod' => 'GET',
 866                'parameters' => array(
 867                  'fileId' => array(
 868                    'location' => 'path',
 869                    'type' => 'string',
 870                    'required' => true,
 871                  ),
 872                  'permissionId' => array(
 873                    'location' => 'path',
 874                    'type' => 'string',
 875                    'required' => true,
 876                  ),
 877                ),
 878              ),'getIdForEmail' => array(
 879                'path' => 'permissionIds/{email}',
 880                'httpMethod' => 'GET',
 881                'parameters' => array(
 882                  'email' => array(
 883                    'location' => 'path',
 884                    'type' => 'string',
 885                    'required' => true,
 886                  ),
 887                ),
 888              ),'insert' => array(
 889                'path' => 'files/{fileId}/permissions',
 890                'httpMethod' => 'POST',
 891                'parameters' => array(
 892                  'fileId' => array(
 893                    'location' => 'path',
 894                    'type' => 'string',
 895                    'required' => true,
 896                  ),
 897                  'emailMessage' => array(
 898                    'location' => 'query',
 899                    'type' => 'string',
 900                  ),
 901                  'sendNotificationEmails' => array(
 902                    'location' => 'query',
 903                    'type' => 'boolean',
 904                  ),
 905                ),
 906              ),'list' => array(
 907                'path' => 'files/{fileId}/permissions',
 908                'httpMethod' => 'GET',
 909                'parameters' => array(
 910                  'fileId' => array(
 911                    'location' => 'path',
 912                    'type' => 'string',
 913                    'required' => true,
 914                  ),
 915                ),
 916              ),'patch' => array(
 917                'path' => 'files/{fileId}/permissions/{permissionId}',
 918                'httpMethod' => 'PATCH',
 919                'parameters' => array(
 920                  'fileId' => array(
 921                    'location' => 'path',
 922                    'type' => 'string',
 923                    'required' => true,
 924                  ),
 925                  'permissionId' => array(
 926                    'location' => 'path',
 927                    'type' => 'string',
 928                    'required' => true,
 929                  ),
 930                  'transferOwnership' => array(
 931                    'location' => 'query',
 932                    'type' => 'boolean',
 933                  ),
 934                ),
 935              ),'update' => array(
 936                'path' => 'files/{fileId}/permissions/{permissionId}',
 937                'httpMethod' => 'PUT',
 938                'parameters' => array(
 939                  'fileId' => array(
 940                    'location' => 'path',
 941                    'type' => 'string',
 942                    'required' => true,
 943                  ),
 944                  'permissionId' => array(
 945                    'location' => 'path',
 946                    'type' => 'string',
 947                    'required' => true,
 948                  ),
 949                  'transferOwnership' => array(
 950                    'location' => 'query',
 951                    'type' => 'boolean',
 952                  ),
 953                ),
 954              ),
 955            )
 956          )
 957      );
 958      $this->properties = new Google_Service_Drive_Properties_Resource(
 959          $this,
 960          $this->serviceName,
 961          'properties',
 962          array(
 963            'methods' => array(
 964              'delete' => array(
 965                'path' => 'files/{fileId}/properties/{propertyKey}',
 966                'httpMethod' => 'DELETE',
 967                'parameters' => array(
 968                  'fileId' => array(
 969                    'location' => 'path',
 970                    'type' => 'string',
 971                    'required' => true,
 972                  ),
 973                  'propertyKey' => array(
 974                    'location' => 'path',
 975                    'type' => 'string',
 976                    'required' => true,
 977                  ),
 978                  'visibility' => array(
 979                    'location' => 'query',
 980                    'type' => 'string',
 981                  ),
 982                ),
 983              ),'get' => array(
 984                'path' => 'files/{fileId}/properties/{propertyKey}',
 985                'httpMethod' => 'GET',
 986                'parameters' => array(
 987                  'fileId' => array(
 988                    'location' => 'path',
 989                    'type' => 'string',
 990                    'required' => true,
 991                  ),
 992                  'propertyKey' => array(
 993                    'location' => 'path',
 994                    'type' => 'string',
 995                    'required' => true,
 996                  ),
 997                  'visibility' => array(
 998                    'location' => 'query',
 999                    'type' => 'string',
1000                  ),
1001                ),
1002              ),'insert' => array(
1003                'path' => 'files/{fileId}/properties',
1004                'httpMethod' => 'POST',
1005                'parameters' => array(
1006                  'fileId' => array(
1007                    'location' => 'path',
1008                    'type' => 'string',
1009                    'required' => true,
1010                  ),
1011                ),
1012              ),'list' => array(
1013                'path' => 'files/{fileId}/properties',
1014                'httpMethod' => 'GET',
1015                'parameters' => array(
1016                  'fileId' => array(
1017                    'location' => 'path',
1018                    'type' => 'string',
1019                    'required' => true,
1020                  ),
1021                ),
1022              ),'patch' => array(
1023                'path' => 'files/{fileId}/properties/{propertyKey}',
1024                'httpMethod' => 'PATCH',
1025                'parameters' => array(
1026                  'fileId' => array(
1027                    'location' => 'path',
1028                    'type' => 'string',
1029                    'required' => true,
1030                  ),
1031                  'propertyKey' => array(
1032                    'location' => 'path',
1033                    'type' => 'string',
1034                    'required' => true,
1035                  ),
1036                  'visibility' => array(
1037                    'location' => 'query',
1038                    'type' => 'string',
1039                  ),
1040                ),
1041              ),'update' => array(
1042                'path' => 'files/{fileId}/properties/{propertyKey}',
1043                'httpMethod' => 'PUT',
1044                'parameters' => array(
1045                  'fileId' => array(
1046                    'location' => 'path',
1047                    'type' => 'string',
1048                    'required' => true,
1049                  ),
1050                  'propertyKey' => array(
1051                    'location' => 'path',
1052                    'type' => 'string',
1053                    'required' => true,
1054                  ),
1055                  'visibility' => array(
1056                    'location' => 'query',
1057                    'type' => 'string',
1058                  ),
1059                ),
1060              ),
1061            )
1062          )
1063      );
1064      $this->realtime = new Google_Service_Drive_Realtime_Resource(
1065          $this,
1066          $this->serviceName,
1067          'realtime',
1068          array(
1069            'methods' => array(
1070              'get' => array(
1071                'path' => 'files/{fileId}/realtime',
1072                'httpMethod' => 'GET',
1073                'parameters' => array(
1074                  'fileId' => array(
1075                    'location' => 'path',
1076                    'type' => 'string',
1077                    'required' => true,
1078                  ),
1079                  'revision' => array(
1080                    'location' => 'query',
1081                    'type' => 'integer',
1082                  ),
1083                ),
1084              ),'update' => array(
1085                'path' => 'files/{fileId}/realtime',
1086                'httpMethod' => 'PUT',
1087                'parameters' => array(
1088                  'fileId' => array(
1089                    'location' => 'path',
1090                    'type' => 'string',
1091                    'required' => true,
1092                  ),
1093                  'baseRevision' => array(
1094                    'location' => 'query',
1095                    'type' => 'string',
1096                  ),
1097                ),
1098              ),
1099            )
1100          )
1101      );
1102      $this->replies = new Google_Service_Drive_Replies_Resource(
1103          $this,
1104          $this->serviceName,
1105          'replies',
1106          array(
1107            'methods' => array(
1108              'delete' => array(
1109                'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1110                'httpMethod' => 'DELETE',
1111                'parameters' => array(
1112                  'fileId' => array(
1113                    'location' => 'path',
1114                    'type' => 'string',
1115                    'required' => true,
1116                  ),
1117                  'commentId' => array(
1118                    'location' => 'path',
1119                    'type' => 'string',
1120                    'required' => true,
1121                  ),
1122                  'replyId' => array(
1123                    'location' => 'path',
1124                    'type' => 'string',
1125                    'required' => true,
1126                  ),
1127                ),
1128              ),'get' => array(
1129                'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1130                'httpMethod' => 'GET',
1131                'parameters' => array(
1132                  'fileId' => array(
1133                    'location' => 'path',
1134                    'type' => 'string',
1135                    'required' => true,
1136                  ),
1137                  'commentId' => array(
1138                    'location' => 'path',
1139                    'type' => 'string',
1140                    'required' => true,
1141                  ),
1142                  'replyId' => array(
1143                    'location' => 'path',
1144                    'type' => 'string',
1145                    'required' => true,
1146                  ),
1147                  'includeDeleted' => array(
1148                    'location' => 'query',
1149                    'type' => 'boolean',
1150                  ),
1151                ),
1152              ),'insert' => array(
1153                'path' => 'files/{fileId}/comments/{commentId}/replies',
1154                'httpMethod' => 'POST',
1155                'parameters' => array(
1156                  'fileId' => array(
1157                    'location' => 'path',
1158                    'type' => 'string',
1159                    'required' => true,
1160                  ),
1161                  'commentId' => array(
1162                    'location' => 'path',
1163                    'type' => 'string',
1164                    'required' => true,
1165                  ),
1166                ),
1167              ),'list' => array(
1168                'path' => 'files/{fileId}/comments/{commentId}/replies',
1169                'httpMethod' => 'GET',
1170                'parameters' => array(
1171                  'fileId' => array(
1172                    'location' => 'path',
1173                    'type' => 'string',
1174                    'required' => true,
1175                  ),
1176                  'commentId' => array(
1177                    'location' => 'path',
1178                    'type' => 'string',
1179                    'required' => true,
1180                  ),
1181                  'pageToken' => array(
1182                    'location' => 'query',
1183                    'type' => 'string',
1184                  ),
1185                  'includeDeleted' => array(
1186                    'location' => 'query',
1187                    'type' => 'boolean',
1188                  ),
1189                  'maxResults' => array(
1190                    'location' => 'query',
1191                    'type' => 'integer',
1192                  ),
1193                ),
1194              ),'patch' => array(
1195                'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1196                'httpMethod' => 'PATCH',
1197                'parameters' => array(
1198                  'fileId' => array(
1199                    'location' => 'path',
1200                    'type' => 'string',
1201                    'required' => true,
1202                  ),
1203                  'commentId' => array(
1204                    'location' => 'path',
1205                    'type' => 'string',
1206                    'required' => true,
1207                  ),
1208                  'replyId' => array(
1209                    'location' => 'path',
1210                    'type' => 'string',
1211                    'required' => true,
1212                  ),
1213                ),
1214              ),'update' => array(
1215                'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1216                'httpMethod' => 'PUT',
1217                'parameters' => array(
1218                  'fileId' => array(
1219                    'location' => 'path',
1220                    'type' => 'string',
1221                    'required' => true,
1222                  ),
1223                  'commentId' => array(
1224                    'location' => 'path',
1225                    'type' => 'string',
1226                    'required' => true,
1227                  ),
1228                  'replyId' => array(
1229                    'location' => 'path',
1230                    'type' => 'string',
1231                    'required' => true,
1232                  ),
1233                ),
1234              ),
1235            )
1236          )
1237      );
1238      $this->revisions = new Google_Service_Drive_Revisions_Resource(
1239          $this,
1240          $this->serviceName,
1241          'revisions',
1242          array(
1243            'methods' => array(
1244              'delete' => array(
1245                'path' => 'files/{fileId}/revisions/{revisionId}',
1246                'httpMethod' => 'DELETE',
1247                'parameters' => array(
1248                  'fileId' => array(
1249                    'location' => 'path',
1250                    'type' => 'string',
1251                    'required' => true,
1252                  ),
1253                  'revisionId' => array(
1254                    'location' => 'path',
1255                    'type' => 'string',
1256                    'required' => true,
1257                  ),
1258                ),
1259              ),'get' => array(
1260                'path' => 'files/{fileId}/revisions/{revisionId}',
1261                'httpMethod' => 'GET',
1262                'parameters' => array(
1263                  'fileId' => array(
1264                    'location' => 'path',
1265                    'type' => 'string',
1266                    'required' => true,
1267                  ),
1268                  'revisionId' => array(
1269                    'location' => 'path',
1270                    'type' => 'string',
1271                    'required' => true,
1272                  ),
1273                ),
1274              ),'list' => array(
1275                'path' => 'files/{fileId}/revisions',
1276                'httpMethod' => 'GET',
1277                'parameters' => array(
1278                  'fileId' => array(
1279                    'location' => 'path',
1280                    'type' => 'string',
1281                    'required' => true,
1282                  ),
1283                ),
1284              ),'patch' => array(
1285                'path' => 'files/{fileId}/revisions/{revisionId}',
1286                'httpMethod' => 'PATCH',
1287                'parameters' => array(
1288                  'fileId' => array(
1289                    'location' => 'path',
1290                    'type' => 'string',
1291                    'required' => true,
1292                  ),
1293                  'revisionId' => array(
1294                    'location' => 'path',
1295                    'type' => 'string',
1296                    'required' => true,
1297                  ),
1298                ),
1299              ),'update' => array(
1300                'path' => 'files/{fileId}/revisions/{revisionId}',
1301                'httpMethod' => 'PUT',
1302                'parameters' => array(
1303                  'fileId' => array(
1304                    'location' => 'path',
1305                    'type' => 'string',
1306                    'required' => true,
1307                  ),
1308                  'revisionId' => array(
1309                    'location' => 'path',
1310                    'type' => 'string',
1311                    'required' => true,
1312                  ),
1313                ),
1314              ),
1315            )
1316          )
1317      );
1318    }
1319  }
1320  
1321  
1322  /**
1323   * The "about" collection of methods.
1324   * Typical usage is:
1325   *  <code>
1326   *   $driveService = new Google_Service_Drive(...);
1327   *   $about = $driveService->about;
1328   *  </code>
1329   */
1330  class Google_Service_Drive_About_Resource extends Google_Service_Resource
1331  {
1332  
1333    /**
1334     * Gets the information about the current user along with Drive API settings
1335     * (about.get)
1336     *
1337     * @param array $optParams Optional parameters.
1338     *
1339     * @opt_param bool includeSubscribed When calculating the number of remaining
1340     * change IDs, whether to include public files the user has opened and shared
1341     * files. When set to false, this counts only change IDs for owned files and any
1342     * shared or public files that the user has explicitly added to a folder they
1343     * own.
1344     * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to
1345     * count
1346     * @opt_param string startChangeId Change ID to start counting from when
1347     * calculating number of remaining change IDs
1348     * @return Google_Service_Drive_About
1349     */
1350    public function get($optParams = array())
1351    {
1352      $params = array();
1353      $params = array_merge($params, $optParams);
1354      return $this->call('get', array($params), "Google_Service_Drive_About");
1355    }
1356  }
1357  
1358  /**
1359   * The "apps" collection of methods.
1360   * Typical usage is:
1361   *  <code>
1362   *   $driveService = new Google_Service_Drive(...);
1363   *   $apps = $driveService->apps;
1364   *  </code>
1365   */
1366  class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
1367  {
1368  
1369    /**
1370     * Gets a specific app. (apps.get)
1371     *
1372     * @param string $appId The ID of the app.
1373     * @param array $optParams Optional parameters.
1374     * @return Google_Service_Drive_App
1375     */
1376    public function get($appId, $optParams = array())
1377    {
1378      $params = array('appId' => $appId);
1379      $params = array_merge($params, $optParams);
1380      return $this->call('get', array($params), "Google_Service_Drive_App");
1381    }
1382  
1383    /**
1384     * Lists a user's installed apps. (apps.listApps)
1385     *
1386     * @param array $optParams Optional parameters.
1387     *
1388     * @opt_param string languageCode A language or locale code, as defined by BCP
1389     * 47, with some extensions from Unicode's LDML format
1390     * (http://www.unicode.org/reports/tr35/).
1391     * @opt_param string appFilterExtensions A comma-separated list of file
1392     * extensions for open with filtering. All apps within the given app query scope
1393     * which can open any of the given file extensions will be included in the
1394     * response. If appFilterMimeTypes are provided as well, the result is a union
1395     * of the two resulting app lists.
1396     * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for
1397     * open with filtering. All apps within the given app query scope which can open
1398     * any of the given MIME types will be included in the response. If
1399     * appFilterExtensions are provided as well, the result is a union of the two
1400     * resulting app lists.
1401     * @return Google_Service_Drive_AppList
1402     */
1403    public function listApps($optParams = array())
1404    {
1405      $params = array();
1406      $params = array_merge($params, $optParams);
1407      return $this->call('list', array($params), "Google_Service_Drive_AppList");
1408    }
1409  }
1410  
1411  /**
1412   * The "changes" collection of methods.
1413   * Typical usage is:
1414   *  <code>
1415   *   $driveService = new Google_Service_Drive(...);
1416   *   $changes = $driveService->changes;
1417   *  </code>
1418   */
1419  class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1420  {
1421  
1422    /**
1423     * Gets a specific change. (changes.get)
1424     *
1425     * @param string $changeId The ID of the change.
1426     * @param array $optParams Optional parameters.
1427     * @return Google_Service_Drive_Change
1428     */
1429    public function get($changeId, $optParams = array())
1430    {
1431      $params = array('changeId' => $changeId);
1432      $params = array_merge($params, $optParams);
1433      return $this->call('get', array($params), "Google_Service_Drive_Change");
1434    }
1435  
1436    /**
1437     * Lists the changes for a user. (changes.listChanges)
1438     *
1439     * @param array $optParams Optional parameters.
1440     *
1441     * @opt_param bool includeSubscribed Whether to include public files the user
1442     * has opened and shared files. When set to false, the list only includes owned
1443     * files plus any shared or public files the user has explicitly added to a
1444     * folder they own.
1445     * @opt_param bool includeDeleted Whether to include deleted items.
1446     * @opt_param int maxResults Maximum number of changes to return.
1447     * @opt_param string pageToken Page token for changes.
1448     * @opt_param string spaces A comma-separated list of spaces to query. Supported
1449     * values are 'drive', 'appDataFolder' and 'photos'.
1450     * @opt_param string startChangeId Change ID to start listing changes from.
1451     * @return Google_Service_Drive_ChangeList
1452     */
1453    public function listChanges($optParams = array())
1454    {
1455      $params = array();
1456      $params = array_merge($params, $optParams);
1457      return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
1458    }
1459  
1460    /**
1461     * Subscribe to changes for a user. (changes.watch)
1462     *
1463     * @param Google_Channel $postBody
1464     * @param array $optParams Optional parameters.
1465     *
1466     * @opt_param bool includeSubscribed Whether to include public files the user
1467     * has opened and shared files. When set to false, the list only includes owned
1468     * files plus any shared or public files the user has explicitly added to a
1469     * folder they own.
1470     * @opt_param bool includeDeleted Whether to include deleted items.
1471     * @opt_param int maxResults Maximum number of changes to return.
1472     * @opt_param string pageToken Page token for changes.
1473     * @opt_param string spaces A comma-separated list of spaces to query. Supported
1474     * values are 'drive', 'appDataFolder' and 'photos'.
1475     * @opt_param string startChangeId Change ID to start listing changes from.
1476     * @return Google_Service_Drive_Channel
1477     */
1478    public function watch(Google_Service_Drive_Channel $postBody, $optParams = array())
1479    {
1480      $params = array('postBody' => $postBody);
1481      $params = array_merge($params, $optParams);
1482      return $this->call('watch', array($params), "Google_Service_Drive_Channel");
1483    }
1484  }
1485  
1486  /**
1487   * The "channels" collection of methods.
1488   * Typical usage is:
1489   *  <code>
1490   *   $driveService = new Google_Service_Drive(...);
1491   *   $channels = $driveService->channels;
1492   *  </code>
1493   */
1494  class Google_Service_Drive_Channels_Resource extends Google_Service_Resource
1495  {
1496  
1497    /**
1498     * Stop watching resources through this channel (channels.stop)
1499     *
1500     * @param Google_Channel $postBody
1501     * @param array $optParams Optional parameters.
1502     */
1503    public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
1504    {
1505      $params = array('postBody' => $postBody);
1506      $params = array_merge($params, $optParams);
1507      return $this->call('stop', array($params));
1508    }
1509  }
1510  
1511  /**
1512   * The "children" collection of methods.
1513   * Typical usage is:
1514   *  <code>
1515   *   $driveService = new Google_Service_Drive(...);
1516   *   $children = $driveService->children;
1517   *  </code>
1518   */
1519  class Google_Service_Drive_Children_Resource extends Google_Service_Resource
1520  {
1521  
1522    /**
1523     * Removes a child from a folder. (children.delete)
1524     *
1525     * @param string $folderId The ID of the folder.
1526     * @param string $childId The ID of the child.
1527     * @param array $optParams Optional parameters.
1528     */
1529    public function delete($folderId, $childId, $optParams = array())
1530    {
1531      $params = array('folderId' => $folderId, 'childId' => $childId);
1532      $params = array_merge($params, $optParams);
1533      return $this->call('delete', array($params));
1534    }
1535  
1536    /**
1537     * Gets a specific child reference. (children.get)
1538     *
1539     * @param string $folderId The ID of the folder.
1540     * @param string $childId The ID of the child.
1541     * @param array $optParams Optional parameters.
1542     * @return Google_Service_Drive_ChildReference
1543     */
1544    public function get($folderId, $childId, $optParams = array())
1545    {
1546      $params = array('folderId' => $folderId, 'childId' => $childId);
1547      $params = array_merge($params, $optParams);
1548      return $this->call('get', array($params), "Google_Service_Drive_ChildReference");
1549    }
1550  
1551    /**
1552     * Inserts a file into a folder. (children.insert)
1553     *
1554     * @param string $folderId The ID of the folder.
1555     * @param Google_ChildReference $postBody
1556     * @param array $optParams Optional parameters.
1557     * @return Google_Service_Drive_ChildReference
1558     */
1559    public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array())
1560    {
1561      $params = array('folderId' => $folderId, 'postBody' => $postBody);
1562      $params = array_merge($params, $optParams);
1563      return $this->call('insert', array($params), "Google_Service_Drive_ChildReference");
1564    }
1565  
1566    /**
1567     * Lists a folder's children. (children.listChildren)
1568     *
1569     * @param string $folderId The ID of the folder.
1570     * @param array $optParams Optional parameters.
1571     *
1572     * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
1573     * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate',
1574     * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred',
1575     * and 'title'. Each key sorts ascending by default, but may be reversed with
1576     * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title.
1577     * Please note that there is a current limitation for users with approximately
1578     * one million files in which the requested sort order is ignored.
1579     * @opt_param string pageToken Page token for children.
1580     * @opt_param string q Query string for searching children.
1581     * @opt_param int maxResults Maximum number of children to return.
1582     * @return Google_Service_Drive_ChildList
1583     */
1584    public function listChildren($folderId, $optParams = array())
1585    {
1586      $params = array('folderId' => $folderId);
1587      $params = array_merge($params, $optParams);
1588      return $this->call('list', array($params), "Google_Service_Drive_ChildList");
1589    }
1590  }
1591  
1592  /**
1593   * The "comments" collection of methods.
1594   * Typical usage is:
1595   *  <code>
1596   *   $driveService = new Google_Service_Drive(...);
1597   *   $comments = $driveService->comments;
1598   *  </code>
1599   */
1600  class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1601  {
1602  
1603    /**
1604     * Deletes a comment. (comments.delete)
1605     *
1606     * @param string $fileId The ID of the file.
1607     * @param string $commentId The ID of the comment.
1608     * @param array $optParams Optional parameters.
1609     */
1610    public function delete($fileId, $commentId, $optParams = array())
1611    {
1612      $params = array('fileId' => $fileId, 'commentId' => $commentId);
1613      $params = array_merge($params, $optParams);
1614      return $this->call('delete', array($params));
1615    }
1616  
1617    /**
1618     * Gets a comment by ID. (comments.get)
1619     *
1620     * @param string $fileId The ID of the file.
1621     * @param string $commentId The ID of the comment.
1622     * @param array $optParams Optional parameters.
1623     *
1624     * @opt_param bool includeDeleted If set, this will succeed when retrieving a
1625     * deleted comment, and will include any deleted replies.
1626     * @return Google_Service_Drive_Comment
1627     */
1628    public function get($fileId, $commentId, $optParams = array())
1629    {
1630      $params = array('fileId' => $fileId, 'commentId' => $commentId);
1631      $params = array_merge($params, $optParams);
1632      return $this->call('get', array($params), "Google_Service_Drive_Comment");
1633    }
1634  
1635    /**
1636     * Creates a new comment on the given file. (comments.insert)
1637     *
1638     * @param string $fileId The ID of the file.
1639     * @param Google_Comment $postBody
1640     * @param array $optParams Optional parameters.
1641     * @return Google_Service_Drive_Comment
1642     */
1643    public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
1644    {
1645      $params = array('fileId' => $fileId, 'postBody' => $postBody);
1646      $params = array_merge($params, $optParams);
1647      return $this->call('insert', array($params), "Google_Service_Drive_Comment");
1648    }
1649  
1650    /**
1651     * Lists a file's comments. (comments.listComments)
1652     *
1653     * @param string $fileId The ID of the file.
1654     * @param array $optParams Optional parameters.
1655     *
1656     * @opt_param string pageToken The continuation token, used to page through
1657     * large result sets. To get the next page of results, set this parameter to the
1658     * value of "nextPageToken" from the previous response.
1659     * @opt_param string updatedMin Only discussions that were updated after this
1660     * timestamp will be returned. Formatted as an RFC 3339 timestamp.
1661     * @opt_param bool includeDeleted If set, all comments and replies, including
1662     * deleted comments and replies (with content stripped) will be returned.
1663     * @opt_param int maxResults The maximum number of discussions to include in the
1664     * response, used for paging.
1665     * @return Google_Service_Drive_CommentList
1666     */
1667    public function listComments($fileId, $optParams = array())
1668    {
1669      $params = array('fileId' => $fileId);
1670      $params = array_merge($params, $optParams);
1671      return $this->call('list', array($params), "Google_Service_Drive_CommentList");
1672    }
1673  
1674    /**
1675     * Updates an existing comment. This method supports patch semantics.
1676     * (comments.patch)
1677     *
1678     * @param string $fileId The ID of the file.
1679     * @param string $commentId The ID of the comment.
1680     * @param Google_Comment $postBody
1681     * @param array $optParams Optional parameters.
1682     * @return Google_Service_Drive_Comment
1683     */
1684    public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
1685    {
1686      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
1687      $params = array_merge($params, $optParams);
1688      return $this->call('patch', array($params), "Google_Service_Drive_Comment");
1689    }
1690  
1691    /**
1692     * Updates an existing comment. (comments.update)
1693     *
1694     * @param string $fileId The ID of the file.
1695     * @param string $commentId The ID of the comment.
1696     * @param Google_Comment $postBody
1697     * @param array $optParams Optional parameters.
1698     * @return Google_Service_Drive_Comment
1699     */
1700    public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
1701    {
1702      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
1703      $params = array_merge($params, $optParams);
1704      return $this->call('update', array($params), "Google_Service_Drive_Comment");
1705    }
1706  }
1707  
1708  /**
1709   * The "files" collection of methods.
1710   * Typical usage is:
1711   *  <code>
1712   *   $driveService = new Google_Service_Drive(...);
1713   *   $files = $driveService->files;
1714   *  </code>
1715   */
1716  class Google_Service_Drive_Files_Resource extends Google_Service_Resource
1717  {
1718  
1719    /**
1720     * Creates a copy of the specified file. (files.copy)
1721     *
1722     * @param string $fileId The ID of the file to copy.
1723     * @param Google_DriveFile $postBody
1724     * @param array $optParams Optional parameters.
1725     *
1726     * @opt_param bool convert Whether to convert this file to the corresponding
1727     * Google Docs format.
1728     * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
1729     * Valid values are BCP 47 codes.
1730     * @opt_param string visibility The visibility of the new file. This parameter
1731     * is only relevant when the source is not a native Google Doc and
1732     * convert=false.
1733     * @opt_param bool pinned Whether to pin the head revision of the new copy. A
1734     * file can have a maximum of 200 pinned revisions.
1735     * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
1736     * uploads.
1737     * @opt_param string timedTextTrackName The timed text track name.
1738     * @opt_param string timedTextLanguage The language of the timed text.
1739     * @return Google_Service_Drive_DriveFile
1740     */
1741    public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
1742    {
1743      $params = array('fileId' => $fileId, 'postBody' => $postBody);
1744      $params = array_merge($params, $optParams);
1745      return $this->call('copy', array($params), "Google_Service_Drive_DriveFile");
1746    }
1747  
1748    /**
1749     * Permanently deletes a file by ID. Skips the trash. The currently
1750     * authenticated user must own the file. (files.delete)
1751     *
1752     * @param string $fileId The ID of the file to delete.
1753     * @param array $optParams Optional parameters.
1754     */
1755    public function delete($fileId, $optParams = array())
1756    {
1757      $params = array('fileId' => $fileId);
1758      $params = array_merge($params, $optParams);
1759      return $this->call('delete', array($params));
1760    }
1761  
1762    /**
1763     * Permanently deletes all of the user's trashed files. (files.emptyTrash)
1764     *
1765     * @param array $optParams Optional parameters.
1766     */
1767    public function emptyTrash($optParams = array())
1768    {
1769      $params = array();
1770      $params = array_merge($params, $optParams);
1771      return $this->call('emptyTrash', array($params));
1772    }
1773  
1774    /**
1775     * Generates a set of file IDs which can be provided in insert requests.
1776     * (files.generateIds)
1777     *
1778     * @param array $optParams Optional parameters.
1779     *
1780     * @opt_param int maxResults Maximum number of IDs to return.
1781     * @opt_param string space The space in which the IDs can be used to create new
1782     * files. Supported values are 'drive' and 'appDataFolder'.
1783     * @return Google_Service_Drive_GeneratedIds
1784     */
1785    public function generateIds($optParams = array())
1786    {
1787      $params = array();
1788      $params = array_merge($params, $optParams);
1789      return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds");
1790    }
1791  
1792    /**
1793     * Gets a file's metadata by ID. (files.get)
1794     *
1795     * @param string $fileId The ID for the file in question.
1796     * @param array $optParams Optional parameters.
1797     *
1798     * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
1799     * of downloading known malware or other abusive files.
1800     * @opt_param bool updateViewedDate Deprecated: Use files.update with
1801     * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request
1802     * body.
1803     * @opt_param string revisionId Specifies the Revision ID that should be
1804     * downloaded. Ignored unless alt=media is specified.
1805     * @opt_param string projection This parameter is deprecated and has no
1806     * function.
1807     * @return Google_Service_Drive_DriveFile
1808     */
1809    public function get($fileId, $optParams = array())
1810    {
1811      $params = array('fileId' => $fileId);
1812      $params = array_merge($params, $optParams);
1813      return $this->call('get', array($params), "Google_Service_Drive_DriveFile");
1814    }
1815  
1816    /**
1817     * Insert a new file. (files.insert)
1818     *
1819     * @param Google_DriveFile $postBody
1820     * @param array $optParams Optional parameters.
1821     *
1822     * @opt_param bool convert Whether to convert this file to the corresponding
1823     * Google Docs format.
1824     * @opt_param bool useContentAsIndexableText Whether to use the content as
1825     * indexable text.
1826     * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
1827     * Valid values are BCP 47 codes.
1828     * @opt_param string visibility The visibility of the new file. This parameter
1829     * is only relevant when convert=false.
1830     * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
1831     * A file can have a maximum of 200 pinned revisions.
1832     * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
1833     * uploads.
1834     * @opt_param string timedTextTrackName The timed text track name.
1835     * @opt_param string timedTextLanguage The language of the timed text.
1836     * @return Google_Service_Drive_DriveFile
1837     */
1838    public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array())
1839    {
1840      $params = array('postBody' => $postBody);
1841      $params = array_merge($params, $optParams);
1842      return $this->call('insert', array($params), "Google_Service_Drive_DriveFile");
1843    }
1844  
1845    /**
1846     * Lists the user's files. (files.listFiles)
1847     *
1848     * @param array $optParams Optional parameters.
1849     *
1850     * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
1851     * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate',
1852     * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred',
1853     * and 'title'. Each key sorts ascending by default, but may be reversed with
1854     * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title.
1855     * Please note that there is a current limitation for users with approximately
1856     * one million files in which the requested sort order is ignored.
1857     * @opt_param string projection This parameter is deprecated and has no
1858     * function.
1859     * @opt_param int maxResults Maximum number of files to return.
1860     * @opt_param string q Query string for searching files.
1861     * @opt_param string pageToken Page token for files.
1862     * @opt_param string spaces A comma-separated list of spaces to query. Supported
1863     * values are 'drive', 'appDataFolder' and 'photos'.
1864     * @opt_param string corpus The body of items (files/documents) to which the
1865     * query applies.
1866     * @return Google_Service_Drive_FileList
1867     */
1868    public function listFiles($optParams = array())
1869    {
1870      $params = array();
1871      $params = array_merge($params, $optParams);
1872      return $this->call('list', array($params), "Google_Service_Drive_FileList");
1873    }
1874  
1875    /**
1876     * Updates file metadata and/or content. This method supports patch semantics.
1877     * (files.patch)
1878     *
1879     * @param string $fileId The ID of the file to update.
1880     * @param Google_DriveFile $postBody
1881     * @param array $optParams Optional parameters.
1882     *
1883     * @opt_param string addParents Comma-separated list of parent IDs to add.
1884     * @opt_param string modifiedDateBehavior Determines the behavior in which
1885     * modifiedDate is updated. This overrides setModifiedDate.
1886     * @opt_param string removeParents Comma-separated list of parent IDs to remove.
1887     * @opt_param bool updateViewedDate Whether to update the view date after
1888     * successfully updating the file.
1889     * @opt_param bool setModifiedDate Whether to set the modified date with the
1890     * supplied modified date.
1891     * @opt_param bool useContentAsIndexableText Whether to use the content as
1892     * indexable text.
1893     * @opt_param bool convert This parameter is deprecated and has no function.
1894     * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
1895     * Valid values are BCP 47 codes.
1896     * @opt_param bool pinned Whether to pin the new revision. A file can have a
1897     * maximum of 200 pinned revisions.
1898     * @opt_param bool newRevision Whether a blob upload should create a new
1899     * revision. If false, the blob data in the current head revision is replaced.
1900     * If true or not set, a new blob is created as head revision, and previous
1901     * unpinned revisions are preserved for a short period of time. Pinned revisions
1902     * are stored indefinitely, using additional storage quota, up to a maximum of
1903     * 200 revisions. For details on how revisions are retained, see the Drive Help
1904     * Center.
1905     * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
1906     * uploads.
1907     * @opt_param string timedTextLanguage The language of the timed text.
1908     * @opt_param string timedTextTrackName The timed text track name.
1909     * @return Google_Service_Drive_DriveFile
1910     */
1911    public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
1912    {
1913      $params = array('fileId' => $fileId, 'postBody' => $postBody);
1914      $params = array_merge($params, $optParams);
1915      return $this->call('patch', array($params), "Google_Service_Drive_DriveFile");
1916    }
1917  
1918    /**
1919     * Set the file's updated time to the current server time. (files.touch)
1920     *
1921     * @param string $fileId The ID of the file to update.
1922     * @param array $optParams Optional parameters.
1923     * @return Google_Service_Drive_DriveFile
1924     */
1925    public function touch($fileId, $optParams = array())
1926    {
1927      $params = array('fileId' => $fileId);
1928      $params = array_merge($params, $optParams);
1929      return $this->call('touch', array($params), "Google_Service_Drive_DriveFile");
1930    }
1931  
1932    /**
1933     * Moves a file to the trash. The currently authenticated user must own the
1934     * file. (files.trash)
1935     *
1936     * @param string $fileId The ID of the file to trash.
1937     * @param array $optParams Optional parameters.
1938     * @return Google_Service_Drive_DriveFile
1939     */
1940    public function trash($fileId, $optParams = array())
1941    {
1942      $params = array('fileId' => $fileId);
1943      $params = array_merge($params, $optParams);
1944      return $this->call('trash', array($params), "Google_Service_Drive_DriveFile");
1945    }
1946  
1947    /**
1948     * Restores a file from the trash. (files.untrash)
1949     *
1950     * @param string $fileId The ID of the file to untrash.
1951     * @param array $optParams Optional parameters.
1952     * @return Google_Service_Drive_DriveFile
1953     */
1954    public function untrash($fileId, $optParams = array())
1955    {
1956      $params = array('fileId' => $fileId);
1957      $params = array_merge($params, $optParams);
1958      return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile");
1959    }
1960  
1961    /**
1962     * Updates file metadata and/or content. (files.update)
1963     *
1964     * @param string $fileId The ID of the file to update.
1965     * @param Google_DriveFile $postBody
1966     * @param array $optParams Optional parameters.
1967     *
1968     * @opt_param string addParents Comma-separated list of parent IDs to add.
1969     * @opt_param string modifiedDateBehavior Determines the behavior in which
1970     * modifiedDate is updated. This overrides setModifiedDate.
1971     * @opt_param string removeParents Comma-separated list of parent IDs to remove.
1972     * @opt_param bool updateViewedDate Whether to update the view date after
1973     * successfully updating the file.
1974     * @opt_param bool setModifiedDate Whether to set the modified date with the
1975     * supplied modified date.
1976     * @opt_param bool useContentAsIndexableText Whether to use the content as
1977     * indexable text.
1978     * @opt_param bool convert This parameter is deprecated and has no function.
1979     * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
1980     * Valid values are BCP 47 codes.
1981     * @opt_param bool pinned Whether to pin the new revision. A file can have a
1982     * maximum of 200 pinned revisions.
1983     * @opt_param bool newRevision Whether a blob upload should create a new
1984     * revision. If false, the blob data in the current head revision is replaced.
1985     * If true or not set, a new blob is created as head revision, and previous
1986     * unpinned revisions are preserved for a short period of time. Pinned revisions
1987     * are stored indefinitely, using additional storage quota, up to a maximum of
1988     * 200 revisions. For details on how revisions are retained, see the Drive Help
1989     * Center.
1990     * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
1991     * uploads.
1992     * @opt_param string timedTextLanguage The language of the timed text.
1993     * @opt_param string timedTextTrackName The timed text track name.
1994     * @return Google_Service_Drive_DriveFile
1995     */
1996    public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
1997    {
1998      $params = array('fileId' => $fileId, 'postBody' => $postBody);
1999      $params = array_merge($params, $optParams);
2000      return $this->call('update', array($params), "Google_Service_Drive_DriveFile");
2001    }
2002  
2003    /**
2004     * Subscribe to changes on a file (files.watch)
2005     *
2006     * @param string $fileId The ID for the file in question.
2007     * @param Google_Channel $postBody
2008     * @param array $optParams Optional parameters.
2009     *
2010     * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
2011     * of downloading known malware or other abusive files.
2012     * @opt_param bool updateViewedDate Deprecated: Use files.update with
2013     * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request
2014     * body.
2015     * @opt_param string revisionId Specifies the Revision ID that should be
2016     * downloaded. Ignored unless alt=media is specified.
2017     * @opt_param string projection This parameter is deprecated and has no
2018     * function.
2019     * @return Google_Service_Drive_Channel
2020     */
2021    public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array())
2022    {
2023      $params = array('fileId' => $fileId, 'postBody' => $postBody);
2024      $params = array_merge($params, $optParams);
2025      return $this->call('watch', array($params), "Google_Service_Drive_Channel");
2026    }
2027  }
2028  
2029  /**
2030   * The "parents" collection of methods.
2031   * Typical usage is:
2032   *  <code>
2033   *   $driveService = new Google_Service_Drive(...);
2034   *   $parents = $driveService->parents;
2035   *  </code>
2036   */
2037  class Google_Service_Drive_Parents_Resource extends Google_Service_Resource
2038  {
2039  
2040    /**
2041     * Removes a parent from a file. (parents.delete)
2042     *
2043     * @param string $fileId The ID of the file.
2044     * @param string $parentId The ID of the parent.
2045     * @param array $optParams Optional parameters.
2046     */
2047    public function delete($fileId, $parentId, $optParams = array())
2048    {
2049      $params = array('fileId' => $fileId, 'parentId' => $parentId);
2050      $params = array_merge($params, $optParams);
2051      return $this->call('delete', array($params));
2052    }
2053  
2054    /**
2055     * Gets a specific parent reference. (parents.get)
2056     *
2057     * @param string $fileId The ID of the file.
2058     * @param string $parentId The ID of the parent.
2059     * @param array $optParams Optional parameters.
2060     * @return Google_Service_Drive_ParentReference
2061     */
2062    public function get($fileId, $parentId, $optParams = array())
2063    {
2064      $params = array('fileId' => $fileId, 'parentId' => $parentId);
2065      $params = array_merge($params, $optParams);
2066      return $this->call('get', array($params), "Google_Service_Drive_ParentReference");
2067    }
2068  
2069    /**
2070     * Adds a parent folder for a file. (parents.insert)
2071     *
2072     * @param string $fileId The ID of the file.
2073     * @param Google_ParentReference $postBody
2074     * @param array $optParams Optional parameters.
2075     * @return Google_Service_Drive_ParentReference
2076     */
2077    public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array())
2078    {
2079      $params = array('fileId' => $fileId, 'postBody' => $postBody);
2080      $params = array_merge($params, $optParams);
2081      return $this->call('insert', array($params), "Google_Service_Drive_ParentReference");
2082    }
2083  
2084    /**
2085     * Lists a file's parents. (parents.listParents)
2086     *
2087     * @param string $fileId The ID of the file.
2088     * @param array $optParams Optional parameters.
2089     * @return Google_Service_Drive_ParentList
2090     */
2091    public function listParents($fileId, $optParams = array())
2092    {
2093      $params = array('fileId' => $fileId);
2094      $params = array_merge($params, $optParams);
2095      return $this->call('list', array($params), "Google_Service_Drive_ParentList");
2096    }
2097  }
2098  
2099  /**
2100   * The "permissions" collection of methods.
2101   * Typical usage is:
2102   *  <code>
2103   *   $driveService = new Google_Service_Drive(...);
2104   *   $permissions = $driveService->permissions;
2105   *  </code>
2106   */
2107  class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource
2108  {
2109  
2110    /**
2111     * Deletes a permission from a file. (permissions.delete)
2112     *
2113     * @param string $fileId The ID for the file.
2114     * @param string $permissionId The ID for the permission.
2115     * @param array $optParams Optional parameters.
2116     */
2117    public function delete($fileId, $permissionId, $optParams = array())
2118    {
2119      $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
2120      $params = array_merge($params, $optParams);
2121      return $this->call('delete', array($params));
2122    }
2123  
2124    /**
2125     * Gets a permission by ID. (permissions.get)
2126     *
2127     * @param string $fileId The ID for the file.
2128     * @param string $permissionId The ID for the permission.
2129     * @param array $optParams Optional parameters.
2130     * @return Google_Service_Drive_Permission
2131     */
2132    public function get($fileId, $permissionId, $optParams = array())
2133    {
2134      $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
2135      $params = array_merge($params, $optParams);
2136      return $this->call('get', array($params), "Google_Service_Drive_Permission");
2137    }
2138  
2139    /**
2140     * Returns the permission ID for an email address. (permissions.getIdForEmail)
2141     *
2142     * @param string $email The email address for which to return a permission ID
2143     * @param array $optParams Optional parameters.
2144     * @return Google_Service_Drive_PermissionId
2145     */
2146    public function getIdForEmail($email, $optParams = array())
2147    {
2148      $params = array('email' => $email);
2149      $params = array_merge($params, $optParams);
2150      return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId");
2151    }
2152  
2153    /**
2154     * Inserts a permission for a file. (permissions.insert)
2155     *
2156     * @param string $fileId The ID for the file.
2157     * @param Google_Permission $postBody
2158     * @param array $optParams Optional parameters.
2159     *
2160     * @opt_param string emailMessage A custom message to include in notification
2161     * emails.
2162     * @opt_param bool sendNotificationEmails Whether to send notification emails
2163     * when sharing to users or groups. This parameter is ignored and an email is
2164     * sent if the role is owner.
2165     * @return Google_Service_Drive_Permission
2166     */
2167    public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array())
2168    {
2169      $params = array('fileId' => $fileId, 'postBody' => $postBody);
2170      $params = array_merge($params, $optParams);
2171      return $this->call('insert', array($params), "Google_Service_Drive_Permission");
2172    }
2173  
2174    /**
2175     * Lists a file's permissions. (permissions.listPermissions)
2176     *
2177     * @param string $fileId The ID for the file.
2178     * @param array $optParams Optional parameters.
2179     * @return Google_Service_Drive_PermissionList
2180     */
2181    public function listPermissions($fileId, $optParams = array())
2182    {
2183      $params = array('fileId' => $fileId);
2184      $params = array_merge($params, $optParams);
2185      return $this->call('list', array($params), "Google_Service_Drive_PermissionList");
2186    }
2187  
2188    /**
2189     * Updates a permission using patch semantics. (permissions.patch)
2190     *
2191     * @param string $fileId The ID for the file.
2192     * @param string $permissionId The ID for the permission.
2193     * @param Google_Permission $postBody
2194     * @param array $optParams Optional parameters.
2195     *
2196     * @opt_param bool transferOwnership Whether changing a role to 'owner'
2197     * downgrades the current owners to writers. Does nothing if the specified role
2198     * is not 'owner'.
2199     * @return Google_Service_Drive_Permission
2200     */
2201    public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
2202    {
2203      $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
2204      $params = array_merge($params, $optParams);
2205      return $this->call('patch', array($params), "Google_Service_Drive_Permission");
2206    }
2207  
2208    /**
2209     * Updates a permission. (permissions.update)
2210     *
2211     * @param string $fileId The ID for the file.
2212     * @param string $permissionId The ID for the permission.
2213     * @param Google_Permission $postBody
2214     * @param array $optParams Optional parameters.
2215     *
2216     * @opt_param bool transferOwnership Whether changing a role to 'owner'
2217     * downgrades the current owners to writers. Does nothing if the specified role
2218     * is not 'owner'.
2219     * @return Google_Service_Drive_Permission
2220     */
2221    public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
2222    {
2223      $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
2224      $params = array_merge($params, $optParams);
2225      return $this->call('update', array($params), "Google_Service_Drive_Permission");
2226    }
2227  }
2228  
2229  /**
2230   * The "properties" collection of methods.
2231   * Typical usage is:
2232   *  <code>
2233   *   $driveService = new Google_Service_Drive(...);
2234   *   $properties = $driveService->properties;
2235   *  </code>
2236   */
2237  class Google_Service_Drive_Properties_Resource extends Google_Service_Resource
2238  {
2239  
2240    /**
2241     * Deletes a property. (properties.delete)
2242     *
2243     * @param string $fileId The ID of the file.
2244     * @param string $propertyKey The key of the property.
2245     * @param array $optParams Optional parameters.
2246     *
2247     * @opt_param string visibility The visibility of the property.
2248     */
2249    public function delete($fileId, $propertyKey, $optParams = array())
2250    {
2251      $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey);
2252      $params = array_merge($params, $optParams);
2253      return $this->call('delete', array($params));
2254    }
2255  
2256    /**
2257     * Gets a property by its key. (properties.get)
2258     *
2259     * @param string $fileId The ID of the file.
2260     * @param string $propertyKey The key of the property.
2261     * @param array $optParams Optional parameters.
2262     *
2263     * @opt_param string visibility The visibility of the property.
2264     * @return Google_Service_Drive_Property
2265     */
2266    public function get($fileId, $propertyKey, $optParams = array())
2267    {
2268      $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey);
2269      $params = array_merge($params, $optParams);
2270      return $this->call('get', array($params), "Google_Service_Drive_Property");
2271    }
2272  
2273    /**
2274     * Adds a property to a file. (properties.insert)
2275     *
2276     * @param string $fileId The ID of the file.
2277     * @param Google_Property $postBody
2278     * @param array $optParams Optional parameters.
2279     * @return Google_Service_Drive_Property
2280     */
2281    public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array())
2282    {
2283      $params = array('fileId' => $fileId, 'postBody' => $postBody);
2284      $params = array_merge($params, $optParams);
2285      return $this->call('insert', array($params), "Google_Service_Drive_Property");
2286    }
2287  
2288    /**
2289     * Lists a file's properties. (properties.listProperties)
2290     *
2291     * @param string $fileId The ID of the file.
2292     * @param array $optParams Optional parameters.
2293     * @return Google_Service_Drive_PropertyList
2294     */
2295    public function listProperties($fileId, $optParams = array())
2296    {
2297      $params = array('fileId' => $fileId);
2298      $params = array_merge($params, $optParams);
2299      return $this->call('list', array($params), "Google_Service_Drive_PropertyList");
2300    }
2301  
2302    /**
2303     * Updates a property. This method supports patch semantics. (properties.patch)
2304     *
2305     * @param string $fileId The ID of the file.
2306     * @param string $propertyKey The key of the property.
2307     * @param Google_Property $postBody
2308     * @param array $optParams Optional parameters.
2309     *
2310     * @opt_param string visibility The visibility of the property.
2311     * @return Google_Service_Drive_Property
2312     */
2313    public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array())
2314    {
2315      $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody);
2316      $params = array_merge($params, $optParams);
2317      return $this->call('patch', array($params), "Google_Service_Drive_Property");
2318    }
2319  
2320    /**
2321     * Updates a property. (properties.update)
2322     *
2323     * @param string $fileId The ID of the file.
2324     * @param string $propertyKey The key of the property.
2325     * @param Google_Property $postBody
2326     * @param array $optParams Optional parameters.
2327     *
2328     * @opt_param string visibility The visibility of the property.
2329     * @return Google_Service_Drive_Property
2330     */
2331    public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array())
2332    {
2333      $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody);
2334      $params = array_merge($params, $optParams);
2335      return $this->call('update', array($params), "Google_Service_Drive_Property");
2336    }
2337  }
2338  
2339  /**
2340   * The "realtime" collection of methods.
2341   * Typical usage is:
2342   *  <code>
2343   *   $driveService = new Google_Service_Drive(...);
2344   *   $realtime = $driveService->realtime;
2345   *  </code>
2346   */
2347  class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource
2348  {
2349  
2350    /**
2351     * Exports the contents of the Realtime API data model associated with this file
2352     * as JSON. (realtime.get)
2353     *
2354     * @param string $fileId The ID of the file that the Realtime API data model is
2355     * associated with.
2356     * @param array $optParams Optional parameters.
2357     *
2358     * @opt_param int revision The revision of the Realtime API data model to
2359     * export. Revisions start at 1 (the initial empty data model) and are
2360     * incremented with each change. If this parameter is excluded, the most recent
2361     * data model will be returned.
2362     */
2363    public function get($fileId, $optParams = array())
2364    {
2365      $params = array('fileId' => $fileId);
2366      $params = array_merge($params, $optParams);
2367      return $this->call('get', array($params));
2368    }
2369  
2370    /**
2371     * Overwrites the Realtime API data model associated with this file with the
2372     * provided JSON data model. (realtime.update)
2373     *
2374     * @param string $fileId The ID of the file that the Realtime API data model is
2375     * associated with.
2376     * @param array $optParams Optional parameters.
2377     *
2378     * @opt_param string baseRevision The revision of the model to diff the uploaded
2379     * model against. If set, the uploaded model is diffed against the provided
2380     * revision and those differences are merged with any changes made to the model
2381     * after the provided revision. If not set, the uploaded model replaces the
2382     * current model on the server.
2383     */
2384    public function update($fileId, $optParams = array())
2385    {
2386      $params = array('fileId' => $fileId);
2387      $params = array_merge($params, $optParams);
2388      return $this->call('update', array($params));
2389    }
2390  }
2391  
2392  /**
2393   * The "replies" collection of methods.
2394   * Typical usage is:
2395   *  <code>
2396   *   $driveService = new Google_Service_Drive(...);
2397   *   $replies = $driveService->replies;
2398   *  </code>
2399   */
2400  class Google_Service_Drive_Replies_Resource extends Google_Service_Resource
2401  {
2402  
2403    /**
2404     * Deletes a reply. (replies.delete)
2405     *
2406     * @param string $fileId The ID of the file.
2407     * @param string $commentId The ID of the comment.
2408     * @param string $replyId The ID of the reply.
2409     * @param array $optParams Optional parameters.
2410     */
2411    public function delete($fileId, $commentId, $replyId, $optParams = array())
2412    {
2413      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
2414      $params = array_merge($params, $optParams);
2415      return $this->call('delete', array($params));
2416    }
2417  
2418    /**
2419     * Gets a reply. (replies.get)
2420     *
2421     * @param string $fileId The ID of the file.
2422     * @param string $commentId The ID of the comment.
2423     * @param string $replyId The ID of the reply.
2424     * @param array $optParams Optional parameters.
2425     *
2426     * @opt_param bool includeDeleted If set, this will succeed when retrieving a
2427     * deleted reply.
2428     * @return Google_Service_Drive_CommentReply
2429     */
2430    public function get($fileId, $commentId, $replyId, $optParams = array())
2431    {
2432      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
2433      $params = array_merge($params, $optParams);
2434      return $this->call('get', array($params), "Google_Service_Drive_CommentReply");
2435    }
2436  
2437    /**
2438     * Creates a new reply to the given comment. (replies.insert)
2439     *
2440     * @param string $fileId The ID of the file.
2441     * @param string $commentId The ID of the comment.
2442     * @param Google_CommentReply $postBody
2443     * @param array $optParams Optional parameters.
2444     * @return Google_Service_Drive_CommentReply
2445     */
2446    public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
2447    {
2448      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
2449      $params = array_merge($params, $optParams);
2450      return $this->call('insert', array($params), "Google_Service_Drive_CommentReply");
2451    }
2452  
2453    /**
2454     * Lists all of the replies to a comment. (replies.listReplies)
2455     *
2456     * @param string $fileId The ID of the file.
2457     * @param string $commentId The ID of the comment.
2458     * @param array $optParams Optional parameters.
2459     *
2460     * @opt_param string pageToken The continuation token, used to page through
2461     * large result sets. To get the next page of results, set this parameter to the
2462     * value of "nextPageToken" from the previous response.
2463     * @opt_param bool includeDeleted If set, all replies, including deleted replies
2464     * (with content stripped) will be returned.
2465     * @opt_param int maxResults The maximum number of replies to include in the
2466     * response, used for paging.
2467     * @return Google_Service_Drive_CommentReplyList
2468     */
2469    public function listReplies($fileId, $commentId, $optParams = array())
2470    {
2471      $params = array('fileId' => $fileId, 'commentId' => $commentId);
2472      $params = array_merge($params, $optParams);
2473      return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList");
2474    }
2475  
2476    /**
2477     * Updates an existing reply. This method supports patch semantics.
2478     * (replies.patch)
2479     *
2480     * @param string $fileId The ID of the file.
2481     * @param string $commentId The ID of the comment.
2482     * @param string $replyId The ID of the reply.
2483     * @param Google_CommentReply $postBody
2484     * @param array $optParams Optional parameters.
2485     * @return Google_Service_Drive_CommentReply
2486     */
2487    public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
2488    {
2489      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
2490      $params = array_merge($params, $optParams);
2491      return $this->call('patch', array($params), "Google_Service_Drive_CommentReply");
2492    }
2493  
2494    /**
2495     * Updates an existing reply. (replies.update)
2496     *
2497     * @param string $fileId The ID of the file.
2498     * @param string $commentId The ID of the comment.
2499     * @param string $replyId The ID of the reply.
2500     * @param Google_CommentReply $postBody
2501     * @param array $optParams Optional parameters.
2502     * @return Google_Service_Drive_CommentReply
2503     */
2504    public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
2505    {
2506      $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
2507      $params = array_merge($params, $optParams);
2508      return $this->call('update', array($params), "Google_Service_Drive_CommentReply");
2509    }
2510  }
2511  
2512  /**
2513   * The "revisions" collection of methods.
2514   * Typical usage is:
2515   *  <code>
2516   *   $driveService = new Google_Service_Drive(...);
2517   *   $revisions = $driveService->revisions;
2518   *  </code>
2519   */
2520  class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource
2521  {
2522  
2523    /**
2524     * Removes a revision. (revisions.delete)
2525     *
2526     * @param string $fileId The ID of the file.
2527     * @param string $revisionId The ID of the revision.
2528     * @param array $optParams Optional parameters.
2529     */
2530    public function delete($fileId, $revisionId, $optParams = array())
2531    {
2532      $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
2533      $params = array_merge($params, $optParams);
2534      return $this->call('delete', array($params));
2535    }
2536  
2537    /**
2538     * Gets a specific revision. (revisions.get)
2539     *
2540     * @param string $fileId The ID of the file.
2541     * @param string $revisionId The ID of the revision.
2542     * @param array $optParams Optional parameters.
2543     * @return Google_Service_Drive_Revision
2544     */
2545    public function get($fileId, $revisionId, $optParams = array())
2546    {
2547      $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
2548      $params = array_merge($params, $optParams);
2549      return $this->call('get', array($params), "Google_Service_Drive_Revision");
2550    }
2551  
2552    /**
2553     * Lists a file's revisions. (revisions.listRevisions)
2554     *
2555     * @param string $fileId The ID of the file.
2556     * @param array $optParams Optional parameters.
2557     * @return Google_Service_Drive_RevisionList
2558     */
2559    public function listRevisions($fileId, $optParams = array())
2560    {
2561      $params = array('fileId' => $fileId);
2562      $params = array_merge($params, $optParams);
2563      return $this->call('list', array($params), "Google_Service_Drive_RevisionList");
2564    }
2565  
2566    /**
2567     * Updates a revision. This method supports patch semantics. (revisions.patch)
2568     *
2569     * @param string $fileId The ID for the file.
2570     * @param string $revisionId The ID for the revision.
2571     * @param Google_Revision $postBody
2572     * @param array $optParams Optional parameters.
2573     * @return Google_Service_Drive_Revision
2574     */
2575    public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
2576    {
2577      $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
2578      $params = array_merge($params, $optParams);
2579      return $this->call('patch', array($params), "Google_Service_Drive_Revision");
2580    }
2581  
2582    /**
2583     * Updates a revision. (revisions.update)
2584     *
2585     * @param string $fileId The ID for the file.
2586     * @param string $revisionId The ID for the revision.
2587     * @param Google_Revision $postBody
2588     * @param array $optParams Optional parameters.
2589     * @return Google_Service_Drive_Revision
2590     */
2591    public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
2592    {
2593      $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
2594      $params = array_merge($params, $optParams);
2595      return $this->call('update', array($params), "Google_Service_Drive_Revision");
2596    }
2597  }
2598  
2599  
2600  
2601  
2602  class Google_Service_Drive_About extends Google_Collection
2603  {
2604    protected $collection_key = 'quotaBytesByService';
2605    protected $internal_gapi_mappings = array(
2606    );
2607    protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo';
2608    protected $additionalRoleInfoDataType = 'array';
2609    public $domainSharingPolicy;
2610    public $etag;
2611    protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats';
2612    protected $exportFormatsDataType = 'array';
2613    protected $featuresType = 'Google_Service_Drive_AboutFeatures';
2614    protected $featuresDataType = 'array';
2615    public $folderColorPalette;
2616    protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats';
2617    protected $importFormatsDataType = 'array';
2618    public $isCurrentAppInstalled;
2619    public $kind;
2620    public $languageCode;
2621    public $largestChangeId;
2622    protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes';
2623    protected $maxUploadSizesDataType = 'array';
2624    public $name;
2625    public $permissionId;
2626    protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService';
2627    protected $quotaBytesByServiceDataType = 'array';
2628    public $quotaBytesTotal;
2629    public $quotaBytesUsed;
2630    public $quotaBytesUsedAggregate;
2631    public $quotaBytesUsedInTrash;
2632    public $quotaType;
2633    public $remainingChangeIds;
2634    public $rootFolderId;
2635    public $selfLink;
2636    protected $userType = 'Google_Service_Drive_User';
2637    protected $userDataType = '';
2638  
2639  
2640    public function setAdditionalRoleInfo($additionalRoleInfo)
2641    {
2642      $this->additionalRoleInfo = $additionalRoleInfo;
2643    }
2644    public function getAdditionalRoleInfo()
2645    {
2646      return $this->additionalRoleInfo;
2647    }
2648    public function setDomainSharingPolicy($domainSharingPolicy)
2649    {
2650      $this->domainSharingPolicy = $domainSharingPolicy;
2651    }
2652    public function getDomainSharingPolicy()
2653    {
2654      return $this->domainSharingPolicy;
2655    }
2656    public function setEtag($etag)
2657    {
2658      $this->etag = $etag;
2659    }
2660    public function getEtag()
2661    {
2662      return $this->etag;
2663    }
2664    public function setExportFormats($exportFormats)
2665    {
2666      $this->exportFormats = $exportFormats;
2667    }
2668    public function getExportFormats()
2669    {
2670      return $this->exportFormats;
2671    }
2672    public function setFeatures($features)
2673    {
2674      $this->features = $features;
2675    }
2676    public function getFeatures()
2677    {
2678      return $this->features;
2679    }
2680    public function setFolderColorPalette($folderColorPalette)
2681    {
2682      $this->folderColorPalette = $folderColorPalette;
2683    }
2684    public function getFolderColorPalette()
2685    {
2686      return $this->folderColorPalette;
2687    }
2688    public function setImportFormats($importFormats)
2689    {
2690      $this->importFormats = $importFormats;
2691    }
2692    public function getImportFormats()
2693    {
2694      return $this->importFormats;
2695    }
2696    public function setIsCurrentAppInstalled($isCurrentAppInstalled)
2697    {
2698      $this->isCurrentAppInstalled = $isCurrentAppInstalled;
2699    }
2700    public function getIsCurrentAppInstalled()
2701    {
2702      return $this->isCurrentAppInstalled;
2703    }
2704    public function setKind($kind)
2705    {
2706      $this->kind = $kind;
2707    }
2708    public function getKind()
2709    {
2710      return $this->kind;
2711    }
2712    public function setLanguageCode($languageCode)
2713    {
2714      $this->languageCode = $languageCode;
2715    }
2716    public function getLanguageCode()
2717    {
2718      return $this->languageCode;
2719    }
2720    public function setLargestChangeId($largestChangeId)
2721    {
2722      $this->largestChangeId = $largestChangeId;
2723    }
2724    public function getLargestChangeId()
2725    {
2726      return $this->largestChangeId;
2727    }
2728    public function setMaxUploadSizes($maxUploadSizes)
2729    {
2730      $this->maxUploadSizes = $maxUploadSizes;
2731    }
2732    public function getMaxUploadSizes()
2733    {
2734      return $this->maxUploadSizes;
2735    }
2736    public function setName($name)
2737    {
2738      $this->name = $name;
2739    }
2740    public function getName()
2741    {
2742      return $this->name;
2743    }
2744    public function setPermissionId($permissionId)
2745    {
2746      $this->permissionId = $permissionId;
2747    }
2748    public function getPermissionId()
2749    {
2750      return $this->permissionId;
2751    }
2752    public function setQuotaBytesByService($quotaBytesByService)
2753    {
2754      $this->quotaBytesByService = $quotaBytesByService;
2755    }
2756    public function getQuotaBytesByService()
2757    {
2758      return $this->quotaBytesByService;
2759    }
2760    public function setQuotaBytesTotal($quotaBytesTotal)
2761    {
2762      $this->quotaBytesTotal = $quotaBytesTotal;
2763    }
2764    public function getQuotaBytesTotal()
2765    {
2766      return $this->quotaBytesTotal;
2767    }
2768    public function setQuotaBytesUsed($quotaBytesUsed)
2769    {
2770      $this->quotaBytesUsed = $quotaBytesUsed;
2771    }
2772    public function getQuotaBytesUsed()
2773    {
2774      return $this->quotaBytesUsed;
2775    }
2776    public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate)
2777    {
2778      $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate;
2779    }
2780    public function getQuotaBytesUsedAggregate()
2781    {
2782      return $this->quotaBytesUsedAggregate;
2783    }
2784    public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash)
2785    {
2786      $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
2787    }
2788    public function getQuotaBytesUsedInTrash()
2789    {
2790      return $this->quotaBytesUsedInTrash;
2791    }
2792    public function setQuotaType($quotaType)
2793    {
2794      $this->quotaType = $quotaType;
2795    }
2796    public function getQuotaType()
2797    {
2798      return $this->quotaType;
2799    }
2800    public function setRemainingChangeIds($remainingChangeIds)
2801    {
2802      $this->remainingChangeIds = $remainingChangeIds;
2803    }
2804    public function getRemainingChangeIds()
2805    {
2806      return $this->remainingChangeIds;
2807    }
2808    public function setRootFolderId($rootFolderId)
2809    {
2810      $this->rootFolderId = $rootFolderId;
2811    }
2812    public function getRootFolderId()
2813    {
2814      return $this->rootFolderId;
2815    }
2816    public function setSelfLink($selfLink)
2817    {
2818      $this->selfLink = $selfLink;
2819    }
2820    public function getSelfLink()
2821    {
2822      return $this->selfLink;
2823    }
2824    public function setUser(Google_Service_Drive_User $user)
2825    {
2826      $this->user = $user;
2827    }
2828    public function getUser()
2829    {
2830      return $this->user;
2831    }
2832  }
2833  
2834  class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection
2835  {
2836    protected $collection_key = 'roleSets';
2837    protected $internal_gapi_mappings = array(
2838    );
2839    protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets';
2840    protected $roleSetsDataType = 'array';
2841    public $type;
2842  
2843  
2844    public function setRoleSets($roleSets)
2845    {
2846      $this->roleSets = $roleSets;
2847    }
2848    public function getRoleSets()
2849    {
2850      return $this->roleSets;
2851    }
2852    public function setType($type)
2853    {
2854      $this->type = $type;
2855    }
2856    public function getType()
2857    {
2858      return $this->type;
2859    }
2860  }
2861  
2862  class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection
2863  {
2864    protected $collection_key = 'additionalRoles';
2865    protected $internal_gapi_mappings = array(
2866    );
2867    public $additionalRoles;
2868    public $primaryRole;
2869  
2870  
2871    public function setAdditionalRoles($additionalRoles)
2872    {
2873      $this->additionalRoles = $additionalRoles;
2874    }
2875    public function getAdditionalRoles()
2876    {
2877      return $this->additionalRoles;
2878    }
2879    public function setPrimaryRole($primaryRole)
2880    {
2881      $this->primaryRole = $primaryRole;
2882    }
2883    public function getPrimaryRole()
2884    {
2885      return $this->primaryRole;
2886    }
2887  }
2888  
2889  class Google_Service_Drive_AboutExportFormats extends Google_Collection
2890  {
2891    protected $collection_key = 'targets';
2892    protected $internal_gapi_mappings = array(
2893    );
2894    public $source;
2895    public $targets;
2896  
2897  
2898    public function setSource($source)
2899    {
2900      $this->source = $source;
2901    }
2902    public function getSource()
2903    {
2904      return $this->source;
2905    }
2906    public function setTargets($targets)
2907    {
2908      $this->targets = $targets;
2909    }
2910    public function getTargets()
2911    {
2912      return $this->targets;
2913    }
2914  }
2915  
2916  class Google_Service_Drive_AboutFeatures extends Google_Model
2917  {
2918    protected $internal_gapi_mappings = array(
2919    );
2920    public $featureName;
2921    public $featureRate;
2922  
2923  
2924    public function setFeatureName($featureName)
2925    {
2926      $this->featureName = $featureName;
2927    }
2928    public function getFeatureName()
2929    {
2930      return $this->featureName;
2931    }
2932    public function setFeatureRate($featureRate)
2933    {
2934      $this->featureRate = $featureRate;
2935    }
2936    public function getFeatureRate()
2937    {
2938      return $this->featureRate;
2939    }
2940  }
2941  
2942  class Google_Service_Drive_AboutImportFormats extends Google_Collection
2943  {
2944    protected $collection_key = 'targets';
2945    protected $internal_gapi_mappings = array(
2946    );
2947    public $source;
2948    public $targets;
2949  
2950  
2951    public function setSource($source)
2952    {
2953      $this->source = $source;
2954    }
2955    public function getSource()
2956    {
2957      return $this->source;
2958    }
2959    public function setTargets($targets)
2960    {
2961      $this->targets = $targets;
2962    }
2963    public function getTargets()
2964    {
2965      return $this->targets;
2966    }
2967  }
2968  
2969  class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model
2970  {
2971    protected $internal_gapi_mappings = array(
2972    );
2973    public $size;
2974    public $type;
2975  
2976  
2977    public function setSize($size)
2978    {
2979      $this->size = $size;
2980    }
2981    public function getSize()
2982    {
2983      return $this->size;
2984    }
2985    public function setType($type)
2986    {
2987      $this->type = $type;
2988    }
2989    public function getType()
2990    {
2991      return $this->type;
2992    }
2993  }
2994  
2995  class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model
2996  {
2997    protected $internal_gapi_mappings = array(
2998    );
2999    public $bytesUsed;
3000    public $serviceName;
3001  
3002  
3003    public function setBytesUsed($bytesUsed)
3004    {
3005      $this->bytesUsed = $bytesUsed;
3006    }
3007    public function getBytesUsed()
3008    {
3009      return $this->bytesUsed;
3010    }
3011    public function setServiceName($serviceName)
3012    {
3013      $this->serviceName = $serviceName;
3014    }
3015    public function getServiceName()
3016    {
3017      return $this->serviceName;
3018    }
3019  }
3020  
3021  class Google_Service_Drive_App extends Google_Collection
3022  {
3023    protected $collection_key = 'secondaryMimeTypes';
3024    protected $internal_gapi_mappings = array(
3025    );
3026    public $authorized;
3027    public $createInFolderTemplate;
3028    public $createUrl;
3029    public $hasDriveWideScope;
3030    protected $iconsType = 'Google_Service_Drive_AppIcons';
3031    protected $iconsDataType = 'array';
3032    public $id;
3033    public $installed;
3034    public $kind;
3035    public $longDescription;
3036    public $name;
3037    public $objectType;
3038    public $openUrlTemplate;
3039    public $primaryFileExtensions;
3040    public $primaryMimeTypes;
3041    public $productId;
3042    public $productUrl;
3043    public $secondaryFileExtensions;
3044    public $secondaryMimeTypes;
3045    public $shortDescription;
3046    public $supportsCreate;
3047    public $supportsImport;
3048    public $supportsMultiOpen;
3049    public $supportsOfflineCreate;
3050    public $useByDefault;
3051  
3052  
3053    public function setAuthorized($authorized)
3054    {
3055      $this->authorized = $authorized;
3056    }
3057    public function getAuthorized()
3058    {
3059      return $this->authorized;
3060    }
3061    public function setCreateInFolderTemplate($createInFolderTemplate)
3062    {
3063      $this->createInFolderTemplate = $createInFolderTemplate;
3064    }
3065    public function getCreateInFolderTemplate()
3066    {
3067      return $this->createInFolderTemplate;
3068    }
3069    public function setCreateUrl($createUrl)
3070    {
3071      $this->createUrl = $createUrl;
3072    }
3073    public function getCreateUrl()
3074    {
3075      return $this->createUrl;
3076    }
3077    public function setHasDriveWideScope($hasDriveWideScope)
3078    {
3079      $this->hasDriveWideScope = $hasDriveWideScope;
3080    }
3081    public function getHasDriveWideScope()
3082    {
3083      return $this->hasDriveWideScope;
3084    }
3085    public function setIcons($icons)
3086    {
3087      $this->icons = $icons;
3088    }
3089    public function getIcons()
3090    {
3091      return $this->icons;
3092    }
3093    public function setId($id)
3094    {
3095      $this->id = $id;
3096    }
3097    public function getId()
3098    {
3099      return $this->id;
3100    }
3101    public function setInstalled($installed)
3102    {
3103      $this->installed = $installed;
3104    }
3105    public function getInstalled()
3106    {
3107      return $this->installed;
3108    }
3109    public function setKind($kind)
3110    {
3111      $this->kind = $kind;
3112    }
3113    public function getKind()
3114    {
3115      return $this->kind;
3116    }
3117    public function setLongDescription($longDescription)
3118    {
3119      $this->longDescription = $longDescription;
3120    }
3121    public function getLongDescription()
3122    {
3123      return $this->longDescription;
3124    }
3125    public function setName($name)
3126    {
3127      $this->name = $name;
3128    }
3129    public function getName()
3130    {
3131      return $this->name;
3132    }
3133    public function setObjectType($objectType)
3134    {
3135      $this->objectType = $objectType;
3136    }
3137    public function getObjectType()
3138    {
3139      return $this->objectType;
3140    }
3141    public function setOpenUrlTemplate($openUrlTemplate)
3142    {
3143      $this->openUrlTemplate = $openUrlTemplate;
3144    }
3145    public function getOpenUrlTemplate()
3146    {
3147      return $this->openUrlTemplate;
3148    }
3149    public function setPrimaryFileExtensions($primaryFileExtensions)
3150    {
3151      $this->primaryFileExtensions = $primaryFileExtensions;
3152    }
3153    public function getPrimaryFileExtensions()
3154    {
3155      return $this->primaryFileExtensions;
3156    }
3157    public function setPrimaryMimeTypes($primaryMimeTypes)
3158    {
3159      $this->primaryMimeTypes = $primaryMimeTypes;
3160    }
3161    public function getPrimaryMimeTypes()
3162    {
3163      return $this->primaryMimeTypes;
3164    }
3165    public function setProductId($productId)
3166    {
3167      $this->productId = $productId;
3168    }
3169    public function getProductId()
3170    {
3171      return $this->productId;
3172    }
3173    public function setProductUrl($productUrl)
3174    {
3175      $this->productUrl = $productUrl;
3176    }
3177    public function getProductUrl()
3178    {
3179      return $this->productUrl;
3180    }
3181    public function setSecondaryFileExtensions($secondaryFileExtensions)
3182    {
3183      $this->secondaryFileExtensions = $secondaryFileExtensions;
3184    }
3185    public function getSecondaryFileExtensions()
3186    {
3187      return $this->secondaryFileExtensions;
3188    }
3189    public function setSecondaryMimeTypes($secondaryMimeTypes)
3190    {
3191      $this->secondaryMimeTypes = $secondaryMimeTypes;
3192    }
3193    public function getSecondaryMimeTypes()
3194    {
3195      return $this->secondaryMimeTypes;
3196    }
3197    public function setShortDescription($shortDescription)
3198    {
3199      $this->shortDescription = $shortDescription;
3200    }
3201    public function getShortDescription()
3202    {
3203      return $this->shortDescription;
3204    }
3205    public function setSupportsCreate($supportsCreate)
3206    {
3207      $this->supportsCreate = $supportsCreate;
3208    }
3209    public function getSupportsCreate()
3210    {
3211      return $this->supportsCreate;
3212    }
3213    public function setSupportsImport($supportsImport)
3214    {
3215      $this->supportsImport = $supportsImport;
3216    }
3217    public function getSupportsImport()
3218    {
3219      return $this->supportsImport;
3220    }
3221    public function setSupportsMultiOpen($supportsMultiOpen)
3222    {
3223      $this->supportsMultiOpen = $supportsMultiOpen;
3224    }
3225    public function getSupportsMultiOpen()
3226    {
3227      return $this->supportsMultiOpen;
3228    }
3229    public function setSupportsOfflineCreate($supportsOfflineCreate)
3230    {
3231      $this->supportsOfflineCreate = $supportsOfflineCreate;
3232    }
3233    public function getSupportsOfflineCreate()
3234    {
3235      return $this->supportsOfflineCreate;
3236    }
3237    public function setUseByDefault($useByDefault)
3238    {
3239      $this->useByDefault = $useByDefault;
3240    }
3241    public function getUseByDefault()
3242    {
3243      return $this->useByDefault;
3244    }
3245  }
3246  
3247  class Google_Service_Drive_AppIcons extends Google_Model
3248  {
3249    protected $internal_gapi_mappings = array(
3250    );
3251    public $category;
3252    public $iconUrl;
3253    public $size;
3254  
3255  
3256    public function setCategory($category)
3257    {
3258      $this->category = $category;
3259    }
3260    public function getCategory()
3261    {
3262      return $this->category;
3263    }
3264    public function setIconUrl($iconUrl)
3265    {
3266      $this->iconUrl = $iconUrl;
3267    }
3268    public function getIconUrl()
3269    {
3270      return $this->iconUrl;
3271    }
3272    public function setSize($size)
3273    {
3274      $this->size = $size;
3275    }
3276    public function getSize()
3277    {
3278      return $this->size;
3279    }
3280  }
3281  
3282  class Google_Service_Drive_AppList extends Google_Collection
3283  {
3284    protected $collection_key = 'items';
3285    protected $internal_gapi_mappings = array(
3286    );
3287    public $defaultAppIds;
3288    public $etag;
3289    protected $itemsType = 'Google_Service_Drive_App';
3290    protected $itemsDataType = 'array';
3291    public $kind;
3292    public $selfLink;
3293  
3294  
3295    public function setDefaultAppIds($defaultAppIds)
3296    {
3297      $this->defaultAppIds = $defaultAppIds;
3298    }
3299    public function getDefaultAppIds()
3300    {
3301      return $this->defaultAppIds;
3302    }
3303    public function setEtag($etag)
3304    {
3305      $this->etag = $etag;
3306    }
3307    public function getEtag()
3308    {
3309      return $this->etag;
3310    }
3311    public function setItems($items)
3312    {
3313      $this->items = $items;
3314    }
3315    public function getItems()
3316    {
3317      return $this->items;
3318    }
3319    public function setKind($kind)
3320    {
3321      $this->kind = $kind;
3322    }
3323    public function getKind()
3324    {
3325      return $this->kind;
3326    }
3327    public function setSelfLink($selfLink)
3328    {
3329      $this->selfLink = $selfLink;
3330    }
3331    public function getSelfLink()
3332    {
3333      return $this->selfLink;
3334    }
3335  }
3336  
3337  class Google_Service_Drive_Change extends Google_Model
3338  {
3339    protected $internal_gapi_mappings = array(
3340    );
3341    public $deleted;
3342    protected $fileType = 'Google_Service_Drive_DriveFile';
3343    protected $fileDataType = '';
3344    public $fileId;
3345    public $id;
3346    public $kind;
3347    public $modificationDate;
3348    public $selfLink;
3349  
3350  
3351    public function setDeleted($deleted)
3352    {
3353      $this->deleted = $deleted;
3354    }
3355    public function getDeleted()
3356    {
3357      return $this->deleted;
3358    }
3359    public function setFile(Google_Service_Drive_DriveFile $file)
3360    {
3361      $this->file = $file;
3362    }
3363    public function getFile()
3364    {
3365      return $this->file;
3366    }
3367    public function setFileId($fileId)
3368    {
3369      $this->fileId = $fileId;
3370    }
3371    public function getFileId()
3372    {
3373      return $this->fileId;
3374    }
3375    public function setId($id)
3376    {
3377      $this->id = $id;
3378    }
3379    public function getId()
3380    {
3381      return $this->id;
3382    }
3383    public function setKind($kind)
3384    {
3385      $this->kind = $kind;
3386    }
3387    public function getKind()
3388    {
3389      return $this->kind;
3390    }
3391    public function setModificationDate($modificationDate)
3392    {
3393      $this->modificationDate = $modificationDate;
3394    }
3395    public function getModificationDate()
3396    {
3397      return $this->modificationDate;
3398    }
3399    public function setSelfLink($selfLink)
3400    {
3401      $this->selfLink = $selfLink;
3402    }
3403    public function getSelfLink()
3404    {
3405      return $this->selfLink;
3406    }
3407  }
3408  
3409  class Google_Service_Drive_ChangeList extends Google_Collection
3410  {
3411    protected $collection_key = 'items';
3412    protected $internal_gapi_mappings = array(
3413    );
3414    public $etag;
3415    protected $itemsType = 'Google_Service_Drive_Change';
3416    protected $itemsDataType = 'array';
3417    public $kind;
3418    public $largestChangeId;
3419    public $nextLink;
3420    public $nextPageToken;
3421    public $selfLink;
3422  
3423  
3424    public function setEtag($etag)
3425    {
3426      $this->etag = $etag;
3427    }
3428    public function getEtag()
3429    {
3430      return $this->etag;
3431    }
3432    public function setItems($items)
3433    {
3434      $this->items = $items;
3435    }
3436    public function getItems()
3437    {
3438      return $this->items;
3439    }
3440    public function setKind($kind)
3441    {
3442      $this->kind = $kind;
3443    }
3444    public function getKind()
3445    {
3446      return $this->kind;
3447    }
3448    public function setLargestChangeId($largestChangeId)
3449    {
3450      $this->largestChangeId = $largestChangeId;
3451    }
3452    public function getLargestChangeId()
3453    {
3454      return $this->largestChangeId;
3455    }
3456    public function setNextLink($nextLink)
3457    {
3458      $this->nextLink = $nextLink;
3459    }
3460    public function getNextLink()
3461    {
3462      return $this->nextLink;
3463    }
3464    public function setNextPageToken($nextPageToken)
3465    {
3466      $this->nextPageToken = $nextPageToken;
3467    }
3468    public function getNextPageToken()
3469    {
3470      return $this->nextPageToken;
3471    }
3472    public function setSelfLink($selfLink)
3473    {
3474      $this->selfLink = $selfLink;
3475    }
3476    public function getSelfLink()
3477    {
3478      return $this->selfLink;
3479    }
3480  }
3481  
3482  class Google_Service_Drive_Channel extends Google_Model
3483  {
3484    protected $internal_gapi_mappings = array(
3485    );
3486    public $address;
3487    public $expiration;
3488    public $id;
3489    public $kind;
3490    public $params;
3491    public $payload;
3492    public $resourceId;
3493    public $resourceUri;
3494    public $token;
3495    public $type;
3496  
3497  
3498    public function setAddress($address)
3499    {
3500      $this->address = $address;
3501    }
3502    public function getAddress()
3503    {
3504      return $this->address;
3505    }
3506    public function setExpiration($expiration)
3507    {
3508      $this->expiration = $expiration;
3509    }
3510    public function getExpiration()
3511    {
3512      return $this->expiration;
3513    }
3514    public function setId($id)
3515    {
3516      $this->id = $id;
3517    }
3518    public function getId()
3519    {
3520      return $this->id;
3521    }
3522    public function setKind($kind)
3523    {
3524      $this->kind = $kind;
3525    }
3526    public function getKind()
3527    {
3528      return $this->kind;
3529    }
3530    public function setParams($params)
3531    {
3532      $this->params = $params;
3533    }
3534    public function getParams()
3535    {
3536      return $this->params;
3537    }
3538    public function setPayload($payload)
3539    {
3540      $this->payload = $payload;
3541    }
3542    public function getPayload()
3543    {
3544      return $this->payload;
3545    }
3546    public function setResourceId($resourceId)
3547    {
3548      $this->resourceId = $resourceId;
3549    }
3550    public function getResourceId()
3551    {
3552      return $this->resourceId;
3553    }
3554    public function setResourceUri($resourceUri)
3555    {
3556      $this->resourceUri = $resourceUri;
3557    }
3558    public function getResourceUri()
3559    {
3560      return $this->resourceUri;
3561    }
3562    public function setToken($token)
3563    {
3564      $this->token = $token;
3565    }
3566    public function getToken()
3567    {
3568      return $this->token;
3569    }
3570    public function setType($type)
3571    {
3572      $this->type = $type;
3573    }
3574    public function getType()
3575    {
3576      return $this->type;
3577    }
3578  }
3579  
3580  class Google_Service_Drive_ChannelParams extends Google_Model
3581  {
3582  }
3583  
3584  class Google_Service_Drive_ChildList extends Google_Collection
3585  {
3586    protected $collection_key = 'items';
3587    protected $internal_gapi_mappings = array(
3588    );
3589    public $etag;
3590    protected $itemsType = 'Google_Service_Drive_ChildReference';
3591    protected $itemsDataType = 'array';
3592    public $kind;
3593    public $nextLink;
3594    public $nextPageToken;
3595    public $selfLink;
3596  
3597  
3598    public function setEtag($etag)
3599    {
3600      $this->etag = $etag;
3601    }
3602    public function getEtag()
3603    {
3604      return $this->etag;
3605    }
3606    public function setItems($items)
3607    {
3608      $this->items = $items;
3609    }
3610    public function getItems()
3611    {
3612      return $this->items;
3613    }
3614    public function setKind($kind)
3615    {
3616      $this->kind = $kind;
3617    }
3618    public function getKind()
3619    {
3620      return $this->kind;
3621    }
3622    public function setNextLink($nextLink)
3623    {
3624      $this->nextLink = $nextLink;
3625    }
3626    public function getNextLink()
3627    {
3628      return $this->nextLink;
3629    }
3630    public function setNextPageToken($nextPageToken)
3631    {
3632      $this->nextPageToken = $nextPageToken;
3633    }
3634    public function getNextPageToken()
3635    {
3636      return $this->nextPageToken;
3637    }
3638    public function setSelfLink($selfLink)
3639    {
3640      $this->selfLink = $selfLink;
3641    }
3642    public function getSelfLink()
3643    {
3644      return $this->selfLink;
3645    }
3646  }
3647  
3648  class Google_Service_Drive_ChildReference extends Google_Model
3649  {
3650    protected $internal_gapi_mappings = array(
3651    );
3652    public $childLink;
3653    public $id;
3654    public $kind;
3655    public $selfLink;
3656  
3657  
3658    public function setChildLink($childLink)
3659    {
3660      $this->childLink = $childLink;
3661    }
3662    public function getChildLink()
3663    {
3664      return $this->childLink;
3665    }
3666    public function setId($id)
3667    {
3668      $this->id = $id;
3669    }
3670    public function getId()
3671    {
3672      return $this->id;
3673    }
3674    public function setKind($kind)
3675    {
3676      $this->kind = $kind;
3677    }
3678    public function getKind()
3679    {
3680      return $this->kind;
3681    }
3682    public function setSelfLink($selfLink)
3683    {
3684      $this->selfLink = $selfLink;
3685    }
3686    public function getSelfLink()
3687    {
3688      return $this->selfLink;
3689    }
3690  }
3691  
3692  class Google_Service_Drive_Comment extends Google_Collection
3693  {
3694    protected $collection_key = 'replies';
3695    protected $internal_gapi_mappings = array(
3696    );
3697    public $anchor;
3698    protected $authorType = 'Google_Service_Drive_User';
3699    protected $authorDataType = '';
3700    public $commentId;
3701    public $content;
3702    protected $contextType = 'Google_Service_Drive_CommentContext';
3703    protected $contextDataType = '';
3704    public $createdDate;
3705    public $deleted;
3706    public $fileId;
3707    public $fileTitle;
3708    public $htmlContent;
3709    public $kind;
3710    public $modifiedDate;
3711    protected $repliesType = 'Google_Service_Drive_CommentReply';
3712    protected $repliesDataType = 'array';
3713    public $selfLink;
3714    public $status;
3715  
3716  
3717    public function setAnchor($anchor)
3718    {
3719      $this->anchor = $anchor;
3720    }
3721    public function getAnchor()
3722    {
3723      return $this->anchor;
3724    }
3725    public function setAuthor(Google_Service_Drive_User $author)
3726    {
3727      $this->author = $author;
3728    }
3729    public function getAuthor()
3730    {
3731      return $this->author;
3732    }
3733    public function setCommentId($commentId)
3734    {
3735      $this->commentId = $commentId;
3736    }
3737    public function getCommentId()
3738    {
3739      return $this->commentId;
3740    }
3741    public function setContent($content)
3742    {
3743      $this->content = $content;
3744    }
3745    public function getContent()
3746    {
3747      return $this->content;
3748    }
3749    public function setContext(Google_Service_Drive_CommentContext $context)
3750    {
3751      $this->context = $context;
3752    }
3753    public function getContext()
3754    {
3755      return $this->context;
3756    }
3757    public function setCreatedDate($createdDate)
3758    {
3759      $this->createdDate = $createdDate;
3760    }
3761    public function getCreatedDate()
3762    {
3763      return $this->createdDate;
3764    }
3765    public function setDeleted($deleted)
3766    {
3767      $this->deleted = $deleted;
3768    }
3769    public function getDeleted()
3770    {
3771      return $this->deleted;
3772    }
3773    public function setFileId($fileId)
3774    {
3775      $this->fileId = $fileId;
3776    }
3777    public function getFileId()
3778    {
3779      return $this->fileId;
3780    }
3781    public function setFileTitle($fileTitle)
3782    {
3783      $this->fileTitle = $fileTitle;
3784    }
3785    public function getFileTitle()
3786    {
3787      return $this->fileTitle;
3788    }
3789    public function setHtmlContent($htmlContent)
3790    {
3791      $this->htmlContent = $htmlContent;
3792    }
3793    public function getHtmlContent()
3794    {
3795      return $this->htmlContent;
3796    }
3797    public function setKind($kind)
3798    {
3799      $this->kind = $kind;
3800    }
3801    public function getKind()
3802    {
3803      return $this->kind;
3804    }
3805    public function setModifiedDate($modifiedDate)
3806    {
3807      $this->modifiedDate = $modifiedDate;
3808    }
3809    public function getModifiedDate()
3810    {
3811      return $this->modifiedDate;
3812    }
3813    public function setReplies($replies)
3814    {
3815      $this->replies = $replies;
3816    }
3817    public function getReplies()
3818    {
3819      return $this->replies;
3820    }
3821    public function setSelfLink($selfLink)
3822    {
3823      $this->selfLink = $selfLink;
3824    }
3825    public function getSelfLink()
3826    {
3827      return $this->selfLink;
3828    }
3829    public function setStatus($status)
3830    {
3831      $this->status = $status;
3832    }
3833    public function getStatus()
3834    {
3835      return $this->status;
3836    }
3837  }
3838  
3839  class Google_Service_Drive_CommentContext extends Google_Model
3840  {
3841    protected $internal_gapi_mappings = array(
3842    );
3843    public $type;
3844    public $value;
3845  
3846  
3847    public function setType($type)
3848    {
3849      $this->type = $type;
3850    }
3851    public function getType()
3852    {
3853      return $this->type;
3854    }
3855    public function setValue($value)
3856    {
3857      $this->value = $value;
3858    }
3859    public function getValue()
3860    {
3861      return $this->value;
3862    }
3863  }
3864  
3865  class Google_Service_Drive_CommentList extends Google_Collection
3866  {
3867    protected $collection_key = 'items';
3868    protected $internal_gapi_mappings = array(
3869    );
3870    protected $itemsType = 'Google_Service_Drive_Comment';
3871    protected $itemsDataType = 'array';
3872    public $kind;
3873    public $nextLink;
3874    public $nextPageToken;
3875    public $selfLink;
3876  
3877  
3878    public function setItems($items)
3879    {
3880      $this->items = $items;
3881    }
3882    public function getItems()
3883    {
3884      return $this->items;
3885    }
3886    public function setKind($kind)
3887    {
3888      $this->kind = $kind;
3889    }
3890    public function getKind()
3891    {
3892      return $this->kind;
3893    }
3894    public function setNextLink($nextLink)
3895    {
3896      $this->nextLink = $nextLink;
3897    }
3898    public function getNextLink()
3899    {
3900      return $this->nextLink;
3901    }
3902    public function setNextPageToken($nextPageToken)
3903    {
3904      $this->nextPageToken = $nextPageToken;
3905    }
3906    public function getNextPageToken()
3907    {
3908      return $this->nextPageToken;
3909    }
3910    public function setSelfLink($selfLink)
3911    {
3912      $this->selfLink = $selfLink;
3913    }
3914    public function getSelfLink()
3915    {
3916      return $this->selfLink;
3917    }
3918  }
3919  
3920  class Google_Service_Drive_CommentReply extends Google_Model
3921  {
3922    protected $internal_gapi_mappings = array(
3923    );
3924    protected $authorType = 'Google_Service_Drive_User';
3925    protected $authorDataType = '';
3926    public $content;
3927    public $createdDate;
3928    public $deleted;
3929    public $htmlContent;
3930    public $kind;
3931    public $modifiedDate;
3932    public $replyId;
3933    public $verb;
3934  
3935  
3936    public function setAuthor(Google_Service_Drive_User $author)
3937    {
3938      $this->author = $author;
3939    }
3940    public function getAuthor()
3941    {
3942      return $this->author;
3943    }
3944    public function setContent($content)
3945    {
3946      $this->content = $content;
3947    }
3948    public function getContent()
3949    {
3950      return $this->content;
3951    }
3952    public function setCreatedDate($createdDate)
3953    {
3954      $this->createdDate = $createdDate;
3955    }
3956    public function getCreatedDate()
3957    {
3958      return $this->createdDate;
3959    }
3960    public function setDeleted($deleted)
3961    {
3962      $this->deleted = $deleted;
3963    }
3964    public function getDeleted()
3965    {
3966      return $this->deleted;
3967    }
3968    public function setHtmlContent($htmlContent)
3969    {
3970      $this->htmlContent = $htmlContent;
3971    }
3972    public function getHtmlContent()
3973    {
3974      return $this->htmlContent;
3975    }
3976    public function setKind($kind)
3977    {
3978      $this->kind = $kind;
3979    }
3980    public function getKind()
3981    {
3982      return $this->kind;
3983    }
3984    public function setModifiedDate($modifiedDate)
3985    {
3986      $this->modifiedDate = $modifiedDate;
3987    }
3988    public function getModifiedDate()
3989    {
3990      return $this->modifiedDate;
3991    }
3992    public function setReplyId($replyId)
3993    {
3994      $this->replyId = $replyId;
3995    }
3996    public function getReplyId()
3997    {
3998      return $this->replyId;
3999    }
4000    public function setVerb($verb)
4001    {
4002      $this->verb = $verb;
4003    }
4004    public function getVerb()
4005    {
4006      return $this->verb;
4007    }
4008  }
4009  
4010  class Google_Service_Drive_CommentReplyList extends Google_Collection
4011  {
4012    protected $collection_key = 'items';
4013    protected $internal_gapi_mappings = array(
4014    );
4015    protected $itemsType = 'Google_Service_Drive_CommentReply';
4016    protected $itemsDataType = 'array';
4017    public $kind;
4018    public $nextLink;
4019    public $nextPageToken;
4020    public $selfLink;
4021  
4022  
4023    public function setItems($items)
4024    {
4025      $this->items = $items;
4026    }
4027    public function getItems()
4028    {
4029      return $this->items;
4030    }
4031    public function setKind($kind)
4032    {
4033      $this->kind = $kind;
4034    }
4035    public function getKind()
4036    {
4037      return $this->kind;
4038    }
4039    public function setNextLink($nextLink)
4040    {
4041      $this->nextLink = $nextLink;
4042    }
4043    public function getNextLink()
4044    {
4045      return $this->nextLink;
4046    }
4047    public function setNextPageToken($nextPageToken)
4048    {
4049      $this->nextPageToken = $nextPageToken;
4050    }
4051    public function getNextPageToken()
4052    {
4053      return $this->nextPageToken;
4054    }
4055    public function setSelfLink($selfLink)
4056    {
4057      $this->selfLink = $selfLink;
4058    }
4059    public function getSelfLink()
4060    {
4061      return $this->selfLink;
4062    }
4063  }
4064  
4065  class Google_Service_Drive_DriveFile extends Google_Collection
4066  {
4067    protected $collection_key = 'spaces';
4068    protected $internal_gapi_mappings = array(
4069    );
4070    public $alternateLink;
4071    public $appDataContents;
4072    public $canComment;
4073    public $copyable;
4074    public $createdDate;
4075    public $defaultOpenWithLink;
4076    public $description;
4077    public $downloadUrl;
4078    public $editable;
4079    public $embedLink;
4080    public $etag;
4081    public $explicitlyTrashed;
4082    public $exportLinks;
4083    public $fileExtension;
4084    public $fileSize;
4085    public $folderColorRgb;
4086    public $fullFileExtension;
4087    public $headRevisionId;
4088    public $iconLink;
4089    public $id;
4090    protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
4091    protected $imageMediaMetadataDataType = '';
4092    protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText';
4093    protected $indexableTextDataType = '';
4094    public $kind;
4095    protected $labelsType = 'Google_Service_Drive_DriveFileLabels';
4096    protected $labelsDataType = '';
4097    protected $lastModifyingUserType = 'Google_Service_Drive_User';
4098    protected $lastModifyingUserDataType = '';
4099    public $lastModifyingUserName;
4100    public $lastViewedByMeDate;
4101    public $markedViewedByMeDate;
4102    public $md5Checksum;
4103    public $mimeType;
4104    public $modifiedByMeDate;
4105    public $modifiedDate;
4106    public $openWithLinks;
4107    public $originalFilename;
4108    public $ownedByMe;
4109    public $ownerNames;
4110    protected $ownersType = 'Google_Service_Drive_User';
4111    protected $ownersDataType = 'array';
4112    protected $parentsType = 'Google_Service_Drive_ParentReference';
4113    protected $parentsDataType = 'array';
4114    protected $permissionsType = 'Google_Service_Drive_Permission';
4115    protected $permissionsDataType = 'array';
4116    protected $propertiesType = 'Google_Service_Drive_Property';
4117    protected $propertiesDataType = 'array';
4118    public $quotaBytesUsed;
4119    public $selfLink;
4120    public $shareable;
4121    public $shared;
4122    public $sharedWithMeDate;
4123    protected $sharingUserType = 'Google_Service_Drive_User';
4124    protected $sharingUserDataType = '';
4125    public $spaces;
4126    protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail';
4127    protected $thumbnailDataType = '';
4128    public $thumbnailLink;
4129    public $title;
4130    protected $userPermissionType = 'Google_Service_Drive_Permission';
4131    protected $userPermissionDataType = '';
4132    public $version;
4133    protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata';
4134    protected $videoMediaMetadataDataType = '';
4135    public $webContentLink;
4136    public $webViewLink;
4137    public $writersCanShare;
4138  
4139  
4140    public function setAlternateLink($alternateLink)
4141    {
4142      $this->alternateLink = $alternateLink;
4143    }
4144    public function getAlternateLink()
4145    {
4146      return $this->alternateLink;
4147    }
4148    public function setAppDataContents($appDataContents)
4149    {
4150      $this->appDataContents = $appDataContents;
4151    }
4152    public function getAppDataContents()
4153    {
4154      return $this->appDataContents;
4155    }
4156    public function setCanComment($canComment)
4157    {
4158      $this->canComment = $canComment;
4159    }
4160    public function getCanComment()
4161    {
4162      return $this->canComment;
4163    }
4164    public function setCopyable($copyable)
4165    {
4166      $this->copyable = $copyable;
4167    }
4168    public function getCopyable()
4169    {
4170      return $this->copyable;
4171    }
4172    public function setCreatedDate($createdDate)
4173    {
4174      $this->createdDate = $createdDate;
4175    }
4176    public function getCreatedDate()
4177    {
4178      return $this->createdDate;
4179    }
4180    public function setDefaultOpenWithLink($defaultOpenWithLink)
4181    {
4182      $this->defaultOpenWithLink = $defaultOpenWithLink;
4183    }
4184    public function getDefaultOpenWithLink()
4185    {
4186      return $this->defaultOpenWithLink;
4187    }
4188    public function setDescription($description)
4189    {
4190      $this->description = $description;
4191    }
4192    public function getDescription()
4193    {
4194      return $this->description;
4195    }
4196    public function setDownloadUrl($downloadUrl)
4197    {
4198      $this->downloadUrl = $downloadUrl;
4199    }
4200    public function getDownloadUrl()
4201    {
4202      return $this->downloadUrl;
4203    }
4204    public function setEditable($editable)
4205    {
4206      $this->editable = $editable;
4207    }
4208    public function getEditable()
4209    {
4210      return $this->editable;
4211    }
4212    public function setEmbedLink($embedLink)
4213    {
4214      $this->embedLink = $embedLink;
4215    }
4216    public function getEmbedLink()
4217    {
4218      return $this->embedLink;
4219    }
4220    public function setEtag($etag)
4221    {
4222      $this->etag = $etag;
4223    }
4224    public function getEtag()
4225    {
4226      return $this->etag;
4227    }
4228    public function setExplicitlyTrashed($explicitlyTrashed)
4229    {
4230      $this->explicitlyTrashed = $explicitlyTrashed;
4231    }
4232    public function getExplicitlyTrashed()
4233    {
4234      return $this->explicitlyTrashed;
4235    }
4236    public function setExportLinks($exportLinks)
4237    {
4238      $this->exportLinks = $exportLinks;
4239    }
4240    public function getExportLinks()
4241    {
4242      return $this->exportLinks;
4243    }
4244    public function setFileExtension($fileExtension)
4245    {
4246      $this->fileExtension = $fileExtension;
4247    }
4248    public function getFileExtension()
4249    {
4250      return $this->fileExtension;
4251    }
4252    public function setFileSize($fileSize)
4253    {
4254      $this->fileSize = $fileSize;
4255    }
4256    public function getFileSize()
4257    {
4258      return $this->fileSize;
4259    }
4260    public function setFolderColorRgb($folderColorRgb)
4261    {
4262      $this->folderColorRgb = $folderColorRgb;
4263    }
4264    public function getFolderColorRgb()
4265    {
4266      return $this->folderColorRgb;
4267    }
4268    public function setFullFileExtension($fullFileExtension)
4269    {
4270      $this->fullFileExtension = $fullFileExtension;
4271    }
4272    public function getFullFileExtension()
4273    {
4274      return $this->fullFileExtension;
4275    }
4276    public function setHeadRevisionId($headRevisionId)
4277    {
4278      $this->headRevisionId = $headRevisionId;
4279    }
4280    public function getHeadRevisionId()
4281    {
4282      return $this->headRevisionId;
4283    }
4284    public function setIconLink($iconLink)
4285    {
4286      $this->iconLink = $iconLink;
4287    }
4288    public function getIconLink()
4289    {
4290      return $this->iconLink;
4291    }
4292    public function setId($id)
4293    {
4294      $this->id = $id;
4295    }
4296    public function getId()
4297    {
4298      return $this->id;
4299    }
4300    public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata)
4301    {
4302      $this->imageMediaMetadata = $imageMediaMetadata;
4303    }
4304    public function getImageMediaMetadata()
4305    {
4306      return $this->imageMediaMetadata;
4307    }
4308    public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText)
4309    {
4310      $this->indexableText = $indexableText;
4311    }
4312    public function getIndexableText()
4313    {
4314      return $this->indexableText;
4315    }
4316    public function setKind($kind)
4317    {
4318      $this->kind = $kind;
4319    }
4320    public function getKind()
4321    {
4322      return $this->kind;
4323    }
4324    public function setLabels(Google_Service_Drive_DriveFileLabels $labels)
4325    {
4326      $this->labels = $labels;
4327    }
4328    public function getLabels()
4329    {
4330      return $this->labels;
4331    }
4332    public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
4333    {
4334      $this->lastModifyingUser = $lastModifyingUser;
4335    }
4336    public function getLastModifyingUser()
4337    {
4338      return $this->lastModifyingUser;
4339    }
4340    public function setLastModifyingUserName($lastModifyingUserName)
4341    {
4342      $this->lastModifyingUserName = $lastModifyingUserName;
4343    }
4344    public function getLastModifyingUserName()
4345    {
4346      return $this->lastModifyingUserName;
4347    }
4348    public function setLastViewedByMeDate($lastViewedByMeDate)
4349    {
4350      $this->lastViewedByMeDate = $lastViewedByMeDate;
4351    }
4352    public function getLastViewedByMeDate()
4353    {
4354      return $this->lastViewedByMeDate;
4355    }
4356    public function setMarkedViewedByMeDate($markedViewedByMeDate)
4357    {
4358      $this->markedViewedByMeDate = $markedViewedByMeDate;
4359    }
4360    public function getMarkedViewedByMeDate()
4361    {
4362      return $this->markedViewedByMeDate;
4363    }
4364    public function setMd5Checksum($md5Checksum)
4365    {
4366      $this->md5Checksum = $md5Checksum;
4367    }
4368    public function getMd5Checksum()
4369    {
4370      return $this->md5Checksum;
4371    }
4372    public function setMimeType($mimeType)
4373    {
4374      $this->mimeType = $mimeType;
4375    }
4376    public function getMimeType()
4377    {
4378      return $this->mimeType;
4379    }
4380    public function setModifiedByMeDate($modifiedByMeDate)
4381    {
4382      $this->modifiedByMeDate = $modifiedByMeDate;
4383    }
4384    public function getModifiedByMeDate()
4385    {
4386      return $this->modifiedByMeDate;
4387    }
4388    public function setModifiedDate($modifiedDate)
4389    {
4390      $this->modifiedDate = $modifiedDate;
4391    }
4392    public function getModifiedDate()
4393    {
4394      return $this->modifiedDate;
4395    }
4396    public function setOpenWithLinks($openWithLinks)
4397    {
4398      $this->openWithLinks = $openWithLinks;
4399    }
4400    public function getOpenWithLinks()
4401    {
4402      return $this->openWithLinks;
4403    }
4404    public function setOriginalFilename($originalFilename)
4405    {
4406      $this->originalFilename = $originalFilename;
4407    }
4408    public function getOriginalFilename()
4409    {
4410      return $this->originalFilename;
4411    }
4412    public function setOwnedByMe($ownedByMe)
4413    {
4414      $this->ownedByMe = $ownedByMe;
4415    }
4416    public function getOwnedByMe()
4417    {
4418      return $this->ownedByMe;
4419    }
4420    public function setOwnerNames($ownerNames)
4421    {
4422      $this->ownerNames = $ownerNames;
4423    }
4424    public function getOwnerNames()
4425    {
4426      return $this->ownerNames;
4427    }
4428    public function setOwners($owners)
4429    {
4430      $this->owners = $owners;
4431    }
4432    public function getOwners()
4433    {
4434      return $this->owners;
4435    }
4436    public function setParents($parents)
4437    {
4438      $this->parents = $parents;
4439    }
4440    public function getParents()
4441    {
4442      return $this->parents;
4443    }
4444    public function setPermissions($permissions)
4445    {
4446      $this->permissions = $permissions;
4447    }
4448    public function getPermissions()
4449    {
4450      return $this->permissions;
4451    }
4452    public function setProperties($properties)
4453    {
4454      $this->properties = $properties;
4455    }
4456    public function getProperties()
4457    {
4458      return $this->properties;
4459    }
4460    public function setQuotaBytesUsed($quotaBytesUsed)
4461    {
4462      $this->quotaBytesUsed = $quotaBytesUsed;
4463    }
4464    public function getQuotaBytesUsed()
4465    {
4466      return $this->quotaBytesUsed;
4467    }
4468    public function setSelfLink($selfLink)
4469    {
4470      $this->selfLink = $selfLink;
4471    }
4472    public function getSelfLink()
4473    {
4474      return $this->selfLink;
4475    }
4476    public function setShareable($shareable)
4477    {
4478      $this->shareable = $shareable;
4479    }
4480    public function getShareable()
4481    {
4482      return $this->shareable;
4483    }
4484    public function setShared($shared)
4485    {
4486      $this->shared = $shared;
4487    }
4488    public function getShared()
4489    {
4490      return $this->shared;
4491    }
4492    public function setSharedWithMeDate($sharedWithMeDate)
4493    {
4494      $this->sharedWithMeDate = $sharedWithMeDate;
4495    }
4496    public function getSharedWithMeDate()
4497    {
4498      return $this->sharedWithMeDate;
4499    }
4500    public function setSharingUser(Google_Service_Drive_User $sharingUser)
4501    {
4502      $this->sharingUser = $sharingUser;
4503    }
4504    public function getSharingUser()
4505    {
4506      return $this->sharingUser;
4507    }
4508    public function setSpaces($spaces)
4509    {
4510      $this->spaces = $spaces;
4511    }
4512    public function getSpaces()
4513    {
4514      return $this->spaces;
4515    }
4516    public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail)
4517    {
4518      $this->thumbnail = $thumbnail;
4519    }
4520    public function getThumbnail()
4521    {
4522      return $this->thumbnail;
4523    }
4524    public function setThumbnailLink($thumbnailLink)
4525    {
4526      $this->thumbnailLink = $thumbnailLink;
4527    }
4528    public function getThumbnailLink()
4529    {
4530      return $this->thumbnailLink;
4531    }
4532    public function setTitle($title)
4533    {
4534      $this->title = $title;
4535    }
4536    public function getTitle()
4537    {
4538      return $this->title;
4539    }
4540    public function setUserPermission(Google_Service_Drive_Permission $userPermission)
4541    {
4542      $this->userPermission = $userPermission;
4543    }
4544    public function getUserPermission()
4545    {
4546      return $this->userPermission;
4547    }
4548    public function setVersion($version)
4549    {
4550      $this->version = $version;
4551    }
4552    public function getVersion()
4553    {
4554      return $this->version;
4555    }
4556    public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata)
4557    {
4558      $this->videoMediaMetadata = $videoMediaMetadata;
4559    }
4560    public function getVideoMediaMetadata()
4561    {
4562      return $this->videoMediaMetadata;
4563    }
4564    public function setWebContentLink($webContentLink)
4565    {
4566      $this->webContentLink = $webContentLink;
4567    }
4568    public function getWebContentLink()
4569    {
4570      return $this->webContentLink;
4571    }
4572    public function setWebViewLink($webViewLink)
4573    {
4574      $this->webViewLink = $webViewLink;
4575    }
4576    public function getWebViewLink()
4577    {
4578      return $this->webViewLink;
4579    }
4580    public function setWritersCanShare($writersCanShare)
4581    {
4582      $this->writersCanShare = $writersCanShare;
4583    }
4584    public function getWritersCanShare()
4585    {
4586      return $this->writersCanShare;
4587    }
4588  }
4589  
4590  class Google_Service_Drive_DriveFileExportLinks extends Google_Model
4591  {
4592  }
4593  
4594  class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model
4595  {
4596    protected $internal_gapi_mappings = array(
4597    );
4598    public $aperture;
4599    public $cameraMake;
4600    public $cameraModel;
4601    public $colorSpace;
4602    public $date;
4603    public $exposureBias;
4604    public $exposureMode;
4605    public $exposureTime;
4606    public $flashUsed;
4607    public $focalLength;
4608    public $height;
4609    public $isoSpeed;
4610    public $lens;
4611    protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation';
4612    protected $locationDataType = '';
4613    public $maxApertureValue;
4614    public $meteringMode;
4615    public $rotation;
4616    public $sensor;
4617    public $subjectDistance;
4618    public $whiteBalance;
4619    public $width;
4620  
4621  
4622    public function setAperture($aperture)
4623    {
4624      $this->aperture = $aperture;
4625    }
4626    public function getAperture()
4627    {
4628      return $this->aperture;
4629    }
4630    public function setCameraMake($cameraMake)
4631    {
4632      $this->cameraMake = $cameraMake;
4633    }
4634    public function getCameraMake()
4635    {
4636      return $this->cameraMake;
4637    }
4638    public function setCameraModel($cameraModel)
4639    {
4640      $this->cameraModel = $cameraModel;
4641    }
4642    public function getCameraModel()
4643    {
4644      return $this->cameraModel;
4645    }
4646    public function setColorSpace($colorSpace)
4647    {
4648      $this->colorSpace = $colorSpace;
4649    }
4650    public function getColorSpace()
4651    {
4652      return $this->colorSpace;
4653    }
4654    public function setDate($date)
4655    {
4656      $this->date = $date;
4657    }
4658    public function getDate()
4659    {
4660      return $this->date;
4661    }
4662    public function setExposureBias($exposureBias)
4663    {
4664      $this->exposureBias = $exposureBias;
4665    }
4666    public function getExposureBias()
4667    {
4668      return $this->exposureBias;
4669    }
4670    public function setExposureMode($exposureMode)
4671    {
4672      $this->exposureMode = $exposureMode;
4673    }
4674    public function getExposureMode()
4675    {
4676      return $this->exposureMode;
4677    }
4678    public function setExposureTime($exposureTime)
4679    {
4680      $this->exposureTime = $exposureTime;
4681    }
4682    public function getExposureTime()
4683    {
4684      return $this->exposureTime;
4685    }
4686    public function setFlashUsed($flashUsed)
4687    {
4688      $this->flashUsed = $flashUsed;
4689    }
4690    public function getFlashUsed()
4691    {
4692      return $this->flashUsed;
4693    }
4694    public function setFocalLength($focalLength)
4695    {
4696      $this->focalLength = $focalLength;
4697    }
4698    public function getFocalLength()
4699    {
4700      return $this->focalLength;
4701    }
4702    public function setHeight($height)
4703    {
4704      $this->height = $height;
4705    }
4706    public function getHeight()
4707    {
4708      return $this->height;
4709    }
4710    public function setIsoSpeed($isoSpeed)
4711    {
4712      $this->isoSpeed = $isoSpeed;
4713    }
4714    public function getIsoSpeed()
4715    {
4716      return $this->isoSpeed;
4717    }
4718    public function setLens($lens)
4719    {
4720      $this->lens = $lens;
4721    }
4722    public function getLens()
4723    {
4724      return $this->lens;
4725    }
4726    public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location)
4727    {
4728      $this->location = $location;
4729    }
4730    public function getLocation()
4731    {
4732      return $this->location;
4733    }
4734    public function setMaxApertureValue($maxApertureValue)
4735    {
4736      $this->maxApertureValue = $maxApertureValue;
4737    }
4738    public function getMaxApertureValue()
4739    {
4740      return $this->maxApertureValue;
4741    }
4742    public function setMeteringMode($meteringMode)
4743    {
4744      $this->meteringMode = $meteringMode;
4745    }
4746    public function getMeteringMode()
4747    {
4748      return $this->meteringMode;
4749    }
4750    public function setRotation($rotation)
4751    {
4752      $this->rotation = $rotation;
4753    }
4754    public function getRotation()
4755    {
4756      return $this->rotation;
4757    }
4758    public function setSensor($sensor)
4759    {
4760      $this->sensor = $sensor;
4761    }
4762    public function getSensor()
4763    {
4764      return $this->sensor;
4765    }
4766    public function setSubjectDistance($subjectDistance)
4767    {
4768      $this->subjectDistance = $subjectDistance;
4769    }
4770    public function getSubjectDistance()
4771    {
4772      return $this->subjectDistance;
4773    }
4774    public function setWhiteBalance($whiteBalance)
4775    {
4776      $this->whiteBalance = $whiteBalance;
4777    }
4778    public function getWhiteBalance()
4779    {
4780      return $this->whiteBalance;
4781    }
4782    public function setWidth($width)
4783    {
4784      $this->width = $width;
4785    }
4786    public function getWidth()
4787    {
4788      return $this->width;
4789    }
4790  }
4791  
4792  class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model
4793  {
4794    protected $internal_gapi_mappings = array(
4795    );
4796    public $altitude;
4797    public $latitude;
4798    public $longitude;
4799  
4800  
4801    public function setAltitude($altitude)
4802    {
4803      $this->altitude = $altitude;
4804    }
4805    public function getAltitude()
4806    {
4807      return $this->altitude;
4808    }
4809    public function setLatitude($latitude)
4810    {
4811      $this->latitude = $latitude;
4812    }
4813    public function getLatitude()
4814    {
4815      return $this->latitude;
4816    }
4817    public function setLongitude($longitude)
4818    {
4819      $this->longitude = $longitude;
4820    }
4821    public function getLongitude()
4822    {
4823      return $this->longitude;
4824    }
4825  }
4826  
4827  class Google_Service_Drive_DriveFileIndexableText extends Google_Model
4828  {
4829    protected $internal_gapi_mappings = array(
4830    );
4831    public $text;
4832  
4833  
4834    public function setText($text)
4835    {
4836      $this->text = $text;
4837    }
4838    public function getText()
4839    {
4840      return $this->text;
4841    }
4842  }
4843  
4844  class Google_Service_Drive_DriveFileLabels extends Google_Model
4845  {
4846    protected $internal_gapi_mappings = array(
4847    );
4848    public $hidden;
4849    public $restricted;
4850    public $starred;
4851    public $trashed;
4852    public $viewed;
4853  
4854  
4855    public function setHidden($hidden)
4856    {
4857      $this->hidden = $hidden;
4858    }
4859    public function getHidden()
4860    {
4861      return $this->hidden;
4862    }
4863    public function setRestricted($restricted)
4864    {
4865      $this->restricted = $restricted;
4866    }
4867    public function getRestricted()
4868    {
4869      return $this->restricted;
4870    }
4871    public function setStarred($starred)
4872    {
4873      $this->starred = $starred;
4874    }
4875    public function getStarred()
4876    {
4877      return $this->starred;
4878    }
4879    public function setTrashed($trashed)
4880    {
4881      $this->trashed = $trashed;
4882    }
4883    public function getTrashed()
4884    {
4885      return $this->trashed;
4886    }
4887    public function setViewed($viewed)
4888    {
4889      $this->viewed = $viewed;
4890    }
4891    public function getViewed()
4892    {
4893      return $this->viewed;
4894    }
4895  }
4896  
4897  class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model
4898  {
4899  }
4900  
4901  class Google_Service_Drive_DriveFileThumbnail extends Google_Model
4902  {
4903    protected $internal_gapi_mappings = array(
4904    );
4905    public $image;
4906    public $mimeType;
4907  
4908  
4909    public function setImage($image)
4910    {
4911      $this->image = $image;
4912    }
4913    public function getImage()
4914    {
4915      return $this->image;
4916    }
4917    public function setMimeType($mimeType)
4918    {
4919      $this->mimeType = $mimeType;
4920    }
4921    public function getMimeType()
4922    {
4923      return $this->mimeType;
4924    }
4925  }
4926  
4927  class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model
4928  {
4929    protected $internal_gapi_mappings = array(
4930    );
4931    public $durationMillis;
4932    public $height;
4933    public $width;
4934  
4935  
4936    public function setDurationMillis($durationMillis)
4937    {
4938      $this->durationMillis = $durationMillis;
4939    }
4940    public function getDurationMillis()
4941    {
4942      return $this->durationMillis;
4943    }
4944    public function setHeight($height)
4945    {
4946      $this->height = $height;
4947    }
4948    public function getHeight()
4949    {
4950      return $this->height;
4951    }
4952    public function setWidth($width)
4953    {
4954      $this->width = $width;
4955    }
4956    public function getWidth()
4957    {
4958      return $this->width;
4959    }
4960  }
4961  
4962  class Google_Service_Drive_FileList extends Google_Collection
4963  {
4964    protected $collection_key = 'items';
4965    protected $internal_gapi_mappings = array(
4966    );
4967    public $etag;
4968    protected $itemsType = 'Google_Service_Drive_DriveFile';
4969    protected $itemsDataType = 'array';
4970    public $kind;
4971    public $nextLink;
4972    public $nextPageToken;
4973    public $selfLink;
4974  
4975  
4976    public function setEtag($etag)
4977    {
4978      $this->etag = $etag;
4979    }
4980    public function getEtag()
4981    {
4982      return $this->etag;
4983    }
4984    public function setItems($items)
4985    {
4986      $this->items = $items;
4987    }
4988    public function getItems()
4989    {
4990      return $this->items;
4991    }
4992    public function setKind($kind)
4993    {
4994      $this->kind = $kind;
4995    }
4996    public function getKind()
4997    {
4998      return $this->kind;
4999    }
5000    public function setNextLink($nextLink)
5001    {
5002      $this->nextLink = $nextLink;
5003    }
5004    public function getNextLink()
5005    {
5006      return $this->nextLink;
5007    }
5008    public function setNextPageToken($nextPageToken)
5009    {
5010      $this->nextPageToken = $nextPageToken;
5011    }
5012    public function getNextPageToken()
5013    {
5014      return $this->nextPageToken;
5015    }
5016    public function setSelfLink($selfLink)
5017    {
5018      $this->selfLink = $selfLink;
5019    }
5020    public function getSelfLink()
5021    {
5022      return $this->selfLink;
5023    }
5024  }
5025  
5026  class Google_Service_Drive_GeneratedIds extends Google_Collection
5027  {
5028    protected $collection_key = 'ids';
5029    protected $internal_gapi_mappings = array(
5030    );
5031    public $ids;
5032    public $kind;
5033    public $space;
5034  
5035  
5036    public function setIds($ids)
5037    {
5038      $this->ids = $ids;
5039    }
5040    public function getIds()
5041    {
5042      return $this->ids;
5043    }
5044    public function setKind($kind)
5045    {
5046      $this->kind = $kind;
5047    }
5048    public function getKind()
5049    {
5050      return $this->kind;
5051    }
5052    public function setSpace($space)
5053    {
5054      $this->space = $space;
5055    }
5056    public function getSpace()
5057    {
5058      return $this->space;
5059    }
5060  }
5061  
5062  class Google_Service_Drive_ParentList extends Google_Collection
5063  {
5064    protected $collection_key = 'items';
5065    protected $internal_gapi_mappings = array(
5066    );
5067    public $etag;
5068    protected $itemsType = 'Google_Service_Drive_ParentReference';
5069    protected $itemsDataType = 'array';
5070    public $kind;
5071    public $selfLink;
5072  
5073  
5074    public function setEtag($etag)
5075    {
5076      $this->etag = $etag;
5077    }
5078    public function getEtag()
5079    {
5080      return $this->etag;
5081    }
5082    public function setItems($items)
5083    {
5084      $this->items = $items;
5085    }
5086    public function getItems()
5087    {
5088      return $this->items;
5089    }
5090    public function setKind($kind)
5091    {
5092      $this->kind = $kind;
5093    }
5094    public function getKind()
5095    {
5096      return $this->kind;
5097    }
5098    public function setSelfLink($selfLink)
5099    {
5100      $this->selfLink = $selfLink;
5101    }
5102    public function getSelfLink()
5103    {
5104      return $this->selfLink;
5105    }
5106  }
5107  
5108  class Google_Service_Drive_ParentReference extends Google_Model
5109  {
5110    protected $internal_gapi_mappings = array(
5111    );
5112    public $id;
5113    public $isRoot;
5114    public $kind;
5115    public $parentLink;
5116    public $selfLink;
5117  
5118  
5119    public function setId($id)
5120    {
5121      $this->id = $id;
5122    }
5123    public function getId()
5124    {
5125      return $this->id;
5126    }
5127    public function setIsRoot($isRoot)
5128    {
5129      $this->isRoot = $isRoot;
5130    }
5131    public function getIsRoot()
5132    {
5133      return $this->isRoot;
5134    }
5135    public function setKind($kind)
5136    {
5137      $this->kind = $kind;
5138    }
5139    public function getKind()
5140    {
5141      return $this->kind;
5142    }
5143    public function setParentLink($parentLink)
5144    {
5145      $this->parentLink = $parentLink;
5146    }
5147    public function getParentLink()
5148    {
5149      return $this->parentLink;
5150    }
5151    public function setSelfLink($selfLink)
5152    {
5153      $this->selfLink = $selfLink;
5154    }
5155    public function getSelfLink()
5156    {
5157      return $this->selfLink;
5158    }
5159  }
5160  
5161  class Google_Service_Drive_Permission extends Google_Collection
5162  {
5163    protected $collection_key = 'additionalRoles';
5164    protected $internal_gapi_mappings = array(
5165    );
5166    public $additionalRoles;
5167    public $authKey;
5168    public $domain;
5169    public $emailAddress;
5170    public $etag;
5171    public $id;
5172    public $kind;
5173    public $name;
5174    public $photoLink;
5175    public $role;
5176    public $selfLink;
5177    public $type;
5178    public $value;
5179    public $withLink;
5180  
5181  
5182    public function setAdditionalRoles($additionalRoles)
5183    {
5184      $this->additionalRoles = $additionalRoles;
5185    }
5186    public function getAdditionalRoles()
5187    {
5188      return $this->additionalRoles;
5189    }
5190    public function setAuthKey($authKey)
5191    {
5192      $this->authKey = $authKey;
5193    }
5194    public function getAuthKey()
5195    {
5196      return $this->authKey;
5197    }
5198    public function setDomain($domain)
5199    {
5200      $this->domain = $domain;
5201    }
5202    public function getDomain()
5203    {
5204      return $this->domain;
5205    }
5206    public function setEmailAddress($emailAddress)
5207    {
5208      $this->emailAddress = $emailAddress;
5209    }
5210    public function getEmailAddress()
5211    {
5212      return $this->emailAddress;
5213    }
5214    public function setEtag($etag)
5215    {
5216      $this->etag = $etag;
5217    }
5218    public function getEtag()
5219    {
5220      return $this->etag;
5221    }
5222    public function setId($id)
5223    {
5224      $this->id = $id;
5225    }
5226    public function getId()
5227    {
5228      return $this->id;
5229    }
5230    public function setKind($kind)
5231    {
5232      $this->kind = $kind;
5233    }
5234    public function getKind()
5235    {
5236      return $this->kind;
5237    }
5238    public function setName($name)
5239    {
5240      $this->name = $name;
5241    }
5242    public function getName()
5243    {
5244      return $this->name;
5245    }
5246    public function setPhotoLink($photoLink)
5247    {
5248      $this->photoLink = $photoLink;
5249    }
5250    public function getPhotoLink()
5251    {
5252      return $this->photoLink;
5253    }
5254    public function setRole($role)
5255    {
5256      $this->role = $role;
5257    }
5258    public function getRole()
5259    {
5260      return $this->role;
5261    }
5262    public function setSelfLink($selfLink)
5263    {
5264      $this->selfLink = $selfLink;
5265    }
5266    public function getSelfLink()
5267    {
5268      return $this->selfLink;
5269    }
5270    public function setType($type)
5271    {
5272      $this->type = $type;
5273    }
5274    public function getType()
5275    {
5276      return $this->type;
5277    }
5278    public function setValue($value)
5279    {
5280      $this->value = $value;
5281    }
5282    public function getValue()
5283    {
5284      return $this->value;
5285    }
5286    public function setWithLink($withLink)
5287    {
5288      $this->withLink = $withLink;
5289    }
5290    public function getWithLink()
5291    {
5292      return $this->withLink;
5293    }
5294  }
5295  
5296  class Google_Service_Drive_PermissionId extends Google_Model
5297  {
5298    protected $internal_gapi_mappings = array(
5299    );
5300    public $id;
5301    public $kind;
5302  
5303  
5304    public function setId($id)
5305    {
5306      $this->id = $id;
5307    }
5308    public function getId()
5309    {
5310      return $this->id;
5311    }
5312    public function setKind($kind)
5313    {
5314      $this->kind = $kind;
5315    }
5316    public function getKind()
5317    {
5318      return $this->kind;
5319    }
5320  }
5321  
5322  class Google_Service_Drive_PermissionList extends Google_Collection
5323  {
5324    protected $collection_key = 'items';
5325    protected $internal_gapi_mappings = array(
5326    );
5327    public $etag;
5328    protected $itemsType = 'Google_Service_Drive_Permission';
5329    protected $itemsDataType = 'array';
5330    public $kind;
5331    public $selfLink;
5332  
5333  
5334    public function setEtag($etag)
5335    {
5336      $this->etag = $etag;
5337    }
5338    public function getEtag()
5339    {
5340      return $this->etag;
5341    }
5342    public function setItems($items)
5343    {
5344      $this->items = $items;
5345    }
5346    public function getItems()
5347    {
5348      return $this->items;
5349    }
5350    public function setKind($kind)
5351    {
5352      $this->kind = $kind;
5353    }
5354    public function getKind()
5355    {
5356      return $this->kind;
5357    }
5358    public function setSelfLink($selfLink)
5359    {
5360      $this->selfLink = $selfLink;
5361    }
5362    public function getSelfLink()
5363    {
5364      return $this->selfLink;
5365    }
5366  }
5367  
5368  class Google_Service_Drive_Property extends Google_Model
5369  {
5370    protected $internal_gapi_mappings = array(
5371    );
5372    public $etag;
5373    public $key;
5374    public $kind;
5375    public $selfLink;
5376    public $value;
5377    public $visibility;
5378  
5379  
5380    public function setEtag($etag)
5381    {
5382      $this->etag = $etag;
5383    }
5384    public function getEtag()
5385    {
5386      return $this->etag;
5387    }
5388    public function setKey($key)
5389    {
5390      $this->key = $key;
5391    }
5392    public function getKey()
5393    {
5394      return $this->key;
5395    }
5396    public function setKind($kind)
5397    {
5398      $this->kind = $kind;
5399    }
5400    public function getKind()
5401    {
5402      return $this->kind;
5403    }
5404    public function setSelfLink($selfLink)
5405    {
5406      $this->selfLink = $selfLink;
5407    }
5408    public function getSelfLink()
5409    {
5410      return $this->selfLink;
5411    }
5412    public function setValue($value)
5413    {
5414      $this->value = $value;
5415    }
5416    public function getValue()
5417    {
5418      return $this->value;
5419    }
5420    public function setVisibility($visibility)
5421    {
5422      $this->visibility = $visibility;
5423    }
5424    public function getVisibility()
5425    {
5426      return $this->visibility;
5427    }
5428  }
5429  
5430  class Google_Service_Drive_PropertyList extends Google_Collection
5431  {
5432    protected $collection_key = 'items';
5433    protected $internal_gapi_mappings = array(
5434    );
5435    public $etag;
5436    protected $itemsType = 'Google_Service_Drive_Property';
5437    protected $itemsDataType = 'array';
5438    public $kind;
5439    public $selfLink;
5440  
5441  
5442    public function setEtag($etag)
5443    {
5444      $this->etag = $etag;
5445    }
5446    public function getEtag()
5447    {
5448      return $this->etag;
5449    }
5450    public function setItems($items)
5451    {
5452      $this->items = $items;
5453    }
5454    public function getItems()
5455    {
5456      return $this->items;
5457    }
5458    public function setKind($kind)
5459    {
5460      $this->kind = $kind;
5461    }
5462    public function getKind()
5463    {
5464      return $this->kind;
5465    }
5466    public function setSelfLink($selfLink)
5467    {
5468      $this->selfLink = $selfLink;
5469    }
5470    public function getSelfLink()
5471    {
5472      return $this->selfLink;
5473    }
5474  }
5475  
5476  class Google_Service_Drive_Revision extends Google_Model
5477  {
5478    protected $internal_gapi_mappings = array(
5479    );
5480    public $downloadUrl;
5481    public $etag;
5482    public $exportLinks;
5483    public $fileSize;
5484    public $id;
5485    public $kind;
5486    protected $lastModifyingUserType = 'Google_Service_Drive_User';
5487    protected $lastModifyingUserDataType = '';
5488    public $lastModifyingUserName;
5489    public $md5Checksum;
5490    public $mimeType;
5491    public $modifiedDate;
5492    public $originalFilename;
5493    public $pinned;
5494    public $publishAuto;
5495    public $published;
5496    public $publishedLink;
5497    public $publishedOutsideDomain;
5498    public $selfLink;
5499  
5500  
5501    public function setDownloadUrl($downloadUrl)
5502    {
5503      $this->downloadUrl = $downloadUrl;
5504    }
5505    public function getDownloadUrl()
5506    {
5507      return $this->downloadUrl;
5508    }
5509    public function setEtag($etag)
5510    {
5511      $this->etag = $etag;
5512    }
5513    public function getEtag()
5514    {
5515      return $this->etag;
5516    }
5517    public function setExportLinks($exportLinks)
5518    {
5519      $this->exportLinks = $exportLinks;
5520    }
5521    public function getExportLinks()
5522    {
5523      return $this->exportLinks;
5524    }
5525    public function setFileSize($fileSize)
5526    {
5527      $this->fileSize = $fileSize;
5528    }
5529    public function getFileSize()
5530    {
5531      return $this->fileSize;
5532    }
5533    public function setId($id)
5534    {
5535      $this->id = $id;
5536    }
5537    public function getId()
5538    {
5539      return $this->id;
5540    }
5541    public function setKind($kind)
5542    {
5543      $this->kind = $kind;
5544    }
5545    public function getKind()
5546    {
5547      return $this->kind;
5548    }
5549    public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
5550    {
5551      $this->lastModifyingUser = $lastModifyingUser;
5552    }
5553    public function getLastModifyingUser()
5554    {
5555      return $this->lastModifyingUser;
5556    }
5557    public function setLastModifyingUserName($lastModifyingUserName)
5558    {
5559      $this->lastModifyingUserName = $lastModifyingUserName;
5560    }
5561    public function getLastModifyingUserName()
5562    {
5563      return $this->lastModifyingUserName;
5564    }
5565    public function setMd5Checksum($md5Checksum)
5566    {
5567      $this->md5Checksum = $md5Checksum;
5568    }
5569    public function getMd5Checksum()
5570    {
5571      return $this->md5Checksum;
5572    }
5573    public function setMimeType($mimeType)
5574    {
5575      $this->mimeType = $mimeType;
5576    }
5577    public function getMimeType()
5578    {
5579      return $this->mimeType;
5580    }
5581    public function setModifiedDate($modifiedDate)
5582    {
5583      $this->modifiedDate = $modifiedDate;
5584    }
5585    public function getModifiedDate()
5586    {
5587      return $this->modifiedDate;
5588    }
5589    public function setOriginalFilename($originalFilename)
5590    {
5591      $this->originalFilename = $originalFilename;
5592    }
5593    public function getOriginalFilename()
5594    {
5595      return $this->originalFilename;
5596    }
5597    public function setPinned($pinned)
5598    {
5599      $this->pinned = $pinned;
5600    }
5601    public function getPinned()
5602    {
5603      return $this->pinned;
5604    }
5605    public function setPublishAuto($publishAuto)
5606    {
5607      $this->publishAuto = $publishAuto;
5608    }
5609    public function getPublishAuto()
5610    {
5611      return $this->publishAuto;
5612    }
5613    public function setPublished($published)
5614    {
5615      $this->published = $published;
5616    }
5617    public function getPublished()
5618    {
5619      return $this->published;
5620    }
5621    public function setPublishedLink($publishedLink)
5622    {
5623      $this->publishedLink = $publishedLink;
5624    }
5625    public function getPublishedLink()
5626    {
5627      return $this->publishedLink;
5628    }
5629    public function setPublishedOutsideDomain($publishedOutsideDomain)
5630    {
5631      $this->publishedOutsideDomain = $publishedOutsideDomain;
5632    }
5633    public function getPublishedOutsideDomain()
5634    {
5635      return $this->publishedOutsideDomain;
5636    }
5637    public function setSelfLink($selfLink)
5638    {
5639      $this->selfLink = $selfLink;
5640    }
5641    public function getSelfLink()
5642    {
5643      return $this->selfLink;
5644    }
5645  }
5646  
5647  class Google_Service_Drive_RevisionExportLinks extends Google_Model
5648  {
5649  }
5650  
5651  class Google_Service_Drive_RevisionList extends Google_Collection
5652  {
5653    protected $collection_key = 'items';
5654    protected $internal_gapi_mappings = array(
5655    );
5656    public $etag;
5657    protected $itemsType = 'Google_Service_Drive_Revision';
5658    protected $itemsDataType = 'array';
5659    public $kind;
5660    public $selfLink;
5661  
5662  
5663    public function setEtag($etag)
5664    {
5665      $this->etag = $etag;
5666    }
5667    public function getEtag()
5668    {
5669      return $this->etag;
5670    }
5671    public function setItems($items)
5672    {
5673      $this->items = $items;
5674    }
5675    public function getItems()
5676    {
5677      return $this->items;
5678    }
5679    public function setKind($kind)
5680    {
5681      $this->kind = $kind;
5682    }
5683    public function getKind()
5684    {
5685      return $this->kind;
5686    }
5687    public function setSelfLink($selfLink)
5688    {
5689      $this->selfLink = $selfLink;
5690    }
5691    public function getSelfLink()
5692    {
5693      return $this->selfLink;
5694    }
5695  }
5696  
5697  class Google_Service_Drive_User extends Google_Model
5698  {
5699    protected $internal_gapi_mappings = array(
5700    );
5701    public $displayName;
5702    public $emailAddress;
5703    public $isAuthenticatedUser;
5704    public $kind;
5705    public $permissionId;
5706    protected $pictureType = 'Google_Service_Drive_UserPicture';
5707    protected $pictureDataType = '';
5708  
5709  
5710    public function setDisplayName($displayName)
5711    {
5712      $this->displayName = $displayName;
5713    }
5714    public function getDisplayName()
5715    {
5716      return $this->displayName;
5717    }
5718    public function setEmailAddress($emailAddress)
5719    {
5720      $this->emailAddress = $emailAddress;
5721    }
5722    public function getEmailAddress()
5723    {
5724      return $this->emailAddress;
5725    }
5726    public function setIsAuthenticatedUser($isAuthenticatedUser)
5727    {
5728      $this->isAuthenticatedUser = $isAuthenticatedUser;
5729    }
5730    public function getIsAuthenticatedUser()
5731    {
5732      return $this->isAuthenticatedUser;
5733    }
5734    public function setKind($kind)
5735    {
5736      $this->kind = $kind;
5737    }
5738    public function getKind()
5739    {
5740      return $this->kind;
5741    }
5742    public function setPermissionId($permissionId)
5743    {
5744      $this->permissionId = $permissionId;
5745    }
5746    public function getPermissionId()
5747    {
5748      return $this->permissionId;
5749    }
5750    public function setPicture(Google_Service_Drive_UserPicture $picture)
5751    {
5752      $this->picture = $picture;
5753    }
5754    public function getPicture()
5755    {
5756      return $this->picture;
5757    }
5758  }
5759  
5760  class Google_Service_Drive_UserPicture extends Google_Model
5761  {
5762    protected $internal_gapi_mappings = array(
5763    );
5764    public $url;
5765  
5766  
5767    public function setUrl($url)
5768    {
5769      $this->url = $url;
5770    }
5771    public function getUrl()
5772    {
5773      return $this->url;
5774    }
5775  }