Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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 YouTube (v3).
  20   *
  21   * <p>
  22   * Programmatic access to YouTube features.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/youtube/v3" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_YouTube extends Google_Service
  32  {
  33    /** Manage your YouTube account. */
  34    const YOUTUBE =
  35        "https://www.googleapis.com/auth/youtube";
  36    /** Manage your YouTube account. */
  37    const YOUTUBE_FORCE_SSL =
  38        "https://www.googleapis.com/auth/youtube.force-ssl";
  39    /** View your YouTube account. */
  40    const YOUTUBE_READONLY =
  41        "https://www.googleapis.com/auth/youtube.readonly";
  42    /** Manage your YouTube videos. */
  43    const YOUTUBE_UPLOAD =
  44        "https://www.googleapis.com/auth/youtube.upload";
  45    /** View and manage your assets and associated content on YouTube. */
  46    const YOUTUBEPARTNER =
  47        "https://www.googleapis.com/auth/youtubepartner";
  48    /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */
  49    const YOUTUBEPARTNER_CHANNEL_AUDIT =
  50        "https://www.googleapis.com/auth/youtubepartner-channel-audit";
  51  
  52    public $activities;
  53    public $captions;
  54    public $channelBanners;
  55    public $channelSections;
  56    public $channels;
  57    public $commentThreads;
  58    public $comments;
  59    public $guideCategories;
  60    public $i18nLanguages;
  61    public $i18nRegions;
  62    public $liveBroadcasts;
  63    public $liveStreams;
  64    public $playlistItems;
  65    public $playlists;
  66    public $search;
  67    public $subscriptions;
  68    public $thumbnails;
  69    public $videoAbuseReportReasons;
  70    public $videoCategories;
  71    public $videos;
  72    public $watermarks;
  73    
  74  
  75    /**
  76     * Constructs the internal representation of the YouTube service.
  77     *
  78     * @param Google_Client $client
  79     */
  80    public function __construct(Google_Client $client)
  81    {
  82      parent::__construct($client);
  83      $this->rootUrl = 'https://www.googleapis.com/';
  84      $this->servicePath = 'youtube/v3/';
  85      $this->version = 'v3';
  86      $this->serviceName = 'youtube';
  87  
  88      $this->activities = new Google_Service_YouTube_Activities_Resource(
  89          $this,
  90          $this->serviceName,
  91          'activities',
  92          array(
  93            'methods' => array(
  94              'insert' => array(
  95                'path' => 'activities',
  96                'httpMethod' => 'POST',
  97                'parameters' => array(
  98                  'part' => array(
  99                    'location' => 'query',
 100                    'type' => 'string',
 101                    'required' => true,
 102                  ),
 103                ),
 104              ),'list' => array(
 105                'path' => 'activities',
 106                'httpMethod' => 'GET',
 107                'parameters' => array(
 108                  'part' => array(
 109                    'location' => 'query',
 110                    'type' => 'string',
 111                    'required' => true,
 112                  ),
 113                  'regionCode' => array(
 114                    'location' => 'query',
 115                    'type' => 'string',
 116                  ),
 117                  'publishedBefore' => array(
 118                    'location' => 'query',
 119                    'type' => 'string',
 120                  ),
 121                  'channelId' => array(
 122                    'location' => 'query',
 123                    'type' => 'string',
 124                  ),
 125                  'mine' => array(
 126                    'location' => 'query',
 127                    'type' => 'boolean',
 128                  ),
 129                  'maxResults' => array(
 130                    'location' => 'query',
 131                    'type' => 'integer',
 132                  ),
 133                  'pageToken' => array(
 134                    'location' => 'query',
 135                    'type' => 'string',
 136                  ),
 137                  'home' => array(
 138                    'location' => 'query',
 139                    'type' => 'boolean',
 140                  ),
 141                  'publishedAfter' => array(
 142                    'location' => 'query',
 143                    'type' => 'string',
 144                  ),
 145                ),
 146              ),
 147            )
 148          )
 149      );
 150      $this->captions = new Google_Service_YouTube_Captions_Resource(
 151          $this,
 152          $this->serviceName,
 153          'captions',
 154          array(
 155            'methods' => array(
 156              'delete' => array(
 157                'path' => 'captions',
 158                'httpMethod' => 'DELETE',
 159                'parameters' => array(
 160                  'id' => array(
 161                    'location' => 'query',
 162                    'type' => 'string',
 163                    'required' => true,
 164                  ),
 165                  'onBehalfOf' => array(
 166                    'location' => 'query',
 167                    'type' => 'string',
 168                  ),
 169                  'onBehalfOfContentOwner' => array(
 170                    'location' => 'query',
 171                    'type' => 'string',
 172                  ),
 173                ),
 174              ),'download' => array(
 175                'path' => 'captions/{id}',
 176                'httpMethod' => 'GET',
 177                'parameters' => array(
 178                  'id' => array(
 179                    'location' => 'path',
 180                    'type' => 'string',
 181                    'required' => true,
 182                  ),
 183                  'tfmt' => array(
 184                    'location' => 'query',
 185                    'type' => 'string',
 186                  ),
 187                  'onBehalfOf' => array(
 188                    'location' => 'query',
 189                    'type' => 'string',
 190                  ),
 191                  'tlang' => array(
 192                    'location' => 'query',
 193                    'type' => 'string',
 194                  ),
 195                  'onBehalfOfContentOwner' => array(
 196                    'location' => 'query',
 197                    'type' => 'string',
 198                  ),
 199                ),
 200              ),'insert' => array(
 201                'path' => 'captions',
 202                'httpMethod' => 'POST',
 203                'parameters' => array(
 204                  'part' => array(
 205                    'location' => 'query',
 206                    'type' => 'string',
 207                    'required' => true,
 208                  ),
 209                  'onBehalfOf' => array(
 210                    'location' => 'query',
 211                    'type' => 'string',
 212                  ),
 213                  'onBehalfOfContentOwner' => array(
 214                    'location' => 'query',
 215                    'type' => 'string',
 216                  ),
 217                  'sync' => array(
 218                    'location' => 'query',
 219                    'type' => 'boolean',
 220                  ),
 221                ),
 222              ),'list' => array(
 223                'path' => 'captions',
 224                'httpMethod' => 'GET',
 225                'parameters' => array(
 226                  'part' => array(
 227                    'location' => 'query',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                  'videoId' => array(
 232                    'location' => 'query',
 233                    'type' => 'string',
 234                    'required' => true,
 235                  ),
 236                  'onBehalfOf' => array(
 237                    'location' => 'query',
 238                    'type' => 'string',
 239                  ),
 240                  'id' => array(
 241                    'location' => 'query',
 242                    'type' => 'string',
 243                  ),
 244                  'onBehalfOfContentOwner' => array(
 245                    'location' => 'query',
 246                    'type' => 'string',
 247                  ),
 248                ),
 249              ),'update' => array(
 250                'path' => 'captions',
 251                'httpMethod' => 'PUT',
 252                'parameters' => array(
 253                  'part' => array(
 254                    'location' => 'query',
 255                    'type' => 'string',
 256                    'required' => true,
 257                  ),
 258                  'onBehalfOf' => array(
 259                    'location' => 'query',
 260                    'type' => 'string',
 261                  ),
 262                  'onBehalfOfContentOwner' => array(
 263                    'location' => 'query',
 264                    'type' => 'string',
 265                  ),
 266                  'sync' => array(
 267                    'location' => 'query',
 268                    'type' => 'boolean',
 269                  ),
 270                ),
 271              ),
 272            )
 273          )
 274      );
 275      $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource(
 276          $this,
 277          $this->serviceName,
 278          'channelBanners',
 279          array(
 280            'methods' => array(
 281              'insert' => array(
 282                'path' => 'channelBanners/insert',
 283                'httpMethod' => 'POST',
 284                'parameters' => array(
 285                  'onBehalfOfContentOwner' => array(
 286                    'location' => 'query',
 287                    'type' => 'string',
 288                  ),
 289                ),
 290              ),
 291            )
 292          )
 293      );
 294      $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource(
 295          $this,
 296          $this->serviceName,
 297          'channelSections',
 298          array(
 299            'methods' => array(
 300              'delete' => array(
 301                'path' => 'channelSections',
 302                'httpMethod' => 'DELETE',
 303                'parameters' => array(
 304                  'id' => array(
 305                    'location' => 'query',
 306                    'type' => 'string',
 307                    'required' => true,
 308                  ),
 309                  'onBehalfOfContentOwner' => array(
 310                    'location' => 'query',
 311                    'type' => 'string',
 312                  ),
 313                ),
 314              ),'insert' => array(
 315                'path' => 'channelSections',
 316                'httpMethod' => 'POST',
 317                'parameters' => array(
 318                  'part' => array(
 319                    'location' => 'query',
 320                    'type' => 'string',
 321                    'required' => true,
 322                  ),
 323                  'onBehalfOfContentOwnerChannel' => array(
 324                    'location' => 'query',
 325                    'type' => 'string',
 326                  ),
 327                  'onBehalfOfContentOwner' => array(
 328                    'location' => 'query',
 329                    'type' => 'string',
 330                  ),
 331                ),
 332              ),'list' => array(
 333                'path' => 'channelSections',
 334                'httpMethod' => 'GET',
 335                'parameters' => array(
 336                  'part' => array(
 337                    'location' => 'query',
 338                    'type' => 'string',
 339                    'required' => true,
 340                  ),
 341                  'onBehalfOfContentOwner' => array(
 342                    'location' => 'query',
 343                    'type' => 'string',
 344                  ),
 345                  'channelId' => array(
 346                    'location' => 'query',
 347                    'type' => 'string',
 348                  ),
 349                  'mine' => array(
 350                    'location' => 'query',
 351                    'type' => 'boolean',
 352                  ),
 353                  'hl' => array(
 354                    'location' => 'query',
 355                    'type' => 'string',
 356                  ),
 357                  'id' => array(
 358                    'location' => 'query',
 359                    'type' => 'string',
 360                  ),
 361                ),
 362              ),'update' => array(
 363                'path' => 'channelSections',
 364                'httpMethod' => 'PUT',
 365                'parameters' => array(
 366                  'part' => array(
 367                    'location' => 'query',
 368                    'type' => 'string',
 369                    'required' => true,
 370                  ),
 371                  'onBehalfOfContentOwner' => array(
 372                    'location' => 'query',
 373                    'type' => 'string',
 374                  ),
 375                ),
 376              ),
 377            )
 378          )
 379      );
 380      $this->channels = new Google_Service_YouTube_Channels_Resource(
 381          $this,
 382          $this->serviceName,
 383          'channels',
 384          array(
 385            'methods' => array(
 386              'list' => array(
 387                'path' => 'channels',
 388                'httpMethod' => 'GET',
 389                'parameters' => array(
 390                  'part' => array(
 391                    'location' => 'query',
 392                    'type' => 'string',
 393                    'required' => true,
 394                  ),
 395                  'managedByMe' => array(
 396                    'location' => 'query',
 397                    'type' => 'boolean',
 398                  ),
 399                  'onBehalfOfContentOwner' => array(
 400                    'location' => 'query',
 401                    'type' => 'string',
 402                  ),
 403                  'forUsername' => array(
 404                    'location' => 'query',
 405                    'type' => 'string',
 406                  ),
 407                  'mine' => array(
 408                    'location' => 'query',
 409                    'type' => 'boolean',
 410                  ),
 411                  'maxResults' => array(
 412                    'location' => 'query',
 413                    'type' => 'integer',
 414                  ),
 415                  'id' => array(
 416                    'location' => 'query',
 417                    'type' => 'string',
 418                  ),
 419                  'pageToken' => array(
 420                    'location' => 'query',
 421                    'type' => 'string',
 422                  ),
 423                  'mySubscribers' => array(
 424                    'location' => 'query',
 425                    'type' => 'boolean',
 426                  ),
 427                  'hl' => array(
 428                    'location' => 'query',
 429                    'type' => 'string',
 430                  ),
 431                  'categoryId' => array(
 432                    'location' => 'query',
 433                    'type' => 'string',
 434                  ),
 435                ),
 436              ),'update' => array(
 437                'path' => 'channels',
 438                'httpMethod' => 'PUT',
 439                'parameters' => array(
 440                  'part' => array(
 441                    'location' => 'query',
 442                    'type' => 'string',
 443                    'required' => true,
 444                  ),
 445                  'onBehalfOfContentOwner' => array(
 446                    'location' => 'query',
 447                    'type' => 'string',
 448                  ),
 449                ),
 450              ),
 451            )
 452          )
 453      );
 454      $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource(
 455          $this,
 456          $this->serviceName,
 457          'commentThreads',
 458          array(
 459            'methods' => array(
 460              'insert' => array(
 461                'path' => 'commentThreads',
 462                'httpMethod' => 'POST',
 463                'parameters' => array(
 464                  'part' => array(
 465                    'location' => 'query',
 466                    'type' => 'string',
 467                    'required' => true,
 468                  ),
 469                ),
 470              ),'list' => array(
 471                'path' => 'commentThreads',
 472                'httpMethod' => 'GET',
 473                'parameters' => array(
 474                  'part' => array(
 475                    'location' => 'query',
 476                    'type' => 'string',
 477                    'required' => true,
 478                  ),
 479                  'searchTerms' => array(
 480                    'location' => 'query',
 481                    'type' => 'string',
 482                  ),
 483                  'allThreadsRelatedToChannelId' => array(
 484                    'location' => 'query',
 485                    'type' => 'string',
 486                  ),
 487                  'channelId' => array(
 488                    'location' => 'query',
 489                    'type' => 'string',
 490                  ),
 491                  'videoId' => array(
 492                    'location' => 'query',
 493                    'type' => 'string',
 494                  ),
 495                  'maxResults' => array(
 496                    'location' => 'query',
 497                    'type' => 'integer',
 498                  ),
 499                  'id' => array(
 500                    'location' => 'query',
 501                    'type' => 'string',
 502                  ),
 503                  'pageToken' => array(
 504                    'location' => 'query',
 505                    'type' => 'string',
 506                  ),
 507                  'moderationStatus' => array(
 508                    'location' => 'query',
 509                    'type' => 'string',
 510                  ),
 511                  'textFormat' => array(
 512                    'location' => 'query',
 513                    'type' => 'string',
 514                  ),
 515                  'order' => array(
 516                    'location' => 'query',
 517                    'type' => 'string',
 518                  ),
 519                ),
 520              ),'update' => array(
 521                'path' => 'commentThreads',
 522                'httpMethod' => 'PUT',
 523                'parameters' => array(
 524                  'part' => array(
 525                    'location' => 'query',
 526                    'type' => 'string',
 527                    'required' => true,
 528                  ),
 529                ),
 530              ),
 531            )
 532          )
 533      );
 534      $this->comments = new Google_Service_YouTube_Comments_Resource(
 535          $this,
 536          $this->serviceName,
 537          'comments',
 538          array(
 539            'methods' => array(
 540              'delete' => array(
 541                'path' => 'comments',
 542                'httpMethod' => 'DELETE',
 543                'parameters' => array(
 544                  'id' => array(
 545                    'location' => 'query',
 546                    'type' => 'string',
 547                    'required' => true,
 548                  ),
 549                ),
 550              ),'insert' => array(
 551                'path' => 'comments',
 552                'httpMethod' => 'POST',
 553                'parameters' => array(
 554                  'part' => array(
 555                    'location' => 'query',
 556                    'type' => 'string',
 557                    'required' => true,
 558                  ),
 559                ),
 560              ),'list' => array(
 561                'path' => 'comments',
 562                'httpMethod' => 'GET',
 563                'parameters' => array(
 564                  'part' => array(
 565                    'location' => 'query',
 566                    'type' => 'string',
 567                    'required' => true,
 568                  ),
 569                  'maxResults' => array(
 570                    'location' => 'query',
 571                    'type' => 'integer',
 572                  ),
 573                  'pageToken' => array(
 574                    'location' => 'query',
 575                    'type' => 'string',
 576                  ),
 577                  'parentId' => array(
 578                    'location' => 'query',
 579                    'type' => 'string',
 580                  ),
 581                  'textFormat' => array(
 582                    'location' => 'query',
 583                    'type' => 'string',
 584                  ),
 585                  'id' => array(
 586                    'location' => 'query',
 587                    'type' => 'string',
 588                  ),
 589                ),
 590              ),'markAsSpam' => array(
 591                'path' => 'comments/markAsSpam',
 592                'httpMethod' => 'POST',
 593                'parameters' => array(
 594                  'id' => array(
 595                    'location' => 'query',
 596                    'type' => 'string',
 597                    'required' => true,
 598                  ),
 599                ),
 600              ),'setModerationStatus' => array(
 601                'path' => 'comments/setModerationStatus',
 602                'httpMethod' => 'POST',
 603                'parameters' => array(
 604                  'id' => array(
 605                    'location' => 'query',
 606                    'type' => 'string',
 607                    'required' => true,
 608                  ),
 609                  'moderationStatus' => array(
 610                    'location' => 'query',
 611                    'type' => 'string',
 612                    'required' => true,
 613                  ),
 614                  'banAuthor' => array(
 615                    'location' => 'query',
 616                    'type' => 'boolean',
 617                  ),
 618                ),
 619              ),'update' => array(
 620                'path' => 'comments',
 621                'httpMethod' => 'PUT',
 622                'parameters' => array(
 623                  'part' => array(
 624                    'location' => 'query',
 625                    'type' => 'string',
 626                    'required' => true,
 627                  ),
 628                ),
 629              ),
 630            )
 631          )
 632      );
 633      $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource(
 634          $this,
 635          $this->serviceName,
 636          'guideCategories',
 637          array(
 638            'methods' => array(
 639              'list' => array(
 640                'path' => 'guideCategories',
 641                'httpMethod' => 'GET',
 642                'parameters' => array(
 643                  'part' => array(
 644                    'location' => 'query',
 645                    'type' => 'string',
 646                    'required' => true,
 647                  ),
 648                  'regionCode' => array(
 649                    'location' => 'query',
 650                    'type' => 'string',
 651                  ),
 652                  'id' => array(
 653                    'location' => 'query',
 654                    'type' => 'string',
 655                  ),
 656                  'hl' => array(
 657                    'location' => 'query',
 658                    'type' => 'string',
 659                  ),
 660                ),
 661              ),
 662            )
 663          )
 664      );
 665      $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource(
 666          $this,
 667          $this->serviceName,
 668          'i18nLanguages',
 669          array(
 670            'methods' => array(
 671              'list' => array(
 672                'path' => 'i18nLanguages',
 673                'httpMethod' => 'GET',
 674                'parameters' => array(
 675                  'part' => array(
 676                    'location' => 'query',
 677                    'type' => 'string',
 678                    'required' => true,
 679                  ),
 680                  'hl' => array(
 681                    'location' => 'query',
 682                    'type' => 'string',
 683                  ),
 684                ),
 685              ),
 686            )
 687          )
 688      );
 689      $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource(
 690          $this,
 691          $this->serviceName,
 692          'i18nRegions',
 693          array(
 694            'methods' => array(
 695              'list' => array(
 696                'path' => 'i18nRegions',
 697                'httpMethod' => 'GET',
 698                'parameters' => array(
 699                  'part' => array(
 700                    'location' => 'query',
 701                    'type' => 'string',
 702                    'required' => true,
 703                  ),
 704                  'hl' => array(
 705                    'location' => 'query',
 706                    'type' => 'string',
 707                  ),
 708                ),
 709              ),
 710            )
 711          )
 712      );
 713      $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource(
 714          $this,
 715          $this->serviceName,
 716          'liveBroadcasts',
 717          array(
 718            'methods' => array(
 719              'bind' => array(
 720                'path' => 'liveBroadcasts/bind',
 721                'httpMethod' => 'POST',
 722                'parameters' => array(
 723                  'id' => array(
 724                    'location' => 'query',
 725                    'type' => 'string',
 726                    'required' => true,
 727                  ),
 728                  'part' => array(
 729                    'location' => 'query',
 730                    'type' => 'string',
 731                    'required' => true,
 732                  ),
 733                  'onBehalfOfContentOwnerChannel' => array(
 734                    'location' => 'query',
 735                    'type' => 'string',
 736                  ),
 737                  'onBehalfOfContentOwner' => array(
 738                    'location' => 'query',
 739                    'type' => 'string',
 740                  ),
 741                  'streamId' => array(
 742                    'location' => 'query',
 743                    'type' => 'string',
 744                  ),
 745                ),
 746              ),'bind_direct' => array(
 747                'path' => 'liveBroadcasts/bind/direct',
 748                'httpMethod' => 'POST',
 749                'parameters' => array(
 750                  'id' => array(
 751                    'location' => 'query',
 752                    'type' => 'string',
 753                    'required' => true,
 754                  ),
 755                  'part' => array(
 756                    'location' => 'query',
 757                    'type' => 'string',
 758                    'required' => true,
 759                  ),
 760                  'onBehalfOfContentOwnerChannel' => array(
 761                    'location' => 'query',
 762                    'type' => 'string',
 763                  ),
 764                  'onBehalfOfContentOwner' => array(
 765                    'location' => 'query',
 766                    'type' => 'string',
 767                  ),
 768                  'streamId' => array(
 769                    'location' => 'query',
 770                    'type' => 'string',
 771                  ),
 772                ),
 773              ),'control' => array(
 774                'path' => 'liveBroadcasts/control',
 775                'httpMethod' => 'POST',
 776                'parameters' => array(
 777                  'id' => array(
 778                    'location' => 'query',
 779                    'type' => 'string',
 780                    'required' => true,
 781                  ),
 782                  'part' => array(
 783                    'location' => 'query',
 784                    'type' => 'string',
 785                    'required' => true,
 786                  ),
 787                  'onBehalfOfContentOwner' => array(
 788                    'location' => 'query',
 789                    'type' => 'string',
 790                  ),
 791                  'displaySlate' => array(
 792                    'location' => 'query',
 793                    'type' => 'boolean',
 794                  ),
 795                  'onBehalfOfContentOwnerChannel' => array(
 796                    'location' => 'query',
 797                    'type' => 'string',
 798                  ),
 799                  'offsetTimeMs' => array(
 800                    'location' => 'query',
 801                    'type' => 'string',
 802                  ),
 803                  'walltime' => array(
 804                    'location' => 'query',
 805                    'type' => 'string',
 806                  ),
 807                ),
 808              ),'delete' => array(
 809                'path' => 'liveBroadcasts',
 810                'httpMethod' => 'DELETE',
 811                'parameters' => array(
 812                  'id' => array(
 813                    'location' => 'query',
 814                    'type' => 'string',
 815                    'required' => true,
 816                  ),
 817                  'onBehalfOfContentOwnerChannel' => array(
 818                    'location' => 'query',
 819                    'type' => 'string',
 820                  ),
 821                  'onBehalfOfContentOwner' => array(
 822                    'location' => 'query',
 823                    'type' => 'string',
 824                  ),
 825                ),
 826              ),'insert' => array(
 827                'path' => 'liveBroadcasts',
 828                'httpMethod' => 'POST',
 829                'parameters' => array(
 830                  'part' => array(
 831                    'location' => 'query',
 832                    'type' => 'string',
 833                    'required' => true,
 834                  ),
 835                  'onBehalfOfContentOwnerChannel' => array(
 836                    'location' => 'query',
 837                    'type' => 'string',
 838                  ),
 839                  'onBehalfOfContentOwner' => array(
 840                    'location' => 'query',
 841                    'type' => 'string',
 842                  ),
 843                ),
 844              ),'list' => array(
 845                'path' => 'liveBroadcasts',
 846                'httpMethod' => 'GET',
 847                'parameters' => array(
 848                  'part' => array(
 849                    'location' => 'query',
 850                    'type' => 'string',
 851                    'required' => true,
 852                  ),
 853                  'broadcastStatus' => array(
 854                    'location' => 'query',
 855                    'type' => 'string',
 856                  ),
 857                  'onBehalfOfContentOwner' => array(
 858                    'location' => 'query',
 859                    'type' => 'string',
 860                  ),
 861                  'onBehalfOfContentOwnerChannel' => array(
 862                    'location' => 'query',
 863                    'type' => 'string',
 864                  ),
 865                  'mine' => array(
 866                    'location' => 'query',
 867                    'type' => 'boolean',
 868                  ),
 869                  'maxResults' => array(
 870                    'location' => 'query',
 871                    'type' => 'integer',
 872                  ),
 873                  'pageToken' => array(
 874                    'location' => 'query',
 875                    'type' => 'string',
 876                  ),
 877                  'id' => array(
 878                    'location' => 'query',
 879                    'type' => 'string',
 880                  ),
 881                ),
 882              ),'transition' => array(
 883                'path' => 'liveBroadcasts/transition',
 884                'httpMethod' => 'POST',
 885                'parameters' => array(
 886                  'broadcastStatus' => array(
 887                    'location' => 'query',
 888                    'type' => 'string',
 889                    'required' => true,
 890                  ),
 891                  'id' => array(
 892                    'location' => 'query',
 893                    'type' => 'string',
 894                    'required' => true,
 895                  ),
 896                  'part' => array(
 897                    'location' => 'query',
 898                    'type' => 'string',
 899                    'required' => true,
 900                  ),
 901                  'onBehalfOfContentOwnerChannel' => array(
 902                    'location' => 'query',
 903                    'type' => 'string',
 904                  ),
 905                  'onBehalfOfContentOwner' => array(
 906                    'location' => 'query',
 907                    'type' => 'string',
 908                  ),
 909                ),
 910              ),'update' => array(
 911                'path' => 'liveBroadcasts',
 912                'httpMethod' => 'PUT',
 913                'parameters' => array(
 914                  'part' => array(
 915                    'location' => 'query',
 916                    'type' => 'string',
 917                    'required' => true,
 918                  ),
 919                  'onBehalfOfContentOwnerChannel' => array(
 920                    'location' => 'query',
 921                    'type' => 'string',
 922                  ),
 923                  'onBehalfOfContentOwner' => array(
 924                    'location' => 'query',
 925                    'type' => 'string',
 926                  ),
 927                ),
 928              ),
 929            )
 930          )
 931      );
 932      $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource(
 933          $this,
 934          $this->serviceName,
 935          'liveStreams',
 936          array(
 937            'methods' => array(
 938              'delete' => array(
 939                'path' => 'liveStreams',
 940                'httpMethod' => 'DELETE',
 941                'parameters' => array(
 942                  'id' => array(
 943                    'location' => 'query',
 944                    'type' => 'string',
 945                    'required' => true,
 946                  ),
 947                  'onBehalfOfContentOwnerChannel' => array(
 948                    'location' => 'query',
 949                    'type' => 'string',
 950                  ),
 951                  'onBehalfOfContentOwner' => array(
 952                    'location' => 'query',
 953                    'type' => 'string',
 954                  ),
 955                ),
 956              ),'insert' => array(
 957                'path' => 'liveStreams',
 958                'httpMethod' => 'POST',
 959                'parameters' => array(
 960                  'part' => array(
 961                    'location' => 'query',
 962                    'type' => 'string',
 963                    'required' => true,
 964                  ),
 965                  'onBehalfOfContentOwnerChannel' => array(
 966                    'location' => 'query',
 967                    'type' => 'string',
 968                  ),
 969                  'onBehalfOfContentOwner' => array(
 970                    'location' => 'query',
 971                    'type' => 'string',
 972                  ),
 973                ),
 974              ),'list' => array(
 975                'path' => 'liveStreams',
 976                'httpMethod' => 'GET',
 977                'parameters' => array(
 978                  'part' => array(
 979                    'location' => 'query',
 980                    'type' => 'string',
 981                    'required' => true,
 982                  ),
 983                  'onBehalfOfContentOwner' => array(
 984                    'location' => 'query',
 985                    'type' => 'string',
 986                  ),
 987                  'onBehalfOfContentOwnerChannel' => array(
 988                    'location' => 'query',
 989                    'type' => 'string',
 990                  ),
 991                  'mine' => array(
 992                    'location' => 'query',
 993                    'type' => 'boolean',
 994                  ),
 995                  'maxResults' => array(
 996                    'location' => 'query',
 997                    'type' => 'integer',
 998                  ),
 999                  'pageToken' => array(
1000                    'location' => 'query',
1001                    'type' => 'string',
1002                  ),
1003                  'id' => array(
1004                    'location' => 'query',
1005                    'type' => 'string',
1006                  ),
1007                ),
1008              ),'update' => array(
1009                'path' => 'liveStreams',
1010                'httpMethod' => 'PUT',
1011                'parameters' => array(
1012                  'part' => array(
1013                    'location' => 'query',
1014                    'type' => 'string',
1015                    'required' => true,
1016                  ),
1017                  'onBehalfOfContentOwnerChannel' => array(
1018                    'location' => 'query',
1019                    'type' => 'string',
1020                  ),
1021                  'onBehalfOfContentOwner' => array(
1022                    'location' => 'query',
1023                    'type' => 'string',
1024                  ),
1025                ),
1026              ),
1027            )
1028          )
1029      );
1030      $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource(
1031          $this,
1032          $this->serviceName,
1033          'playlistItems',
1034          array(
1035            'methods' => array(
1036              'delete' => array(
1037                'path' => 'playlistItems',
1038                'httpMethod' => 'DELETE',
1039                'parameters' => array(
1040                  'id' => array(
1041                    'location' => 'query',
1042                    'type' => 'string',
1043                    'required' => true,
1044                  ),
1045                ),
1046              ),'insert' => array(
1047                'path' => 'playlistItems',
1048                'httpMethod' => 'POST',
1049                'parameters' => array(
1050                  'part' => array(
1051                    'location' => 'query',
1052                    'type' => 'string',
1053                    'required' => true,
1054                  ),
1055                  'onBehalfOfContentOwner' => array(
1056                    'location' => 'query',
1057                    'type' => 'string',
1058                  ),
1059                ),
1060              ),'list' => array(
1061                'path' => 'playlistItems',
1062                'httpMethod' => 'GET',
1063                'parameters' => array(
1064                  'part' => array(
1065                    'location' => 'query',
1066                    'type' => 'string',
1067                    'required' => true,
1068                  ),
1069                  'onBehalfOfContentOwner' => array(
1070                    'location' => 'query',
1071                    'type' => 'string',
1072                  ),
1073                  'playlistId' => array(
1074                    'location' => 'query',
1075                    'type' => 'string',
1076                  ),
1077                  'videoId' => array(
1078                    'location' => 'query',
1079                    'type' => 'string',
1080                  ),
1081                  'maxResults' => array(
1082                    'location' => 'query',
1083                    'type' => 'integer',
1084                  ),
1085                  'pageToken' => array(
1086                    'location' => 'query',
1087                    'type' => 'string',
1088                  ),
1089                  'id' => array(
1090                    'location' => 'query',
1091                    'type' => 'string',
1092                  ),
1093                ),
1094              ),'update' => array(
1095                'path' => 'playlistItems',
1096                'httpMethod' => 'PUT',
1097                'parameters' => array(
1098                  'part' => array(
1099                    'location' => 'query',
1100                    'type' => 'string',
1101                    'required' => true,
1102                  ),
1103                ),
1104              ),
1105            )
1106          )
1107      );
1108      $this->playlists = new Google_Service_YouTube_Playlists_Resource(
1109          $this,
1110          $this->serviceName,
1111          'playlists',
1112          array(
1113            'methods' => array(
1114              'delete' => array(
1115                'path' => 'playlists',
1116                'httpMethod' => 'DELETE',
1117                'parameters' => array(
1118                  'id' => array(
1119                    'location' => 'query',
1120                    'type' => 'string',
1121                    'required' => true,
1122                  ),
1123                  'onBehalfOfContentOwner' => array(
1124                    'location' => 'query',
1125                    'type' => 'string',
1126                  ),
1127                ),
1128              ),'insert' => array(
1129                'path' => 'playlists',
1130                'httpMethod' => 'POST',
1131                'parameters' => array(
1132                  'part' => array(
1133                    'location' => 'query',
1134                    'type' => 'string',
1135                    'required' => true,
1136                  ),
1137                  'onBehalfOfContentOwnerChannel' => array(
1138                    'location' => 'query',
1139                    'type' => 'string',
1140                  ),
1141                  'onBehalfOfContentOwner' => array(
1142                    'location' => 'query',
1143                    'type' => 'string',
1144                  ),
1145                ),
1146              ),'list' => array(
1147                'path' => 'playlists',
1148                'httpMethod' => 'GET',
1149                'parameters' => array(
1150                  'part' => array(
1151                    'location' => 'query',
1152                    'type' => 'string',
1153                    'required' => true,
1154                  ),
1155                  'onBehalfOfContentOwner' => array(
1156                    'location' => 'query',
1157                    'type' => 'string',
1158                  ),
1159                  'onBehalfOfContentOwnerChannel' => array(
1160                    'location' => 'query',
1161                    'type' => 'string',
1162                  ),
1163                  'channelId' => array(
1164                    'location' => 'query',
1165                    'type' => 'string',
1166                  ),
1167                  'mine' => array(
1168                    'location' => 'query',
1169                    'type' => 'boolean',
1170                  ),
1171                  'maxResults' => array(
1172                    'location' => 'query',
1173                    'type' => 'integer',
1174                  ),
1175                  'pageToken' => array(
1176                    'location' => 'query',
1177                    'type' => 'string',
1178                  ),
1179                  'hl' => array(
1180                    'location' => 'query',
1181                    'type' => 'string',
1182                  ),
1183                  'id' => array(
1184                    'location' => 'query',
1185                    'type' => 'string',
1186                  ),
1187                ),
1188              ),'update' => array(
1189                'path' => 'playlists',
1190                'httpMethod' => 'PUT',
1191                'parameters' => array(
1192                  'part' => array(
1193                    'location' => 'query',
1194                    'type' => 'string',
1195                    'required' => true,
1196                  ),
1197                  'onBehalfOfContentOwner' => array(
1198                    'location' => 'query',
1199                    'type' => 'string',
1200                  ),
1201                ),
1202              ),
1203            )
1204          )
1205      );
1206      $this->search = new Google_Service_YouTube_Search_Resource(
1207          $this,
1208          $this->serviceName,
1209          'search',
1210          array(
1211            'methods' => array(
1212              'list' => array(
1213                'path' => 'search',
1214                'httpMethod' => 'GET',
1215                'parameters' => array(
1216                  'part' => array(
1217                    'location' => 'query',
1218                    'type' => 'string',
1219                    'required' => true,
1220                  ),
1221                  'eventType' => array(
1222                    'location' => 'query',
1223                    'type' => 'string',
1224                  ),
1225                  'channelId' => array(
1226                    'location' => 'query',
1227                    'type' => 'string',
1228                  ),
1229                  'forDeveloper' => array(
1230                    'location' => 'query',
1231                    'type' => 'boolean',
1232                  ),
1233                  'videoSyndicated' => array(
1234                    'location' => 'query',
1235                    'type' => 'string',
1236                  ),
1237                  'channelType' => array(
1238                    'location' => 'query',
1239                    'type' => 'string',
1240                  ),
1241                  'videoCaption' => array(
1242                    'location' => 'query',
1243                    'type' => 'string',
1244                  ),
1245                  'publishedAfter' => array(
1246                    'location' => 'query',
1247                    'type' => 'string',
1248                  ),
1249                  'onBehalfOfContentOwner' => array(
1250                    'location' => 'query',
1251                    'type' => 'string',
1252                  ),
1253                  'pageToken' => array(
1254                    'location' => 'query',
1255                    'type' => 'string',
1256                  ),
1257                  'forContentOwner' => array(
1258                    'location' => 'query',
1259                    'type' => 'boolean',
1260                  ),
1261                  'regionCode' => array(
1262                    'location' => 'query',
1263                    'type' => 'string',
1264                  ),
1265                  'location' => array(
1266                    'location' => 'query',
1267                    'type' => 'string',
1268                  ),
1269                  'locationRadius' => array(
1270                    'location' => 'query',
1271                    'type' => 'string',
1272                  ),
1273                  'videoType' => array(
1274                    'location' => 'query',
1275                    'type' => 'string',
1276                  ),
1277                  'type' => array(
1278                    'location' => 'query',
1279                    'type' => 'string',
1280                  ),
1281                  'topicId' => array(
1282                    'location' => 'query',
1283                    'type' => 'string',
1284                  ),
1285                  'publishedBefore' => array(
1286                    'location' => 'query',
1287                    'type' => 'string',
1288                  ),
1289                  'videoDimension' => array(
1290                    'location' => 'query',
1291                    'type' => 'string',
1292                  ),
1293                  'videoLicense' => array(
1294                    'location' => 'query',
1295                    'type' => 'string',
1296                  ),
1297                  'maxResults' => array(
1298                    'location' => 'query',
1299                    'type' => 'integer',
1300                  ),
1301                  'relatedToVideoId' => array(
1302                    'location' => 'query',
1303                    'type' => 'string',
1304                  ),
1305                  'videoDefinition' => array(
1306                    'location' => 'query',
1307                    'type' => 'string',
1308                  ),
1309                  'videoDuration' => array(
1310                    'location' => 'query',
1311                    'type' => 'string',
1312                  ),
1313                  'relevanceLanguage' => array(
1314                    'location' => 'query',
1315                    'type' => 'string',
1316                  ),
1317                  'forMine' => array(
1318                    'location' => 'query',
1319                    'type' => 'boolean',
1320                  ),
1321                  'q' => array(
1322                    'location' => 'query',
1323                    'type' => 'string',
1324                  ),
1325                  'safeSearch' => array(
1326                    'location' => 'query',
1327                    'type' => 'string',
1328                  ),
1329                  'videoEmbeddable' => array(
1330                    'location' => 'query',
1331                    'type' => 'string',
1332                  ),
1333                  'videoCategoryId' => array(
1334                    'location' => 'query',
1335                    'type' => 'string',
1336                  ),
1337                  'order' => array(
1338                    'location' => 'query',
1339                    'type' => 'string',
1340                  ),
1341                ),
1342              ),
1343            )
1344          )
1345      );
1346      $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource(
1347          $this,
1348          $this->serviceName,
1349          'subscriptions',
1350          array(
1351            'methods' => array(
1352              'delete' => array(
1353                'path' => 'subscriptions',
1354                'httpMethod' => 'DELETE',
1355                'parameters' => array(
1356                  'id' => array(
1357                    'location' => 'query',
1358                    'type' => 'string',
1359                    'required' => true,
1360                  ),
1361                ),
1362              ),'insert' => array(
1363                'path' => 'subscriptions',
1364                'httpMethod' => 'POST',
1365                'parameters' => array(
1366                  'part' => array(
1367                    'location' => 'query',
1368                    'type' => 'string',
1369                    'required' => true,
1370                  ),
1371                ),
1372              ),'list' => array(
1373                'path' => 'subscriptions',
1374                'httpMethod' => 'GET',
1375                'parameters' => array(
1376                  'part' => array(
1377                    'location' => 'query',
1378                    'type' => 'string',
1379                    'required' => true,
1380                  ),
1381                  'onBehalfOfContentOwner' => array(
1382                    'location' => 'query',
1383                    'type' => 'string',
1384                  ),
1385                  'onBehalfOfContentOwnerChannel' => array(
1386                    'location' => 'query',
1387                    'type' => 'string',
1388                  ),
1389                  'channelId' => array(
1390                    'location' => 'query',
1391                    'type' => 'string',
1392                  ),
1393                  'mine' => array(
1394                    'location' => 'query',
1395                    'type' => 'boolean',
1396                  ),
1397                  'maxResults' => array(
1398                    'location' => 'query',
1399                    'type' => 'integer',
1400                  ),
1401                  'forChannelId' => array(
1402                    'location' => 'query',
1403                    'type' => 'string',
1404                  ),
1405                  'pageToken' => array(
1406                    'location' => 'query',
1407                    'type' => 'string',
1408                  ),
1409                  'mySubscribers' => array(
1410                    'location' => 'query',
1411                    'type' => 'boolean',
1412                  ),
1413                  'order' => array(
1414                    'location' => 'query',
1415                    'type' => 'string',
1416                  ),
1417                  'id' => array(
1418                    'location' => 'query',
1419                    'type' => 'string',
1420                  ),
1421                ),
1422              ),
1423            )
1424          )
1425      );
1426      $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource(
1427          $this,
1428          $this->serviceName,
1429          'thumbnails',
1430          array(
1431            'methods' => array(
1432              'set' => array(
1433                'path' => 'thumbnails/set',
1434                'httpMethod' => 'POST',
1435                'parameters' => array(
1436                  'videoId' => array(
1437                    'location' => 'query',
1438                    'type' => 'string',
1439                    'required' => true,
1440                  ),
1441                  'onBehalfOfContentOwner' => array(
1442                    'location' => 'query',
1443                    'type' => 'string',
1444                  ),
1445                ),
1446              ),
1447            )
1448          )
1449      );
1450      $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource(
1451          $this,
1452          $this->serviceName,
1453          'videoAbuseReportReasons',
1454          array(
1455            'methods' => array(
1456              'list' => array(
1457                'path' => 'videoAbuseReportReasons',
1458                'httpMethod' => 'GET',
1459                'parameters' => array(
1460                  'part' => array(
1461                    'location' => 'query',
1462                    'type' => 'string',
1463                    'required' => true,
1464                  ),
1465                  'hl' => array(
1466                    'location' => 'query',
1467                    'type' => 'string',
1468                  ),
1469                ),
1470              ),
1471            )
1472          )
1473      );
1474      $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource(
1475          $this,
1476          $this->serviceName,
1477          'videoCategories',
1478          array(
1479            'methods' => array(
1480              'list' => array(
1481                'path' => 'videoCategories',
1482                'httpMethod' => 'GET',
1483                'parameters' => array(
1484                  'part' => array(
1485                    'location' => 'query',
1486                    'type' => 'string',
1487                    'required' => true,
1488                  ),
1489                  'regionCode' => array(
1490                    'location' => 'query',
1491                    'type' => 'string',
1492                  ),
1493                  'id' => array(
1494                    'location' => 'query',
1495                    'type' => 'string',
1496                  ),
1497                  'hl' => array(
1498                    'location' => 'query',
1499                    'type' => 'string',
1500                  ),
1501                ),
1502              ),
1503            )
1504          )
1505      );
1506      $this->videos = new Google_Service_YouTube_Videos_Resource(
1507          $this,
1508          $this->serviceName,
1509          'videos',
1510          array(
1511            'methods' => array(
1512              'delete' => array(
1513                'path' => 'videos',
1514                'httpMethod' => 'DELETE',
1515                'parameters' => array(
1516                  'id' => array(
1517                    'location' => 'query',
1518                    'type' => 'string',
1519                    'required' => true,
1520                  ),
1521                  'onBehalfOfContentOwner' => array(
1522                    'location' => 'query',
1523                    'type' => 'string',
1524                  ),
1525                ),
1526              ),'getRating' => array(
1527                'path' => 'videos/getRating',
1528                'httpMethod' => 'GET',
1529                'parameters' => array(
1530                  'id' => array(
1531                    'location' => 'query',
1532                    'type' => 'string',
1533                    'required' => true,
1534                  ),
1535                  'onBehalfOfContentOwner' => array(
1536                    'location' => 'query',
1537                    'type' => 'string',
1538                  ),
1539                ),
1540              ),'insert' => array(
1541                'path' => 'videos',
1542                'httpMethod' => 'POST',
1543                'parameters' => array(
1544                  'part' => array(
1545                    'location' => 'query',
1546                    'type' => 'string',
1547                    'required' => true,
1548                  ),
1549                  'onBehalfOfContentOwner' => array(
1550                    'location' => 'query',
1551                    'type' => 'string',
1552                  ),
1553                  'stabilize' => array(
1554                    'location' => 'query',
1555                    'type' => 'boolean',
1556                  ),
1557                  'onBehalfOfContentOwnerChannel' => array(
1558                    'location' => 'query',
1559                    'type' => 'string',
1560                  ),
1561                  'notifySubscribers' => array(
1562                    'location' => 'query',
1563                    'type' => 'boolean',
1564                  ),
1565                  'autoLevels' => array(
1566                    'location' => 'query',
1567                    'type' => 'boolean',
1568                  ),
1569                ),
1570              ),'list' => array(
1571                'path' => 'videos',
1572                'httpMethod' => 'GET',
1573                'parameters' => array(
1574                  'part' => array(
1575                    'location' => 'query',
1576                    'type' => 'string',
1577                    'required' => true,
1578                  ),
1579                  'onBehalfOfContentOwner' => array(
1580                    'location' => 'query',
1581                    'type' => 'string',
1582                  ),
1583                  'regionCode' => array(
1584                    'location' => 'query',
1585                    'type' => 'string',
1586                  ),
1587                  'locale' => array(
1588                    'location' => 'query',
1589                    'type' => 'string',
1590                  ),
1591                  'videoCategoryId' => array(
1592                    'location' => 'query',
1593                    'type' => 'string',
1594                  ),
1595                  'chart' => array(
1596                    'location' => 'query',
1597                    'type' => 'string',
1598                  ),
1599                  'maxResults' => array(
1600                    'location' => 'query',
1601                    'type' => 'integer',
1602                  ),
1603                  'pageToken' => array(
1604                    'location' => 'query',
1605                    'type' => 'string',
1606                  ),
1607                  'hl' => array(
1608                    'location' => 'query',
1609                    'type' => 'string',
1610                  ),
1611                  'myRating' => array(
1612                    'location' => 'query',
1613                    'type' => 'string',
1614                  ),
1615                  'id' => array(
1616                    'location' => 'query',
1617                    'type' => 'string',
1618                  ),
1619                ),
1620              ),'rate' => array(
1621                'path' => 'videos/rate',
1622                'httpMethod' => 'POST',
1623                'parameters' => array(
1624                  'id' => array(
1625                    'location' => 'query',
1626                    'type' => 'string',
1627                    'required' => true,
1628                  ),
1629                  'rating' => array(
1630                    'location' => 'query',
1631                    'type' => 'string',
1632                    'required' => true,
1633                  ),
1634                ),
1635              ),'reportAbuse' => array(
1636                'path' => 'videos/reportAbuse',
1637                'httpMethod' => 'POST',
1638                'parameters' => array(
1639                  'onBehalfOfContentOwner' => array(
1640                    'location' => 'query',
1641                    'type' => 'string',
1642                  ),
1643                ),
1644              ),'update' => array(
1645                'path' => 'videos',
1646                'httpMethod' => 'PUT',
1647                'parameters' => array(
1648                  'part' => array(
1649                    'location' => 'query',
1650                    'type' => 'string',
1651                    'required' => true,
1652                  ),
1653                  'onBehalfOfContentOwner' => array(
1654                    'location' => 'query',
1655                    'type' => 'string',
1656                  ),
1657                ),
1658              ),
1659            )
1660          )
1661      );
1662      $this->watermarks = new Google_Service_YouTube_Watermarks_Resource(
1663          $this,
1664          $this->serviceName,
1665          'watermarks',
1666          array(
1667            'methods' => array(
1668              'set' => array(
1669                'path' => 'watermarks/set',
1670                'httpMethod' => 'POST',
1671                'parameters' => array(
1672                  'channelId' => array(
1673                    'location' => 'query',
1674                    'type' => 'string',
1675                    'required' => true,
1676                  ),
1677                  'onBehalfOfContentOwner' => array(
1678                    'location' => 'query',
1679                    'type' => 'string',
1680                  ),
1681                ),
1682              ),'unset' => array(
1683                'path' => 'watermarks/unset',
1684                'httpMethod' => 'POST',
1685                'parameters' => array(
1686                  'channelId' => array(
1687                    'location' => 'query',
1688                    'type' => 'string',
1689                    'required' => true,
1690                  ),
1691                  'onBehalfOfContentOwner' => array(
1692                    'location' => 'query',
1693                    'type' => 'string',
1694                  ),
1695                ),
1696              ),
1697            )
1698          )
1699      );
1700    }
1701  }
1702  
1703  
1704  /**
1705   * The "activities" collection of methods.
1706   * Typical usage is:
1707   *  <code>
1708   *   $youtubeService = new Google_Service_YouTube(...);
1709   *   $activities = $youtubeService->activities;
1710   *  </code>
1711   */
1712  class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource
1713  {
1714  
1715    /**
1716     * Posts a bulletin for a specific channel. (The user submitting the request
1717     * must be authorized to act on the channel's behalf.)
1718     *
1719     * Note: Even though an activity resource can contain information about actions
1720     * like a user rating a video or marking a video as a favorite, you need to use
1721     * other API methods to generate those activity resources. For example, you
1722     * would use the API's videos.rate() method to rate a video and the
1723     * playlistItems.insert() method to mark a video as a favorite.
1724     * (activities.insert)
1725     *
1726     * @param string $part The part parameter serves two purposes in this operation.
1727     * It identifies the properties that the write operation will set as well as the
1728     * properties that the API response will include.
1729     * @param Google_Activity $postBody
1730     * @param array $optParams Optional parameters.
1731     * @return Google_Service_YouTube_Activity
1732     */
1733    public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array())
1734    {
1735      $params = array('part' => $part, 'postBody' => $postBody);
1736      $params = array_merge($params, $optParams);
1737      return $this->call('insert', array($params), "Google_Service_YouTube_Activity");
1738    }
1739  
1740    /**
1741     * Returns a list of channel activity events that match the request criteria.
1742     * For example, you can retrieve events associated with a particular channel,
1743     * events associated with the user's subscriptions and Google+ friends, or the
1744     * YouTube home page feed, which is customized for each user.
1745     * (activities.listActivities)
1746     *
1747     * @param string $part The part parameter specifies a comma-separated list of
1748     * one or more activity resource properties that the API response will include.
1749     *
1750     * If the parameter identifies a property that contains child properties, the
1751     * child properties will be included in the response. For example, in an
1752     * activity resource, the snippet property contains other properties that
1753     * identify the type of activity, a display title for the activity, and so
1754     * forth. If you set part=snippet, the API response will also contain all of
1755     * those nested properties.
1756     * @param array $optParams Optional parameters.
1757     *
1758     * @opt_param string regionCode The regionCode parameter instructs the API to
1759     * return results for the specified country. The parameter value is an ISO
1760     * 3166-1 alpha-2 country code. YouTube uses this value when the authorized
1761     * user's previous activity on YouTube does not provide enough information to
1762     * generate the activity feed.
1763     * @opt_param string publishedBefore The publishedBefore parameter specifies the
1764     * date and time before which an activity must have occurred for that activity
1765     * to be included in the API response. If the parameter value specifies a day,
1766     * but not a time, then any activities that occurred that day will be excluded
1767     * from the result set. The value is specified in ISO 8601 (YYYY-MM-
1768     * DDThh:mm:ss.sZ) format.
1769     * @opt_param string channelId The channelId parameter specifies a unique
1770     * YouTube channel ID. The API will then return a list of that channel's
1771     * activities.
1772     * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
1773     * the authenticated user's activities.
1774     * @opt_param string maxResults The maxResults parameter specifies the maximum
1775     * number of items that should be returned in the result set.
1776     * @opt_param string pageToken The pageToken parameter identifies a specific
1777     * page in the result set that should be returned. In an API response, the
1778     * nextPageToken and prevPageToken properties identify other pages that could be
1779     * retrieved.
1780     * @opt_param bool home Set this parameter's value to true to retrieve the
1781     * activity feed that displays on the YouTube home page for the currently
1782     * authenticated user.
1783     * @opt_param string publishedAfter The publishedAfter parameter specifies the
1784     * earliest date and time that an activity could have occurred for that activity
1785     * to be included in the API response. If the parameter value specifies a day,
1786     * but not a time, then any activities that occurred that day will be included
1787     * in the result set. The value is specified in ISO 8601 (YYYY-MM-
1788     * DDThh:mm:ss.sZ) format.
1789     * @return Google_Service_YouTube_ActivityListResponse
1790     */
1791    public function listActivities($part, $optParams = array())
1792    {
1793      $params = array('part' => $part);
1794      $params = array_merge($params, $optParams);
1795      return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse");
1796    }
1797  }
1798  
1799  /**
1800   * The "captions" collection of methods.
1801   * Typical usage is:
1802   *  <code>
1803   *   $youtubeService = new Google_Service_YouTube(...);
1804   *   $captions = $youtubeService->captions;
1805   *  </code>
1806   */
1807  class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource
1808  {
1809  
1810    /**
1811     * Deletes a specified caption track. (captions.delete)
1812     *
1813     * @param string $id The id parameter identifies the caption track that is being
1814     * deleted. The value is a caption track ID as identified by the id property in
1815     * a caption resource.
1816     * @param array $optParams Optional parameters.
1817     *
1818     * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
1819     * request is be on behalf of
1820     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
1821     * exclusively for YouTube content partners.
1822     *
1823     * The onBehalfOfContentOwner parameter indicates that the request's
1824     * authorization credentials identify a YouTube CMS user who is acting on behalf
1825     * of the content owner specified in the parameter value. This parameter is
1826     * intended for YouTube content partners that own and manage many different
1827     * YouTube channels. It allows content owners to authenticate once and get
1828     * access to all their video and channel data, without having to provide
1829     * authentication credentials for each individual channel. The actual CMS
1830     * account that the user authenticates with must be linked to the specified
1831     * YouTube content owner.
1832     */
1833    public function delete($id, $optParams = array())
1834    {
1835      $params = array('id' => $id);
1836      $params = array_merge($params, $optParams);
1837      return $this->call('delete', array($params));
1838    }
1839  
1840    /**
1841     * Downloads a caption track. The caption track is returned in its original
1842     * format unless the request specifies a value for the tfmt parameter and in its
1843     * original language unless the request specifies a value for the tlang
1844     * parameter. (captions.download)
1845     *
1846     * @param string $id The id parameter identifies the caption track that is being
1847     * retrieved. The value is a caption track ID as identified by the id property
1848     * in a caption resource.
1849     * @param array $optParams Optional parameters.
1850     *
1851     * @opt_param string tfmt The tfmt parameter specifies that the caption track
1852     * should be returned in a specific format. If the parameter is not included in
1853     * the request, the track is returned in its original format.
1854     * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
1855     * request is be on behalf of
1856     * @opt_param string tlang The tlang parameter specifies that the API response
1857     * should return a translation of the specified caption track. The parameter
1858     * value is an ISO 639-1 two-letter language code that identifies the desired
1859     * caption language. The translation is generated by using machine translation,
1860     * such as Google Translate.
1861     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
1862     * exclusively for YouTube content partners.
1863     *
1864     * The onBehalfOfContentOwner parameter indicates that the request's
1865     * authorization credentials identify a YouTube CMS user who is acting on behalf
1866     * of the content owner specified in the parameter value. This parameter is
1867     * intended for YouTube content partners that own and manage many different
1868     * YouTube channels. It allows content owners to authenticate once and get
1869     * access to all their video and channel data, without having to provide
1870     * authentication credentials for each individual channel. The actual CMS
1871     * account that the user authenticates with must be linked to the specified
1872     * YouTube content owner.
1873     */
1874    public function download($id, $optParams = array())
1875    {
1876      $params = array('id' => $id);
1877      $params = array_merge($params, $optParams);
1878      return $this->call('download', array($params));
1879    }
1880  
1881    /**
1882     * Uploads a caption track. (captions.insert)
1883     *
1884     * @param string $part The part parameter specifies the caption resource parts
1885     * that the API response will include. Set the parameter value to snippet.
1886     * @param Google_Caption $postBody
1887     * @param array $optParams Optional parameters.
1888     *
1889     * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
1890     * request is be on behalf of
1891     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
1892     * exclusively for YouTube content partners.
1893     *
1894     * The onBehalfOfContentOwner parameter indicates that the request's
1895     * authorization credentials identify a YouTube CMS user who is acting on behalf
1896     * of the content owner specified in the parameter value. This parameter is
1897     * intended for YouTube content partners that own and manage many different
1898     * YouTube channels. It allows content owners to authenticate once and get
1899     * access to all their video and channel data, without having to provide
1900     * authentication credentials for each individual channel. The actual CMS
1901     * account that the user authenticates with must be linked to the specified
1902     * YouTube content owner.
1903     * @opt_param bool sync The sync parameter indicates whether YouTube should
1904     * automatically synchronize the caption file with the audio track of the video.
1905     * If you set the value to true, YouTube will disregard any time codes that are
1906     * in the uploaded caption file and generate new time codes for the captions.
1907     *
1908     * You should set the sync parameter to true if you are uploading a transcript,
1909     * which has no time codes, or if you suspect the time codes in your file are
1910     * incorrect and want YouTube to try to fix them.
1911     * @return Google_Service_YouTube_Caption
1912     */
1913    public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
1914    {
1915      $params = array('part' => $part, 'postBody' => $postBody);
1916      $params = array_merge($params, $optParams);
1917      return $this->call('insert', array($params), "Google_Service_YouTube_Caption");
1918    }
1919  
1920    /**
1921     * Returns a list of caption tracks that are associated with a specified video.
1922     * Note that the API response does not contain the actual captions and that the
1923     * captions.download method provides the ability to retrieve a caption track.
1924     * (captions.listCaptions)
1925     *
1926     * @param string $part The part parameter specifies a comma-separated list of
1927     * one or more caption resource parts that the API response will include. The
1928     * part names that you can include in the parameter value are id and snippet.
1929     * @param string $videoId The videoId parameter specifies the YouTube video ID
1930     * of the video for which the API should return caption tracks.
1931     * @param array $optParams Optional parameters.
1932     *
1933     * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
1934     * request is on behalf of.
1935     * @opt_param string id The id parameter specifies a comma-separated list of IDs
1936     * that identify the caption resources that should be retrieved. Each ID must
1937     * identify a caption track associated with the specified video.
1938     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
1939     * exclusively for YouTube content partners.
1940     *
1941     * The onBehalfOfContentOwner parameter indicates that the request's
1942     * authorization credentials identify a YouTube CMS user who is acting on behalf
1943     * of the content owner specified in the parameter value. This parameter is
1944     * intended for YouTube content partners that own and manage many different
1945     * YouTube channels. It allows content owners to authenticate once and get
1946     * access to all their video and channel data, without having to provide
1947     * authentication credentials for each individual channel. The actual CMS
1948     * account that the user authenticates with must be linked to the specified
1949     * YouTube content owner.
1950     * @return Google_Service_YouTube_CaptionListResponse
1951     */
1952    public function listCaptions($part, $videoId, $optParams = array())
1953    {
1954      $params = array('part' => $part, 'videoId' => $videoId);
1955      $params = array_merge($params, $optParams);
1956      return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse");
1957    }
1958  
1959    /**
1960     * Updates a caption track. When updating a caption track, you can change the
1961     * track's draft status, upload a new caption file for the track, or both.
1962     * (captions.update)
1963     *
1964     * @param string $part The part parameter serves two purposes in this operation.
1965     * It identifies the properties that the write operation will set as well as the
1966     * properties that the API response will include. Set the property value to
1967     * snippet if you are updating the track's draft status. Otherwise, set the
1968     * property value to id.
1969     * @param Google_Caption $postBody
1970     * @param array $optParams Optional parameters.
1971     *
1972     * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
1973     * request is be on behalf of
1974     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
1975     * exclusively for YouTube content partners.
1976     *
1977     * The onBehalfOfContentOwner parameter indicates that the request's
1978     * authorization credentials identify a YouTube CMS user who is acting on behalf
1979     * of the content owner specified in the parameter value. This parameter is
1980     * intended for YouTube content partners that own and manage many different
1981     * YouTube channels. It allows content owners to authenticate once and get
1982     * access to all their video and channel data, without having to provide
1983     * authentication credentials for each individual channel. The actual CMS
1984     * account that the user authenticates with must be linked to the specified
1985     * YouTube content owner.
1986     * @opt_param bool sync Note: The API server only processes the parameter value
1987     * if the request contains an updated caption file.
1988     *
1989     * The sync parameter indicates whether YouTube should automatically synchronize
1990     * the caption file with the audio track of the video. If you set the value to
1991     * true, YouTube will automatically synchronize the caption track with the audio
1992     * track.
1993     * @return Google_Service_YouTube_Caption
1994     */
1995    public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
1996    {
1997      $params = array('part' => $part, 'postBody' => $postBody);
1998      $params = array_merge($params, $optParams);
1999      return $this->call('update', array($params), "Google_Service_YouTube_Caption");
2000    }
2001  }
2002  
2003  /**
2004   * The "channelBanners" collection of methods.
2005   * Typical usage is:
2006   *  <code>
2007   *   $youtubeService = new Google_Service_YouTube(...);
2008   *   $channelBanners = $youtubeService->channelBanners;
2009   *  </code>
2010   */
2011  class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource
2012  {
2013  
2014    /**
2015     * Uploads a channel banner image to YouTube. This method represents the first
2016     * two steps in a three-step process to update the banner image for a channel:
2017     *
2018     * - Call the channelBanners.insert method to upload the binary image data to
2019     * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192
2020     * pixels. - Extract the url property's value from the response that the API
2021     * returns for step 1. - Call the channels.update method to update the channel's
2022     * branding settings. Set the brandingSettings.image.bannerExternalUrl
2023     * property's value to the URL obtained in step 2. (channelBanners.insert)
2024     *
2025     * @param Google_ChannelBannerResource $postBody
2026     * @param array $optParams Optional parameters.
2027     *
2028     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2029     * exclusively for YouTube content partners.
2030     *
2031     * The onBehalfOfContentOwner parameter indicates that the request's
2032     * authorization credentials identify a YouTube CMS user who is acting on behalf
2033     * of the content owner specified in the parameter value. This parameter is
2034     * intended for YouTube content partners that own and manage many different
2035     * YouTube channels. It allows content owners to authenticate once and get
2036     * access to all their video and channel data, without having to provide
2037     * authentication credentials for each individual channel. The CMS account that
2038     * the user authenticates with must be linked to the specified YouTube content
2039     * owner.
2040     * @return Google_Service_YouTube_ChannelBannerResource
2041     */
2042    public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array())
2043    {
2044      $params = array('postBody' => $postBody);
2045      $params = array_merge($params, $optParams);
2046      return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource");
2047    }
2048  }
2049  
2050  /**
2051   * The "channelSections" collection of methods.
2052   * Typical usage is:
2053   *  <code>
2054   *   $youtubeService = new Google_Service_YouTube(...);
2055   *   $channelSections = $youtubeService->channelSections;
2056   *  </code>
2057   */
2058  class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource
2059  {
2060  
2061    /**
2062     * Deletes a channelSection. (channelSections.delete)
2063     *
2064     * @param string $id The id parameter specifies the YouTube channelSection ID
2065     * for the resource that is being deleted. In a channelSection resource, the id
2066     * property specifies the YouTube channelSection ID.
2067     * @param array $optParams Optional parameters.
2068     *
2069     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2070     * exclusively for YouTube content partners.
2071     *
2072     * The onBehalfOfContentOwner parameter indicates that the request's
2073     * authorization credentials identify a YouTube CMS user who is acting on behalf
2074     * of the content owner specified in the parameter value. This parameter is
2075     * intended for YouTube content partners that own and manage many different
2076     * YouTube channels. It allows content owners to authenticate once and get
2077     * access to all their video and channel data, without having to provide
2078     * authentication credentials for each individual channel. The CMS account that
2079     * the user authenticates with must be linked to the specified YouTube content
2080     * owner.
2081     */
2082    public function delete($id, $optParams = array())
2083    {
2084      $params = array('id' => $id);
2085      $params = array_merge($params, $optParams);
2086      return $this->call('delete', array($params));
2087    }
2088  
2089    /**
2090     * Adds a channelSection for the authenticated user's channel.
2091     * (channelSections.insert)
2092     *
2093     * @param string $part The part parameter serves two purposes in this operation.
2094     * It identifies the properties that the write operation will set as well as the
2095     * properties that the API response will include.
2096     *
2097     * The part names that you can include in the parameter value are snippet and
2098     * contentDetails.
2099     * @param Google_ChannelSection $postBody
2100     * @param array $optParams Optional parameters.
2101     *
2102     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2103     * used in a properly authorized request. Note: This parameter is intended
2104     * exclusively for YouTube content partners.
2105     *
2106     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2107     * of the channel to which a video is being added. This parameter is required
2108     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2109     * and it can only be used in conjunction with that parameter. In addition, the
2110     * request must be authorized using a CMS account that is linked to the content
2111     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2112     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2113     * be linked to the content owner that the onBehalfOfContentOwner parameter
2114     * specifies.
2115     *
2116     * This parameter is intended for YouTube content partners that own and manage
2117     * many different YouTube channels. It allows content owners to authenticate
2118     * once and perform actions on behalf of the channel specified in the parameter
2119     * value, without having to provide authentication credentials for each separate
2120     * channel.
2121     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2122     * exclusively for YouTube content partners.
2123     *
2124     * The onBehalfOfContentOwner parameter indicates that the request's
2125     * authorization credentials identify a YouTube CMS user who is acting on behalf
2126     * of the content owner specified in the parameter value. This parameter is
2127     * intended for YouTube content partners that own and manage many different
2128     * YouTube channels. It allows content owners to authenticate once and get
2129     * access to all their video and channel data, without having to provide
2130     * authentication credentials for each individual channel. The CMS account that
2131     * the user authenticates with must be linked to the specified YouTube content
2132     * owner.
2133     * @return Google_Service_YouTube_ChannelSection
2134     */
2135    public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array())
2136    {
2137      $params = array('part' => $part, 'postBody' => $postBody);
2138      $params = array_merge($params, $optParams);
2139      return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection");
2140    }
2141  
2142    /**
2143     * Returns channelSection resources that match the API request criteria.
2144     * (channelSections.listChannelSections)
2145     *
2146     * @param string $part The part parameter specifies a comma-separated list of
2147     * one or more channelSection resource properties that the API response will
2148     * include. The part names that you can include in the parameter value are id,
2149     * snippet, and contentDetails.
2150     *
2151     * If the parameter identifies a property that contains child properties, the
2152     * child properties will be included in the response. For example, in a
2153     * channelSection resource, the snippet property contains other properties, such
2154     * as a display title for the channelSection. If you set part=snippet, the API
2155     * response will also contain all of those nested properties.
2156     * @param array $optParams Optional parameters.
2157     *
2158     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2159     * exclusively for YouTube content partners.
2160     *
2161     * The onBehalfOfContentOwner parameter indicates that the request's
2162     * authorization credentials identify a YouTube CMS user who is acting on behalf
2163     * of the content owner specified in the parameter value. This parameter is
2164     * intended for YouTube content partners that own and manage many different
2165     * YouTube channels. It allows content owners to authenticate once and get
2166     * access to all their video and channel data, without having to provide
2167     * authentication credentials for each individual channel. The CMS account that
2168     * the user authenticates with must be linked to the specified YouTube content
2169     * owner.
2170     * @opt_param string channelId The channelId parameter specifies a YouTube
2171     * channel ID. The API will only return that channel's channelSections.
2172     * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
2173     * the authenticated user's channelSections.
2174     * @opt_param string hl The hl parameter indicates that the snippet.localized
2175     * property values in the returned channelSection resources should be in the
2176     * specified language if localized values for that language are available. For
2177     * example, if the API request specifies hl=de, the snippet.localized properties
2178     * in the API response will contain German titles if German titles are
2179     * available. Channel owners can provide localized channel section titles using
2180     * either the channelSections.insert or channelSections.update method.
2181     * @opt_param string id The id parameter specifies a comma-separated list of the
2182     * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In
2183     * a channelSection resource, the id property specifies the YouTube
2184     * channelSection ID.
2185     * @return Google_Service_YouTube_ChannelSectionListResponse
2186     */
2187    public function listChannelSections($part, $optParams = array())
2188    {
2189      $params = array('part' => $part);
2190      $params = array_merge($params, $optParams);
2191      return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse");
2192    }
2193  
2194    /**
2195     * Update a channelSection. (channelSections.update)
2196     *
2197     * @param string $part The part parameter serves two purposes in this operation.
2198     * It identifies the properties that the write operation will set as well as the
2199     * properties that the API response will include.
2200     *
2201     * The part names that you can include in the parameter value are snippet and
2202     * contentDetails.
2203     * @param Google_ChannelSection $postBody
2204     * @param array $optParams Optional parameters.
2205     *
2206     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2207     * exclusively for YouTube content partners.
2208     *
2209     * The onBehalfOfContentOwner parameter indicates that the request's
2210     * authorization credentials identify a YouTube CMS user who is acting on behalf
2211     * of the content owner specified in the parameter value. This parameter is
2212     * intended for YouTube content partners that own and manage many different
2213     * YouTube channels. It allows content owners to authenticate once and get
2214     * access to all their video and channel data, without having to provide
2215     * authentication credentials for each individual channel. The CMS account that
2216     * the user authenticates with must be linked to the specified YouTube content
2217     * owner.
2218     * @return Google_Service_YouTube_ChannelSection
2219     */
2220    public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array())
2221    {
2222      $params = array('part' => $part, 'postBody' => $postBody);
2223      $params = array_merge($params, $optParams);
2224      return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection");
2225    }
2226  }
2227  
2228  /**
2229   * The "channels" collection of methods.
2230   * Typical usage is:
2231   *  <code>
2232   *   $youtubeService = new Google_Service_YouTube(...);
2233   *   $channels = $youtubeService->channels;
2234   *  </code>
2235   */
2236  class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource
2237  {
2238  
2239    /**
2240     * Returns a collection of zero or more channel resources that match the request
2241     * criteria. (channels.listChannels)
2242     *
2243     * @param string $part The part parameter specifies a comma-separated list of
2244     * one or more channel resource properties that the API response will include.
2245     *
2246     * If the parameter identifies a property that contains child properties, the
2247     * child properties will be included in the response. For example, in a channel
2248     * resource, the contentDetails property contains other properties, such as the
2249     * uploads properties. As such, if you set part=contentDetails, the API response
2250     * will also contain all of those nested properties.
2251     * @param array $optParams Optional parameters.
2252     *
2253     * @opt_param bool managedByMe Note: This parameter is intended exclusively for
2254     * YouTube content partners.
2255     *
2256     * Set this parameter's value to true to instruct the API to only return
2257     * channels managed by the content owner that the onBehalfOfContentOwner
2258     * parameter specifies. The user must be authenticated as a CMS account linked
2259     * to the specified content owner and onBehalfOfContentOwner must be provided.
2260     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2261     * exclusively for YouTube content partners.
2262     *
2263     * The onBehalfOfContentOwner parameter indicates that the request's
2264     * authorization credentials identify a YouTube CMS user who is acting on behalf
2265     * of the content owner specified in the parameter value. This parameter is
2266     * intended for YouTube content partners that own and manage many different
2267     * YouTube channels. It allows content owners to authenticate once and get
2268     * access to all their video and channel data, without having to provide
2269     * authentication credentials for each individual channel. The CMS account that
2270     * the user authenticates with must be linked to the specified YouTube content
2271     * owner.
2272     * @opt_param string forUsername The forUsername parameter specifies a YouTube
2273     * username, thereby requesting the channel associated with that username.
2274     * @opt_param bool mine Set this parameter's value to true to instruct the API
2275     * to only return channels owned by the authenticated user.
2276     * @opt_param string maxResults The maxResults parameter specifies the maximum
2277     * number of items that should be returned in the result set.
2278     * @opt_param string id The id parameter specifies a comma-separated list of the
2279     * YouTube channel ID(s) for the resource(s) that are being retrieved. In a
2280     * channel resource, the id property specifies the channel's YouTube channel ID.
2281     * @opt_param string pageToken The pageToken parameter identifies a specific
2282     * page in the result set that should be returned. In an API response, the
2283     * nextPageToken and prevPageToken properties identify other pages that could be
2284     * retrieved.
2285     * @opt_param bool mySubscribers Use the subscriptions.list method and its
2286     * mySubscribers parameter to retrieve a list of subscribers to the
2287     * authenticated user's channel.
2288     * @opt_param string hl The hl parameter should be used for filter out the
2289     * properties that are not in the given language. Used for the brandingSettings
2290     * part.
2291     * @opt_param string categoryId The categoryId parameter specifies a YouTube
2292     * guide category, thereby requesting YouTube channels associated with that
2293     * category.
2294     * @return Google_Service_YouTube_ChannelListResponse
2295     */
2296    public function listChannels($part, $optParams = array())
2297    {
2298      $params = array('part' => $part);
2299      $params = array_merge($params, $optParams);
2300      return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse");
2301    }
2302  
2303    /**
2304     * Updates a channel's metadata. Note that this method currently only supports
2305     * updates to the channel resource's brandingSettings and invideoPromotion
2306     * objects and their child properties. (channels.update)
2307     *
2308     * @param string $part The part parameter serves two purposes in this operation.
2309     * It identifies the properties that the write operation will set as well as the
2310     * properties that the API response will include.
2311     *
2312     * The API currently only allows the parameter value to be set to either
2313     * brandingSettings or invideoPromotion. (You cannot update both of those parts
2314     * with a single request.)
2315     *
2316     * Note that this method overrides the existing values for all of the mutable
2317     * properties that are contained in any parts that the parameter value
2318     * specifies.
2319     * @param Google_Channel $postBody
2320     * @param array $optParams Optional parameters.
2321     *
2322     * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter
2323     * indicates that the authenticated user is acting on behalf of the content
2324     * owner specified in the parameter value. This parameter is intended for
2325     * YouTube content partners that own and manage many different YouTube channels.
2326     * It allows content owners to authenticate once and get access to all their
2327     * video and channel data, without having to provide authentication credentials
2328     * for each individual channel. The actual CMS account that the user
2329     * authenticates with needs to be linked to the specified YouTube content owner.
2330     * @return Google_Service_YouTube_Channel
2331     */
2332    public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array())
2333    {
2334      $params = array('part' => $part, 'postBody' => $postBody);
2335      $params = array_merge($params, $optParams);
2336      return $this->call('update', array($params), "Google_Service_YouTube_Channel");
2337    }
2338  }
2339  
2340  /**
2341   * The "commentThreads" collection of methods.
2342   * Typical usage is:
2343   *  <code>
2344   *   $youtubeService = new Google_Service_YouTube(...);
2345   *   $commentThreads = $youtubeService->commentThreads;
2346   *  </code>
2347   */
2348  class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource
2349  {
2350  
2351    /**
2352     * Creates a new top-level comment. To add a reply to an existing comment, use
2353     * the comments.insert method instead. (commentThreads.insert)
2354     *
2355     * @param string $part The part parameter identifies the properties that the API
2356     * response will include. Set the parameter value to snippet. The snippet part
2357     * has a quota cost of 2 units.
2358     * @param Google_CommentThread $postBody
2359     * @param array $optParams Optional parameters.
2360     * @return Google_Service_YouTube_CommentThread
2361     */
2362    public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
2363    {
2364      $params = array('part' => $part, 'postBody' => $postBody);
2365      $params = array_merge($params, $optParams);
2366      return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread");
2367    }
2368  
2369    /**
2370     * Returns a list of comment threads that match the API request parameters.
2371     * (commentThreads.listCommentThreads)
2372     *
2373     * @param string $part The part parameter specifies a comma-separated list of
2374     * one or more commentThread resource properties that the API response will
2375     * include.
2376     * @param array $optParams Optional parameters.
2377     *
2378     * @opt_param string searchTerms The searchTerms parameter instructs the API to
2379     * limit the API response to only contain comments that contain the specified
2380     * search terms.
2381     *
2382     * Note: This parameter is not supported for use in conjunction with the id
2383     * parameter.
2384     * @opt_param string allThreadsRelatedToChannelId The
2385     * allThreadsRelatedToChannelId parameter instructs the API to return all
2386     * comment threads associated with the specified channel. The response can
2387     * include comments about the channel or about the channel's videos.
2388     * @opt_param string channelId The channelId parameter instructs the API to
2389     * return comment threads containing comments about the specified channel. (The
2390     * response will not include comments left on videos that the channel uploaded.)
2391     * @opt_param string videoId The videoId parameter instructs the API to return
2392     * comment threads associated with the specified video ID.
2393     * @opt_param string maxResults The maxResults parameter specifies the maximum
2394     * number of items that should be returned in the result set.
2395     *
2396     * Note: This parameter is not supported for use in conjunction with the id
2397     * parameter.
2398     * @opt_param string id The id parameter specifies a comma-separated list of
2399     * comment thread IDs for the resources that should be retrieved.
2400     * @opt_param string pageToken The pageToken parameter identifies a specific
2401     * page in the result set that should be returned. In an API response, the
2402     * nextPageToken property identifies the next page of the result that can be
2403     * retrieved.
2404     *
2405     * Note: This parameter is not supported for use in conjunction with the id
2406     * parameter.
2407     * @opt_param string moderationStatus Set this parameter to limit the returned
2408     * comment threads to a particular moderation state.
2409     *
2410     * Note: This parameter is not supported for use in conjunction with the id
2411     * parameter.
2412     * @opt_param string textFormat Set this parameter's value to html or plainText
2413     * to instruct the API to return the comments left by users in html formatted or
2414     * in plain text.
2415     * @opt_param string order The order parameter specifies the order in which the
2416     * API response should list comment threads. Valid values are: - time - Comment
2417     * threads are ordered by time. This is the default behavior. - relevance -
2418     * Comment threads are ordered by relevance.Note: This parameter is not
2419     * supported for use in conjunction with the id parameter.
2420     * @return Google_Service_YouTube_CommentThreadListResponse
2421     */
2422    public function listCommentThreads($part, $optParams = array())
2423    {
2424      $params = array('part' => $part);
2425      $params = array_merge($params, $optParams);
2426      return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse");
2427    }
2428  
2429    /**
2430     * Modifies the top-level comment in a comment thread. (commentThreads.update)
2431     *
2432     * @param string $part The part parameter specifies a comma-separated list of
2433     * commentThread resource properties that the API response will include. You
2434     * must at least include the snippet part in the parameter value since that part
2435     * contains all of the properties that the API request can update.
2436     * @param Google_CommentThread $postBody
2437     * @param array $optParams Optional parameters.
2438     * @return Google_Service_YouTube_CommentThread
2439     */
2440    public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
2441    {
2442      $params = array('part' => $part, 'postBody' => $postBody);
2443      $params = array_merge($params, $optParams);
2444      return $this->call('update', array($params), "Google_Service_YouTube_CommentThread");
2445    }
2446  }
2447  
2448  /**
2449   * The "comments" collection of methods.
2450   * Typical usage is:
2451   *  <code>
2452   *   $youtubeService = new Google_Service_YouTube(...);
2453   *   $comments = $youtubeService->comments;
2454   *  </code>
2455   */
2456  class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource
2457  {
2458  
2459    /**
2460     * Deletes a comment. (comments.delete)
2461     *
2462     * @param string $id The id parameter specifies the comment ID for the resource
2463     * that is being deleted.
2464     * @param array $optParams Optional parameters.
2465     */
2466    public function delete($id, $optParams = array())
2467    {
2468      $params = array('id' => $id);
2469      $params = array_merge($params, $optParams);
2470      return $this->call('delete', array($params));
2471    }
2472  
2473    /**
2474     * Creates a reply to an existing comment. Note: To create a top-level comment,
2475     * use the commentThreads.insert method. (comments.insert)
2476     *
2477     * @param string $part The part parameter identifies the properties that the API
2478     * response will include. Set the parameter value to snippet. The snippet part
2479     * has a quota cost of 2 units.
2480     * @param Google_Comment $postBody
2481     * @param array $optParams Optional parameters.
2482     * @return Google_Service_YouTube_Comment
2483     */
2484    public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
2485    {
2486      $params = array('part' => $part, 'postBody' => $postBody);
2487      $params = array_merge($params, $optParams);
2488      return $this->call('insert', array($params), "Google_Service_YouTube_Comment");
2489    }
2490  
2491    /**
2492     * Returns a list of comments that match the API request parameters.
2493     * (comments.listComments)
2494     *
2495     * @param string $part The part parameter specifies a comma-separated list of
2496     * one or more comment resource properties that the API response will include.
2497     * @param array $optParams Optional parameters.
2498     *
2499     * @opt_param string maxResults The maxResults parameter specifies the maximum
2500     * number of items that should be returned in the result set.
2501     *
2502     * Note: This parameter is not supported for use in conjunction with the id
2503     * parameter.
2504     * @opt_param string pageToken The pageToken parameter identifies a specific
2505     * page in the result set that should be returned. In an API response, the
2506     * nextPageToken property identifies the next page of the result that can be
2507     * retrieved.
2508     *
2509     * Note: This parameter is not supported for use in conjunction with the id
2510     * parameter.
2511     * @opt_param string parentId The parentId parameter specifies the ID of the
2512     * comment for which replies should be retrieved.
2513     *
2514     * Note: YouTube currently supports replies only for top-level comments.
2515     * However, replies to replies may be supported in the future.
2516     * @opt_param string textFormat This parameter indicates whether the API should
2517     * return comments formatted as HTML or as plain text.
2518     * @opt_param string id The id parameter specifies a comma-separated list of
2519     * comment IDs for the resources that are being retrieved. In a comment
2520     * resource, the id property specifies the comment's ID.
2521     * @return Google_Service_YouTube_CommentListResponse
2522     */
2523    public function listComments($part, $optParams = array())
2524    {
2525      $params = array('part' => $part);
2526      $params = array_merge($params, $optParams);
2527      return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse");
2528    }
2529  
2530    /**
2531     * Expresses the caller's opinion that one or more comments should be flagged as
2532     * spam. (comments.markAsSpam)
2533     *
2534     * @param string $id The id parameter specifies a comma-separated list of IDs of
2535     * comments that the caller believes should be classified as spam.
2536     * @param array $optParams Optional parameters.
2537     */
2538    public function markAsSpam($id, $optParams = array())
2539    {
2540      $params = array('id' => $id);
2541      $params = array_merge($params, $optParams);
2542      return $this->call('markAsSpam', array($params));
2543    }
2544  
2545    /**
2546     * Sets the moderation status of one or more comments. The API request must be
2547     * authorized by the owner of the channel or video associated with the comments.
2548     * (comments.setModerationStatus)
2549     *
2550     * @param string $id The id parameter specifies a comma-separated list of IDs
2551     * that identify the comments for which you are updating the moderation status.
2552     * @param string $moderationStatus Identifies the new moderation status of the
2553     * specified comments.
2554     * @param array $optParams Optional parameters.
2555     *
2556     * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you
2557     * want to automatically reject any additional comments written by the comment's
2558     * author. Set the parameter value to true to ban the author.
2559     *
2560     * Note: This parameter is only valid if the moderationStatus parameter is also
2561     * set to rejected.
2562     */
2563    public function setModerationStatus($id, $moderationStatus, $optParams = array())
2564    {
2565      $params = array('id' => $id, 'moderationStatus' => $moderationStatus);
2566      $params = array_merge($params, $optParams);
2567      return $this->call('setModerationStatus', array($params));
2568    }
2569  
2570    /**
2571     * Modifies a comment. (comments.update)
2572     *
2573     * @param string $part The part parameter identifies the properties that the API
2574     * response will include. You must at least include the snippet part in the
2575     * parameter value since that part contains all of the properties that the API
2576     * request can update.
2577     * @param Google_Comment $postBody
2578     * @param array $optParams Optional parameters.
2579     * @return Google_Service_YouTube_Comment
2580     */
2581    public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
2582    {
2583      $params = array('part' => $part, 'postBody' => $postBody);
2584      $params = array_merge($params, $optParams);
2585      return $this->call('update', array($params), "Google_Service_YouTube_Comment");
2586    }
2587  }
2588  
2589  /**
2590   * The "guideCategories" collection of methods.
2591   * Typical usage is:
2592   *  <code>
2593   *   $youtubeService = new Google_Service_YouTube(...);
2594   *   $guideCategories = $youtubeService->guideCategories;
2595   *  </code>
2596   */
2597  class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource
2598  {
2599  
2600    /**
2601     * Returns a list of categories that can be associated with YouTube channels.
2602     * (guideCategories.listGuideCategories)
2603     *
2604     * @param string $part The part parameter specifies the guideCategory resource
2605     * properties that the API response will include. Set the parameter value to
2606     * snippet.
2607     * @param array $optParams Optional parameters.
2608     *
2609     * @opt_param string regionCode The regionCode parameter instructs the API to
2610     * return the list of guide categories available in the specified country. The
2611     * parameter value is an ISO 3166-1 alpha-2 country code.
2612     * @opt_param string id The id parameter specifies a comma-separated list of the
2613     * YouTube channel category ID(s) for the resource(s) that are being retrieved.
2614     * In a guideCategory resource, the id property specifies the YouTube channel
2615     * category ID.
2616     * @opt_param string hl The hl parameter specifies the language that will be
2617     * used for text values in the API response.
2618     * @return Google_Service_YouTube_GuideCategoryListResponse
2619     */
2620    public function listGuideCategories($part, $optParams = array())
2621    {
2622      $params = array('part' => $part);
2623      $params = array_merge($params, $optParams);
2624      return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");
2625    }
2626  }
2627  
2628  /**
2629   * The "i18nLanguages" collection of methods.
2630   * Typical usage is:
2631   *  <code>
2632   *   $youtubeService = new Google_Service_YouTube(...);
2633   *   $i18nLanguages = $youtubeService->i18nLanguages;
2634   *  </code>
2635   */
2636  class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource
2637  {
2638  
2639    /**
2640     * Returns a list of application languages that the YouTube website supports.
2641     * (i18nLanguages.listI18nLanguages)
2642     *
2643     * @param string $part The part parameter specifies the i18nLanguage resource
2644     * properties that the API response will include. Set the parameter value to
2645     * snippet.
2646     * @param array $optParams Optional parameters.
2647     *
2648     * @opt_param string hl The hl parameter specifies the language that should be
2649     * used for text values in the API response.
2650     * @return Google_Service_YouTube_I18nLanguageListResponse
2651     */
2652    public function listI18nLanguages($part, $optParams = array())
2653    {
2654      $params = array('part' => $part);
2655      $params = array_merge($params, $optParams);
2656      return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse");
2657    }
2658  }
2659  
2660  /**
2661   * The "i18nRegions" collection of methods.
2662   * Typical usage is:
2663   *  <code>
2664   *   $youtubeService = new Google_Service_YouTube(...);
2665   *   $i18nRegions = $youtubeService->i18nRegions;
2666   *  </code>
2667   */
2668  class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource
2669  {
2670  
2671    /**
2672     * Returns a list of content regions that the YouTube website supports.
2673     * (i18nRegions.listI18nRegions)
2674     *
2675     * @param string $part The part parameter specifies the i18nRegion resource
2676     * properties that the API response will include. Set the parameter value to
2677     * snippet.
2678     * @param array $optParams Optional parameters.
2679     *
2680     * @opt_param string hl The hl parameter specifies the language that should be
2681     * used for text values in the API response.
2682     * @return Google_Service_YouTube_I18nRegionListResponse
2683     */
2684    public function listI18nRegions($part, $optParams = array())
2685    {
2686      $params = array('part' => $part);
2687      $params = array_merge($params, $optParams);
2688      return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse");
2689    }
2690  }
2691  
2692  /**
2693   * The "liveBroadcasts" collection of methods.
2694   * Typical usage is:
2695   *  <code>
2696   *   $youtubeService = new Google_Service_YouTube(...);
2697   *   $liveBroadcasts = $youtubeService->liveBroadcasts;
2698   *  </code>
2699   */
2700  class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Resource
2701  {
2702  
2703    /**
2704     * Binds a YouTube broadcast to a stream or removes an existing binding between
2705     * a broadcast and a stream. A broadcast can only be bound to one video stream,
2706     * though a video stream may be bound to more than one broadcast.
2707     * (liveBroadcasts.bind)
2708     *
2709     * @param string $id The id parameter specifies the unique ID of the broadcast
2710     * that is being bound to a video stream.
2711     * @param string $part The part parameter specifies a comma-separated list of
2712     * one or more liveBroadcast resource properties that the API response will
2713     * include. The part names that you can include in the parameter value are id,
2714     * snippet, contentDetails, and status.
2715     * @param array $optParams Optional parameters.
2716     *
2717     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2718     * used in a properly authorized request. Note: This parameter is intended
2719     * exclusively for YouTube content partners.
2720     *
2721     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2722     * of the channel to which a video is being added. This parameter is required
2723     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2724     * and it can only be used in conjunction with that parameter. In addition, the
2725     * request must be authorized using a CMS account that is linked to the content
2726     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2727     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2728     * be linked to the content owner that the onBehalfOfContentOwner parameter
2729     * specifies.
2730     *
2731     * This parameter is intended for YouTube content partners that own and manage
2732     * many different YouTube channels. It allows content owners to authenticate
2733     * once and perform actions on behalf of the channel specified in the parameter
2734     * value, without having to provide authentication credentials for each separate
2735     * channel.
2736     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2737     * exclusively for YouTube content partners.
2738     *
2739     * The onBehalfOfContentOwner parameter indicates that the request's
2740     * authorization credentials identify a YouTube CMS user who is acting on behalf
2741     * of the content owner specified in the parameter value. This parameter is
2742     * intended for YouTube content partners that own and manage many different
2743     * YouTube channels. It allows content owners to authenticate once and get
2744     * access to all their video and channel data, without having to provide
2745     * authentication credentials for each individual channel. The CMS account that
2746     * the user authenticates with must be linked to the specified YouTube content
2747     * owner.
2748     * @opt_param string streamId The streamId parameter specifies the unique ID of
2749     * the video stream that is being bound to a broadcast. If this parameter is
2750     * omitted, the API will remove any existing binding between the broadcast and a
2751     * video stream.
2752     * @return Google_Service_YouTube_LiveBroadcast
2753     */
2754    public function bind($id, $part, $optParams = array())
2755    {
2756      $params = array('id' => $id, 'part' => $part);
2757      $params = array_merge($params, $optParams);
2758      return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast");
2759    }
2760  
2761    /**
2762     * Binds a YouTube broadcast to a stream or removes an existing binding between
2763     * a broadcast and a stream. A broadcast can only be bound to one video stream,
2764     * though a video stream may be bound to more than one broadcast.
2765     * (liveBroadcasts.bind_direct)
2766     *
2767     * @param string $id The id parameter specifies the unique ID of the broadcast
2768     * that is being bound to a video stream.
2769     * @param string $part The part parameter specifies a comma-separated list of
2770     * one or more liveBroadcast resource properties that the API response will
2771     * include. The part names that you can include in the parameter value are id,
2772     * snippet, contentDetails, and status.
2773     * @param array $optParams Optional parameters.
2774     *
2775     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2776     * used in a properly authorized request. Note: This parameter is intended
2777     * exclusively for YouTube content partners.
2778     *
2779     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2780     * of the channel to which a video is being added. This parameter is required
2781     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2782     * and it can only be used in conjunction with that parameter. In addition, the
2783     * request must be authorized using a CMS account that is linked to the content
2784     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2785     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2786     * be linked to the content owner that the onBehalfOfContentOwner parameter
2787     * specifies.
2788     *
2789     * This parameter is intended for YouTube content partners that own and manage
2790     * many different YouTube channels. It allows content owners to authenticate
2791     * once and perform actions on behalf of the channel specified in the parameter
2792     * value, without having to provide authentication credentials for each separate
2793     * channel.
2794     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2795     * exclusively for YouTube content partners.
2796     *
2797     * The onBehalfOfContentOwner parameter indicates that the request's
2798     * authorization credentials identify a YouTube CMS user who is acting on behalf
2799     * of the content owner specified in the parameter value. This parameter is
2800     * intended for YouTube content partners that own and manage many different
2801     * YouTube channels. It allows content owners to authenticate once and get
2802     * access to all their video and channel data, without having to provide
2803     * authentication credentials for each individual channel. The CMS account that
2804     * the user authenticates with must be linked to the specified YouTube content
2805     * owner.
2806     * @opt_param string streamId The streamId parameter specifies the unique ID of
2807     * the video stream that is being bound to a broadcast. If this parameter is
2808     * omitted, the API will remove any existing binding between the broadcast and a
2809     * video stream.
2810     * @return Google_Service_YouTube_LiveBroadcast
2811     */
2812    public function bind_direct($id, $part, $optParams = array())
2813    {
2814      $params = array('id' => $id, 'part' => $part);
2815      $params = array_merge($params, $optParams);
2816      return $this->call('bind_direct', array($params), "Google_Service_YouTube_LiveBroadcast");
2817    }
2818  
2819    /**
2820     * Controls the settings for a slate that can be displayed in the broadcast
2821     * stream. (liveBroadcasts.control)
2822     *
2823     * @param string $id The id parameter specifies the YouTube live broadcast ID
2824     * that uniquely identifies the broadcast in which the slate is being updated.
2825     * @param string $part The part parameter specifies a comma-separated list of
2826     * one or more liveBroadcast resource properties that the API response will
2827     * include. The part names that you can include in the parameter value are id,
2828     * snippet, contentDetails, and status.
2829     * @param array $optParams Optional parameters.
2830     *
2831     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2832     * exclusively for YouTube content partners.
2833     *
2834     * The onBehalfOfContentOwner parameter indicates that the request's
2835     * authorization credentials identify a YouTube CMS user who is acting on behalf
2836     * of the content owner specified in the parameter value. This parameter is
2837     * intended for YouTube content partners that own and manage many different
2838     * YouTube channels. It allows content owners to authenticate once and get
2839     * access to all their video and channel data, without having to provide
2840     * authentication credentials for each individual channel. The CMS account that
2841     * the user authenticates with must be linked to the specified YouTube content
2842     * owner.
2843     * @opt_param bool displaySlate The displaySlate parameter specifies whether the
2844     * slate is being enabled or disabled.
2845     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2846     * used in a properly authorized request. Note: This parameter is intended
2847     * exclusively for YouTube content partners.
2848     *
2849     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2850     * of the channel to which a video is being added. This parameter is required
2851     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2852     * and it can only be used in conjunction with that parameter. In addition, the
2853     * request must be authorized using a CMS account that is linked to the content
2854     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2855     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2856     * be linked to the content owner that the onBehalfOfContentOwner parameter
2857     * specifies.
2858     *
2859     * This parameter is intended for YouTube content partners that own and manage
2860     * many different YouTube channels. It allows content owners to authenticate
2861     * once and perform actions on behalf of the channel specified in the parameter
2862     * value, without having to provide authentication credentials for each separate
2863     * channel.
2864     * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a
2865     * positive time offset when the specified slate change will occur. The value is
2866     * measured in milliseconds from the beginning of the broadcast's monitor
2867     * stream, which is the time that the testing phase for the broadcast began.
2868     * Even though it is specified in milliseconds, the value is actually an
2869     * approximation, and YouTube completes the requested action as closely as
2870     * possible to that time.
2871     *
2872     * If you do not specify a value for this parameter, then YouTube performs the
2873     * action as soon as possible. See the Getting started guide for more details.
2874     *
2875     * Important: You should only specify a value for this parameter if your
2876     * broadcast stream is delayed.
2877     * @opt_param string walltime The walltime parameter specifies the wall clock
2878     * time at which the specified slate change will occur. The value is specified
2879     * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
2880     * @return Google_Service_YouTube_LiveBroadcast
2881     */
2882    public function control($id, $part, $optParams = array())
2883    {
2884      $params = array('id' => $id, 'part' => $part);
2885      $params = array_merge($params, $optParams);
2886      return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast");
2887    }
2888  
2889    /**
2890     * Deletes a broadcast. (liveBroadcasts.delete)
2891     *
2892     * @param string $id The id parameter specifies the YouTube live broadcast ID
2893     * for the resource that is being deleted.
2894     * @param array $optParams Optional parameters.
2895     *
2896     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2897     * used in a properly authorized request. Note: This parameter is intended
2898     * exclusively for YouTube content partners.
2899     *
2900     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2901     * of the channel to which a video is being added. This parameter is required
2902     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2903     * and it can only be used in conjunction with that parameter. In addition, the
2904     * request must be authorized using a CMS account that is linked to the content
2905     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2906     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2907     * be linked to the content owner that the onBehalfOfContentOwner parameter
2908     * specifies.
2909     *
2910     * This parameter is intended for YouTube content partners that own and manage
2911     * many different YouTube channels. It allows content owners to authenticate
2912     * once and perform actions on behalf of the channel specified in the parameter
2913     * value, without having to provide authentication credentials for each separate
2914     * channel.
2915     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2916     * exclusively for YouTube content partners.
2917     *
2918     * The onBehalfOfContentOwner parameter indicates that the request's
2919     * authorization credentials identify a YouTube CMS user who is acting on behalf
2920     * of the content owner specified in the parameter value. This parameter is
2921     * intended for YouTube content partners that own and manage many different
2922     * YouTube channels. It allows content owners to authenticate once and get
2923     * access to all their video and channel data, without having to provide
2924     * authentication credentials for each individual channel. The CMS account that
2925     * the user authenticates with must be linked to the specified YouTube content
2926     * owner.
2927     */
2928    public function delete($id, $optParams = array())
2929    {
2930      $params = array('id' => $id);
2931      $params = array_merge($params, $optParams);
2932      return $this->call('delete', array($params));
2933    }
2934  
2935    /**
2936     * Creates a broadcast. (liveBroadcasts.insert)
2937     *
2938     * @param string $part The part parameter serves two purposes in this operation.
2939     * It identifies the properties that the write operation will set as well as the
2940     * properties that the API response will include.
2941     *
2942     * The part properties that you can include in the parameter value are id,
2943     * snippet, contentDetails, and status.
2944     * @param Google_LiveBroadcast $postBody
2945     * @param array $optParams Optional parameters.
2946     *
2947     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
2948     * used in a properly authorized request. Note: This parameter is intended
2949     * exclusively for YouTube content partners.
2950     *
2951     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
2952     * of the channel to which a video is being added. This parameter is required
2953     * when a request specifies a value for the onBehalfOfContentOwner parameter,
2954     * and it can only be used in conjunction with that parameter. In addition, the
2955     * request must be authorized using a CMS account that is linked to the content
2956     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
2957     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
2958     * be linked to the content owner that the onBehalfOfContentOwner parameter
2959     * specifies.
2960     *
2961     * This parameter is intended for YouTube content partners that own and manage
2962     * many different YouTube channels. It allows content owners to authenticate
2963     * once and perform actions on behalf of the channel specified in the parameter
2964     * value, without having to provide authentication credentials for each separate
2965     * channel.
2966     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
2967     * exclusively for YouTube content partners.
2968     *
2969     * The onBehalfOfContentOwner parameter indicates that the request's
2970     * authorization credentials identify a YouTube CMS user who is acting on behalf
2971     * of the content owner specified in the parameter value. This parameter is
2972     * intended for YouTube content partners that own and manage many different
2973     * YouTube channels. It allows content owners to authenticate once and get
2974     * access to all their video and channel data, without having to provide
2975     * authentication credentials for each individual channel. The CMS account that
2976     * the user authenticates with must be linked to the specified YouTube content
2977     * owner.
2978     * @return Google_Service_YouTube_LiveBroadcast
2979     */
2980    public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
2981    {
2982      $params = array('part' => $part, 'postBody' => $postBody);
2983      $params = array_merge($params, $optParams);
2984      return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast");
2985    }
2986  
2987    /**
2988     * Returns a list of YouTube broadcasts that match the API request parameters.
2989     * (liveBroadcasts.listLiveBroadcasts)
2990     *
2991     * @param string $part The part parameter specifies a comma-separated list of
2992     * one or more liveBroadcast resource properties that the API response will
2993     * include. The part names that you can include in the parameter value are id,
2994     * snippet, contentDetails, and status.
2995     * @param array $optParams Optional parameters.
2996     *
2997     * @opt_param string broadcastStatus The broadcastStatus parameter filters the
2998     * API response to only include broadcasts with the specified status.
2999     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3000     * exclusively for YouTube content partners.
3001     *
3002     * The onBehalfOfContentOwner parameter indicates that the request's
3003     * authorization credentials identify a YouTube CMS user who is acting on behalf
3004     * of the content owner specified in the parameter value. This parameter is
3005     * intended for YouTube content partners that own and manage many different
3006     * YouTube channels. It allows content owners to authenticate once and get
3007     * access to all their video and channel data, without having to provide
3008     * authentication credentials for each individual channel. The CMS account that
3009     * the user authenticates with must be linked to the specified YouTube content
3010     * owner.
3011     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3012     * used in a properly authorized request. Note: This parameter is intended
3013     * exclusively for YouTube content partners.
3014     *
3015     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3016     * of the channel to which a video is being added. This parameter is required
3017     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3018     * and it can only be used in conjunction with that parameter. In addition, the
3019     * request must be authorized using a CMS account that is linked to the content
3020     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3021     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3022     * be linked to the content owner that the onBehalfOfContentOwner parameter
3023     * specifies.
3024     *
3025     * This parameter is intended for YouTube content partners that own and manage
3026     * many different YouTube channels. It allows content owners to authenticate
3027     * once and perform actions on behalf of the channel specified in the parameter
3028     * value, without having to provide authentication credentials for each separate
3029     * channel.
3030     * @opt_param bool mine The mine parameter can be used to instruct the API to
3031     * only return broadcasts owned by the authenticated user. Set the parameter
3032     * value to true to only retrieve your own broadcasts.
3033     * @opt_param string maxResults The maxResults parameter specifies the maximum
3034     * number of items that should be returned in the result set.
3035     * @opt_param string pageToken The pageToken parameter identifies a specific
3036     * page in the result set that should be returned. In an API response, the
3037     * nextPageToken and prevPageToken properties identify other pages that could be
3038     * retrieved.
3039     * @opt_param string id The id parameter specifies a comma-separated list of
3040     * YouTube broadcast IDs that identify the broadcasts being retrieved. In a
3041     * liveBroadcast resource, the id property specifies the broadcast's ID.
3042     * @return Google_Service_YouTube_LiveBroadcastListResponse
3043     */
3044    public function listLiveBroadcasts($part, $optParams = array())
3045    {
3046      $params = array('part' => $part);
3047      $params = array_merge($params, $optParams);
3048      return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse");
3049    }
3050  
3051    /**
3052     * Changes the status of a YouTube live broadcast and initiates any processes
3053     * associated with the new status. For example, when you transition a
3054     * broadcast's status to testing, YouTube starts to transmit video to that
3055     * broadcast's monitor stream. Before calling this method, you should confirm
3056     * that the value of the status.streamStatus property for the stream bound to
3057     * your broadcast is active. (liveBroadcasts.transition)
3058     *
3059     * @param string $broadcastStatus The broadcastStatus parameter identifies the
3060     * state to which the broadcast is changing. Note that to transition a broadcast
3061     * to either the testing or live state, the status.streamStatus must be active
3062     * for the stream that the broadcast is bound to.
3063     * @param string $id The id parameter specifies the unique ID of the broadcast
3064     * that is transitioning to another status.
3065     * @param string $part The part parameter specifies a comma-separated list of
3066     * one or more liveBroadcast resource properties that the API response will
3067     * include. The part names that you can include in the parameter value are id,
3068     * snippet, contentDetails, and status.
3069     * @param array $optParams Optional parameters.
3070     *
3071     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3072     * used in a properly authorized request. Note: This parameter is intended
3073     * exclusively for YouTube content partners.
3074     *
3075     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3076     * of the channel to which a video is being added. This parameter is required
3077     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3078     * and it can only be used in conjunction with that parameter. In addition, the
3079     * request must be authorized using a CMS account that is linked to the content
3080     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3081     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3082     * be linked to the content owner that the onBehalfOfContentOwner parameter
3083     * specifies.
3084     *
3085     * This parameter is intended for YouTube content partners that own and manage
3086     * many different YouTube channels. It allows content owners to authenticate
3087     * once and perform actions on behalf of the channel specified in the parameter
3088     * value, without having to provide authentication credentials for each separate
3089     * channel.
3090     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3091     * exclusively for YouTube content partners.
3092     *
3093     * The onBehalfOfContentOwner parameter indicates that the request's
3094     * authorization credentials identify a YouTube CMS user who is acting on behalf
3095     * of the content owner specified in the parameter value. This parameter is
3096     * intended for YouTube content partners that own and manage many different
3097     * YouTube channels. It allows content owners to authenticate once and get
3098     * access to all their video and channel data, without having to provide
3099     * authentication credentials for each individual channel. The CMS account that
3100     * the user authenticates with must be linked to the specified YouTube content
3101     * owner.
3102     * @return Google_Service_YouTube_LiveBroadcast
3103     */
3104    public function transition($broadcastStatus, $id, $part, $optParams = array())
3105    {
3106      $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part);
3107      $params = array_merge($params, $optParams);
3108      return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast");
3109    }
3110  
3111    /**
3112     * Updates a broadcast. For example, you could modify the broadcast settings
3113     * defined in the liveBroadcast resource's contentDetails object.
3114     * (liveBroadcasts.update)
3115     *
3116     * @param string $part The part parameter serves two purposes in this operation.
3117     * It identifies the properties that the write operation will set as well as the
3118     * properties that the API response will include.
3119     *
3120     * The part properties that you can include in the parameter value are id,
3121     * snippet, contentDetails, and status.
3122     *
3123     * Note that this method will override the existing values for all of the
3124     * mutable properties that are contained in any parts that the parameter value
3125     * specifies. For example, a broadcast's privacy status is defined in the status
3126     * part. As such, if your request is updating a private or unlisted broadcast,
3127     * and the request's part parameter value includes the status part, the
3128     * broadcast's privacy setting will be updated to whatever value the request
3129     * body specifies. If the request body does not specify a value, the existing
3130     * privacy setting will be removed and the broadcast will revert to the default
3131     * privacy setting.
3132     * @param Google_LiveBroadcast $postBody
3133     * @param array $optParams Optional parameters.
3134     *
3135     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3136     * used in a properly authorized request. Note: This parameter is intended
3137     * exclusively for YouTube content partners.
3138     *
3139     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3140     * of the channel to which a video is being added. This parameter is required
3141     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3142     * and it can only be used in conjunction with that parameter. In addition, the
3143     * request must be authorized using a CMS account that is linked to the content
3144     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3145     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3146     * be linked to the content owner that the onBehalfOfContentOwner parameter
3147     * specifies.
3148     *
3149     * This parameter is intended for YouTube content partners that own and manage
3150     * many different YouTube channels. It allows content owners to authenticate
3151     * once and perform actions on behalf of the channel specified in the parameter
3152     * value, without having to provide authentication credentials for each separate
3153     * channel.
3154     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3155     * exclusively for YouTube content partners.
3156     *
3157     * The onBehalfOfContentOwner parameter indicates that the request's
3158     * authorization credentials identify a YouTube CMS user who is acting on behalf
3159     * of the content owner specified in the parameter value. This parameter is
3160     * intended for YouTube content partners that own and manage many different
3161     * YouTube channels. It allows content owners to authenticate once and get
3162     * access to all their video and channel data, without having to provide
3163     * authentication credentials for each individual channel. The CMS account that
3164     * the user authenticates with must be linked to the specified YouTube content
3165     * owner.
3166     * @return Google_Service_YouTube_LiveBroadcast
3167     */
3168    public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
3169    {
3170      $params = array('part' => $part, 'postBody' => $postBody);
3171      $params = array_merge($params, $optParams);
3172      return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast");
3173    }
3174  }
3175  
3176  /**
3177   * The "liveStreams" collection of methods.
3178   * Typical usage is:
3179   *  <code>
3180   *   $youtubeService = new Google_Service_YouTube(...);
3181   *   $liveStreams = $youtubeService->liveStreams;
3182   *  </code>
3183   */
3184  class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resource
3185  {
3186  
3187    /**
3188     * Deletes a video stream. (liveStreams.delete)
3189     *
3190     * @param string $id The id parameter specifies the YouTube live stream ID for
3191     * the resource that is being deleted.
3192     * @param array $optParams Optional parameters.
3193     *
3194     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3195     * used in a properly authorized request. Note: This parameter is intended
3196     * exclusively for YouTube content partners.
3197     *
3198     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3199     * of the channel to which a video is being added. This parameter is required
3200     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3201     * and it can only be used in conjunction with that parameter. In addition, the
3202     * request must be authorized using a CMS account that is linked to the content
3203     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3204     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3205     * be linked to the content owner that the onBehalfOfContentOwner parameter
3206     * specifies.
3207     *
3208     * This parameter is intended for YouTube content partners that own and manage
3209     * many different YouTube channels. It allows content owners to authenticate
3210     * once and perform actions on behalf of the channel specified in the parameter
3211     * value, without having to provide authentication credentials for each separate
3212     * channel.
3213     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3214     * exclusively for YouTube content partners.
3215     *
3216     * The onBehalfOfContentOwner parameter indicates that the request's
3217     * authorization credentials identify a YouTube CMS user who is acting on behalf
3218     * of the content owner specified in the parameter value. This parameter is
3219     * intended for YouTube content partners that own and manage many different
3220     * YouTube channels. It allows content owners to authenticate once and get
3221     * access to all their video and channel data, without having to provide
3222     * authentication credentials for each individual channel. The CMS account that
3223     * the user authenticates with must be linked to the specified YouTube content
3224     * owner.
3225     */
3226    public function delete($id, $optParams = array())
3227    {
3228      $params = array('id' => $id);
3229      $params = array_merge($params, $optParams);
3230      return $this->call('delete', array($params));
3231    }
3232  
3233    /**
3234     * Creates a video stream. The stream enables you to send your video to YouTube,
3235     * which can then broadcast the video to your audience. (liveStreams.insert)
3236     *
3237     * @param string $part The part parameter serves two purposes in this operation.
3238     * It identifies the properties that the write operation will set as well as the
3239     * properties that the API response will include.
3240     *
3241     * The part properties that you can include in the parameter value are id,
3242     * snippet, cdn, and status.
3243     * @param Google_LiveStream $postBody
3244     * @param array $optParams Optional parameters.
3245     *
3246     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3247     * used in a properly authorized request. Note: This parameter is intended
3248     * exclusively for YouTube content partners.
3249     *
3250     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3251     * of the channel to which a video is being added. This parameter is required
3252     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3253     * and it can only be used in conjunction with that parameter. In addition, the
3254     * request must be authorized using a CMS account that is linked to the content
3255     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3256     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3257     * be linked to the content owner that the onBehalfOfContentOwner parameter
3258     * specifies.
3259     *
3260     * This parameter is intended for YouTube content partners that own and manage
3261     * many different YouTube channels. It allows content owners to authenticate
3262     * once and perform actions on behalf of the channel specified in the parameter
3263     * value, without having to provide authentication credentials for each separate
3264     * channel.
3265     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3266     * exclusively for YouTube content partners.
3267     *
3268     * The onBehalfOfContentOwner parameter indicates that the request's
3269     * authorization credentials identify a YouTube CMS user who is acting on behalf
3270     * of the content owner specified in the parameter value. This parameter is
3271     * intended for YouTube content partners that own and manage many different
3272     * YouTube channels. It allows content owners to authenticate once and get
3273     * access to all their video and channel data, without having to provide
3274     * authentication credentials for each individual channel. The CMS account that
3275     * the user authenticates with must be linked to the specified YouTube content
3276     * owner.
3277     * @return Google_Service_YouTube_LiveStream
3278     */
3279    public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
3280    {
3281      $params = array('part' => $part, 'postBody' => $postBody);
3282      $params = array_merge($params, $optParams);
3283      return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream");
3284    }
3285  
3286    /**
3287     * Returns a list of video streams that match the API request parameters.
3288     * (liveStreams.listLiveStreams)
3289     *
3290     * @param string $part The part parameter specifies a comma-separated list of
3291     * one or more liveStream resource properties that the API response will
3292     * include. The part names that you can include in the parameter value are id,
3293     * snippet, cdn, and status.
3294     * @param array $optParams Optional parameters.
3295     *
3296     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3297     * exclusively for YouTube content partners.
3298     *
3299     * The onBehalfOfContentOwner parameter indicates that the request's
3300     * authorization credentials identify a YouTube CMS user who is acting on behalf
3301     * of the content owner specified in the parameter value. This parameter is
3302     * intended for YouTube content partners that own and manage many different
3303     * YouTube channels. It allows content owners to authenticate once and get
3304     * access to all their video and channel data, without having to provide
3305     * authentication credentials for each individual channel. The CMS account that
3306     * the user authenticates with must be linked to the specified YouTube content
3307     * owner.
3308     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3309     * used in a properly authorized request. Note: This parameter is intended
3310     * exclusively for YouTube content partners.
3311     *
3312     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3313     * of the channel to which a video is being added. This parameter is required
3314     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3315     * and it can only be used in conjunction with that parameter. In addition, the
3316     * request must be authorized using a CMS account that is linked to the content
3317     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3318     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3319     * be linked to the content owner that the onBehalfOfContentOwner parameter
3320     * specifies.
3321     *
3322     * This parameter is intended for YouTube content partners that own and manage
3323     * many different YouTube channels. It allows content owners to authenticate
3324     * once and perform actions on behalf of the channel specified in the parameter
3325     * value, without having to provide authentication credentials for each separate
3326     * channel.
3327     * @opt_param bool mine The mine parameter can be used to instruct the API to
3328     * only return streams owned by the authenticated user. Set the parameter value
3329     * to true to only retrieve your own streams.
3330     * @opt_param string maxResults The maxResults parameter specifies the maximum
3331     * number of items that should be returned in the result set.
3332     * @opt_param string pageToken The pageToken parameter identifies a specific
3333     * page in the result set that should be returned. In an API response, the
3334     * nextPageToken and prevPageToken properties identify other pages that could be
3335     * retrieved.
3336     * @opt_param string id The id parameter specifies a comma-separated list of
3337     * YouTube stream IDs that identify the streams being retrieved. In a liveStream
3338     * resource, the id property specifies the stream's ID.
3339     * @return Google_Service_YouTube_LiveStreamListResponse
3340     */
3341    public function listLiveStreams($part, $optParams = array())
3342    {
3343      $params = array('part' => $part);
3344      $params = array_merge($params, $optParams);
3345      return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse");
3346    }
3347  
3348    /**
3349     * Updates a video stream. If the properties that you want to change cannot be
3350     * updated, then you need to create a new stream with the proper settings.
3351     * (liveStreams.update)
3352     *
3353     * @param string $part The part parameter serves two purposes in this operation.
3354     * It identifies the properties that the write operation will set as well as the
3355     * properties that the API response will include.
3356     *
3357     * The part properties that you can include in the parameter value are id,
3358     * snippet, cdn, and status.
3359     *
3360     * Note that this method will override the existing values for all of the
3361     * mutable properties that are contained in any parts that the parameter value
3362     * specifies. If the request body does not specify a value for a mutable
3363     * property, the existing value for that property will be removed.
3364     * @param Google_LiveStream $postBody
3365     * @param array $optParams Optional parameters.
3366     *
3367     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3368     * used in a properly authorized request. Note: This parameter is intended
3369     * exclusively for YouTube content partners.
3370     *
3371     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3372     * of the channel to which a video is being added. This parameter is required
3373     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3374     * and it can only be used in conjunction with that parameter. In addition, the
3375     * request must be authorized using a CMS account that is linked to the content
3376     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3377     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3378     * be linked to the content owner that the onBehalfOfContentOwner parameter
3379     * specifies.
3380     *
3381     * This parameter is intended for YouTube content partners that own and manage
3382     * many different YouTube channels. It allows content owners to authenticate
3383     * once and perform actions on behalf of the channel specified in the parameter
3384     * value, without having to provide authentication credentials for each separate
3385     * channel.
3386     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3387     * exclusively for YouTube content partners.
3388     *
3389     * The onBehalfOfContentOwner parameter indicates that the request's
3390     * authorization credentials identify a YouTube CMS user who is acting on behalf
3391     * of the content owner specified in the parameter value. This parameter is
3392     * intended for YouTube content partners that own and manage many different
3393     * YouTube channels. It allows content owners to authenticate once and get
3394     * access to all their video and channel data, without having to provide
3395     * authentication credentials for each individual channel. The CMS account that
3396     * the user authenticates with must be linked to the specified YouTube content
3397     * owner.
3398     * @return Google_Service_YouTube_LiveStream
3399     */
3400    public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
3401    {
3402      $params = array('part' => $part, 'postBody' => $postBody);
3403      $params = array_merge($params, $optParams);
3404      return $this->call('update', array($params), "Google_Service_YouTube_LiveStream");
3405    }
3406  }
3407  
3408  /**
3409   * The "playlistItems" collection of methods.
3410   * Typical usage is:
3411   *  <code>
3412   *   $youtubeService = new Google_Service_YouTube(...);
3413   *   $playlistItems = $youtubeService->playlistItems;
3414   *  </code>
3415   */
3416  class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resource
3417  {
3418  
3419    /**
3420     * Deletes a playlist item. (playlistItems.delete)
3421     *
3422     * @param string $id The id parameter specifies the YouTube playlist item ID for
3423     * the playlist item that is being deleted. In a playlistItem resource, the id
3424     * property specifies the playlist item's ID.
3425     * @param array $optParams Optional parameters.
3426     */
3427    public function delete($id, $optParams = array())
3428    {
3429      $params = array('id' => $id);
3430      $params = array_merge($params, $optParams);
3431      return $this->call('delete', array($params));
3432    }
3433  
3434    /**
3435     * Adds a resource to a playlist. (playlistItems.insert)
3436     *
3437     * @param string $part The part parameter serves two purposes in this operation.
3438     * It identifies the properties that the write operation will set as well as the
3439     * properties that the API response will include.
3440     * @param Google_PlaylistItem $postBody
3441     * @param array $optParams Optional parameters.
3442     *
3443     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3444     * exclusively for YouTube content partners.
3445     *
3446     * The onBehalfOfContentOwner parameter indicates that the request's
3447     * authorization credentials identify a YouTube CMS user who is acting on behalf
3448     * of the content owner specified in the parameter value. This parameter is
3449     * intended for YouTube content partners that own and manage many different
3450     * YouTube channels. It allows content owners to authenticate once and get
3451     * access to all their video and channel data, without having to provide
3452     * authentication credentials for each individual channel. The CMS account that
3453     * the user authenticates with must be linked to the specified YouTube content
3454     * owner.
3455     * @return Google_Service_YouTube_PlaylistItem
3456     */
3457    public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
3458    {
3459      $params = array('part' => $part, 'postBody' => $postBody);
3460      $params = array_merge($params, $optParams);
3461      return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem");
3462    }
3463  
3464    /**
3465     * Returns a collection of playlist items that match the API request parameters.
3466     * You can retrieve all of the playlist items in a specified playlist or
3467     * retrieve one or more playlist items by their unique IDs.
3468     * (playlistItems.listPlaylistItems)
3469     *
3470     * @param string $part The part parameter specifies a comma-separated list of
3471     * one or more playlistItem resource properties that the API response will
3472     * include.
3473     *
3474     * If the parameter identifies a property that contains child properties, the
3475     * child properties will be included in the response. For example, in a
3476     * playlistItem resource, the snippet property contains numerous fields,
3477     * including the title, description, position, and resourceId properties. As
3478     * such, if you set part=snippet, the API response will contain all of those
3479     * properties.
3480     * @param array $optParams Optional parameters.
3481     *
3482     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3483     * exclusively for YouTube content partners.
3484     *
3485     * The onBehalfOfContentOwner parameter indicates that the request's
3486     * authorization credentials identify a YouTube CMS user who is acting on behalf
3487     * of the content owner specified in the parameter value. This parameter is
3488     * intended for YouTube content partners that own and manage many different
3489     * YouTube channels. It allows content owners to authenticate once and get
3490     * access to all their video and channel data, without having to provide
3491     * authentication credentials for each individual channel. The CMS account that
3492     * the user authenticates with must be linked to the specified YouTube content
3493     * owner.
3494     * @opt_param string playlistId The playlistId parameter specifies the unique ID
3495     * of the playlist for which you want to retrieve playlist items. Note that even
3496     * though this is an optional parameter, every request to retrieve playlist
3497     * items must specify a value for either the id parameter or the playlistId
3498     * parameter.
3499     * @opt_param string videoId The videoId parameter specifies that the request
3500     * should return only the playlist items that contain the specified video.
3501     * @opt_param string maxResults The maxResults parameter specifies the maximum
3502     * number of items that should be returned in the result set.
3503     * @opt_param string pageToken The pageToken parameter identifies a specific
3504     * page in the result set that should be returned. In an API response, the
3505     * nextPageToken and prevPageToken properties identify other pages that could be
3506     * retrieved.
3507     * @opt_param string id The id parameter specifies a comma-separated list of one
3508     * or more unique playlist item IDs.
3509     * @return Google_Service_YouTube_PlaylistItemListResponse
3510     */
3511    public function listPlaylistItems($part, $optParams = array())
3512    {
3513      $params = array('part' => $part);
3514      $params = array_merge($params, $optParams);
3515      return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse");
3516    }
3517  
3518    /**
3519     * Modifies a playlist item. For example, you could update the item's position
3520     * in the playlist. (playlistItems.update)
3521     *
3522     * @param string $part The part parameter serves two purposes in this operation.
3523     * It identifies the properties that the write operation will set as well as the
3524     * properties that the API response will include.
3525     *
3526     * Note that this method will override the existing values for all of the
3527     * mutable properties that are contained in any parts that the parameter value
3528     * specifies. For example, a playlist item can specify a start time and end
3529     * time, which identify the times portion of the video that should play when
3530     * users watch the video in the playlist. If your request is updating a playlist
3531     * item that sets these values, and the request's part parameter value includes
3532     * the contentDetails part, the playlist item's start and end times will be
3533     * updated to whatever value the request body specifies. If the request body
3534     * does not specify values, the existing start and end times will be removed and
3535     * replaced with the default settings.
3536     * @param Google_PlaylistItem $postBody
3537     * @param array $optParams Optional parameters.
3538     * @return Google_Service_YouTube_PlaylistItem
3539     */
3540    public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
3541    {
3542      $params = array('part' => $part, 'postBody' => $postBody);
3543      $params = array_merge($params, $optParams);
3544      return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem");
3545    }
3546  }
3547  
3548  /**
3549   * The "playlists" collection of methods.
3550   * Typical usage is:
3551   *  <code>
3552   *   $youtubeService = new Google_Service_YouTube(...);
3553   *   $playlists = $youtubeService->playlists;
3554   *  </code>
3555   */
3556  class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource
3557  {
3558  
3559    /**
3560     * Deletes a playlist. (playlists.delete)
3561     *
3562     * @param string $id The id parameter specifies the YouTube playlist ID for the
3563     * playlist that is being deleted. In a playlist resource, the id property
3564     * specifies the playlist's ID.
3565     * @param array $optParams Optional parameters.
3566     *
3567     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3568     * exclusively for YouTube content partners.
3569     *
3570     * The onBehalfOfContentOwner parameter indicates that the request's
3571     * authorization credentials identify a YouTube CMS user who is acting on behalf
3572     * of the content owner specified in the parameter value. This parameter is
3573     * intended for YouTube content partners that own and manage many different
3574     * YouTube channels. It allows content owners to authenticate once and get
3575     * access to all their video and channel data, without having to provide
3576     * authentication credentials for each individual channel. The CMS account that
3577     * the user authenticates with must be linked to the specified YouTube content
3578     * owner.
3579     */
3580    public function delete($id, $optParams = array())
3581    {
3582      $params = array('id' => $id);
3583      $params = array_merge($params, $optParams);
3584      return $this->call('delete', array($params));
3585    }
3586  
3587    /**
3588     * Creates a playlist. (playlists.insert)
3589     *
3590     * @param string $part The part parameter serves two purposes in this operation.
3591     * It identifies the properties that the write operation will set as well as the
3592     * properties that the API response will include.
3593     * @param Google_Playlist $postBody
3594     * @param array $optParams Optional parameters.
3595     *
3596     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3597     * used in a properly authorized request. Note: This parameter is intended
3598     * exclusively for YouTube content partners.
3599     *
3600     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3601     * of the channel to which a video is being added. This parameter is required
3602     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3603     * and it can only be used in conjunction with that parameter. In addition, the
3604     * request must be authorized using a CMS account that is linked to the content
3605     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3606     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3607     * be linked to the content owner that the onBehalfOfContentOwner parameter
3608     * specifies.
3609     *
3610     * This parameter is intended for YouTube content partners that own and manage
3611     * many different YouTube channels. It allows content owners to authenticate
3612     * once and perform actions on behalf of the channel specified in the parameter
3613     * value, without having to provide authentication credentials for each separate
3614     * channel.
3615     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3616     * exclusively for YouTube content partners.
3617     *
3618     * The onBehalfOfContentOwner parameter indicates that the request's
3619     * authorization credentials identify a YouTube CMS user who is acting on behalf
3620     * of the content owner specified in the parameter value. This parameter is
3621     * intended for YouTube content partners that own and manage many different
3622     * YouTube channels. It allows content owners to authenticate once and get
3623     * access to all their video and channel data, without having to provide
3624     * authentication credentials for each individual channel. The CMS account that
3625     * the user authenticates with must be linked to the specified YouTube content
3626     * owner.
3627     * @return Google_Service_YouTube_Playlist
3628     */
3629    public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
3630    {
3631      $params = array('part' => $part, 'postBody' => $postBody);
3632      $params = array_merge($params, $optParams);
3633      return $this->call('insert', array($params), "Google_Service_YouTube_Playlist");
3634    }
3635  
3636    /**
3637     * Returns a collection of playlists that match the API request parameters. For
3638     * example, you can retrieve all playlists that the authenticated user owns, or
3639     * you can retrieve one or more playlists by their unique IDs.
3640     * (playlists.listPlaylists)
3641     *
3642     * @param string $part The part parameter specifies a comma-separated list of
3643     * one or more playlist resource properties that the API response will include.
3644     *
3645     * If the parameter identifies a property that contains child properties, the
3646     * child properties will be included in the response. For example, in a playlist
3647     * resource, the snippet property contains properties like author, title,
3648     * description, tags, and timeCreated. As such, if you set part=snippet, the API
3649     * response will contain all of those properties.
3650     * @param array $optParams Optional parameters.
3651     *
3652     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3653     * exclusively for YouTube content partners.
3654     *
3655     * The onBehalfOfContentOwner parameter indicates that the request's
3656     * authorization credentials identify a YouTube CMS user who is acting on behalf
3657     * of the content owner specified in the parameter value. This parameter is
3658     * intended for YouTube content partners that own and manage many different
3659     * YouTube channels. It allows content owners to authenticate once and get
3660     * access to all their video and channel data, without having to provide
3661     * authentication credentials for each individual channel. The CMS account that
3662     * the user authenticates with must be linked to the specified YouTube content
3663     * owner.
3664     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3665     * used in a properly authorized request. Note: This parameter is intended
3666     * exclusively for YouTube content partners.
3667     *
3668     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3669     * of the channel to which a video is being added. This parameter is required
3670     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3671     * and it can only be used in conjunction with that parameter. In addition, the
3672     * request must be authorized using a CMS account that is linked to the content
3673     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3674     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3675     * be linked to the content owner that the onBehalfOfContentOwner parameter
3676     * specifies.
3677     *
3678     * This parameter is intended for YouTube content partners that own and manage
3679     * many different YouTube channels. It allows content owners to authenticate
3680     * once and perform actions on behalf of the channel specified in the parameter
3681     * value, without having to provide authentication credentials for each separate
3682     * channel.
3683     * @opt_param string channelId This value indicates that the API should only
3684     * return the specified channel's playlists.
3685     * @opt_param bool mine Set this parameter's value to true to instruct the API
3686     * to only return playlists owned by the authenticated user.
3687     * @opt_param string maxResults The maxResults parameter specifies the maximum
3688     * number of items that should be returned in the result set.
3689     * @opt_param string pageToken The pageToken parameter identifies a specific
3690     * page in the result set that should be returned. In an API response, the
3691     * nextPageToken and prevPageToken properties identify other pages that could be
3692     * retrieved.
3693     * @opt_param string hl The hl parameter should be used for filter out the
3694     * properties that are not in the given language. Used for the snippet part.
3695     * @opt_param string id The id parameter specifies a comma-separated list of the
3696     * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a
3697     * playlist resource, the id property specifies the playlist's YouTube playlist
3698     * ID.
3699     * @return Google_Service_YouTube_PlaylistListResponse
3700     */
3701    public function listPlaylists($part, $optParams = array())
3702    {
3703      $params = array('part' => $part);
3704      $params = array_merge($params, $optParams);
3705      return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse");
3706    }
3707  
3708    /**
3709     * Modifies a playlist. For example, you could change a playlist's title,
3710     * description, or privacy status. (playlists.update)
3711     *
3712     * @param string $part The part parameter serves two purposes in this operation.
3713     * It identifies the properties that the write operation will set as well as the
3714     * properties that the API response will include.
3715     *
3716     * Note that this method will override the existing values for mutable
3717     * properties that are contained in any parts that the request body specifies.
3718     * For example, a playlist's description is contained in the snippet part, which
3719     * must be included in the request body. If the request does not specify a value
3720     * for the snippet.description property, the playlist's existing description
3721     * will be deleted.
3722     * @param Google_Playlist $postBody
3723     * @param array $optParams Optional parameters.
3724     *
3725     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3726     * exclusively for YouTube content partners.
3727     *
3728     * The onBehalfOfContentOwner parameter indicates that the request's
3729     * authorization credentials identify a YouTube CMS user who is acting on behalf
3730     * of the content owner specified in the parameter value. This parameter is
3731     * intended for YouTube content partners that own and manage many different
3732     * YouTube channels. It allows content owners to authenticate once and get
3733     * access to all their video and channel data, without having to provide
3734     * authentication credentials for each individual channel. The CMS account that
3735     * the user authenticates with must be linked to the specified YouTube content
3736     * owner.
3737     * @return Google_Service_YouTube_Playlist
3738     */
3739    public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
3740    {
3741      $params = array('part' => $part, 'postBody' => $postBody);
3742      $params = array_merge($params, $optParams);
3743      return $this->call('update', array($params), "Google_Service_YouTube_Playlist");
3744    }
3745  }
3746  
3747  /**
3748   * The "search" collection of methods.
3749   * Typical usage is:
3750   *  <code>
3751   *   $youtubeService = new Google_Service_YouTube(...);
3752   *   $search = $youtubeService->search;
3753   *  </code>
3754   */
3755  class Google_Service_YouTube_Search_Resource extends Google_Service_Resource
3756  {
3757  
3758    /**
3759     * Returns a collection of search results that match the query parameters
3760     * specified in the API request. By default, a search result set identifies
3761     * matching video, channel, and playlist resources, but you can also configure
3762     * queries to only retrieve a specific type of resource. (search.listSearch)
3763     *
3764     * @param string $part The part parameter specifies a comma-separated list of
3765     * one or more search resource properties that the API response will include.
3766     * Set the parameter value to snippet.
3767     * @param array $optParams Optional parameters.
3768     *
3769     * @opt_param string eventType The eventType parameter restricts a search to
3770     * broadcast events. If you specify a value for this parameter, you must also
3771     * set the type parameter's value to video.
3772     * @opt_param string channelId The channelId parameter indicates that the API
3773     * response should only contain resources created by the channel
3774     * @opt_param bool forDeveloper The forDeveloper parameter restricts the search
3775     * to only retrieve videos uploaded via the developer's application or website.
3776     * The API server uses the request's authorization credentials to identify the
3777     * developer. Therefore, a developer can restrict results to videos uploaded
3778     * through the developer's own app or website but not to videos uploaded through
3779     * other apps or sites.
3780     * @opt_param string videoSyndicated The videoSyndicated parameter lets you to
3781     * restrict a search to only videos that can be played outside youtube.com. If
3782     * you specify a value for this parameter, you must also set the type
3783     * parameter's value to video.
3784     * @opt_param string channelType The channelType parameter lets you restrict a
3785     * search to a particular type of channel.
3786     * @opt_param string videoCaption The videoCaption parameter indicates whether
3787     * the API should filter video search results based on whether they have
3788     * captions. If you specify a value for this parameter, you must also set the
3789     * type parameter's value to video.
3790     * @opt_param string publishedAfter The publishedAfter parameter indicates that
3791     * the API response should only contain resources created after the specified
3792     * time. The value is an RFC 3339 formatted date-time value
3793     * (1970-01-01T00:00:00Z).
3794     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3795     * exclusively for YouTube content partners.
3796     *
3797     * The onBehalfOfContentOwner parameter indicates that the request's
3798     * authorization credentials identify a YouTube CMS user who is acting on behalf
3799     * of the content owner specified in the parameter value. This parameter is
3800     * intended for YouTube content partners that own and manage many different
3801     * YouTube channels. It allows content owners to authenticate once and get
3802     * access to all their video and channel data, without having to provide
3803     * authentication credentials for each individual channel. The CMS account that
3804     * the user authenticates with must be linked to the specified YouTube content
3805     * owner.
3806     * @opt_param string pageToken The pageToken parameter identifies a specific
3807     * page in the result set that should be returned. In an API response, the
3808     * nextPageToken and prevPageToken properties identify other pages that could be
3809     * retrieved.
3810     * @opt_param bool forContentOwner Note: This parameter is intended exclusively
3811     * for YouTube content partners.
3812     *
3813     * The forContentOwner parameter restricts the search to only retrieve resources
3814     * owned by the content owner specified by the onBehalfOfContentOwner parameter.
3815     * The user must be authenticated using a CMS account linked to the specified
3816     * content owner and onBehalfOfContentOwner must be provided.
3817     * @opt_param string regionCode The regionCode parameter instructs the API to
3818     * return search results for the specified country. The parameter value is an
3819     * ISO 3166-1 alpha-2 country code.
3820     * @opt_param string location The location parameter, in conjunction with the
3821     * locationRadius parameter, defines a circular geographic area and also
3822     * restricts a search to videos that specify, in their metadata, a geographic
3823     * location that falls within that area. The parameter value is a string that
3824     * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427).
3825     *
3826     * - The location parameter value identifies the point at the center of the
3827     * area. - The locationRadius parameter specifies the maximum distance that the
3828     * location associated with a video can be from that point for the video to
3829     * still be included in the search results.The API returns an error if your
3830     * request specifies a value for the location parameter but does not also
3831     * specify a value for the locationRadius parameter.
3832     * @opt_param string locationRadius The locationRadius parameter, in conjunction
3833     * with the location parameter, defines a circular geographic area.
3834     *
3835     * The parameter value must be a floating point number followed by a measurement
3836     * unit. Valid measurement units are m, km, ft, and mi. For example, valid
3837     * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not
3838     * support locationRadius parameter values larger than 1000 kilometers.
3839     *
3840     * Note: See the definition of the location parameter for more information.
3841     * @opt_param string videoType The videoType parameter lets you restrict a
3842     * search to a particular type of videos. If you specify a value for this
3843     * parameter, you must also set the type parameter's value to video.
3844     * @opt_param string type The type parameter restricts a search query to only
3845     * retrieve a particular type of resource. The value is a comma-separated list
3846     * of resource types.
3847     * @opt_param string topicId The topicId parameter indicates that the API
3848     * response should only contain resources associated with the specified topic.
3849     * The value identifies a Freebase topic ID.
3850     * @opt_param string publishedBefore The publishedBefore parameter indicates
3851     * that the API response should only contain resources created before the
3852     * specified time. The value is an RFC 3339 formatted date-time value
3853     * (1970-01-01T00:00:00Z).
3854     * @opt_param string videoDimension The videoDimension parameter lets you
3855     * restrict a search to only retrieve 2D or 3D videos. If you specify a value
3856     * for this parameter, you must also set the type parameter's value to video.
3857     * @opt_param string videoLicense The videoLicense parameter filters search
3858     * results to only include videos with a particular license. YouTube lets video
3859     * uploaders choose to attach either the Creative Commons license or the
3860     * standard YouTube license to each of their videos. If you specify a value for
3861     * this parameter, you must also set the type parameter's value to video.
3862     * @opt_param string maxResults The maxResults parameter specifies the maximum
3863     * number of items that should be returned in the result set.
3864     * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a
3865     * list of videos that are related to the video that the parameter value
3866     * identifies. The parameter value must be set to a YouTube video ID and, if you
3867     * are using this parameter, the type parameter must be set to video.
3868     * @opt_param string videoDefinition The videoDefinition parameter lets you
3869     * restrict a search to only include either high definition (HD) or standard
3870     * definition (SD) videos. HD videos are available for playback in at least
3871     * 720p, though higher resolutions, like 1080p, might also be available. If you
3872     * specify a value for this parameter, you must also set the type parameter's
3873     * value to video.
3874     * @opt_param string videoDuration The videoDuration parameter filters video
3875     * search results based on their duration. If you specify a value for this
3876     * parameter, you must also set the type parameter's value to video.
3877     * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs
3878     * the API to return search results that are most relevant to the specified
3879     * language. The parameter value is typically an ISO 639-1 two-letter language
3880     * code. However, you should use the values zh-Hans for simplified Chinese and
3881     * zh-Hant for traditional Chinese. Please note that results in other languages
3882     * will still be returned if they are highly relevant to the search query term.
3883     * @opt_param bool forMine The forMine parameter restricts the search to only
3884     * retrieve videos owned by the authenticated user. If you set this parameter to
3885     * true, then the type parameter's value must also be set to video.
3886     * @opt_param string q The q parameter specifies the query term to search for.
3887     *
3888     * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude
3889     * videos or to find videos that are associated with one of several search
3890     * terms. For example, to search for videos matching either "boating" or
3891     * "sailing", set the q parameter value to boating|sailing. Similarly, to search
3892     * for videos matching either "boating" or "sailing" but not "fishing", set the
3893     * q parameter value to boating|sailing -fishing. Note that the pipe character
3894     * must be URL-escaped when it is sent in your API request. The URL-escaped
3895     * value for the pipe character is %7C.
3896     * @opt_param string safeSearch The safeSearch parameter indicates whether the
3897     * search results should include restricted content as well as standard content.
3898     * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to
3899     * restrict a search to only videos that can be embedded into a webpage. If you
3900     * specify a value for this parameter, you must also set the type parameter's
3901     * value to video.
3902     * @opt_param string videoCategoryId The videoCategoryId parameter filters video
3903     * search results based on their category. If you specify a value for this
3904     * parameter, you must also set the type parameter's value to video.
3905     * @opt_param string order The order parameter specifies the method that will be
3906     * used to order resources in the API response.
3907     * @return Google_Service_YouTube_SearchListResponse
3908     */
3909    public function listSearch($part, $optParams = array())
3910    {
3911      $params = array('part' => $part);
3912      $params = array_merge($params, $optParams);
3913      return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse");
3914    }
3915  }
3916  
3917  /**
3918   * The "subscriptions" collection of methods.
3919   * Typical usage is:
3920   *  <code>
3921   *   $youtubeService = new Google_Service_YouTube(...);
3922   *   $subscriptions = $youtubeService->subscriptions;
3923   *  </code>
3924   */
3925  class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resource
3926  {
3927  
3928    /**
3929     * Deletes a subscription. (subscriptions.delete)
3930     *
3931     * @param string $id The id parameter specifies the YouTube subscription ID for
3932     * the resource that is being deleted. In a subscription resource, the id
3933     * property specifies the YouTube subscription ID.
3934     * @param array $optParams Optional parameters.
3935     */
3936    public function delete($id, $optParams = array())
3937    {
3938      $params = array('id' => $id);
3939      $params = array_merge($params, $optParams);
3940      return $this->call('delete', array($params));
3941    }
3942  
3943    /**
3944     * Adds a subscription for the authenticated user's channel.
3945     * (subscriptions.insert)
3946     *
3947     * @param string $part The part parameter serves two purposes in this operation.
3948     * It identifies the properties that the write operation will set as well as the
3949     * properties that the API response will include.
3950     * @param Google_Subscription $postBody
3951     * @param array $optParams Optional parameters.
3952     * @return Google_Service_YouTube_Subscription
3953     */
3954    public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array())
3955    {
3956      $params = array('part' => $part, 'postBody' => $postBody);
3957      $params = array_merge($params, $optParams);
3958      return $this->call('insert', array($params), "Google_Service_YouTube_Subscription");
3959    }
3960  
3961    /**
3962     * Returns subscription resources that match the API request criteria.
3963     * (subscriptions.listSubscriptions)
3964     *
3965     * @param string $part The part parameter specifies a comma-separated list of
3966     * one or more subscription resource properties that the API response will
3967     * include.
3968     *
3969     * If the parameter identifies a property that contains child properties, the
3970     * child properties will be included in the response. For example, in a
3971     * subscription resource, the snippet property contains other properties, such
3972     * as a display title for the subscription. If you set part=snippet, the API
3973     * response will also contain all of those nested properties.
3974     * @param array $optParams Optional parameters.
3975     *
3976     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
3977     * exclusively for YouTube content partners.
3978     *
3979     * The onBehalfOfContentOwner parameter indicates that the request's
3980     * authorization credentials identify a YouTube CMS user who is acting on behalf
3981     * of the content owner specified in the parameter value. This parameter is
3982     * intended for YouTube content partners that own and manage many different
3983     * YouTube channels. It allows content owners to authenticate once and get
3984     * access to all their video and channel data, without having to provide
3985     * authentication credentials for each individual channel. The CMS account that
3986     * the user authenticates with must be linked to the specified YouTube content
3987     * owner.
3988     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
3989     * used in a properly authorized request. Note: This parameter is intended
3990     * exclusively for YouTube content partners.
3991     *
3992     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
3993     * of the channel to which a video is being added. This parameter is required
3994     * when a request specifies a value for the onBehalfOfContentOwner parameter,
3995     * and it can only be used in conjunction with that parameter. In addition, the
3996     * request must be authorized using a CMS account that is linked to the content
3997     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
3998     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
3999     * be linked to the content owner that the onBehalfOfContentOwner parameter
4000     * specifies.
4001     *
4002     * This parameter is intended for YouTube content partners that own and manage
4003     * many different YouTube channels. It allows content owners to authenticate
4004     * once and perform actions on behalf of the channel specified in the parameter
4005     * value, without having to provide authentication credentials for each separate
4006     * channel.
4007     * @opt_param string channelId The channelId parameter specifies a YouTube
4008     * channel ID. The API will only return that channel's subscriptions.
4009     * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
4010     * the authenticated user's subscriptions.
4011     * @opt_param string maxResults The maxResults parameter specifies the maximum
4012     * number of items that should be returned in the result set.
4013     * @opt_param string forChannelId The forChannelId parameter specifies a comma-
4014     * separated list of channel IDs. The API response will then only contain
4015     * subscriptions matching those channels.
4016     * @opt_param string pageToken The pageToken parameter identifies a specific
4017     * page in the result set that should be returned. In an API response, the
4018     * nextPageToken and prevPageToken properties identify other pages that could be
4019     * retrieved.
4020     * @opt_param bool mySubscribers Set this parameter's value to true to retrieve
4021     * a feed of the subscribers of the authenticated user.
4022     * @opt_param string order The order parameter specifies the method that will be
4023     * used to sort resources in the API response.
4024     * @opt_param string id The id parameter specifies a comma-separated list of the
4025     * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a
4026     * subscription resource, the id property specifies the YouTube subscription ID.
4027     * @return Google_Service_YouTube_SubscriptionListResponse
4028     */
4029    public function listSubscriptions($part, $optParams = array())
4030    {
4031      $params = array('part' => $part);
4032      $params = array_merge($params, $optParams);
4033      return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse");
4034    }
4035  }
4036  
4037  /**
4038   * The "thumbnails" collection of methods.
4039   * Typical usage is:
4040   *  <code>
4041   *   $youtubeService = new Google_Service_YouTube(...);
4042   *   $thumbnails = $youtubeService->thumbnails;
4043   *  </code>
4044   */
4045  class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource
4046  {
4047  
4048    /**
4049     * Uploads a custom video thumbnail to YouTube and sets it for a video.
4050     * (thumbnails.set)
4051     *
4052     * @param string $videoId The videoId parameter specifies a YouTube video ID for
4053     * which the custom video thumbnail is being provided.
4054     * @param array $optParams Optional parameters.
4055     *
4056     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4057     * exclusively for YouTube content partners.
4058     *
4059     * The onBehalfOfContentOwner parameter indicates that the request's
4060     * authorization credentials identify a YouTube CMS user who is acting on behalf
4061     * of the content owner specified in the parameter value. This parameter is
4062     * intended for YouTube content partners that own and manage many different
4063     * YouTube channels. It allows content owners to authenticate once and get
4064     * access to all their video and channel data, without having to provide
4065     * authentication credentials for each individual channel. The actual CMS
4066     * account that the user authenticates with must be linked to the specified
4067     * YouTube content owner.
4068     * @return Google_Service_YouTube_ThumbnailSetResponse
4069     */
4070    public function set($videoId, $optParams = array())
4071    {
4072      $params = array('videoId' => $videoId);
4073      $params = array_merge($params, $optParams);
4074      return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse");
4075    }
4076  }
4077  
4078  /**
4079   * The "videoAbuseReportReasons" collection of methods.
4080   * Typical usage is:
4081   *  <code>
4082   *   $youtubeService = new Google_Service_YouTube(...);
4083   *   $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons;
4084   *  </code>
4085   */
4086  class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource
4087  {
4088  
4089    /**
4090     * Returns a list of abuse reasons that can be used for reporting abusive
4091     * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons)
4092     *
4093     * @param string $part The part parameter specifies the videoCategory resource
4094     * parts that the API response will include. Supported values are id and
4095     * snippet.
4096     * @param array $optParams Optional parameters.
4097     *
4098     * @opt_param string hl The hl parameter specifies the language that should be
4099     * used for text values in the API response.
4100     * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse
4101     */
4102    public function listVideoAbuseReportReasons($part, $optParams = array())
4103    {
4104      $params = array('part' => $part);
4105      $params = array_merge($params, $optParams);
4106      return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse");
4107    }
4108  }
4109  
4110  /**
4111   * The "videoCategories" collection of methods.
4112   * Typical usage is:
4113   *  <code>
4114   *   $youtubeService = new Google_Service_YouTube(...);
4115   *   $videoCategories = $youtubeService->videoCategories;
4116   *  </code>
4117   */
4118  class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource
4119  {
4120  
4121    /**
4122     * Returns a list of categories that can be associated with YouTube videos.
4123     * (videoCategories.listVideoCategories)
4124     *
4125     * @param string $part The part parameter specifies the videoCategory resource
4126     * properties that the API response will include. Set the parameter value to
4127     * snippet.
4128     * @param array $optParams Optional parameters.
4129     *
4130     * @opt_param string regionCode The regionCode parameter instructs the API to
4131     * return the list of video categories available in the specified country. The
4132     * parameter value is an ISO 3166-1 alpha-2 country code.
4133     * @opt_param string id The id parameter specifies a comma-separated list of
4134     * video category IDs for the resources that you are retrieving.
4135     * @opt_param string hl The hl parameter specifies the language that should be
4136     * used for text values in the API response.
4137     * @return Google_Service_YouTube_VideoCategoryListResponse
4138     */
4139    public function listVideoCategories($part, $optParams = array())
4140    {
4141      $params = array('part' => $part);
4142      $params = array_merge($params, $optParams);
4143      return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse");
4144    }
4145  }
4146  
4147  /**
4148   * The "videos" collection of methods.
4149   * Typical usage is:
4150   *  <code>
4151   *   $youtubeService = new Google_Service_YouTube(...);
4152   *   $videos = $youtubeService->videos;
4153   *  </code>
4154   */
4155  class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource
4156  {
4157  
4158    /**
4159     * Deletes a YouTube video. (videos.delete)
4160     *
4161     * @param string $id The id parameter specifies the YouTube video ID for the
4162     * resource that is being deleted. In a video resource, the id property
4163     * specifies the video's ID.
4164     * @param array $optParams Optional parameters.
4165     *
4166     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4167     * exclusively for YouTube content partners.
4168     *
4169     * The onBehalfOfContentOwner parameter indicates that the request's
4170     * authorization credentials identify a YouTube CMS user who is acting on behalf
4171     * of the content owner specified in the parameter value. This parameter is
4172     * intended for YouTube content partners that own and manage many different
4173     * YouTube channels. It allows content owners to authenticate once and get
4174     * access to all their video and channel data, without having to provide
4175     * authentication credentials for each individual channel. The actual CMS
4176     * account that the user authenticates with must be linked to the specified
4177     * YouTube content owner.
4178     */
4179    public function delete($id, $optParams = array())
4180    {
4181      $params = array('id' => $id);
4182      $params = array_merge($params, $optParams);
4183      return $this->call('delete', array($params));
4184    }
4185  
4186    /**
4187     * Retrieves the ratings that the authorized user gave to a list of specified
4188     * videos. (videos.getRating)
4189     *
4190     * @param string $id The id parameter specifies a comma-separated list of the
4191     * YouTube video ID(s) for the resource(s) for which you are retrieving rating
4192     * data. In a video resource, the id property specifies the video's ID.
4193     * @param array $optParams Optional parameters.
4194     *
4195     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4196     * exclusively for YouTube content partners.
4197     *
4198     * The onBehalfOfContentOwner parameter indicates that the request's
4199     * authorization credentials identify a YouTube CMS user who is acting on behalf
4200     * of the content owner specified in the parameter value. This parameter is
4201     * intended for YouTube content partners that own and manage many different
4202     * YouTube channels. It allows content owners to authenticate once and get
4203     * access to all their video and channel data, without having to provide
4204     * authentication credentials for each individual channel. The CMS account that
4205     * the user authenticates with must be linked to the specified YouTube content
4206     * owner.
4207     * @return Google_Service_YouTube_VideoGetRatingResponse
4208     */
4209    public function getRating($id, $optParams = array())
4210    {
4211      $params = array('id' => $id);
4212      $params = array_merge($params, $optParams);
4213      return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse");
4214    }
4215  
4216    /**
4217     * Uploads a video to YouTube and optionally sets the video's metadata.
4218     * (videos.insert)
4219     *
4220     * @param string $part The part parameter serves two purposes in this operation.
4221     * It identifies the properties that the write operation will set as well as the
4222     * properties that the API response will include.
4223     *
4224     * Note that not all parts contain properties that can be set when inserting or
4225     * updating a video. For example, the statistics object encapsulates statistics
4226     * that YouTube calculates for a video and does not contain values that you can
4227     * set or modify. If the parameter value specifies a part that does not contain
4228     * mutable values, that part will still be included in the API response.
4229     * @param Google_Video $postBody
4230     * @param array $optParams Optional parameters.
4231     *
4232     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4233     * exclusively for YouTube content partners.
4234     *
4235     * The onBehalfOfContentOwner parameter indicates that the request's
4236     * authorization credentials identify a YouTube CMS user who is acting on behalf
4237     * of the content owner specified in the parameter value. This parameter is
4238     * intended for YouTube content partners that own and manage many different
4239     * YouTube channels. It allows content owners to authenticate once and get
4240     * access to all their video and channel data, without having to provide
4241     * authentication credentials for each individual channel. The CMS account that
4242     * the user authenticates with must be linked to the specified YouTube content
4243     * owner.
4244     * @opt_param bool stabilize The stabilize parameter indicates whether YouTube
4245     * should adjust the video to remove shaky camera motions.
4246     * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
4247     * used in a properly authorized request. Note: This parameter is intended
4248     * exclusively for YouTube content partners.
4249     *
4250     * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
4251     * of the channel to which a video is being added. This parameter is required
4252     * when a request specifies a value for the onBehalfOfContentOwner parameter,
4253     * and it can only be used in conjunction with that parameter. In addition, the
4254     * request must be authorized using a CMS account that is linked to the content
4255     * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
4256     * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
4257     * be linked to the content owner that the onBehalfOfContentOwner parameter
4258     * specifies.
4259     *
4260     * This parameter is intended for YouTube content partners that own and manage
4261     * many different YouTube channels. It allows content owners to authenticate
4262     * once and perform actions on behalf of the channel specified in the parameter
4263     * value, without having to provide authentication credentials for each separate
4264     * channel.
4265     * @opt_param bool notifySubscribers The notifySubscribers parameter indicates
4266     * whether YouTube should send a notification about the new video to users who
4267     * subscribe to the video's channel. A parameter value of True indicates that
4268     * subscribers will be notified of newly uploaded videos. However, a channel
4269     * owner who is uploading many videos might prefer to set the value to False to
4270     * avoid sending a notification about each new video to the channel's
4271     * subscribers.
4272     * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube
4273     * should automatically enhance the video's lighting and color.
4274     * @return Google_Service_YouTube_Video
4275     */
4276    public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array())
4277    {
4278      $params = array('part' => $part, 'postBody' => $postBody);
4279      $params = array_merge($params, $optParams);
4280      return $this->call('insert', array($params), "Google_Service_YouTube_Video");
4281    }
4282  
4283    /**
4284     * Returns a list of videos that match the API request parameters.
4285     * (videos.listVideos)
4286     *
4287     * @param string $part The part parameter specifies a comma-separated list of
4288     * one or more video resource properties that the API response will include.
4289     *
4290     * If the parameter identifies a property that contains child properties, the
4291     * child properties will be included in the response. For example, in a video
4292     * resource, the snippet property contains the channelId, title, description,
4293     * tags, and categoryId properties. As such, if you set part=snippet, the API
4294     * response will contain all of those properties.
4295     * @param array $optParams Optional parameters.
4296     *
4297     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4298     * exclusively for YouTube content partners.
4299     *
4300     * The onBehalfOfContentOwner parameter indicates that the request's
4301     * authorization credentials identify a YouTube CMS user who is acting on behalf
4302     * of the content owner specified in the parameter value. This parameter is
4303     * intended for YouTube content partners that own and manage many different
4304     * YouTube channels. It allows content owners to authenticate once and get
4305     * access to all their video and channel data, without having to provide
4306     * authentication credentials for each individual channel. The CMS account that
4307     * the user authenticates with must be linked to the specified YouTube content
4308     * owner.
4309     * @opt_param string regionCode The regionCode parameter instructs the API to
4310     * select a video chart available in the specified region. This parameter can
4311     * only be used in conjunction with the chart parameter. The parameter value is
4312     * an ISO 3166-1 alpha-2 country code.
4313     * @opt_param string locale DEPRECATED
4314     * @opt_param string videoCategoryId The videoCategoryId parameter identifies
4315     * the video category for which the chart should be retrieved. This parameter
4316     * can only be used in conjunction with the chart parameter. By default, charts
4317     * are not restricted to a particular category.
4318     * @opt_param string chart The chart parameter identifies the chart that you
4319     * want to retrieve.
4320     * @opt_param string maxResults The maxResults parameter specifies the maximum
4321     * number of items that should be returned in the result set.
4322     *
4323     * Note: This parameter is supported for use in conjunction with the myRating
4324     * parameter, but it is not supported for use in conjunction with the id
4325     * parameter.
4326     * @opt_param string pageToken The pageToken parameter identifies a specific
4327     * page in the result set that should be returned. In an API response, the
4328     * nextPageToken and prevPageToken properties identify other pages that could be
4329     * retrieved.
4330     *
4331     * Note: This parameter is supported for use in conjunction with the myRating
4332     * parameter, but it is not supported for use in conjunction with the id
4333     * parameter.
4334     * @opt_param string hl The hl parameter instructs the API to retrieve localized
4335     * resource metadata for a specific application language that the YouTube
4336     * website supports. The parameter value must be a language code included in the
4337     * list returned by the i18nLanguages.list method.
4338     *
4339     * If localized resource details are available in that language, the resource's
4340     * snippet.localized object will contain the localized values. However, if
4341     * localized details are not available, the snippet.localized object will
4342     * contain resource details in the resource's default language.
4343     * @opt_param string myRating Set this parameter's value to like or dislike to
4344     * instruct the API to only return videos liked or disliked by the authenticated
4345     * user.
4346     * @opt_param string id The id parameter specifies a comma-separated list of the
4347     * YouTube video ID(s) for the resource(s) that are being retrieved. In a video
4348     * resource, the id property specifies the video's ID.
4349     * @return Google_Service_YouTube_VideoListResponse
4350     */
4351    public function listVideos($part, $optParams = array())
4352    {
4353      $params = array('part' => $part);
4354      $params = array_merge($params, $optParams);
4355      return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse");
4356    }
4357  
4358    /**
4359     * Add a like or dislike rating to a video or remove a rating from a video.
4360     * (videos.rate)
4361     *
4362     * @param string $id The id parameter specifies the YouTube video ID of the
4363     * video that is being rated or having its rating removed.
4364     * @param string $rating Specifies the rating to record.
4365     * @param array $optParams Optional parameters.
4366     */
4367    public function rate($id, $rating, $optParams = array())
4368    {
4369      $params = array('id' => $id, 'rating' => $rating);
4370      $params = array_merge($params, $optParams);
4371      return $this->call('rate', array($params));
4372    }
4373  
4374    /**
4375     * Report abuse for a video. (videos.reportAbuse)
4376     *
4377     * @param Google_VideoAbuseReport $postBody
4378     * @param array $optParams Optional parameters.
4379     *
4380     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4381     * exclusively for YouTube content partners.
4382     *
4383     * The onBehalfOfContentOwner parameter indicates that the request's
4384     * authorization credentials identify a YouTube CMS user who is acting on behalf
4385     * of the content owner specified in the parameter value. This parameter is
4386     * intended for YouTube content partners that own and manage many different
4387     * YouTube channels. It allows content owners to authenticate once and get
4388     * access to all their video and channel data, without having to provide
4389     * authentication credentials for each individual channel. The CMS account that
4390     * the user authenticates with must be linked to the specified YouTube content
4391     * owner.
4392     */
4393    public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array())
4394    {
4395      $params = array('postBody' => $postBody);
4396      $params = array_merge($params, $optParams);
4397      return $this->call('reportAbuse', array($params));
4398    }
4399  
4400    /**
4401     * Updates a video's metadata. (videos.update)
4402     *
4403     * @param string $part The part parameter serves two purposes in this operation.
4404     * It identifies the properties that the write operation will set as well as the
4405     * properties that the API response will include.
4406     *
4407     * Note that this method will override the existing values for all of the
4408     * mutable properties that are contained in any parts that the parameter value
4409     * specifies. For example, a video's privacy setting is contained in the status
4410     * part. As such, if your request is updating a private video, and the request's
4411     * part parameter value includes the status part, the video's privacy setting
4412     * will be updated to whatever value the request body specifies. If the request
4413     * body does not specify a value, the existing privacy setting will be removed
4414     * and the video will revert to the default privacy setting.
4415     *
4416     * In addition, not all parts contain properties that can be set when inserting
4417     * or updating a video. For example, the statistics object encapsulates
4418     * statistics that YouTube calculates for a video and does not contain values
4419     * that you can set or modify. If the parameter value specifies a part that does
4420     * not contain mutable values, that part will still be included in the API
4421     * response.
4422     * @param Google_Video $postBody
4423     * @param array $optParams Optional parameters.
4424     *
4425     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4426     * exclusively for YouTube content partners.
4427     *
4428     * The onBehalfOfContentOwner parameter indicates that the request's
4429     * authorization credentials identify a YouTube CMS user who is acting on behalf
4430     * of the content owner specified in the parameter value. This parameter is
4431     * intended for YouTube content partners that own and manage many different
4432     * YouTube channels. It allows content owners to authenticate once and get
4433     * access to all their video and channel data, without having to provide
4434     * authentication credentials for each individual channel. The actual CMS
4435     * account that the user authenticates with must be linked to the specified
4436     * YouTube content owner.
4437     * @return Google_Service_YouTube_Video
4438     */
4439    public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array())
4440    {
4441      $params = array('part' => $part, 'postBody' => $postBody);
4442      $params = array_merge($params, $optParams);
4443      return $this->call('update', array($params), "Google_Service_YouTube_Video");
4444    }
4445  }
4446  
4447  /**
4448   * The "watermarks" collection of methods.
4449   * Typical usage is:
4450   *  <code>
4451   *   $youtubeService = new Google_Service_YouTube(...);
4452   *   $watermarks = $youtubeService->watermarks;
4453   *  </code>
4454   */
4455  class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource
4456  {
4457  
4458    /**
4459     * Uploads a watermark image to YouTube and sets it for a channel.
4460     * (watermarks.set)
4461     *
4462     * @param string $channelId The channelId parameter specifies the YouTube
4463     * channel ID for which the watermark is being provided.
4464     * @param Google_InvideoBranding $postBody
4465     * @param array $optParams Optional parameters.
4466     *
4467     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4468     * exclusively for YouTube content partners.
4469     *
4470     * The onBehalfOfContentOwner parameter indicates that the request's
4471     * authorization credentials identify a YouTube CMS user who is acting on behalf
4472     * of the content owner specified in the parameter value. This parameter is
4473     * intended for YouTube content partners that own and manage many different
4474     * YouTube channels. It allows content owners to authenticate once and get
4475     * access to all their video and channel data, without having to provide
4476     * authentication credentials for each individual channel. The CMS account that
4477     * the user authenticates with must be linked to the specified YouTube content
4478     * owner.
4479     */
4480    public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array())
4481    {
4482      $params = array('channelId' => $channelId, 'postBody' => $postBody);
4483      $params = array_merge($params, $optParams);
4484      return $this->call('set', array($params));
4485    }
4486  
4487    /**
4488     * Deletes a channel's watermark image. (watermarks.unsetWatermarks)
4489     *
4490     * @param string $channelId The channelId parameter specifies the YouTube
4491     * channel ID for which the watermark is being unset.
4492     * @param array $optParams Optional parameters.
4493     *
4494     * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
4495     * exclusively for YouTube content partners.
4496     *
4497     * The onBehalfOfContentOwner parameter indicates that the request's
4498     * authorization credentials identify a YouTube CMS user who is acting on behalf
4499     * of the content owner specified in the parameter value. This parameter is
4500     * intended for YouTube content partners that own and manage many different
4501     * YouTube channels. It allows content owners to authenticate once and get
4502     * access to all their video and channel data, without having to provide
4503     * authentication credentials for each individual channel. The CMS account that
4504     * the user authenticates with must be linked to the specified YouTube content
4505     * owner.
4506     */
4507    public function unsetWatermarks($channelId, $optParams = array())
4508    {
4509      $params = array('channelId' => $channelId);
4510      $params = array_merge($params, $optParams);
4511      return $this->call('unset', array($params));
4512    }
4513  }
4514  
4515  
4516  
4517  
4518  class Google_Service_YouTube_AccessPolicy extends Google_Collection
4519  {
4520    protected $collection_key = 'exception';
4521    protected $internal_gapi_mappings = array(
4522    );
4523    public $allowed;
4524    public $exception;
4525  
4526  
4527    public function setAllowed($allowed)
4528    {
4529      $this->allowed = $allowed;
4530    }
4531    public function getAllowed()
4532    {
4533      return $this->allowed;
4534    }
4535    public function setException($exception)
4536    {
4537      $this->exception = $exception;
4538    }
4539    public function getException()
4540    {
4541      return $this->exception;
4542    }
4543  }
4544  
4545  class Google_Service_YouTube_Activity extends Google_Model
4546  {
4547    protected $internal_gapi_mappings = array(
4548    );
4549    protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails';
4550    protected $contentDetailsDataType = '';
4551    public $etag;
4552    public $id;
4553    public $kind;
4554    protected $snippetType = 'Google_Service_YouTube_ActivitySnippet';
4555    protected $snippetDataType = '';
4556  
4557  
4558    public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails)
4559    {
4560      $this->contentDetails = $contentDetails;
4561    }
4562    public function getContentDetails()
4563    {
4564      return $this->contentDetails;
4565    }
4566    public function setEtag($etag)
4567    {
4568      $this->etag = $etag;
4569    }
4570    public function getEtag()
4571    {
4572      return $this->etag;
4573    }
4574    public function setId($id)
4575    {
4576      $this->id = $id;
4577    }
4578    public function getId()
4579    {
4580      return $this->id;
4581    }
4582    public function setKind($kind)
4583    {
4584      $this->kind = $kind;
4585    }
4586    public function getKind()
4587    {
4588      return $this->kind;
4589    }
4590    public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet)
4591    {
4592      $this->snippet = $snippet;
4593    }
4594    public function getSnippet()
4595    {
4596      return $this->snippet;
4597    }
4598  }
4599  
4600  class Google_Service_YouTube_ActivityContentDetails extends Google_Model
4601  {
4602    protected $internal_gapi_mappings = array(
4603    );
4604    protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin';
4605    protected $bulletinDataType = '';
4606    protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem';
4607    protected $channelItemDataType = '';
4608    protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment';
4609    protected $commentDataType = '';
4610    protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite';
4611    protected $favoriteDataType = '';
4612    protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike';
4613    protected $likeDataType = '';
4614    protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem';
4615    protected $playlistItemDataType = '';
4616    protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem';
4617    protected $promotedItemDataType = '';
4618    protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation';
4619    protected $recommendationDataType = '';
4620    protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial';
4621    protected $socialDataType = '';
4622    protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription';
4623    protected $subscriptionDataType = '';
4624    protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload';
4625    protected $uploadDataType = '';
4626  
4627  
4628    public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin)
4629    {
4630      $this->bulletin = $bulletin;
4631    }
4632    public function getBulletin()
4633    {
4634      return $this->bulletin;
4635    }
4636    public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem)
4637    {
4638      $this->channelItem = $channelItem;
4639    }
4640    public function getChannelItem()
4641    {
4642      return $this->channelItem;
4643    }
4644    public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment)
4645    {
4646      $this->comment = $comment;
4647    }
4648    public function getComment()
4649    {
4650      return $this->comment;
4651    }
4652    public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite)
4653    {
4654      $this->favorite = $favorite;
4655    }
4656    public function getFavorite()
4657    {
4658      return $this->favorite;
4659    }
4660    public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like)
4661    {
4662      $this->like = $like;
4663    }
4664    public function getLike()
4665    {
4666      return $this->like;
4667    }
4668    public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem)
4669    {
4670      $this->playlistItem = $playlistItem;
4671    }
4672    public function getPlaylistItem()
4673    {
4674      return $this->playlistItem;
4675    }
4676    public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem)
4677    {
4678      $this->promotedItem = $promotedItem;
4679    }
4680    public function getPromotedItem()
4681    {
4682      return $this->promotedItem;
4683    }
4684    public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation)
4685    {
4686      $this->recommendation = $recommendation;
4687    }
4688    public function getRecommendation()
4689    {
4690      return $this->recommendation;
4691    }
4692    public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social)
4693    {
4694      $this->social = $social;
4695    }
4696    public function getSocial()
4697    {
4698      return $this->social;
4699    }
4700    public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription)
4701    {
4702      $this->subscription = $subscription;
4703    }
4704    public function getSubscription()
4705    {
4706      return $this->subscription;
4707    }
4708    public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload)
4709    {
4710      $this->upload = $upload;
4711    }
4712    public function getUpload()
4713    {
4714      return $this->upload;
4715    }
4716  }
4717  
4718  class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model
4719  {
4720    protected $internal_gapi_mappings = array(
4721    );
4722    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4723    protected $resourceIdDataType = '';
4724  
4725  
4726    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4727    {
4728      $this->resourceId = $resourceId;
4729    }
4730    public function getResourceId()
4731    {
4732      return $this->resourceId;
4733    }
4734  }
4735  
4736  class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model
4737  {
4738    protected $internal_gapi_mappings = array(
4739    );
4740    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4741    protected $resourceIdDataType = '';
4742  
4743  
4744    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4745    {
4746      $this->resourceId = $resourceId;
4747    }
4748    public function getResourceId()
4749    {
4750      return $this->resourceId;
4751    }
4752  }
4753  
4754  class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model
4755  {
4756    protected $internal_gapi_mappings = array(
4757    );
4758    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4759    protected $resourceIdDataType = '';
4760  
4761  
4762    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4763    {
4764      $this->resourceId = $resourceId;
4765    }
4766    public function getResourceId()
4767    {
4768      return $this->resourceId;
4769    }
4770  }
4771  
4772  class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model
4773  {
4774    protected $internal_gapi_mappings = array(
4775    );
4776    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4777    protected $resourceIdDataType = '';
4778  
4779  
4780    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4781    {
4782      $this->resourceId = $resourceId;
4783    }
4784    public function getResourceId()
4785    {
4786      return $this->resourceId;
4787    }
4788  }
4789  
4790  class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model
4791  {
4792    protected $internal_gapi_mappings = array(
4793    );
4794    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4795    protected $resourceIdDataType = '';
4796  
4797  
4798    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4799    {
4800      $this->resourceId = $resourceId;
4801    }
4802    public function getResourceId()
4803    {
4804      return $this->resourceId;
4805    }
4806  }
4807  
4808  class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model
4809  {
4810    protected $internal_gapi_mappings = array(
4811    );
4812    public $playlistId;
4813    public $playlistItemId;
4814    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4815    protected $resourceIdDataType = '';
4816  
4817  
4818    public function setPlaylistId($playlistId)
4819    {
4820      $this->playlistId = $playlistId;
4821    }
4822    public function getPlaylistId()
4823    {
4824      return $this->playlistId;
4825    }
4826    public function setPlaylistItemId($playlistItemId)
4827    {
4828      $this->playlistItemId = $playlistItemId;
4829    }
4830    public function getPlaylistItemId()
4831    {
4832      return $this->playlistItemId;
4833    }
4834    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4835    {
4836      $this->resourceId = $resourceId;
4837    }
4838    public function getResourceId()
4839    {
4840      return $this->resourceId;
4841    }
4842  }
4843  
4844  class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection
4845  {
4846    protected $collection_key = 'impressionUrl';
4847    protected $internal_gapi_mappings = array(
4848    );
4849    public $adTag;
4850    public $clickTrackingUrl;
4851    public $creativeViewUrl;
4852    public $ctaType;
4853    public $customCtaButtonText;
4854    public $descriptionText;
4855    public $destinationUrl;
4856    public $forecastingUrl;
4857    public $impressionUrl;
4858    public $videoId;
4859  
4860  
4861    public function setAdTag($adTag)
4862    {
4863      $this->adTag = $adTag;
4864    }
4865    public function getAdTag()
4866    {
4867      return $this->adTag;
4868    }
4869    public function setClickTrackingUrl($clickTrackingUrl)
4870    {
4871      $this->clickTrackingUrl = $clickTrackingUrl;
4872    }
4873    public function getClickTrackingUrl()
4874    {
4875      return $this->clickTrackingUrl;
4876    }
4877    public function setCreativeViewUrl($creativeViewUrl)
4878    {
4879      $this->creativeViewUrl = $creativeViewUrl;
4880    }
4881    public function getCreativeViewUrl()
4882    {
4883      return $this->creativeViewUrl;
4884    }
4885    public function setCtaType($ctaType)
4886    {
4887      $this->ctaType = $ctaType;
4888    }
4889    public function getCtaType()
4890    {
4891      return $this->ctaType;
4892    }
4893    public function setCustomCtaButtonText($customCtaButtonText)
4894    {
4895      $this->customCtaButtonText = $customCtaButtonText;
4896    }
4897    public function getCustomCtaButtonText()
4898    {
4899      return $this->customCtaButtonText;
4900    }
4901    public function setDescriptionText($descriptionText)
4902    {
4903      $this->descriptionText = $descriptionText;
4904    }
4905    public function getDescriptionText()
4906    {
4907      return $this->descriptionText;
4908    }
4909    public function setDestinationUrl($destinationUrl)
4910    {
4911      $this->destinationUrl = $destinationUrl;
4912    }
4913    public function getDestinationUrl()
4914    {
4915      return $this->destinationUrl;
4916    }
4917    public function setForecastingUrl($forecastingUrl)
4918    {
4919      $this->forecastingUrl = $forecastingUrl;
4920    }
4921    public function getForecastingUrl()
4922    {
4923      return $this->forecastingUrl;
4924    }
4925    public function setImpressionUrl($impressionUrl)
4926    {
4927      $this->impressionUrl = $impressionUrl;
4928    }
4929    public function getImpressionUrl()
4930    {
4931      return $this->impressionUrl;
4932    }
4933    public function setVideoId($videoId)
4934    {
4935      $this->videoId = $videoId;
4936    }
4937    public function getVideoId()
4938    {
4939      return $this->videoId;
4940    }
4941  }
4942  
4943  class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model
4944  {
4945    protected $internal_gapi_mappings = array(
4946    );
4947    public $reason;
4948    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4949    protected $resourceIdDataType = '';
4950    protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId';
4951    protected $seedResourceIdDataType = '';
4952  
4953  
4954    public function setReason($reason)
4955    {
4956      $this->reason = $reason;
4957    }
4958    public function getReason()
4959    {
4960      return $this->reason;
4961    }
4962    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
4963    {
4964      $this->resourceId = $resourceId;
4965    }
4966    public function getResourceId()
4967    {
4968      return $this->resourceId;
4969    }
4970    public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId)
4971    {
4972      $this->seedResourceId = $seedResourceId;
4973    }
4974    public function getSeedResourceId()
4975    {
4976      return $this->seedResourceId;
4977    }
4978  }
4979  
4980  class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model
4981  {
4982    protected $internal_gapi_mappings = array(
4983    );
4984    public $author;
4985    public $imageUrl;
4986    public $referenceUrl;
4987    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
4988    protected $resourceIdDataType = '';
4989    public $type;
4990  
4991  
4992    public function setAuthor($author)
4993    {
4994      $this->author = $author;
4995    }
4996    public function getAuthor()
4997    {
4998      return $this->author;
4999    }
5000    public function setImageUrl($imageUrl)
5001    {
5002      $this->imageUrl = $imageUrl;
5003    }
5004    public function getImageUrl()
5005    {
5006      return $this->imageUrl;
5007    }
5008    public function setReferenceUrl($referenceUrl)
5009    {
5010      $this->referenceUrl = $referenceUrl;
5011    }
5012    public function getReferenceUrl()
5013    {
5014      return $this->referenceUrl;
5015    }
5016    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
5017    {
5018      $this->resourceId = $resourceId;
5019    }
5020    public function getResourceId()
5021    {
5022      return $this->resourceId;
5023    }
5024    public function setType($type)
5025    {
5026      $this->type = $type;
5027    }
5028    public function getType()
5029    {
5030      return $this->type;
5031    }
5032  }
5033  
5034  class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model
5035  {
5036    protected $internal_gapi_mappings = array(
5037    );
5038    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
5039    protected $resourceIdDataType = '';
5040  
5041  
5042    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
5043    {
5044      $this->resourceId = $resourceId;
5045    }
5046    public function getResourceId()
5047    {
5048      return $this->resourceId;
5049    }
5050  }
5051  
5052  class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model
5053  {
5054    protected $internal_gapi_mappings = array(
5055    );
5056    public $videoId;
5057  
5058  
5059    public function setVideoId($videoId)
5060    {
5061      $this->videoId = $videoId;
5062    }
5063    public function getVideoId()
5064    {
5065      return $this->videoId;
5066    }
5067  }
5068  
5069  class Google_Service_YouTube_ActivityListResponse extends Google_Collection
5070  {
5071    protected $collection_key = 'items';
5072    protected $internal_gapi_mappings = array(
5073    );
5074    public $etag;
5075    public $eventId;
5076    protected $itemsType = 'Google_Service_YouTube_Activity';
5077    protected $itemsDataType = 'array';
5078    public $kind;
5079    public $nextPageToken;
5080    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
5081    protected $pageInfoDataType = '';
5082    public $prevPageToken;
5083    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
5084    protected $tokenPaginationDataType = '';
5085    public $visitorId;
5086  
5087  
5088    public function setEtag($etag)
5089    {
5090      $this->etag = $etag;
5091    }
5092    public function getEtag()
5093    {
5094      return $this->etag;
5095    }
5096    public function setEventId($eventId)
5097    {
5098      $this->eventId = $eventId;
5099    }
5100    public function getEventId()
5101    {
5102      return $this->eventId;
5103    }
5104    public function setItems($items)
5105    {
5106      $this->items = $items;
5107    }
5108    public function getItems()
5109    {
5110      return $this->items;
5111    }
5112    public function setKind($kind)
5113    {
5114      $this->kind = $kind;
5115    }
5116    public function getKind()
5117    {
5118      return $this->kind;
5119    }
5120    public function setNextPageToken($nextPageToken)
5121    {
5122      $this->nextPageToken = $nextPageToken;
5123    }
5124    public function getNextPageToken()
5125    {
5126      return $this->nextPageToken;
5127    }
5128    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
5129    {
5130      $this->pageInfo = $pageInfo;
5131    }
5132    public function getPageInfo()
5133    {
5134      return $this->pageInfo;
5135    }
5136    public function setPrevPageToken($prevPageToken)
5137    {
5138      $this->prevPageToken = $prevPageToken;
5139    }
5140    public function getPrevPageToken()
5141    {
5142      return $this->prevPageToken;
5143    }
5144    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
5145    {
5146      $this->tokenPagination = $tokenPagination;
5147    }
5148    public function getTokenPagination()
5149    {
5150      return $this->tokenPagination;
5151    }
5152    public function setVisitorId($visitorId)
5153    {
5154      $this->visitorId = $visitorId;
5155    }
5156    public function getVisitorId()
5157    {
5158      return $this->visitorId;
5159    }
5160  }
5161  
5162  class Google_Service_YouTube_ActivitySnippet extends Google_Model
5163  {
5164    protected $internal_gapi_mappings = array(
5165    );
5166    public $channelId;
5167    public $channelTitle;
5168    public $description;
5169    public $groupId;
5170    public $publishedAt;
5171    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
5172    protected $thumbnailsDataType = '';
5173    public $title;
5174    public $type;
5175  
5176  
5177    public function setChannelId($channelId)
5178    {
5179      $this->channelId = $channelId;
5180    }
5181    public function getChannelId()
5182    {
5183      return $this->channelId;
5184    }
5185    public function setChannelTitle($channelTitle)
5186    {
5187      $this->channelTitle = $channelTitle;
5188    }
5189    public function getChannelTitle()
5190    {
5191      return $this->channelTitle;
5192    }
5193    public function setDescription($description)
5194    {
5195      $this->description = $description;
5196    }
5197    public function getDescription()
5198    {
5199      return $this->description;
5200    }
5201    public function setGroupId($groupId)
5202    {
5203      $this->groupId = $groupId;
5204    }
5205    public function getGroupId()
5206    {
5207      return $this->groupId;
5208    }
5209    public function setPublishedAt($publishedAt)
5210    {
5211      $this->publishedAt = $publishedAt;
5212    }
5213    public function getPublishedAt()
5214    {
5215      return $this->publishedAt;
5216    }
5217    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
5218    {
5219      $this->thumbnails = $thumbnails;
5220    }
5221    public function getThumbnails()
5222    {
5223      return $this->thumbnails;
5224    }
5225    public function setTitle($title)
5226    {
5227      $this->title = $title;
5228    }
5229    public function getTitle()
5230    {
5231      return $this->title;
5232    }
5233    public function setType($type)
5234    {
5235      $this->type = $type;
5236    }
5237    public function getType()
5238    {
5239      return $this->type;
5240    }
5241  }
5242  
5243  class Google_Service_YouTube_Caption extends Google_Model
5244  {
5245    protected $internal_gapi_mappings = array(
5246    );
5247    public $etag;
5248    public $id;
5249    public $kind;
5250    protected $snippetType = 'Google_Service_YouTube_CaptionSnippet';
5251    protected $snippetDataType = '';
5252  
5253  
5254    public function setEtag($etag)
5255    {
5256      $this->etag = $etag;
5257    }
5258    public function getEtag()
5259    {
5260      return $this->etag;
5261    }
5262    public function setId($id)
5263    {
5264      $this->id = $id;
5265    }
5266    public function getId()
5267    {
5268      return $this->id;
5269    }
5270    public function setKind($kind)
5271    {
5272      $this->kind = $kind;
5273    }
5274    public function getKind()
5275    {
5276      return $this->kind;
5277    }
5278    public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet)
5279    {
5280      $this->snippet = $snippet;
5281    }
5282    public function getSnippet()
5283    {
5284      return $this->snippet;
5285    }
5286  }
5287  
5288  class Google_Service_YouTube_CaptionListResponse extends Google_Collection
5289  {
5290    protected $collection_key = 'items';
5291    protected $internal_gapi_mappings = array(
5292    );
5293    public $etag;
5294    public $eventId;
5295    protected $itemsType = 'Google_Service_YouTube_Caption';
5296    protected $itemsDataType = 'array';
5297    public $kind;
5298    public $visitorId;
5299  
5300  
5301    public function setEtag($etag)
5302    {
5303      $this->etag = $etag;
5304    }
5305    public function getEtag()
5306    {
5307      return $this->etag;
5308    }
5309    public function setEventId($eventId)
5310    {
5311      $this->eventId = $eventId;
5312    }
5313    public function getEventId()
5314    {
5315      return $this->eventId;
5316    }
5317    public function setItems($items)
5318    {
5319      $this->items = $items;
5320    }
5321    public function getItems()
5322    {
5323      return $this->items;
5324    }
5325    public function setKind($kind)
5326    {
5327      $this->kind = $kind;
5328    }
5329    public function getKind()
5330    {
5331      return $this->kind;
5332    }
5333    public function setVisitorId($visitorId)
5334    {
5335      $this->visitorId = $visitorId;
5336    }
5337    public function getVisitorId()
5338    {
5339      return $this->visitorId;
5340    }
5341  }
5342  
5343  class Google_Service_YouTube_CaptionSnippet extends Google_Model
5344  {
5345    protected $internal_gapi_mappings = array(
5346    );
5347    public $audioTrackType;
5348    public $failureReason;
5349    public $isAutoSynced;
5350    public $isCC;
5351    public $isDraft;
5352    public $isEasyReader;
5353    public $isLarge;
5354    public $language;
5355    public $lastUpdated;
5356    public $name;
5357    public $status;
5358    public $trackKind;
5359    public $videoId;
5360  
5361  
5362    public function setAudioTrackType($audioTrackType)
5363    {
5364      $this->audioTrackType = $audioTrackType;
5365    }
5366    public function getAudioTrackType()
5367    {
5368      return $this->audioTrackType;
5369    }
5370    public function setFailureReason($failureReason)
5371    {
5372      $this->failureReason = $failureReason;
5373    }
5374    public function getFailureReason()
5375    {
5376      return $this->failureReason;
5377    }
5378    public function setIsAutoSynced($isAutoSynced)
5379    {
5380      $this->isAutoSynced = $isAutoSynced;
5381    }
5382    public function getIsAutoSynced()
5383    {
5384      return $this->isAutoSynced;
5385    }
5386    public function setIsCC($isCC)
5387    {
5388      $this->isCC = $isCC;
5389    }
5390    public function getIsCC()
5391    {
5392      return $this->isCC;
5393    }
5394    public function setIsDraft($isDraft)
5395    {
5396      $this->isDraft = $isDraft;
5397    }
5398    public function getIsDraft()
5399    {
5400      return $this->isDraft;
5401    }
5402    public function setIsEasyReader($isEasyReader)
5403    {
5404      $this->isEasyReader = $isEasyReader;
5405    }
5406    public function getIsEasyReader()
5407    {
5408      return $this->isEasyReader;
5409    }
5410    public function setIsLarge($isLarge)
5411    {
5412      $this->isLarge = $isLarge;
5413    }
5414    public function getIsLarge()
5415    {
5416      return $this->isLarge;
5417    }
5418    public function setLanguage($language)
5419    {
5420      $this->language = $language;
5421    }
5422    public function getLanguage()
5423    {
5424      return $this->language;
5425    }
5426    public function setLastUpdated($lastUpdated)
5427    {
5428      $this->lastUpdated = $lastUpdated;
5429    }
5430    public function getLastUpdated()
5431    {
5432      return $this->lastUpdated;
5433    }
5434    public function setName($name)
5435    {
5436      $this->name = $name;
5437    }
5438    public function getName()
5439    {
5440      return $this->name;
5441    }
5442    public function setStatus($status)
5443    {
5444      $this->status = $status;
5445    }
5446    public function getStatus()
5447    {
5448      return $this->status;
5449    }
5450    public function setTrackKind($trackKind)
5451    {
5452      $this->trackKind = $trackKind;
5453    }
5454    public function getTrackKind()
5455    {
5456      return $this->trackKind;
5457    }
5458    public function setVideoId($videoId)
5459    {
5460      $this->videoId = $videoId;
5461    }
5462    public function getVideoId()
5463    {
5464      return $this->videoId;
5465    }
5466  }
5467  
5468  class Google_Service_YouTube_CdnSettings extends Google_Model
5469  {
5470    protected $internal_gapi_mappings = array(
5471    );
5472    public $format;
5473    protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo';
5474    protected $ingestionInfoDataType = '';
5475    public $ingestionType;
5476  
5477  
5478    public function setFormat($format)
5479    {
5480      $this->format = $format;
5481    }
5482    public function getFormat()
5483    {
5484      return $this->format;
5485    }
5486    public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo)
5487    {
5488      $this->ingestionInfo = $ingestionInfo;
5489    }
5490    public function getIngestionInfo()
5491    {
5492      return $this->ingestionInfo;
5493    }
5494    public function setIngestionType($ingestionType)
5495    {
5496      $this->ingestionType = $ingestionType;
5497    }
5498    public function getIngestionType()
5499    {
5500      return $this->ingestionType;
5501    }
5502  }
5503  
5504  class Google_Service_YouTube_Channel extends Google_Model
5505  {
5506    protected $internal_gapi_mappings = array(
5507    );
5508    protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails';
5509    protected $auditDetailsDataType = '';
5510    protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings';
5511    protected $brandingSettingsDataType = '';
5512    protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails';
5513    protected $contentDetailsDataType = '';
5514    protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails';
5515    protected $contentOwnerDetailsDataType = '';
5516    protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings';
5517    protected $conversionPingsDataType = '';
5518    public $etag;
5519    public $id;
5520    protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion';
5521    protected $invideoPromotionDataType = '';
5522    public $kind;
5523    protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization';
5524    protected $localizationsDataType = 'map';
5525    protected $snippetType = 'Google_Service_YouTube_ChannelSnippet';
5526    protected $snippetDataType = '';
5527    protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics';
5528    protected $statisticsDataType = '';
5529    protected $statusType = 'Google_Service_YouTube_ChannelStatus';
5530    protected $statusDataType = '';
5531    protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails';
5532    protected $topicDetailsDataType = '';
5533  
5534  
5535    public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails)
5536    {
5537      $this->auditDetails = $auditDetails;
5538    }
5539    public function getAuditDetails()
5540    {
5541      return $this->auditDetails;
5542    }
5543    public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings)
5544    {
5545      $this->brandingSettings = $brandingSettings;
5546    }
5547    public function getBrandingSettings()
5548    {
5549      return $this->brandingSettings;
5550    }
5551    public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails)
5552    {
5553      $this->contentDetails = $contentDetails;
5554    }
5555    public function getContentDetails()
5556    {
5557      return $this->contentDetails;
5558    }
5559    public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails)
5560    {
5561      $this->contentOwnerDetails = $contentOwnerDetails;
5562    }
5563    public function getContentOwnerDetails()
5564    {
5565      return $this->contentOwnerDetails;
5566    }
5567    public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings)
5568    {
5569      $this->conversionPings = $conversionPings;
5570    }
5571    public function getConversionPings()
5572    {
5573      return $this->conversionPings;
5574    }
5575    public function setEtag($etag)
5576    {
5577      $this->etag = $etag;
5578    }
5579    public function getEtag()
5580    {
5581      return $this->etag;
5582    }
5583    public function setId($id)
5584    {
5585      $this->id = $id;
5586    }
5587    public function getId()
5588    {
5589      return $this->id;
5590    }
5591    public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion)
5592    {
5593      $this->invideoPromotion = $invideoPromotion;
5594    }
5595    public function getInvideoPromotion()
5596    {
5597      return $this->invideoPromotion;
5598    }
5599    public function setKind($kind)
5600    {
5601      $this->kind = $kind;
5602    }
5603    public function getKind()
5604    {
5605      return $this->kind;
5606    }
5607    public function setLocalizations($localizations)
5608    {
5609      $this->localizations = $localizations;
5610    }
5611    public function getLocalizations()
5612    {
5613      return $this->localizations;
5614    }
5615    public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet)
5616    {
5617      $this->snippet = $snippet;
5618    }
5619    public function getSnippet()
5620    {
5621      return $this->snippet;
5622    }
5623    public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics)
5624    {
5625      $this->statistics = $statistics;
5626    }
5627    public function getStatistics()
5628    {
5629      return $this->statistics;
5630    }
5631    public function setStatus(Google_Service_YouTube_ChannelStatus $status)
5632    {
5633      $this->status = $status;
5634    }
5635    public function getStatus()
5636    {
5637      return $this->status;
5638    }
5639    public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails)
5640    {
5641      $this->topicDetails = $topicDetails;
5642    }
5643    public function getTopicDetails()
5644    {
5645      return $this->topicDetails;
5646    }
5647  }
5648  
5649  class Google_Service_YouTube_ChannelAuditDetails extends Google_Model
5650  {
5651    protected $internal_gapi_mappings = array(
5652    );
5653    public $communityGuidelinesGoodStanding;
5654    public $contentIdClaimsGoodStanding;
5655    public $copyrightStrikesGoodStanding;
5656    public $overallGoodStanding;
5657  
5658  
5659    public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding)
5660    {
5661      $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding;
5662    }
5663    public function getCommunityGuidelinesGoodStanding()
5664    {
5665      return $this->communityGuidelinesGoodStanding;
5666    }
5667    public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding)
5668    {
5669      $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding;
5670    }
5671    public function getContentIdClaimsGoodStanding()
5672    {
5673      return $this->contentIdClaimsGoodStanding;
5674    }
5675    public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding)
5676    {
5677      $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding;
5678    }
5679    public function getCopyrightStrikesGoodStanding()
5680    {
5681      return $this->copyrightStrikesGoodStanding;
5682    }
5683    public function setOverallGoodStanding($overallGoodStanding)
5684    {
5685      $this->overallGoodStanding = $overallGoodStanding;
5686    }
5687    public function getOverallGoodStanding()
5688    {
5689      return $this->overallGoodStanding;
5690    }
5691  }
5692  
5693  class Google_Service_YouTube_ChannelBannerResource extends Google_Model
5694  {
5695    protected $internal_gapi_mappings = array(
5696    );
5697    public $etag;
5698    public $kind;
5699    public $url;
5700  
5701  
5702    public function setEtag($etag)
5703    {
5704      $this->etag = $etag;
5705    }
5706    public function getEtag()
5707    {
5708      return $this->etag;
5709    }
5710    public function setKind($kind)
5711    {
5712      $this->kind = $kind;
5713    }
5714    public function getKind()
5715    {
5716      return $this->kind;
5717    }
5718    public function setUrl($url)
5719    {
5720      $this->url = $url;
5721    }
5722    public function getUrl()
5723    {
5724      return $this->url;
5725    }
5726  }
5727  
5728  class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection
5729  {
5730    protected $collection_key = 'hints';
5731    protected $internal_gapi_mappings = array(
5732    );
5733    protected $channelType = 'Google_Service_YouTube_ChannelSettings';
5734    protected $channelDataType = '';
5735    protected $hintsType = 'Google_Service_YouTube_PropertyValue';
5736    protected $hintsDataType = 'array';
5737    protected $imageType = 'Google_Service_YouTube_ImageSettings';
5738    protected $imageDataType = '';
5739    protected $watchType = 'Google_Service_YouTube_WatchSettings';
5740    protected $watchDataType = '';
5741  
5742  
5743    public function setChannel(Google_Service_YouTube_ChannelSettings $channel)
5744    {
5745      $this->channel = $channel;
5746    }
5747    public function getChannel()
5748    {
5749      return $this->channel;
5750    }
5751    public function setHints($hints)
5752    {
5753      $this->hints = $hints;
5754    }
5755    public function getHints()
5756    {
5757      return $this->hints;
5758    }
5759    public function setImage(Google_Service_YouTube_ImageSettings $image)
5760    {
5761      $this->image = $image;
5762    }
5763    public function getImage()
5764    {
5765      return $this->image;
5766    }
5767    public function setWatch(Google_Service_YouTube_WatchSettings $watch)
5768    {
5769      $this->watch = $watch;
5770    }
5771    public function getWatch()
5772    {
5773      return $this->watch;
5774    }
5775  }
5776  
5777  class Google_Service_YouTube_ChannelContentDetails extends Google_Model
5778  {
5779    protected $internal_gapi_mappings = array(
5780    );
5781    public $googlePlusUserId;
5782    protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists';
5783    protected $relatedPlaylistsDataType = '';
5784  
5785  
5786    public function setGooglePlusUserId($googlePlusUserId)
5787    {
5788      $this->googlePlusUserId = $googlePlusUserId;
5789    }
5790    public function getGooglePlusUserId()
5791    {
5792      return $this->googlePlusUserId;
5793    }
5794    public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists)
5795    {
5796      $this->relatedPlaylists = $relatedPlaylists;
5797    }
5798    public function getRelatedPlaylists()
5799    {
5800      return $this->relatedPlaylists;
5801    }
5802  }
5803  
5804  class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model
5805  {
5806    protected $internal_gapi_mappings = array(
5807    );
5808    public $favorites;
5809    public $likes;
5810    public $uploads;
5811    public $watchHistory;
5812    public $watchLater;
5813  
5814  
5815    public function setFavorites($favorites)
5816    {
5817      $this->favorites = $favorites;
5818    }
5819    public function getFavorites()
5820    {
5821      return $this->favorites;
5822    }
5823    public function setLikes($likes)
5824    {
5825      $this->likes = $likes;
5826    }
5827    public function getLikes()
5828    {
5829      return $this->likes;
5830    }
5831    public function setUploads($uploads)
5832    {
5833      $this->uploads = $uploads;
5834    }
5835    public function getUploads()
5836    {
5837      return $this->uploads;
5838    }
5839    public function setWatchHistory($watchHistory)
5840    {
5841      $this->watchHistory = $watchHistory;
5842    }
5843    public function getWatchHistory()
5844    {
5845      return $this->watchHistory;
5846    }
5847    public function setWatchLater($watchLater)
5848    {
5849      $this->watchLater = $watchLater;
5850    }
5851    public function getWatchLater()
5852    {
5853      return $this->watchLater;
5854    }
5855  }
5856  
5857  class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model
5858  {
5859    protected $internal_gapi_mappings = array(
5860    );
5861    public $contentOwner;
5862    public $timeLinked;
5863  
5864  
5865    public function setContentOwner($contentOwner)
5866    {
5867      $this->contentOwner = $contentOwner;
5868    }
5869    public function getContentOwner()
5870    {
5871      return $this->contentOwner;
5872    }
5873    public function setTimeLinked($timeLinked)
5874    {
5875      $this->timeLinked = $timeLinked;
5876    }
5877    public function getTimeLinked()
5878    {
5879      return $this->timeLinked;
5880    }
5881  }
5882  
5883  class Google_Service_YouTube_ChannelConversionPing extends Google_Model
5884  {
5885    protected $internal_gapi_mappings = array(
5886    );
5887    public $context;
5888    public $conversionUrl;
5889  
5890  
5891    public function setContext($context)
5892    {
5893      $this->context = $context;
5894    }
5895    public function getContext()
5896    {
5897      return $this->context;
5898    }
5899    public function setConversionUrl($conversionUrl)
5900    {
5901      $this->conversionUrl = $conversionUrl;
5902    }
5903    public function getConversionUrl()
5904    {
5905      return $this->conversionUrl;
5906    }
5907  }
5908  
5909  class Google_Service_YouTube_ChannelConversionPings extends Google_Collection
5910  {
5911    protected $collection_key = 'pings';
5912    protected $internal_gapi_mappings = array(
5913    );
5914    protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing';
5915    protected $pingsDataType = 'array';
5916  
5917  
5918    public function setPings($pings)
5919    {
5920      $this->pings = $pings;
5921    }
5922    public function getPings()
5923    {
5924      return $this->pings;
5925    }
5926  }
5927  
5928  class Google_Service_YouTube_ChannelId extends Google_Model
5929  {
5930    protected $internal_gapi_mappings = array(
5931    );
5932    public $value;
5933  
5934  
5935    public function setValue($value)
5936    {
5937      $this->value = $value;
5938    }
5939    public function getValue()
5940    {
5941      return $this->value;
5942    }
5943  }
5944  
5945  class Google_Service_YouTube_ChannelListResponse extends Google_Collection
5946  {
5947    protected $collection_key = 'items';
5948    protected $internal_gapi_mappings = array(
5949    );
5950    public $etag;
5951    public $eventId;
5952    protected $itemsType = 'Google_Service_YouTube_Channel';
5953    protected $itemsDataType = 'array';
5954    public $kind;
5955    public $nextPageToken;
5956    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
5957    protected $pageInfoDataType = '';
5958    public $prevPageToken;
5959    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
5960    protected $tokenPaginationDataType = '';
5961    public $visitorId;
5962  
5963  
5964    public function setEtag($etag)
5965    {
5966      $this->etag = $etag;
5967    }
5968    public function getEtag()
5969    {
5970      return $this->etag;
5971    }
5972    public function setEventId($eventId)
5973    {
5974      $this->eventId = $eventId;
5975    }
5976    public function getEventId()
5977    {
5978      return $this->eventId;
5979    }
5980    public function setItems($items)
5981    {
5982      $this->items = $items;
5983    }
5984    public function getItems()
5985    {
5986      return $this->items;
5987    }
5988    public function setKind($kind)
5989    {
5990      $this->kind = $kind;
5991    }
5992    public function getKind()
5993    {
5994      return $this->kind;
5995    }
5996    public function setNextPageToken($nextPageToken)
5997    {
5998      $this->nextPageToken = $nextPageToken;
5999    }
6000    public function getNextPageToken()
6001    {
6002      return $this->nextPageToken;
6003    }
6004    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
6005    {
6006      $this->pageInfo = $pageInfo;
6007    }
6008    public function getPageInfo()
6009    {
6010      return $this->pageInfo;
6011    }
6012    public function setPrevPageToken($prevPageToken)
6013    {
6014      $this->prevPageToken = $prevPageToken;
6015    }
6016    public function getPrevPageToken()
6017    {
6018      return $this->prevPageToken;
6019    }
6020    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
6021    {
6022      $this->tokenPagination = $tokenPagination;
6023    }
6024    public function getTokenPagination()
6025    {
6026      return $this->tokenPagination;
6027    }
6028    public function setVisitorId($visitorId)
6029    {
6030      $this->visitorId = $visitorId;
6031    }
6032    public function getVisitorId()
6033    {
6034      return $this->visitorId;
6035    }
6036  }
6037  
6038  class Google_Service_YouTube_ChannelLocalization extends Google_Model
6039  {
6040    protected $internal_gapi_mappings = array(
6041    );
6042    public $description;
6043    public $title;
6044  
6045  
6046    public function setDescription($description)
6047    {
6048      $this->description = $description;
6049    }
6050    public function getDescription()
6051    {
6052      return $this->description;
6053    }
6054    public function setTitle($title)
6055    {
6056      $this->title = $title;
6057    }
6058    public function getTitle()
6059    {
6060      return $this->title;
6061    }
6062  }
6063  
6064  class Google_Service_YouTube_ChannelLocalizations extends Google_Model
6065  {
6066  }
6067  
6068  class Google_Service_YouTube_ChannelSection extends Google_Model
6069  {
6070    protected $internal_gapi_mappings = array(
6071    );
6072    protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails';
6073    protected $contentDetailsDataType = '';
6074    public $etag;
6075    public $id;
6076    public $kind;
6077    protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization';
6078    protected $localizationsDataType = 'map';
6079    protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet';
6080    protected $snippetDataType = '';
6081    protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting';
6082    protected $targetingDataType = '';
6083  
6084  
6085    public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails)
6086    {
6087      $this->contentDetails = $contentDetails;
6088    }
6089    public function getContentDetails()
6090    {
6091      return $this->contentDetails;
6092    }
6093    public function setEtag($etag)
6094    {
6095      $this->etag = $etag;
6096    }
6097    public function getEtag()
6098    {
6099      return $this->etag;
6100    }
6101    public function setId($id)
6102    {
6103      $this->id = $id;
6104    }
6105    public function getId()
6106    {
6107      return $this->id;
6108    }
6109    public function setKind($kind)
6110    {
6111      $this->kind = $kind;
6112    }
6113    public function getKind()
6114    {
6115      return $this->kind;
6116    }
6117    public function setLocalizations($localizations)
6118    {
6119      $this->localizations = $localizations;
6120    }
6121    public function getLocalizations()
6122    {
6123      return $this->localizations;
6124    }
6125    public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet)
6126    {
6127      $this->snippet = $snippet;
6128    }
6129    public function getSnippet()
6130    {
6131      return $this->snippet;
6132    }
6133    public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting)
6134    {
6135      $this->targeting = $targeting;
6136    }
6137    public function getTargeting()
6138    {
6139      return $this->targeting;
6140    }
6141  }
6142  
6143  class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection
6144  {
6145    protected $collection_key = 'playlists';
6146    protected $internal_gapi_mappings = array(
6147    );
6148    public $channels;
6149    public $playlists;
6150  
6151  
6152    public function setChannels($channels)
6153    {
6154      $this->channels = $channels;
6155    }
6156    public function getChannels()
6157    {
6158      return $this->channels;
6159    }
6160    public function setPlaylists($playlists)
6161    {
6162      $this->playlists = $playlists;
6163    }
6164    public function getPlaylists()
6165    {
6166      return $this->playlists;
6167    }
6168  }
6169  
6170  class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection
6171  {
6172    protected $collection_key = 'items';
6173    protected $internal_gapi_mappings = array(
6174    );
6175    public $etag;
6176    public $eventId;
6177    protected $itemsType = 'Google_Service_YouTube_ChannelSection';
6178    protected $itemsDataType = 'array';
6179    public $kind;
6180    public $visitorId;
6181  
6182  
6183    public function setEtag($etag)
6184    {
6185      $this->etag = $etag;
6186    }
6187    public function getEtag()
6188    {
6189      return $this->etag;
6190    }
6191    public function setEventId($eventId)
6192    {
6193      $this->eventId = $eventId;
6194    }
6195    public function getEventId()
6196    {
6197      return $this->eventId;
6198    }
6199    public function setItems($items)
6200    {
6201      $this->items = $items;
6202    }
6203    public function getItems()
6204    {
6205      return $this->items;
6206    }
6207    public function setKind($kind)
6208    {
6209      $this->kind = $kind;
6210    }
6211    public function getKind()
6212    {
6213      return $this->kind;
6214    }
6215    public function setVisitorId($visitorId)
6216    {
6217      $this->visitorId = $visitorId;
6218    }
6219    public function getVisitorId()
6220    {
6221      return $this->visitorId;
6222    }
6223  }
6224  
6225  class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model
6226  {
6227    protected $internal_gapi_mappings = array(
6228    );
6229    public $title;
6230  
6231  
6232    public function setTitle($title)
6233    {
6234      $this->title = $title;
6235    }
6236    public function getTitle()
6237    {
6238      return $this->title;
6239    }
6240  }
6241  
6242  class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model
6243  {
6244  }
6245  
6246  class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model
6247  {
6248    protected $internal_gapi_mappings = array(
6249    );
6250    public $channelId;
6251    public $defaultLanguage;
6252    protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization';
6253    protected $localizedDataType = '';
6254    public $position;
6255    public $style;
6256    public $title;
6257    public $type;
6258  
6259  
6260    public function setChannelId($channelId)
6261    {
6262      $this->channelId = $channelId;
6263    }
6264    public function getChannelId()
6265    {
6266      return $this->channelId;
6267    }
6268    public function setDefaultLanguage($defaultLanguage)
6269    {
6270      $this->defaultLanguage = $defaultLanguage;
6271    }
6272    public function getDefaultLanguage()
6273    {
6274      return $this->defaultLanguage;
6275    }
6276    public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized)
6277    {
6278      $this->localized = $localized;
6279    }
6280    public function getLocalized()
6281    {
6282      return $this->localized;
6283    }
6284    public function setPosition($position)
6285    {
6286      $this->position = $position;
6287    }
6288    public function getPosition()
6289    {
6290      return $this->position;
6291    }
6292    public function setStyle($style)
6293    {
6294      $this->style = $style;
6295    }
6296    public function getStyle()
6297    {
6298      return $this->style;
6299    }
6300    public function setTitle($title)
6301    {
6302      $this->title = $title;
6303    }
6304    public function getTitle()
6305    {
6306      return $this->title;
6307    }
6308    public function setType($type)
6309    {
6310      $this->type = $type;
6311    }
6312    public function getType()
6313    {
6314      return $this->type;
6315    }
6316  }
6317  
6318  class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection
6319  {
6320    protected $collection_key = 'regions';
6321    protected $internal_gapi_mappings = array(
6322    );
6323    public $countries;
6324    public $languages;
6325    public $regions;
6326  
6327  
6328    public function setCountries($countries)
6329    {
6330      $this->countries = $countries;
6331    }
6332    public function getCountries()
6333    {
6334      return $this->countries;
6335    }
6336    public function setLanguages($languages)
6337    {
6338      $this->languages = $languages;
6339    }
6340    public function getLanguages()
6341    {
6342      return $this->languages;
6343    }
6344    public function setRegions($regions)
6345    {
6346      $this->regions = $regions;
6347    }
6348    public function getRegions()
6349    {
6350      return $this->regions;
6351    }
6352  }
6353  
6354  class Google_Service_YouTube_ChannelSettings extends Google_Collection
6355  {
6356    protected $collection_key = 'featuredChannelsUrls';
6357    protected $internal_gapi_mappings = array(
6358    );
6359    public $country;
6360    public $defaultLanguage;
6361    public $defaultTab;
6362    public $description;
6363    public $featuredChannelsTitle;
6364    public $featuredChannelsUrls;
6365    public $keywords;
6366    public $moderateComments;
6367    public $profileColor;
6368    public $showBrowseView;
6369    public $showRelatedChannels;
6370    public $title;
6371    public $trackingAnalyticsAccountId;
6372    public $unsubscribedTrailer;
6373  
6374  
6375    public function setCountry($country)
6376    {
6377      $this->country = $country;
6378    }
6379    public function getCountry()
6380    {
6381      return $this->country;
6382    }
6383    public function setDefaultLanguage($defaultLanguage)
6384    {
6385      $this->defaultLanguage = $defaultLanguage;
6386    }
6387    public function getDefaultLanguage()
6388    {
6389      return $this->defaultLanguage;
6390    }
6391    public function setDefaultTab($defaultTab)
6392    {
6393      $this->defaultTab = $defaultTab;
6394    }
6395    public function getDefaultTab()
6396    {
6397      return $this->defaultTab;
6398    }
6399    public function setDescription($description)
6400    {
6401      $this->description = $description;
6402    }
6403    public function getDescription()
6404    {
6405      return $this->description;
6406    }
6407    public function setFeaturedChannelsTitle($featuredChannelsTitle)
6408    {
6409      $this->featuredChannelsTitle = $featuredChannelsTitle;
6410    }
6411    public function getFeaturedChannelsTitle()
6412    {
6413      return $this->featuredChannelsTitle;
6414    }
6415    public function setFeaturedChannelsUrls($featuredChannelsUrls)
6416    {
6417      $this->featuredChannelsUrls = $featuredChannelsUrls;
6418    }
6419    public function getFeaturedChannelsUrls()
6420    {
6421      return $this->featuredChannelsUrls;
6422    }
6423    public function setKeywords($keywords)
6424    {
6425      $this->keywords = $keywords;
6426    }
6427    public function getKeywords()
6428    {
6429      return $this->keywords;
6430    }
6431    public function setModerateComments($moderateComments)
6432    {
6433      $this->moderateComments = $moderateComments;
6434    }
6435    public function getModerateComments()
6436    {
6437      return $this->moderateComments;
6438    }
6439    public function setProfileColor($profileColor)
6440    {
6441      $this->profileColor = $profileColor;
6442    }
6443    public function getProfileColor()
6444    {
6445      return $this->profileColor;
6446    }
6447    public function setShowBrowseView($showBrowseView)
6448    {
6449      $this->showBrowseView = $showBrowseView;
6450    }
6451    public function getShowBrowseView()
6452    {
6453      return $this->showBrowseView;
6454    }
6455    public function setShowRelatedChannels($showRelatedChannels)
6456    {
6457      $this->showRelatedChannels = $showRelatedChannels;
6458    }
6459    public function getShowRelatedChannels()
6460    {
6461      return $this->showRelatedChannels;
6462    }
6463    public function setTitle($title)
6464    {
6465      $this->title = $title;
6466    }
6467    public function getTitle()
6468    {
6469      return $this->title;
6470    }
6471    public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId)
6472    {
6473      $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId;
6474    }
6475    public function getTrackingAnalyticsAccountId()
6476    {
6477      return $this->trackingAnalyticsAccountId;
6478    }
6479    public function setUnsubscribedTrailer($unsubscribedTrailer)
6480    {
6481      $this->unsubscribedTrailer = $unsubscribedTrailer;
6482    }
6483    public function getUnsubscribedTrailer()
6484    {
6485      return $this->unsubscribedTrailer;
6486    }
6487  }
6488  
6489  class Google_Service_YouTube_ChannelSnippet extends Google_Model
6490  {
6491    protected $internal_gapi_mappings = array(
6492    );
6493    public $country;
6494    public $defaultLanguage;
6495    public $description;
6496    protected $localizedType = 'Google_Service_YouTube_ChannelLocalization';
6497    protected $localizedDataType = '';
6498    public $publishedAt;
6499    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
6500    protected $thumbnailsDataType = '';
6501    public $title;
6502  
6503  
6504    public function setCountry($country)
6505    {
6506      $this->country = $country;
6507    }
6508    public function getCountry()
6509    {
6510      return $this->country;
6511    }
6512    public function setDefaultLanguage($defaultLanguage)
6513    {
6514      $this->defaultLanguage = $defaultLanguage;
6515    }
6516    public function getDefaultLanguage()
6517    {
6518      return $this->defaultLanguage;
6519    }
6520    public function setDescription($description)
6521    {
6522      $this->description = $description;
6523    }
6524    public function getDescription()
6525    {
6526      return $this->description;
6527    }
6528    public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized)
6529    {
6530      $this->localized = $localized;
6531    }
6532    public function getLocalized()
6533    {
6534      return $this->localized;
6535    }
6536    public function setPublishedAt($publishedAt)
6537    {
6538      $this->publishedAt = $publishedAt;
6539    }
6540    public function getPublishedAt()
6541    {
6542      return $this->publishedAt;
6543    }
6544    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
6545    {
6546      $this->thumbnails = $thumbnails;
6547    }
6548    public function getThumbnails()
6549    {
6550      return $this->thumbnails;
6551    }
6552    public function setTitle($title)
6553    {
6554      $this->title = $title;
6555    }
6556    public function getTitle()
6557    {
6558      return $this->title;
6559    }
6560  }
6561  
6562  class Google_Service_YouTube_ChannelStatistics extends Google_Model
6563  {
6564    protected $internal_gapi_mappings = array(
6565    );
6566    public $commentCount;
6567    public $hiddenSubscriberCount;
6568    public $subscriberCount;
6569    public $videoCount;
6570    public $viewCount;
6571  
6572  
6573    public function setCommentCount($commentCount)
6574    {
6575      $this->commentCount = $commentCount;
6576    }
6577    public function getCommentCount()
6578    {
6579      return $this->commentCount;
6580    }
6581    public function setHiddenSubscriberCount($hiddenSubscriberCount)
6582    {
6583      $this->hiddenSubscriberCount = $hiddenSubscriberCount;
6584    }
6585    public function getHiddenSubscriberCount()
6586    {
6587      return $this->hiddenSubscriberCount;
6588    }
6589    public function setSubscriberCount($subscriberCount)
6590    {
6591      $this->subscriberCount = $subscriberCount;
6592    }
6593    public function getSubscriberCount()
6594    {
6595      return $this->subscriberCount;
6596    }
6597    public function setVideoCount($videoCount)
6598    {
6599      $this->videoCount = $videoCount;
6600    }
6601    public function getVideoCount()
6602    {
6603      return $this->videoCount;
6604    }
6605    public function setViewCount($viewCount)
6606    {
6607      $this->viewCount = $viewCount;
6608    }
6609    public function getViewCount()
6610    {
6611      return $this->viewCount;
6612    }
6613  }
6614  
6615  class Google_Service_YouTube_ChannelStatus extends Google_Model
6616  {
6617    protected $internal_gapi_mappings = array(
6618    );
6619    public $isLinked;
6620    public $longUploadsStatus;
6621    public $privacyStatus;
6622  
6623  
6624    public function setIsLinked($isLinked)
6625    {
6626      $this->isLinked = $isLinked;
6627    }
6628    public function getIsLinked()
6629    {
6630      return $this->isLinked;
6631    }
6632    public function setLongUploadsStatus($longUploadsStatus)
6633    {
6634      $this->longUploadsStatus = $longUploadsStatus;
6635    }
6636    public function getLongUploadsStatus()
6637    {
6638      return $this->longUploadsStatus;
6639    }
6640    public function setPrivacyStatus($privacyStatus)
6641    {
6642      $this->privacyStatus = $privacyStatus;
6643    }
6644    public function getPrivacyStatus()
6645    {
6646      return $this->privacyStatus;
6647    }
6648  }
6649  
6650  class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection
6651  {
6652    protected $collection_key = 'topicIds';
6653    protected $internal_gapi_mappings = array(
6654    );
6655    public $topicIds;
6656  
6657  
6658    public function setTopicIds($topicIds)
6659    {
6660      $this->topicIds = $topicIds;
6661    }
6662    public function getTopicIds()
6663    {
6664      return $this->topicIds;
6665    }
6666  }
6667  
6668  class Google_Service_YouTube_Comment extends Google_Model
6669  {
6670    protected $internal_gapi_mappings = array(
6671    );
6672    public $etag;
6673    public $id;
6674    public $kind;
6675    protected $snippetType = 'Google_Service_YouTube_CommentSnippet';
6676    protected $snippetDataType = '';
6677  
6678  
6679    public function setEtag($etag)
6680    {
6681      $this->etag = $etag;
6682    }
6683    public function getEtag()
6684    {
6685      return $this->etag;
6686    }
6687    public function setId($id)
6688    {
6689      $this->id = $id;
6690    }
6691    public function getId()
6692    {
6693      return $this->id;
6694    }
6695    public function setKind($kind)
6696    {
6697      $this->kind = $kind;
6698    }
6699    public function getKind()
6700    {
6701      return $this->kind;
6702    }
6703    public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet)
6704    {
6705      $this->snippet = $snippet;
6706    }
6707    public function getSnippet()
6708    {
6709      return $this->snippet;
6710    }
6711  }
6712  
6713  class Google_Service_YouTube_CommentListResponse extends Google_Collection
6714  {
6715    protected $collection_key = 'items';
6716    protected $internal_gapi_mappings = array(
6717    );
6718    public $etag;
6719    public $eventId;
6720    protected $itemsType = 'Google_Service_YouTube_Comment';
6721    protected $itemsDataType = 'array';
6722    public $kind;
6723    public $nextPageToken;
6724    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
6725    protected $pageInfoDataType = '';
6726    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
6727    protected $tokenPaginationDataType = '';
6728    public $visitorId;
6729  
6730  
6731    public function setEtag($etag)
6732    {
6733      $this->etag = $etag;
6734    }
6735    public function getEtag()
6736    {
6737      return $this->etag;
6738    }
6739    public function setEventId($eventId)
6740    {
6741      $this->eventId = $eventId;
6742    }
6743    public function getEventId()
6744    {
6745      return $this->eventId;
6746    }
6747    public function setItems($items)
6748    {
6749      $this->items = $items;
6750    }
6751    public function getItems()
6752    {
6753      return $this->items;
6754    }
6755    public function setKind($kind)
6756    {
6757      $this->kind = $kind;
6758    }
6759    public function getKind()
6760    {
6761      return $this->kind;
6762    }
6763    public function setNextPageToken($nextPageToken)
6764    {
6765      $this->nextPageToken = $nextPageToken;
6766    }
6767    public function getNextPageToken()
6768    {
6769      return $this->nextPageToken;
6770    }
6771    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
6772    {
6773      $this->pageInfo = $pageInfo;
6774    }
6775    public function getPageInfo()
6776    {
6777      return $this->pageInfo;
6778    }
6779    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
6780    {
6781      $this->tokenPagination = $tokenPagination;
6782    }
6783    public function getTokenPagination()
6784    {
6785      return $this->tokenPagination;
6786    }
6787    public function setVisitorId($visitorId)
6788    {
6789      $this->visitorId = $visitorId;
6790    }
6791    public function getVisitorId()
6792    {
6793      return $this->visitorId;
6794    }
6795  }
6796  
6797  class Google_Service_YouTube_CommentSnippet extends Google_Model
6798  {
6799    protected $internal_gapi_mappings = array(
6800    );
6801    protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId';
6802    protected $authorChannelIdDataType = '';
6803    public $authorChannelUrl;
6804    public $authorDisplayName;
6805    public $authorGoogleplusProfileUrl;
6806    public $authorProfileImageUrl;
6807    public $canRate;
6808    public $channelId;
6809    public $likeCount;
6810    public $moderationStatus;
6811    public $parentId;
6812    public $publishedAt;
6813    public $textDisplay;
6814    public $textOriginal;
6815    public $updatedAt;
6816    public $videoId;
6817    public $viewerRating;
6818  
6819  
6820    public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId)
6821    {
6822      $this->authorChannelId = $authorChannelId;
6823    }
6824    public function getAuthorChannelId()
6825    {
6826      return $this->authorChannelId;
6827    }
6828    public function setAuthorChannelUrl($authorChannelUrl)
6829    {
6830      $this->authorChannelUrl = $authorChannelUrl;
6831    }
6832    public function getAuthorChannelUrl()
6833    {
6834      return $this->authorChannelUrl;
6835    }
6836    public function setAuthorDisplayName($authorDisplayName)
6837    {
6838      $this->authorDisplayName = $authorDisplayName;
6839    }
6840    public function getAuthorDisplayName()
6841    {
6842      return $this->authorDisplayName;
6843    }
6844    public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl)
6845    {
6846      $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl;
6847    }
6848    public function getAuthorGoogleplusProfileUrl()
6849    {
6850      return $this->authorGoogleplusProfileUrl;
6851    }
6852    public function setAuthorProfileImageUrl($authorProfileImageUrl)
6853    {
6854      $this->authorProfileImageUrl = $authorProfileImageUrl;
6855    }
6856    public function getAuthorProfileImageUrl()
6857    {
6858      return $this->authorProfileImageUrl;
6859    }
6860    public function setCanRate($canRate)
6861    {
6862      $this->canRate = $canRate;
6863    }
6864    public function getCanRate()
6865    {
6866      return $this->canRate;
6867    }
6868    public function setChannelId($channelId)
6869    {
6870      $this->channelId = $channelId;
6871    }
6872    public function getChannelId()
6873    {
6874      return $this->channelId;
6875    }
6876    public function setLikeCount($likeCount)
6877    {
6878      $this->likeCount = $likeCount;
6879    }
6880    public function getLikeCount()
6881    {
6882      return $this->likeCount;
6883    }
6884    public function setModerationStatus($moderationStatus)
6885    {
6886      $this->moderationStatus = $moderationStatus;
6887    }
6888    public function getModerationStatus()
6889    {
6890      return $this->moderationStatus;
6891    }
6892    public function setParentId($parentId)
6893    {
6894      $this->parentId = $parentId;
6895    }
6896    public function getParentId()
6897    {
6898      return $this->parentId;
6899    }
6900    public function setPublishedAt($publishedAt)
6901    {
6902      $this->publishedAt = $publishedAt;
6903    }
6904    public function getPublishedAt()
6905    {
6906      return $this->publishedAt;
6907    }
6908    public function setTextDisplay($textDisplay)
6909    {
6910      $this->textDisplay = $textDisplay;
6911    }
6912    public function getTextDisplay()
6913    {
6914      return $this->textDisplay;
6915    }
6916    public function setTextOriginal($textOriginal)
6917    {
6918      $this->textOriginal = $textOriginal;
6919    }
6920    public function getTextOriginal()
6921    {
6922      return $this->textOriginal;
6923    }
6924    public function setUpdatedAt($updatedAt)
6925    {
6926      $this->updatedAt = $updatedAt;
6927    }
6928    public function getUpdatedAt()
6929    {
6930      return $this->updatedAt;
6931    }
6932    public function setVideoId($videoId)
6933    {
6934      $this->videoId = $videoId;
6935    }
6936    public function getVideoId()
6937    {
6938      return $this->videoId;
6939    }
6940    public function setViewerRating($viewerRating)
6941    {
6942      $this->viewerRating = $viewerRating;
6943    }
6944    public function getViewerRating()
6945    {
6946      return $this->viewerRating;
6947    }
6948  }
6949  
6950  class Google_Service_YouTube_CommentThread extends Google_Model
6951  {
6952    protected $internal_gapi_mappings = array(
6953    );
6954    public $etag;
6955    public $id;
6956    public $kind;
6957    protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies';
6958    protected $repliesDataType = '';
6959    protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet';
6960    protected $snippetDataType = '';
6961  
6962  
6963    public function setEtag($etag)
6964    {
6965      $this->etag = $etag;
6966    }
6967    public function getEtag()
6968    {
6969      return $this->etag;
6970    }
6971    public function setId($id)
6972    {
6973      $this->id = $id;
6974    }
6975    public function getId()
6976    {
6977      return $this->id;
6978    }
6979    public function setKind($kind)
6980    {
6981      $this->kind = $kind;
6982    }
6983    public function getKind()
6984    {
6985      return $this->kind;
6986    }
6987    public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies)
6988    {
6989      $this->replies = $replies;
6990    }
6991    public function getReplies()
6992    {
6993      return $this->replies;
6994    }
6995    public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet)
6996    {
6997      $this->snippet = $snippet;
6998    }
6999    public function getSnippet()
7000    {
7001      return $this->snippet;
7002    }
7003  }
7004  
7005  class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection
7006  {
7007    protected $collection_key = 'items';
7008    protected $internal_gapi_mappings = array(
7009    );
7010    public $etag;
7011    public $eventId;
7012    protected $itemsType = 'Google_Service_YouTube_CommentThread';
7013    protected $itemsDataType = 'array';
7014    public $kind;
7015    public $nextPageToken;
7016    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
7017    protected $pageInfoDataType = '';
7018    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
7019    protected $tokenPaginationDataType = '';
7020    public $visitorId;
7021  
7022  
7023    public function setEtag($etag)
7024    {
7025      $this->etag = $etag;
7026    }
7027    public function getEtag()
7028    {
7029      return $this->etag;
7030    }
7031    public function setEventId($eventId)
7032    {
7033      $this->eventId = $eventId;
7034    }
7035    public function getEventId()
7036    {
7037      return $this->eventId;
7038    }
7039    public function setItems($items)
7040    {
7041      $this->items = $items;
7042    }
7043    public function getItems()
7044    {
7045      return $this->items;
7046    }
7047    public function setKind($kind)
7048    {
7049      $this->kind = $kind;
7050    }
7051    public function getKind()
7052    {
7053      return $this->kind;
7054    }
7055    public function setNextPageToken($nextPageToken)
7056    {
7057      $this->nextPageToken = $nextPageToken;
7058    }
7059    public function getNextPageToken()
7060    {
7061      return $this->nextPageToken;
7062    }
7063    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
7064    {
7065      $this->pageInfo = $pageInfo;
7066    }
7067    public function getPageInfo()
7068    {
7069      return $this->pageInfo;
7070    }
7071    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
7072    {
7073      $this->tokenPagination = $tokenPagination;
7074    }
7075    public function getTokenPagination()
7076    {
7077      return $this->tokenPagination;
7078    }
7079    public function setVisitorId($visitorId)
7080    {
7081      $this->visitorId = $visitorId;
7082    }
7083    public function getVisitorId()
7084    {
7085      return $this->visitorId;
7086    }
7087  }
7088  
7089  class Google_Service_YouTube_CommentThreadReplies extends Google_Collection
7090  {
7091    protected $collection_key = 'comments';
7092    protected $internal_gapi_mappings = array(
7093    );
7094    protected $commentsType = 'Google_Service_YouTube_Comment';
7095    protected $commentsDataType = 'array';
7096  
7097  
7098    public function setComments($comments)
7099    {
7100      $this->comments = $comments;
7101    }
7102    public function getComments()
7103    {
7104      return $this->comments;
7105    }
7106  }
7107  
7108  class Google_Service_YouTube_CommentThreadSnippet extends Google_Model
7109  {
7110    protected $internal_gapi_mappings = array(
7111    );
7112    public $canReply;
7113    public $channelId;
7114    public $isPublic;
7115    protected $topLevelCommentType = 'Google_Service_YouTube_Comment';
7116    protected $topLevelCommentDataType = '';
7117    public $totalReplyCount;
7118    public $videoId;
7119  
7120  
7121    public function setCanReply($canReply)
7122    {
7123      $this->canReply = $canReply;
7124    }
7125    public function getCanReply()
7126    {
7127      return $this->canReply;
7128    }
7129    public function setChannelId($channelId)
7130    {
7131      $this->channelId = $channelId;
7132    }
7133    public function getChannelId()
7134    {
7135      return $this->channelId;
7136    }
7137    public function setIsPublic($isPublic)
7138    {
7139      $this->isPublic = $isPublic;
7140    }
7141    public function getIsPublic()
7142    {
7143      return $this->isPublic;
7144    }
7145    public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment)
7146    {
7147      $this->topLevelComment = $topLevelComment;
7148    }
7149    public function getTopLevelComment()
7150    {
7151      return $this->topLevelComment;
7152    }
7153    public function setTotalReplyCount($totalReplyCount)
7154    {
7155      $this->totalReplyCount = $totalReplyCount;
7156    }
7157    public function getTotalReplyCount()
7158    {
7159      return $this->totalReplyCount;
7160    }
7161    public function setVideoId($videoId)
7162    {
7163      $this->videoId = $videoId;
7164    }
7165    public function getVideoId()
7166    {
7167      return $this->videoId;
7168    }
7169  }
7170  
7171  class Google_Service_YouTube_ContentRating extends Google_Collection
7172  {
7173    protected $collection_key = 'djctqRatingReasons';
7174    protected $internal_gapi_mappings = array(
7175    );
7176    public $acbRating;
7177    public $agcomRating;
7178    public $anatelRating;
7179    public $bbfcRating;
7180    public $bfvcRating;
7181    public $bmukkRating;
7182    public $catvRating;
7183    public $catvfrRating;
7184    public $cbfcRating;
7185    public $cccRating;
7186    public $cceRating;
7187    public $chfilmRating;
7188    public $chvrsRating;
7189    public $cicfRating;
7190    public $cnaRating;
7191    public $cncRating;
7192    public $csaRating;
7193    public $cscfRating;
7194    public $czfilmRating;
7195    public $djctqRating;
7196    public $djctqRatingReasons;
7197    public $eefilmRating;
7198    public $egfilmRating;
7199    public $eirinRating;
7200    public $fcbmRating;
7201    public $fcoRating;
7202    public $fmocRating;
7203    public $fpbRating;
7204    public $fskRating;
7205    public $grfilmRating;
7206    public $icaaRating;
7207    public $ifcoRating;
7208    public $ilfilmRating;
7209    public $incaaRating;
7210    public $kfcbRating;
7211    public $kijkwijzerRating;
7212    public $kmrbRating;
7213    public $lsfRating;
7214    public $mccaaRating;
7215    public $mccypRating;
7216    public $mdaRating;
7217    public $medietilsynetRating;
7218    public $mekuRating;
7219    public $mibacRating;
7220    public $mocRating;
7221    public $moctwRating;
7222    public $mpaaRating;
7223    public $mtrcbRating;
7224    public $nbcRating;
7225    public $nbcplRating;
7226    public $nfrcRating;
7227    public $nfvcbRating;
7228    public $nkclvRating;
7229    public $oflcRating;
7230    public $pefilmRating;
7231    public $rcnofRating;
7232    public $resorteviolenciaRating;
7233    public $rtcRating;
7234    public $rteRating;
7235    public $russiaRating;
7236    public $skfilmRating;
7237    public $smaisRating;
7238    public $smsaRating;
7239    public $tvpgRating;
7240    public $ytRating;
7241  
7242  
7243    public function setAcbRating($acbRating)
7244    {
7245      $this->acbRating = $acbRating;
7246    }
7247    public function getAcbRating()
7248    {
7249      return $this->acbRating;
7250    }
7251    public function setAgcomRating($agcomRating)
7252    {
7253      $this->agcomRating = $agcomRating;
7254    }
7255    public function getAgcomRating()
7256    {
7257      return $this->agcomRating;
7258    }
7259    public function setAnatelRating($anatelRating)
7260    {
7261      $this->anatelRating = $anatelRating;
7262    }
7263    public function getAnatelRating()
7264    {
7265      return $this->anatelRating;
7266    }
7267    public function setBbfcRating($bbfcRating)
7268    {
7269      $this->bbfcRating = $bbfcRating;
7270    }
7271    public function getBbfcRating()
7272    {
7273      return $this->bbfcRating;
7274    }
7275    public function setBfvcRating($bfvcRating)
7276    {
7277      $this->bfvcRating = $bfvcRating;
7278    }
7279    public function getBfvcRating()
7280    {
7281      return $this->bfvcRating;
7282    }
7283    public function setBmukkRating($bmukkRating)
7284    {
7285      $this->bmukkRating = $bmukkRating;
7286    }
7287    public function getBmukkRating()
7288    {
7289      return $this->bmukkRating;
7290    }
7291    public function setCatvRating($catvRating)
7292    {
7293      $this->catvRating = $catvRating;
7294    }
7295    public function getCatvRating()
7296    {
7297      return $this->catvRating;
7298    }
7299    public function setCatvfrRating($catvfrRating)
7300    {
7301      $this->catvfrRating = $catvfrRating;
7302    }
7303    public function getCatvfrRating()
7304    {
7305      return $this->catvfrRating;
7306    }
7307    public function setCbfcRating($cbfcRating)
7308    {
7309      $this->cbfcRating = $cbfcRating;
7310    }
7311    public function getCbfcRating()
7312    {
7313      return $this->cbfcRating;
7314    }
7315    public function setCccRating($cccRating)
7316    {
7317      $this->cccRating = $cccRating;
7318    }
7319    public function getCccRating()
7320    {
7321      return $this->cccRating;
7322    }
7323    public function setCceRating($cceRating)
7324    {
7325      $this->cceRating = $cceRating;
7326    }
7327    public function getCceRating()
7328    {
7329      return $this->cceRating;
7330    }
7331    public function setChfilmRating($chfilmRating)
7332    {
7333      $this->chfilmRating = $chfilmRating;
7334    }
7335    public function getChfilmRating()
7336    {
7337      return $this->chfilmRating;
7338    }
7339    public function setChvrsRating($chvrsRating)
7340    {
7341      $this->chvrsRating = $chvrsRating;
7342    }
7343    public function getChvrsRating()
7344    {
7345      return $this->chvrsRating;
7346    }
7347    public function setCicfRating($cicfRating)
7348    {
7349      $this->cicfRating = $cicfRating;
7350    }
7351    public function getCicfRating()
7352    {
7353      return $this->cicfRating;
7354    }
7355    public function setCnaRating($cnaRating)
7356    {
7357      $this->cnaRating = $cnaRating;
7358    }
7359    public function getCnaRating()
7360    {
7361      return $this->cnaRating;
7362    }
7363    public function setCncRating($cncRating)
7364    {
7365      $this->cncRating = $cncRating;
7366    }
7367    public function getCncRating()
7368    {
7369      return $this->cncRating;
7370    }
7371    public function setCsaRating($csaRating)
7372    {
7373      $this->csaRating = $csaRating;
7374    }
7375    public function getCsaRating()
7376    {
7377      return $this->csaRating;
7378    }
7379    public function setCscfRating($cscfRating)
7380    {
7381      $this->cscfRating = $cscfRating;
7382    }
7383    public function getCscfRating()
7384    {
7385      return $this->cscfRating;
7386    }
7387    public function setCzfilmRating($czfilmRating)
7388    {
7389      $this->czfilmRating = $czfilmRating;
7390    }
7391    public function getCzfilmRating()
7392    {
7393      return $this->czfilmRating;
7394    }
7395    public function setDjctqRating($djctqRating)
7396    {
7397      $this->djctqRating = $djctqRating;
7398    }
7399    public function getDjctqRating()
7400    {
7401      return $this->djctqRating;
7402    }
7403    public function setDjctqRatingReasons($djctqRatingReasons)
7404    {
7405      $this->djctqRatingReasons = $djctqRatingReasons;
7406    }
7407    public function getDjctqRatingReasons()
7408    {
7409      return $this->djctqRatingReasons;
7410    }
7411    public function setEefilmRating($eefilmRating)
7412    {
7413      $this->eefilmRating = $eefilmRating;
7414    }
7415    public function getEefilmRating()
7416    {
7417      return $this->eefilmRating;
7418    }
7419    public function setEgfilmRating($egfilmRating)
7420    {
7421      $this->egfilmRating = $egfilmRating;
7422    }
7423    public function getEgfilmRating()
7424    {
7425      return $this->egfilmRating;
7426    }
7427    public function setEirinRating($eirinRating)
7428    {
7429      $this->eirinRating = $eirinRating;
7430    }
7431    public function getEirinRating()
7432    {
7433      return $this->eirinRating;
7434    }
7435    public function setFcbmRating($fcbmRating)
7436    {
7437      $this->fcbmRating = $fcbmRating;
7438    }
7439    public function getFcbmRating()
7440    {
7441      return $this->fcbmRating;
7442    }
7443    public function setFcoRating($fcoRating)
7444    {
7445      $this->fcoRating = $fcoRating;
7446    }
7447    public function getFcoRating()
7448    {
7449      return $this->fcoRating;
7450    }
7451    public function setFmocRating($fmocRating)
7452    {
7453      $this->fmocRating = $fmocRating;
7454    }
7455    public function getFmocRating()
7456    {
7457      return $this->fmocRating;
7458    }
7459    public function setFpbRating($fpbRating)
7460    {
7461      $this->fpbRating = $fpbRating;
7462    }
7463    public function getFpbRating()
7464    {
7465      return $this->fpbRating;
7466    }
7467    public function setFskRating($fskRating)
7468    {
7469      $this->fskRating = $fskRating;
7470    }
7471    public function getFskRating()
7472    {
7473      return $this->fskRating;
7474    }
7475    public function setGrfilmRating($grfilmRating)
7476    {
7477      $this->grfilmRating = $grfilmRating;
7478    }
7479    public function getGrfilmRating()
7480    {
7481      return $this->grfilmRating;
7482    }
7483    public function setIcaaRating($icaaRating)
7484    {
7485      $this->icaaRating = $icaaRating;
7486    }
7487    public function getIcaaRating()
7488    {
7489      return $this->icaaRating;
7490    }
7491    public function setIfcoRating($ifcoRating)
7492    {
7493      $this->ifcoRating = $ifcoRating;
7494    }
7495    public function getIfcoRating()
7496    {
7497      return $this->ifcoRating;
7498    }
7499    public function setIlfilmRating($ilfilmRating)
7500    {
7501      $this->ilfilmRating = $ilfilmRating;
7502    }
7503    public function getIlfilmRating()
7504    {
7505      return $this->ilfilmRating;
7506    }
7507    public function setIncaaRating($incaaRating)
7508    {
7509      $this->incaaRating = $incaaRating;
7510    }
7511    public function getIncaaRating()
7512    {
7513      return $this->incaaRating;
7514    }
7515    public function setKfcbRating($kfcbRating)
7516    {
7517      $this->kfcbRating = $kfcbRating;
7518    }
7519    public function getKfcbRating()
7520    {
7521      return $this->kfcbRating;
7522    }
7523    public function setKijkwijzerRating($kijkwijzerRating)
7524    {
7525      $this->kijkwijzerRating = $kijkwijzerRating;
7526    }
7527    public function getKijkwijzerRating()
7528    {
7529      return $this->kijkwijzerRating;
7530    }
7531    public function setKmrbRating($kmrbRating)
7532    {
7533      $this->kmrbRating = $kmrbRating;
7534    }
7535    public function getKmrbRating()
7536    {
7537      return $this->kmrbRating;
7538    }
7539    public function setLsfRating($lsfRating)
7540    {
7541      $this->lsfRating = $lsfRating;
7542    }
7543    public function getLsfRating()
7544    {
7545      return $this->lsfRating;
7546    }
7547    public function setMccaaRating($mccaaRating)
7548    {
7549      $this->mccaaRating = $mccaaRating;
7550    }
7551    public function getMccaaRating()
7552    {
7553      return $this->mccaaRating;
7554    }
7555    public function setMccypRating($mccypRating)
7556    {
7557      $this->mccypRating = $mccypRating;
7558    }
7559    public function getMccypRating()
7560    {
7561      return $this->mccypRating;
7562    }
7563    public function setMdaRating($mdaRating)
7564    {
7565      $this->mdaRating = $mdaRating;
7566    }
7567    public function getMdaRating()
7568    {
7569      return $this->mdaRating;
7570    }
7571    public function setMedietilsynetRating($medietilsynetRating)
7572    {
7573      $this->medietilsynetRating = $medietilsynetRating;
7574    }
7575    public function getMedietilsynetRating()
7576    {
7577      return $this->medietilsynetRating;
7578    }
7579    public function setMekuRating($mekuRating)
7580    {
7581      $this->mekuRating = $mekuRating;
7582    }
7583    public function getMekuRating()
7584    {
7585      return $this->mekuRating;
7586    }
7587    public function setMibacRating($mibacRating)
7588    {
7589      $this->mibacRating = $mibacRating;
7590    }
7591    public function getMibacRating()
7592    {
7593      return $this->mibacRating;
7594    }
7595    public function setMocRating($mocRating)
7596    {
7597      $this->mocRating = $mocRating;
7598    }
7599    public function getMocRating()
7600    {
7601      return $this->mocRating;
7602    }
7603    public function setMoctwRating($moctwRating)
7604    {
7605      $this->moctwRating = $moctwRating;
7606    }
7607    public function getMoctwRating()
7608    {
7609      return $this->moctwRating;
7610    }
7611    public function setMpaaRating($mpaaRating)
7612    {
7613      $this->mpaaRating = $mpaaRating;
7614    }
7615    public function getMpaaRating()
7616    {
7617      return $this->mpaaRating;
7618    }
7619    public function setMtrcbRating($mtrcbRating)
7620    {
7621      $this->mtrcbRating = $mtrcbRating;
7622    }
7623    public function getMtrcbRating()
7624    {
7625      return $this->mtrcbRating;
7626    }
7627    public function setNbcRating($nbcRating)
7628    {
7629      $this->nbcRating = $nbcRating;
7630    }
7631    public function getNbcRating()
7632    {
7633      return $this->nbcRating;
7634    }
7635    public function setNbcplRating($nbcplRating)
7636    {
7637      $this->nbcplRating = $nbcplRating;
7638    }
7639    public function getNbcplRating()
7640    {
7641      return $this->nbcplRating;
7642    }
7643    public function setNfrcRating($nfrcRating)
7644    {
7645      $this->nfrcRating = $nfrcRating;
7646    }
7647    public function getNfrcRating()
7648    {
7649      return $this->nfrcRating;
7650    }
7651    public function setNfvcbRating($nfvcbRating)
7652    {
7653      $this->nfvcbRating = $nfvcbRating;
7654    }
7655    public function getNfvcbRating()
7656    {
7657      return $this->nfvcbRating;
7658    }
7659    public function setNkclvRating($nkclvRating)
7660    {
7661      $this->nkclvRating = $nkclvRating;
7662    }
7663    public function getNkclvRating()
7664    {
7665      return $this->nkclvRating;
7666    }
7667    public function setOflcRating($oflcRating)
7668    {
7669      $this->oflcRating = $oflcRating;
7670    }
7671    public function getOflcRating()
7672    {
7673      return $this->oflcRating;
7674    }
7675    public function setPefilmRating($pefilmRating)
7676    {
7677      $this->pefilmRating = $pefilmRating;
7678    }
7679    public function getPefilmRating()
7680    {
7681      return $this->pefilmRating;
7682    }
7683    public function setRcnofRating($rcnofRating)
7684    {
7685      $this->rcnofRating = $rcnofRating;
7686    }
7687    public function getRcnofRating()
7688    {
7689      return $this->rcnofRating;
7690    }
7691    public function setResorteviolenciaRating($resorteviolenciaRating)
7692    {
7693      $this->resorteviolenciaRating = $resorteviolenciaRating;
7694    }
7695    public function getResorteviolenciaRating()
7696    {
7697      return $this->resorteviolenciaRating;
7698    }
7699    public function setRtcRating($rtcRating)
7700    {
7701      $this->rtcRating = $rtcRating;
7702    }
7703    public function getRtcRating()
7704    {
7705      return $this->rtcRating;
7706    }
7707    public function setRteRating($rteRating)
7708    {
7709      $this->rteRating = $rteRating;
7710    }
7711    public function getRteRating()
7712    {
7713      return $this->rteRating;
7714    }
7715    public function setRussiaRating($russiaRating)
7716    {
7717      $this->russiaRating = $russiaRating;
7718    }
7719    public function getRussiaRating()
7720    {
7721      return $this->russiaRating;
7722    }
7723    public function setSkfilmRating($skfilmRating)
7724    {
7725      $this->skfilmRating = $skfilmRating;
7726    }
7727    public function getSkfilmRating()
7728    {
7729      return $this->skfilmRating;
7730    }
7731    public function setSmaisRating($smaisRating)
7732    {
7733      $this->smaisRating = $smaisRating;
7734    }
7735    public function getSmaisRating()
7736    {
7737      return $this->smaisRating;
7738    }
7739    public function setSmsaRating($smsaRating)
7740    {
7741      $this->smsaRating = $smsaRating;
7742    }
7743    public function getSmsaRating()
7744    {
7745      return $this->smsaRating;
7746    }
7747    public function setTvpgRating($tvpgRating)
7748    {
7749      $this->tvpgRating = $tvpgRating;
7750    }
7751    public function getTvpgRating()
7752    {
7753      return $this->tvpgRating;
7754    }
7755    public function setYtRating($ytRating)
7756    {
7757      $this->ytRating = $ytRating;
7758    }
7759    public function getYtRating()
7760    {
7761      return $this->ytRating;
7762    }
7763  }
7764  
7765  class Google_Service_YouTube_GeoPoint extends Google_Model
7766  {
7767    protected $internal_gapi_mappings = array(
7768    );
7769    public $altitude;
7770    public $latitude;
7771    public $longitude;
7772  
7773  
7774    public function setAltitude($altitude)
7775    {
7776      $this->altitude = $altitude;
7777    }
7778    public function getAltitude()
7779    {
7780      return $this->altitude;
7781    }
7782    public function setLatitude($latitude)
7783    {
7784      $this->latitude = $latitude;
7785    }
7786    public function getLatitude()
7787    {
7788      return $this->latitude;
7789    }
7790    public function setLongitude($longitude)
7791    {
7792      $this->longitude = $longitude;
7793    }
7794    public function getLongitude()
7795    {
7796      return $this->longitude;
7797    }
7798  }
7799  
7800  class Google_Service_YouTube_GuideCategory extends Google_Model
7801  {
7802    protected $internal_gapi_mappings = array(
7803    );
7804    public $etag;
7805    public $id;
7806    public $kind;
7807    protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet';
7808    protected $snippetDataType = '';
7809  
7810  
7811    public function setEtag($etag)
7812    {
7813      $this->etag = $etag;
7814    }
7815    public function getEtag()
7816    {
7817      return $this->etag;
7818    }
7819    public function setId($id)
7820    {
7821      $this->id = $id;
7822    }
7823    public function getId()
7824    {
7825      return $this->id;
7826    }
7827    public function setKind($kind)
7828    {
7829      $this->kind = $kind;
7830    }
7831    public function getKind()
7832    {
7833      return $this->kind;
7834    }
7835    public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet)
7836    {
7837      $this->snippet = $snippet;
7838    }
7839    public function getSnippet()
7840    {
7841      return $this->snippet;
7842    }
7843  }
7844  
7845  class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection
7846  {
7847    protected $collection_key = 'items';
7848    protected $internal_gapi_mappings = array(
7849    );
7850    public $etag;
7851    public $eventId;
7852    protected $itemsType = 'Google_Service_YouTube_GuideCategory';
7853    protected $itemsDataType = 'array';
7854    public $kind;
7855    public $nextPageToken;
7856    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
7857    protected $pageInfoDataType = '';
7858    public $prevPageToken;
7859    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
7860    protected $tokenPaginationDataType = '';
7861    public $visitorId;
7862  
7863  
7864    public function setEtag($etag)
7865    {
7866      $this->etag = $etag;
7867    }
7868    public function getEtag()
7869    {
7870      return $this->etag;
7871    }
7872    public function setEventId($eventId)
7873    {
7874      $this->eventId = $eventId;
7875    }
7876    public function getEventId()
7877    {
7878      return $this->eventId;
7879    }
7880    public function setItems($items)
7881    {
7882      $this->items = $items;
7883    }
7884    public function getItems()
7885    {
7886      return $this->items;
7887    }
7888    public function setKind($kind)
7889    {
7890      $this->kind = $kind;
7891    }
7892    public function getKind()
7893    {
7894      return $this->kind;
7895    }
7896    public function setNextPageToken($nextPageToken)
7897    {
7898      $this->nextPageToken = $nextPageToken;
7899    }
7900    public function getNextPageToken()
7901    {
7902      return $this->nextPageToken;
7903    }
7904    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
7905    {
7906      $this->pageInfo = $pageInfo;
7907    }
7908    public function getPageInfo()
7909    {
7910      return $this->pageInfo;
7911    }
7912    public function setPrevPageToken($prevPageToken)
7913    {
7914      $this->prevPageToken = $prevPageToken;
7915    }
7916    public function getPrevPageToken()
7917    {
7918      return $this->prevPageToken;
7919    }
7920    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
7921    {
7922      $this->tokenPagination = $tokenPagination;
7923    }
7924    public function getTokenPagination()
7925    {
7926      return $this->tokenPagination;
7927    }
7928    public function setVisitorId($visitorId)
7929    {
7930      $this->visitorId = $visitorId;
7931    }
7932    public function getVisitorId()
7933    {
7934      return $this->visitorId;
7935    }
7936  }
7937  
7938  class Google_Service_YouTube_GuideCategorySnippet extends Google_Model
7939  {
7940    protected $internal_gapi_mappings = array(
7941    );
7942    public $channelId;
7943    public $title;
7944  
7945  
7946    public function setChannelId($channelId)
7947    {
7948      $this->channelId = $channelId;
7949    }
7950    public function getChannelId()
7951    {
7952      return $this->channelId;
7953    }
7954    public function setTitle($title)
7955    {
7956      $this->title = $title;
7957    }
7958    public function getTitle()
7959    {
7960      return $this->title;
7961    }
7962  }
7963  
7964  class Google_Service_YouTube_I18nLanguage extends Google_Model
7965  {
7966    protected $internal_gapi_mappings = array(
7967    );
7968    public $etag;
7969    public $id;
7970    public $kind;
7971    protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet';
7972    protected $snippetDataType = '';
7973  
7974  
7975    public function setEtag($etag)
7976    {
7977      $this->etag = $etag;
7978    }
7979    public function getEtag()
7980    {
7981      return $this->etag;
7982    }
7983    public function setId($id)
7984    {
7985      $this->id = $id;
7986    }
7987    public function getId()
7988    {
7989      return $this->id;
7990    }
7991    public function setKind($kind)
7992    {
7993      $this->kind = $kind;
7994    }
7995    public function getKind()
7996    {
7997      return $this->kind;
7998    }
7999    public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet)
8000    {
8001      $this->snippet = $snippet;
8002    }
8003    public function getSnippet()
8004    {
8005      return $this->snippet;
8006    }
8007  }
8008  
8009  class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection
8010  {
8011    protected $collection_key = 'items';
8012    protected $internal_gapi_mappings = array(
8013    );
8014    public $etag;
8015    public $eventId;
8016    protected $itemsType = 'Google_Service_YouTube_I18nLanguage';
8017    protected $itemsDataType = 'array';
8018    public $kind;
8019    public $visitorId;
8020  
8021  
8022    public function setEtag($etag)
8023    {
8024      $this->etag = $etag;
8025    }
8026    public function getEtag()
8027    {
8028      return $this->etag;
8029    }
8030    public function setEventId($eventId)
8031    {
8032      $this->eventId = $eventId;
8033    }
8034    public function getEventId()
8035    {
8036      return $this->eventId;
8037    }
8038    public function setItems($items)
8039    {
8040      $this->items = $items;
8041    }
8042    public function getItems()
8043    {
8044      return $this->items;
8045    }
8046    public function setKind($kind)
8047    {
8048      $this->kind = $kind;
8049    }
8050    public function getKind()
8051    {
8052      return $this->kind;
8053    }
8054    public function setVisitorId($visitorId)
8055    {
8056      $this->visitorId = $visitorId;
8057    }
8058    public function getVisitorId()
8059    {
8060      return $this->visitorId;
8061    }
8062  }
8063  
8064  class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model
8065  {
8066    protected $internal_gapi_mappings = array(
8067    );
8068    public $hl;
8069    public $name;
8070  
8071  
8072    public function setHl($hl)
8073    {
8074      $this->hl = $hl;
8075    }
8076    public function getHl()
8077    {
8078      return $this->hl;
8079    }
8080    public function setName($name)
8081    {
8082      $this->name = $name;
8083    }
8084    public function getName()
8085    {
8086      return $this->name;
8087    }
8088  }
8089  
8090  class Google_Service_YouTube_I18nRegion extends Google_Model
8091  {
8092    protected $internal_gapi_mappings = array(
8093    );
8094    public $etag;
8095    public $id;
8096    public $kind;
8097    protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet';
8098    protected $snippetDataType = '';
8099  
8100  
8101    public function setEtag($etag)
8102    {
8103      $this->etag = $etag;
8104    }
8105    public function getEtag()
8106    {
8107      return $this->etag;
8108    }
8109    public function setId($id)
8110    {
8111      $this->id = $id;
8112    }
8113    public function getId()
8114    {
8115      return $this->id;
8116    }
8117    public function setKind($kind)
8118    {
8119      $this->kind = $kind;
8120    }
8121    public function getKind()
8122    {
8123      return $this->kind;
8124    }
8125    public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet)
8126    {
8127      $this->snippet = $snippet;
8128    }
8129    public function getSnippet()
8130    {
8131      return $this->snippet;
8132    }
8133  }
8134  
8135  class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection
8136  {
8137    protected $collection_key = 'items';
8138    protected $internal_gapi_mappings = array(
8139    );
8140    public $etag;
8141    public $eventId;
8142    protected $itemsType = 'Google_Service_YouTube_I18nRegion';
8143    protected $itemsDataType = 'array';
8144    public $kind;
8145    public $visitorId;
8146  
8147  
8148    public function setEtag($etag)
8149    {
8150      $this->etag = $etag;
8151    }
8152    public function getEtag()
8153    {
8154      return $this->etag;
8155    }
8156    public function setEventId($eventId)
8157    {
8158      $this->eventId = $eventId;
8159    }
8160    public function getEventId()
8161    {
8162      return $this->eventId;
8163    }
8164    public function setItems($items)
8165    {
8166      $this->items = $items;
8167    }
8168    public function getItems()
8169    {
8170      return $this->items;
8171    }
8172    public function setKind($kind)
8173    {
8174      $this->kind = $kind;
8175    }
8176    public function getKind()
8177    {
8178      return $this->kind;
8179    }
8180    public function setVisitorId($visitorId)
8181    {
8182      $this->visitorId = $visitorId;
8183    }
8184    public function getVisitorId()
8185    {
8186      return $this->visitorId;
8187    }
8188  }
8189  
8190  class Google_Service_YouTube_I18nRegionSnippet extends Google_Model
8191  {
8192    protected $internal_gapi_mappings = array(
8193    );
8194    public $gl;
8195    public $name;
8196  
8197  
8198    public function setGl($gl)
8199    {
8200      $this->gl = $gl;
8201    }
8202    public function getGl()
8203    {
8204      return $this->gl;
8205    }
8206    public function setName($name)
8207    {
8208      $this->name = $name;
8209    }
8210    public function getName()
8211    {
8212      return $this->name;
8213    }
8214  }
8215  
8216  class Google_Service_YouTube_ImageSettings extends Google_Model
8217  {
8218    protected $internal_gapi_mappings = array(
8219    );
8220    protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
8221    protected $backgroundImageUrlDataType = '';
8222    public $bannerExternalUrl;
8223    public $bannerImageUrl;
8224    public $bannerMobileExtraHdImageUrl;
8225    public $bannerMobileHdImageUrl;
8226    public $bannerMobileImageUrl;
8227    public $bannerMobileLowImageUrl;
8228    public $bannerMobileMediumHdImageUrl;
8229    public $bannerTabletExtraHdImageUrl;
8230    public $bannerTabletHdImageUrl;
8231    public $bannerTabletImageUrl;
8232    public $bannerTabletLowImageUrl;
8233    public $bannerTvHighImageUrl;
8234    public $bannerTvImageUrl;
8235    public $bannerTvLowImageUrl;
8236    public $bannerTvMediumImageUrl;
8237    protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
8238    protected $largeBrandedBannerImageImapScriptDataType = '';
8239    protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
8240    protected $largeBrandedBannerImageUrlDataType = '';
8241    protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
8242    protected $smallBrandedBannerImageImapScriptDataType = '';
8243    protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
8244    protected $smallBrandedBannerImageUrlDataType = '';
8245    public $trackingImageUrl;
8246    public $watchIconImageUrl;
8247  
8248  
8249    public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl)
8250    {
8251      $this->backgroundImageUrl = $backgroundImageUrl;
8252    }
8253    public function getBackgroundImageUrl()
8254    {
8255      return $this->backgroundImageUrl;
8256    }
8257    public function setBannerExternalUrl($bannerExternalUrl)
8258    {
8259      $this->bannerExternalUrl = $bannerExternalUrl;
8260    }
8261    public function getBannerExternalUrl()
8262    {
8263      return $this->bannerExternalUrl;
8264    }
8265    public function setBannerImageUrl($bannerImageUrl)
8266    {
8267      $this->bannerImageUrl = $bannerImageUrl;
8268    }
8269    public function getBannerImageUrl()
8270    {
8271      return $this->bannerImageUrl;
8272    }
8273    public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl)
8274    {
8275      $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl;
8276    }
8277    public function getBannerMobileExtraHdImageUrl()
8278    {
8279      return $this->bannerMobileExtraHdImageUrl;
8280    }
8281    public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl)
8282    {
8283      $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl;
8284    }
8285    public function getBannerMobileHdImageUrl()
8286    {
8287      return $this->bannerMobileHdImageUrl;
8288    }
8289    public function setBannerMobileImageUrl($bannerMobileImageUrl)
8290    {
8291      $this->bannerMobileImageUrl = $bannerMobileImageUrl;
8292    }
8293    public function getBannerMobileImageUrl()
8294    {
8295      return $this->bannerMobileImageUrl;
8296    }
8297    public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl)
8298    {
8299      $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl;
8300    }
8301    public function getBannerMobileLowImageUrl()
8302    {
8303      return $this->bannerMobileLowImageUrl;
8304    }
8305    public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl)
8306    {
8307      $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl;
8308    }
8309    public function getBannerMobileMediumHdImageUrl()
8310    {
8311      return $this->bannerMobileMediumHdImageUrl;
8312    }
8313    public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl)
8314    {
8315      $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl;
8316    }
8317    public function getBannerTabletExtraHdImageUrl()
8318    {
8319      return $this->bannerTabletExtraHdImageUrl;
8320    }
8321    public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl)
8322    {
8323      $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl;
8324    }
8325    public function getBannerTabletHdImageUrl()
8326    {
8327      return $this->bannerTabletHdImageUrl;
8328    }
8329    public function setBannerTabletImageUrl($bannerTabletImageUrl)
8330    {
8331      $this->bannerTabletImageUrl = $bannerTabletImageUrl;
8332    }
8333    public function getBannerTabletImageUrl()
8334    {
8335      return $this->bannerTabletImageUrl;
8336    }
8337    public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl)
8338    {
8339      $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl;
8340    }
8341    public function getBannerTabletLowImageUrl()
8342    {
8343      return $this->bannerTabletLowImageUrl;
8344    }
8345    public function setBannerTvHighImageUrl($bannerTvHighImageUrl)
8346    {
8347      $this->bannerTvHighImageUrl = $bannerTvHighImageUrl;
8348    }
8349    public function getBannerTvHighImageUrl()
8350    {
8351      return $this->bannerTvHighImageUrl;
8352    }
8353    public function setBannerTvImageUrl($bannerTvImageUrl)
8354    {
8355      $this->bannerTvImageUrl = $bannerTvImageUrl;
8356    }
8357    public function getBannerTvImageUrl()
8358    {
8359      return $this->bannerTvImageUrl;
8360    }
8361    public function setBannerTvLowImageUrl($bannerTvLowImageUrl)
8362    {
8363      $this->bannerTvLowImageUrl = $bannerTvLowImageUrl;
8364    }
8365    public function getBannerTvLowImageUrl()
8366    {
8367      return $this->bannerTvLowImageUrl;
8368    }
8369    public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl)
8370    {
8371      $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl;
8372    }
8373    public function getBannerTvMediumImageUrl()
8374    {
8375      return $this->bannerTvMediumImageUrl;
8376    }
8377    public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript)
8378    {
8379      $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript;
8380    }
8381    public function getLargeBrandedBannerImageImapScript()
8382    {
8383      return $this->largeBrandedBannerImageImapScript;
8384    }
8385    public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl)
8386    {
8387      $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl;
8388    }
8389    public function getLargeBrandedBannerImageUrl()
8390    {
8391      return $this->largeBrandedBannerImageUrl;
8392    }
8393    public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript)
8394    {
8395      $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript;
8396    }
8397    public function getSmallBrandedBannerImageImapScript()
8398    {
8399      return $this->smallBrandedBannerImageImapScript;
8400    }
8401    public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl)
8402    {
8403      $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl;
8404    }
8405    public function getSmallBrandedBannerImageUrl()
8406    {
8407      return $this->smallBrandedBannerImageUrl;
8408    }
8409    public function setTrackingImageUrl($trackingImageUrl)
8410    {
8411      $this->trackingImageUrl = $trackingImageUrl;
8412    }
8413    public function getTrackingImageUrl()
8414    {
8415      return $this->trackingImageUrl;
8416    }
8417    public function setWatchIconImageUrl($watchIconImageUrl)
8418    {
8419      $this->watchIconImageUrl = $watchIconImageUrl;
8420    }
8421    public function getWatchIconImageUrl()
8422    {
8423      return $this->watchIconImageUrl;
8424    }
8425  }
8426  
8427  class Google_Service_YouTube_IngestionInfo extends Google_Model
8428  {
8429    protected $internal_gapi_mappings = array(
8430    );
8431    public $backupIngestionAddress;
8432    public $ingestionAddress;
8433    public $streamName;
8434  
8435  
8436    public function setBackupIngestionAddress($backupIngestionAddress)
8437    {
8438      $this->backupIngestionAddress = $backupIngestionAddress;
8439    }
8440    public function getBackupIngestionAddress()
8441    {
8442      return $this->backupIngestionAddress;
8443    }
8444    public function setIngestionAddress($ingestionAddress)
8445    {
8446      $this->ingestionAddress = $ingestionAddress;
8447    }
8448    public function getIngestionAddress()
8449    {
8450      return $this->ingestionAddress;
8451    }
8452    public function setStreamName($streamName)
8453    {
8454      $this->streamName = $streamName;
8455    }
8456    public function getStreamName()
8457    {
8458      return $this->streamName;
8459    }
8460  }
8461  
8462  class Google_Service_YouTube_InvideoBranding extends Google_Model
8463  {
8464    protected $internal_gapi_mappings = array(
8465    );
8466    public $imageBytes;
8467    public $imageUrl;
8468    protected $positionType = 'Google_Service_YouTube_InvideoPosition';
8469    protected $positionDataType = '';
8470    public $targetChannelId;
8471    protected $timingType = 'Google_Service_YouTube_InvideoTiming';
8472    protected $timingDataType = '';
8473  
8474  
8475    public function setImageBytes($imageBytes)
8476    {
8477      $this->imageBytes = $imageBytes;
8478    }
8479    public function getImageBytes()
8480    {
8481      return $this->imageBytes;
8482    }
8483    public function setImageUrl($imageUrl)
8484    {
8485      $this->imageUrl = $imageUrl;
8486    }
8487    public function getImageUrl()
8488    {
8489      return $this->imageUrl;
8490    }
8491    public function setPosition(Google_Service_YouTube_InvideoPosition $position)
8492    {
8493      $this->position = $position;
8494    }
8495    public function getPosition()
8496    {
8497      return $this->position;
8498    }
8499    public function setTargetChannelId($targetChannelId)
8500    {
8501      $this->targetChannelId = $targetChannelId;
8502    }
8503    public function getTargetChannelId()
8504    {
8505      return $this->targetChannelId;
8506    }
8507    public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
8508    {
8509      $this->timing = $timing;
8510    }
8511    public function getTiming()
8512    {
8513      return $this->timing;
8514    }
8515  }
8516  
8517  class Google_Service_YouTube_InvideoPosition extends Google_Model
8518  {
8519    protected $internal_gapi_mappings = array(
8520    );
8521    public $cornerPosition;
8522    public $type;
8523  
8524  
8525    public function setCornerPosition($cornerPosition)
8526    {
8527      $this->cornerPosition = $cornerPosition;
8528    }
8529    public function getCornerPosition()
8530    {
8531      return $this->cornerPosition;
8532    }
8533    public function setType($type)
8534    {
8535      $this->type = $type;
8536    }
8537    public function getType()
8538    {
8539      return $this->type;
8540    }
8541  }
8542  
8543  class Google_Service_YouTube_InvideoPromotion extends Google_Collection
8544  {
8545    protected $collection_key = 'items';
8546    protected $internal_gapi_mappings = array(
8547    );
8548    protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming';
8549    protected $defaultTimingDataType = '';
8550    protected $itemsType = 'Google_Service_YouTube_PromotedItem';
8551    protected $itemsDataType = 'array';
8552    protected $positionType = 'Google_Service_YouTube_InvideoPosition';
8553    protected $positionDataType = '';
8554    public $useSmartTiming;
8555  
8556  
8557    public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming)
8558    {
8559      $this->defaultTiming = $defaultTiming;
8560    }
8561    public function getDefaultTiming()
8562    {
8563      return $this->defaultTiming;
8564    }
8565    public function setItems($items)
8566    {
8567      $this->items = $items;
8568    }
8569    public function getItems()
8570    {
8571      return $this->items;
8572    }
8573    public function setPosition(Google_Service_YouTube_InvideoPosition $position)
8574    {
8575      $this->position = $position;
8576    }
8577    public function getPosition()
8578    {
8579      return $this->position;
8580    }
8581    public function setUseSmartTiming($useSmartTiming)
8582    {
8583      $this->useSmartTiming = $useSmartTiming;
8584    }
8585    public function getUseSmartTiming()
8586    {
8587      return $this->useSmartTiming;
8588    }
8589  }
8590  
8591  class Google_Service_YouTube_InvideoTiming extends Google_Model
8592  {
8593    protected $internal_gapi_mappings = array(
8594    );
8595    public $durationMs;
8596    public $offsetMs;
8597    public $type;
8598  
8599  
8600    public function setDurationMs($durationMs)
8601    {
8602      $this->durationMs = $durationMs;
8603    }
8604    public function getDurationMs()
8605    {
8606      return $this->durationMs;
8607    }
8608    public function setOffsetMs($offsetMs)
8609    {
8610      $this->offsetMs = $offsetMs;
8611    }
8612    public function getOffsetMs()
8613    {
8614      return $this->offsetMs;
8615    }
8616    public function setType($type)
8617    {
8618      $this->type = $type;
8619    }
8620    public function getType()
8621    {
8622      return $this->type;
8623    }
8624  }
8625  
8626  class Google_Service_YouTube_LanguageTag extends Google_Model
8627  {
8628    protected $internal_gapi_mappings = array(
8629    );
8630    public $value;
8631  
8632  
8633    public function setValue($value)
8634    {
8635      $this->value = $value;
8636    }
8637    public function getValue()
8638    {
8639      return $this->value;
8640    }
8641  }
8642  
8643  class Google_Service_YouTube_LiveBroadcast extends Google_Model
8644  {
8645    protected $internal_gapi_mappings = array(
8646    );
8647    protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails';
8648    protected $contentDetailsDataType = '';
8649    public $etag;
8650    public $id;
8651    public $kind;
8652    protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet';
8653    protected $snippetDataType = '';
8654    protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics';
8655    protected $statisticsDataType = '';
8656    protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus';
8657    protected $statusDataType = '';
8658    protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails';
8659    protected $topicDetailsDataType = '';
8660  
8661  
8662    public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails)
8663    {
8664      $this->contentDetails = $contentDetails;
8665    }
8666    public function getContentDetails()
8667    {
8668      return $this->contentDetails;
8669    }
8670    public function setEtag($etag)
8671    {
8672      $this->etag = $etag;
8673    }
8674    public function getEtag()
8675    {
8676      return $this->etag;
8677    }
8678    public function setId($id)
8679    {
8680      $this->id = $id;
8681    }
8682    public function getId()
8683    {
8684      return $this->id;
8685    }
8686    public function setKind($kind)
8687    {
8688      $this->kind = $kind;
8689    }
8690    public function getKind()
8691    {
8692      return $this->kind;
8693    }
8694    public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet)
8695    {
8696      $this->snippet = $snippet;
8697    }
8698    public function getSnippet()
8699    {
8700      return $this->snippet;
8701    }
8702    public function setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics)
8703    {
8704      $this->statistics = $statistics;
8705    }
8706    public function getStatistics()
8707    {
8708      return $this->statistics;
8709    }
8710    public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status)
8711    {
8712      $this->status = $status;
8713    }
8714    public function getStatus()
8715    {
8716      return $this->status;
8717    }
8718    public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails)
8719    {
8720      $this->topicDetails = $topicDetails;
8721    }
8722    public function getTopicDetails()
8723    {
8724      return $this->topicDetails;
8725    }
8726  }
8727  
8728  class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model
8729  {
8730    protected $internal_gapi_mappings = array(
8731    );
8732    public $boundStreamId;
8733    public $enableClosedCaptions;
8734    public $enableContentEncryption;
8735    public $enableDvr;
8736    public $enableEmbed;
8737    public $enableLowLatency;
8738    protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo';
8739    protected $monitorStreamDataType = '';
8740    public $recordFromStart;
8741    public $startWithSlate;
8742  
8743  
8744    public function setBoundStreamId($boundStreamId)
8745    {
8746      $this->boundStreamId = $boundStreamId;
8747    }
8748    public function getBoundStreamId()
8749    {
8750      return $this->boundStreamId;
8751    }
8752    public function setEnableClosedCaptions($enableClosedCaptions)
8753    {
8754      $this->enableClosedCaptions = $enableClosedCaptions;
8755    }
8756    public function getEnableClosedCaptions()
8757    {
8758      return $this->enableClosedCaptions;
8759    }
8760    public function setEnableContentEncryption($enableContentEncryption)
8761    {
8762      $this->enableContentEncryption = $enableContentEncryption;
8763    }
8764    public function getEnableContentEncryption()
8765    {
8766      return $this->enableContentEncryption;
8767    }
8768    public function setEnableDvr($enableDvr)
8769    {
8770      $this->enableDvr = $enableDvr;
8771    }
8772    public function getEnableDvr()
8773    {
8774      return $this->enableDvr;
8775    }
8776    public function setEnableEmbed($enableEmbed)
8777    {
8778      $this->enableEmbed = $enableEmbed;
8779    }
8780    public function getEnableEmbed()
8781    {
8782      return $this->enableEmbed;
8783    }
8784    public function setEnableLowLatency($enableLowLatency)
8785    {
8786      $this->enableLowLatency = $enableLowLatency;
8787    }
8788    public function getEnableLowLatency()
8789    {
8790      return $this->enableLowLatency;
8791    }
8792    public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream)
8793    {
8794      $this->monitorStream = $monitorStream;
8795    }
8796    public function getMonitorStream()
8797    {
8798      return $this->monitorStream;
8799    }
8800    public function setRecordFromStart($recordFromStart)
8801    {
8802      $this->recordFromStart = $recordFromStart;
8803    }
8804    public function getRecordFromStart()
8805    {
8806      return $this->recordFromStart;
8807    }
8808    public function setStartWithSlate($startWithSlate)
8809    {
8810      $this->startWithSlate = $startWithSlate;
8811    }
8812    public function getStartWithSlate()
8813    {
8814      return $this->startWithSlate;
8815    }
8816  }
8817  
8818  class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection
8819  {
8820    protected $collection_key = 'items';
8821    protected $internal_gapi_mappings = array(
8822    );
8823    public $etag;
8824    public $eventId;
8825    protected $itemsType = 'Google_Service_YouTube_LiveBroadcast';
8826    protected $itemsDataType = 'array';
8827    public $kind;
8828    public $nextPageToken;
8829    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
8830    protected $pageInfoDataType = '';
8831    public $prevPageToken;
8832    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
8833    protected $tokenPaginationDataType = '';
8834    public $visitorId;
8835  
8836  
8837    public function setEtag($etag)
8838    {
8839      $this->etag = $etag;
8840    }
8841    public function getEtag()
8842    {
8843      return $this->etag;
8844    }
8845    public function setEventId($eventId)
8846    {
8847      $this->eventId = $eventId;
8848    }
8849    public function getEventId()
8850    {
8851      return $this->eventId;
8852    }
8853    public function setItems($items)
8854    {
8855      $this->items = $items;
8856    }
8857    public function getItems()
8858    {
8859      return $this->items;
8860    }
8861    public function setKind($kind)
8862    {
8863      $this->kind = $kind;
8864    }
8865    public function getKind()
8866    {
8867      return $this->kind;
8868    }
8869    public function setNextPageToken($nextPageToken)
8870    {
8871      $this->nextPageToken = $nextPageToken;
8872    }
8873    public function getNextPageToken()
8874    {
8875      return $this->nextPageToken;
8876    }
8877    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
8878    {
8879      $this->pageInfo = $pageInfo;
8880    }
8881    public function getPageInfo()
8882    {
8883      return $this->pageInfo;
8884    }
8885    public function setPrevPageToken($prevPageToken)
8886    {
8887      $this->prevPageToken = $prevPageToken;
8888    }
8889    public function getPrevPageToken()
8890    {
8891      return $this->prevPageToken;
8892    }
8893    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
8894    {
8895      $this->tokenPagination = $tokenPagination;
8896    }
8897    public function getTokenPagination()
8898    {
8899      return $this->tokenPagination;
8900    }
8901    public function setVisitorId($visitorId)
8902    {
8903      $this->visitorId = $visitorId;
8904    }
8905    public function getVisitorId()
8906    {
8907      return $this->visitorId;
8908    }
8909  }
8910  
8911  class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model
8912  {
8913    protected $internal_gapi_mappings = array(
8914    );
8915    public $actualEndTime;
8916    public $actualStartTime;
8917    public $channelId;
8918    public $description;
8919    public $isDefaultBroadcast;
8920    public $liveChatId;
8921    public $publishedAt;
8922    public $scheduledEndTime;
8923    public $scheduledStartTime;
8924    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
8925    protected $thumbnailsDataType = '';
8926    public $title;
8927  
8928  
8929    public function setActualEndTime($actualEndTime)
8930    {
8931      $this->actualEndTime = $actualEndTime;
8932    }
8933    public function getActualEndTime()
8934    {
8935      return $this->actualEndTime;
8936    }
8937    public function setActualStartTime($actualStartTime)
8938    {
8939      $this->actualStartTime = $actualStartTime;
8940    }
8941    public function getActualStartTime()
8942    {
8943      return $this->actualStartTime;
8944    }
8945    public function setChannelId($channelId)
8946    {
8947      $this->channelId = $channelId;
8948    }
8949    public function getChannelId()
8950    {
8951      return $this->channelId;
8952    }
8953    public function setDescription($description)
8954    {
8955      $this->description = $description;
8956    }
8957    public function getDescription()
8958    {
8959      return $this->description;
8960    }
8961    public function setIsDefaultBroadcast($isDefaultBroadcast)
8962    {
8963      $this->isDefaultBroadcast = $isDefaultBroadcast;
8964    }
8965    public function getIsDefaultBroadcast()
8966    {
8967      return $this->isDefaultBroadcast;
8968    }
8969    public function setLiveChatId($liveChatId)
8970    {
8971      $this->liveChatId = $liveChatId;
8972    }
8973    public function getLiveChatId()
8974    {
8975      return $this->liveChatId;
8976    }
8977    public function setPublishedAt($publishedAt)
8978    {
8979      $this->publishedAt = $publishedAt;
8980    }
8981    public function getPublishedAt()
8982    {
8983      return $this->publishedAt;
8984    }
8985    public function setScheduledEndTime($scheduledEndTime)
8986    {
8987      $this->scheduledEndTime = $scheduledEndTime;
8988    }
8989    public function getScheduledEndTime()
8990    {
8991      return $this->scheduledEndTime;
8992    }
8993    public function setScheduledStartTime($scheduledStartTime)
8994    {
8995      $this->scheduledStartTime = $scheduledStartTime;
8996    }
8997    public function getScheduledStartTime()
8998    {
8999      return $this->scheduledStartTime;
9000    }
9001    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
9002    {
9003      $this->thumbnails = $thumbnails;
9004    }
9005    public function getThumbnails()
9006    {
9007      return $this->thumbnails;
9008    }
9009    public function setTitle($title)
9010    {
9011      $this->title = $title;
9012    }
9013    public function getTitle()
9014    {
9015      return $this->title;
9016    }
9017  }
9018  
9019  class Google_Service_YouTube_LiveBroadcastStatistics extends Google_Model
9020  {
9021    protected $internal_gapi_mappings = array(
9022    );
9023    public $concurrentViewers;
9024    public $totalChatCount;
9025  
9026  
9027    public function setConcurrentViewers($concurrentViewers)
9028    {
9029      $this->concurrentViewers = $concurrentViewers;
9030    }
9031    public function getConcurrentViewers()
9032    {
9033      return $this->concurrentViewers;
9034    }
9035    public function setTotalChatCount($totalChatCount)
9036    {
9037      $this->totalChatCount = $totalChatCount;
9038    }
9039    public function getTotalChatCount()
9040    {
9041      return $this->totalChatCount;
9042    }
9043  }
9044  
9045  class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model
9046  {
9047    protected $internal_gapi_mappings = array(
9048    );
9049    public $lifeCycleStatus;
9050    public $liveBroadcastPriority;
9051    public $privacyStatus;
9052    public $recordingStatus;
9053  
9054  
9055    public function setLifeCycleStatus($lifeCycleStatus)
9056    {
9057      $this->lifeCycleStatus = $lifeCycleStatus;
9058    }
9059    public function getLifeCycleStatus()
9060    {
9061      return $this->lifeCycleStatus;
9062    }
9063    public function setLiveBroadcastPriority($liveBroadcastPriority)
9064    {
9065      $this->liveBroadcastPriority = $liveBroadcastPriority;
9066    }
9067    public function getLiveBroadcastPriority()
9068    {
9069      return $this->liveBroadcastPriority;
9070    }
9071    public function setPrivacyStatus($privacyStatus)
9072    {
9073      $this->privacyStatus = $privacyStatus;
9074    }
9075    public function getPrivacyStatus()
9076    {
9077      return $this->privacyStatus;
9078    }
9079    public function setRecordingStatus($recordingStatus)
9080    {
9081      $this->recordingStatus = $recordingStatus;
9082    }
9083    public function getRecordingStatus()
9084    {
9085      return $this->recordingStatus;
9086    }
9087  }
9088  
9089  class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model
9090  {
9091    protected $internal_gapi_mappings = array(
9092    );
9093    protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet';
9094    protected $snippetDataType = '';
9095    public $type;
9096    public $unmatched;
9097  
9098  
9099    public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet)
9100    {
9101      $this->snippet = $snippet;
9102    }
9103    public function getSnippet()
9104    {
9105      return $this->snippet;
9106    }
9107    public function setType($type)
9108    {
9109      $this->type = $type;
9110    }
9111    public function getType()
9112    {
9113      return $this->type;
9114    }
9115    public function setUnmatched($unmatched)
9116    {
9117      $this->unmatched = $unmatched;
9118    }
9119    public function getUnmatched()
9120    {
9121      return $this->unmatched;
9122    }
9123  }
9124  
9125  class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection
9126  {
9127    protected $collection_key = 'topics';
9128    protected $internal_gapi_mappings = array(
9129    );
9130    protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic';
9131    protected $topicsDataType = 'array';
9132  
9133  
9134    public function setTopics($topics)
9135    {
9136      $this->topics = $topics;
9137    }
9138    public function getTopics()
9139    {
9140      return $this->topics;
9141    }
9142  }
9143  
9144  class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model
9145  {
9146    protected $internal_gapi_mappings = array(
9147    );
9148    public $name;
9149    public $releaseDate;
9150  
9151  
9152    public function setName($name)
9153    {
9154      $this->name = $name;
9155    }
9156    public function getName()
9157    {
9158      return $this->name;
9159    }
9160    public function setReleaseDate($releaseDate)
9161    {
9162      $this->releaseDate = $releaseDate;
9163    }
9164    public function getReleaseDate()
9165    {
9166      return $this->releaseDate;
9167    }
9168  }
9169  
9170  class Google_Service_YouTube_LiveStream extends Google_Model
9171  {
9172    protected $internal_gapi_mappings = array(
9173    );
9174    protected $cdnType = 'Google_Service_YouTube_CdnSettings';
9175    protected $cdnDataType = '';
9176    protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails';
9177    protected $contentDetailsDataType = '';
9178    public $etag;
9179    public $id;
9180    public $kind;
9181    protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet';
9182    protected $snippetDataType = '';
9183    protected $statusType = 'Google_Service_YouTube_LiveStreamStatus';
9184    protected $statusDataType = '';
9185  
9186  
9187    public function setCdn(Google_Service_YouTube_CdnSettings $cdn)
9188    {
9189      $this->cdn = $cdn;
9190    }
9191    public function getCdn()
9192    {
9193      return $this->cdn;
9194    }
9195    public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails)
9196    {
9197      $this->contentDetails = $contentDetails;
9198    }
9199    public function getContentDetails()
9200    {
9201      return $this->contentDetails;
9202    }
9203    public function setEtag($etag)
9204    {
9205      $this->etag = $etag;
9206    }
9207    public function getEtag()
9208    {
9209      return $this->etag;
9210    }
9211    public function setId($id)
9212    {
9213      $this->id = $id;
9214    }
9215    public function getId()
9216    {
9217      return $this->id;
9218    }
9219    public function setKind($kind)
9220    {
9221      $this->kind = $kind;
9222    }
9223    public function getKind()
9224    {
9225      return $this->kind;
9226    }
9227    public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet)
9228    {
9229      $this->snippet = $snippet;
9230    }
9231    public function getSnippet()
9232    {
9233      return $this->snippet;
9234    }
9235    public function setStatus(Google_Service_YouTube_LiveStreamStatus $status)
9236    {
9237      $this->status = $status;
9238    }
9239    public function getStatus()
9240    {
9241      return $this->status;
9242    }
9243  }
9244  
9245  class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model
9246  {
9247    protected $internal_gapi_mappings = array(
9248    );
9249    public $description;
9250    public $reason;
9251    public $severity;
9252    public $type;
9253  
9254  
9255    public function setDescription($description)
9256    {
9257      $this->description = $description;
9258    }
9259    public function getDescription()
9260    {
9261      return $this->description;
9262    }
9263    public function setReason($reason)
9264    {
9265      $this->reason = $reason;
9266    }
9267    public function getReason()
9268    {
9269      return $this->reason;
9270    }
9271    public function setSeverity($severity)
9272    {
9273      $this->severity = $severity;
9274    }
9275    public function getSeverity()
9276    {
9277      return $this->severity;
9278    }
9279    public function setType($type)
9280    {
9281      $this->type = $type;
9282    }
9283    public function getType()
9284    {
9285      return $this->type;
9286    }
9287  }
9288  
9289  class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model
9290  {
9291    protected $internal_gapi_mappings = array(
9292    );
9293    public $closedCaptionsIngestionUrl;
9294    public $isReusable;
9295  
9296  
9297    public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl)
9298    {
9299      $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl;
9300    }
9301    public function getClosedCaptionsIngestionUrl()
9302    {
9303      return $this->closedCaptionsIngestionUrl;
9304    }
9305    public function setIsReusable($isReusable)
9306    {
9307      $this->isReusable = $isReusable;
9308    }
9309    public function getIsReusable()
9310    {
9311      return $this->isReusable;
9312    }
9313  }
9314  
9315  class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection
9316  {
9317    protected $collection_key = 'configurationIssues';
9318    protected $internal_gapi_mappings = array(
9319    );
9320    protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue';
9321    protected $configurationIssuesDataType = 'array';
9322    public $lastUpdateTimeSeconds;
9323    public $status;
9324  
9325  
9326    public function setConfigurationIssues($configurationIssues)
9327    {
9328      $this->configurationIssues = $configurationIssues;
9329    }
9330    public function getConfigurationIssues()
9331    {
9332      return $this->configurationIssues;
9333    }
9334    public function setLastUpdateTimeSeconds($lastUpdateTimeSeconds)
9335    {
9336      $this->lastUpdateTimeSeconds = $lastUpdateTimeSeconds;
9337    }
9338    public function getLastUpdateTimeSeconds()
9339    {
9340      return $this->lastUpdateTimeSeconds;
9341    }
9342    public function setStatus($status)
9343    {
9344      $this->status = $status;
9345    }
9346    public function getStatus()
9347    {
9348      return $this->status;
9349    }
9350  }
9351  
9352  class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection
9353  {
9354    protected $collection_key = 'items';
9355    protected $internal_gapi_mappings = array(
9356    );
9357    public $etag;
9358    public $eventId;
9359    protected $itemsType = 'Google_Service_YouTube_LiveStream';
9360    protected $itemsDataType = 'array';
9361    public $kind;
9362    public $nextPageToken;
9363    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
9364    protected $pageInfoDataType = '';
9365    public $prevPageToken;
9366    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
9367    protected $tokenPaginationDataType = '';
9368    public $visitorId;
9369  
9370  
9371    public function setEtag($etag)
9372    {
9373      $this->etag = $etag;
9374    }
9375    public function getEtag()
9376    {
9377      return $this->etag;
9378    }
9379    public function setEventId($eventId)
9380    {
9381      $this->eventId = $eventId;
9382    }
9383    public function getEventId()
9384    {
9385      return $this->eventId;
9386    }
9387    public function setItems($items)
9388    {
9389      $this->items = $items;
9390    }
9391    public function getItems()
9392    {
9393      return $this->items;
9394    }
9395    public function setKind($kind)
9396    {
9397      $this->kind = $kind;
9398    }
9399    public function getKind()
9400    {
9401      return $this->kind;
9402    }
9403    public function setNextPageToken($nextPageToken)
9404    {
9405      $this->nextPageToken = $nextPageToken;
9406    }
9407    public function getNextPageToken()
9408    {
9409      return $this->nextPageToken;
9410    }
9411    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
9412    {
9413      $this->pageInfo = $pageInfo;
9414    }
9415    public function getPageInfo()
9416    {
9417      return $this->pageInfo;
9418    }
9419    public function setPrevPageToken($prevPageToken)
9420    {
9421      $this->prevPageToken = $prevPageToken;
9422    }
9423    public function getPrevPageToken()
9424    {
9425      return $this->prevPageToken;
9426    }
9427    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
9428    {
9429      $this->tokenPagination = $tokenPagination;
9430    }
9431    public function getTokenPagination()
9432    {
9433      return $this->tokenPagination;
9434    }
9435    public function setVisitorId($visitorId)
9436    {
9437      $this->visitorId = $visitorId;
9438    }
9439    public function getVisitorId()
9440    {
9441      return $this->visitorId;
9442    }
9443  }
9444  
9445  class Google_Service_YouTube_LiveStreamSnippet extends Google_Model
9446  {
9447    protected $internal_gapi_mappings = array(
9448    );
9449    public $channelId;
9450    public $description;
9451    public $isDefaultStream;
9452    public $publishedAt;
9453    public $title;
9454  
9455  
9456    public function setChannelId($channelId)
9457    {
9458      $this->channelId = $channelId;
9459    }
9460    public function getChannelId()
9461    {
9462      return $this->channelId;
9463    }
9464    public function setDescription($description)
9465    {
9466      $this->description = $description;
9467    }
9468    public function getDescription()
9469    {
9470      return $this->description;
9471    }
9472    public function setIsDefaultStream($isDefaultStream)
9473    {
9474      $this->isDefaultStream = $isDefaultStream;
9475    }
9476    public function getIsDefaultStream()
9477    {
9478      return $this->isDefaultStream;
9479    }
9480    public function setPublishedAt($publishedAt)
9481    {
9482      $this->publishedAt = $publishedAt;
9483    }
9484    public function getPublishedAt()
9485    {
9486      return $this->publishedAt;
9487    }
9488    public function setTitle($title)
9489    {
9490      $this->title = $title;
9491    }
9492    public function getTitle()
9493    {
9494      return $this->title;
9495    }
9496  }
9497  
9498  class Google_Service_YouTube_LiveStreamStatus extends Google_Model
9499  {
9500    protected $internal_gapi_mappings = array(
9501    );
9502    protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus';
9503    protected $healthStatusDataType = '';
9504    public $streamStatus;
9505  
9506  
9507    public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus)
9508    {
9509      $this->healthStatus = $healthStatus;
9510    }
9511    public function getHealthStatus()
9512    {
9513      return $this->healthStatus;
9514    }
9515    public function setStreamStatus($streamStatus)
9516    {
9517      $this->streamStatus = $streamStatus;
9518    }
9519    public function getStreamStatus()
9520    {
9521      return $this->streamStatus;
9522    }
9523  }
9524  
9525  class Google_Service_YouTube_LocalizedProperty extends Google_Collection
9526  {
9527    protected $collection_key = 'localized';
9528    protected $internal_gapi_mappings = array(
9529    );
9530    public $default;
9531    protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag';
9532    protected $defaultLanguageDataType = '';
9533    protected $localizedType = 'Google_Service_YouTube_LocalizedString';
9534    protected $localizedDataType = 'array';
9535  
9536  
9537    public function setDefault($default)
9538    {
9539      $this->default = $default;
9540    }
9541    public function getDefault()
9542    {
9543      return $this->default;
9544    }
9545    public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage)
9546    {
9547      $this->defaultLanguage = $defaultLanguage;
9548    }
9549    public function getDefaultLanguage()
9550    {
9551      return $this->defaultLanguage;
9552    }
9553    public function setLocalized($localized)
9554    {
9555      $this->localized = $localized;
9556    }
9557    public function getLocalized()
9558    {
9559      return $this->localized;
9560    }
9561  }
9562  
9563  class Google_Service_YouTube_LocalizedString extends Google_Model
9564  {
9565    protected $internal_gapi_mappings = array(
9566    );
9567    public $language;
9568    public $value;
9569  
9570  
9571    public function setLanguage($language)
9572    {
9573      $this->language = $language;
9574    }
9575    public function getLanguage()
9576    {
9577      return $this->language;
9578    }
9579    public function setValue($value)
9580    {
9581      $this->value = $value;
9582    }
9583    public function getValue()
9584    {
9585      return $this->value;
9586    }
9587  }
9588  
9589  class Google_Service_YouTube_MonitorStreamInfo extends Google_Model
9590  {
9591    protected $internal_gapi_mappings = array(
9592    );
9593    public $broadcastStreamDelayMs;
9594    public $embedHtml;
9595    public $enableMonitorStream;
9596  
9597  
9598    public function setBroadcastStreamDelayMs($broadcastStreamDelayMs)
9599    {
9600      $this->broadcastStreamDelayMs = $broadcastStreamDelayMs;
9601    }
9602    public function getBroadcastStreamDelayMs()
9603    {
9604      return $this->broadcastStreamDelayMs;
9605    }
9606    public function setEmbedHtml($embedHtml)
9607    {
9608      $this->embedHtml = $embedHtml;
9609    }
9610    public function getEmbedHtml()
9611    {
9612      return $this->embedHtml;
9613    }
9614    public function setEnableMonitorStream($enableMonitorStream)
9615    {
9616      $this->enableMonitorStream = $enableMonitorStream;
9617    }
9618    public function getEnableMonitorStream()
9619    {
9620      return $this->enableMonitorStream;
9621    }
9622  }
9623  
9624  class Google_Service_YouTube_PageInfo extends Google_Model
9625  {
9626    protected $internal_gapi_mappings = array(
9627    );
9628    public $resultsPerPage;
9629    public $totalResults;
9630  
9631  
9632    public function setResultsPerPage($resultsPerPage)
9633    {
9634      $this->resultsPerPage = $resultsPerPage;
9635    }
9636    public function getResultsPerPage()
9637    {
9638      return $this->resultsPerPage;
9639    }
9640    public function setTotalResults($totalResults)
9641    {
9642      $this->totalResults = $totalResults;
9643    }
9644    public function getTotalResults()
9645    {
9646      return $this->totalResults;
9647    }
9648  }
9649  
9650  class Google_Service_YouTube_Playlist extends Google_Model
9651  {
9652    protected $internal_gapi_mappings = array(
9653    );
9654    protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails';
9655    protected $contentDetailsDataType = '';
9656    public $etag;
9657    public $id;
9658    public $kind;
9659    protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization';
9660    protected $localizationsDataType = 'map';
9661    protected $playerType = 'Google_Service_YouTube_PlaylistPlayer';
9662    protected $playerDataType = '';
9663    protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet';
9664    protected $snippetDataType = '';
9665    protected $statusType = 'Google_Service_YouTube_PlaylistStatus';
9666    protected $statusDataType = '';
9667  
9668  
9669    public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails)
9670    {
9671      $this->contentDetails = $contentDetails;
9672    }
9673    public function getContentDetails()
9674    {
9675      return $this->contentDetails;
9676    }
9677    public function setEtag($etag)
9678    {
9679      $this->etag = $etag;
9680    }
9681    public function getEtag()
9682    {
9683      return $this->etag;
9684    }
9685    public function setId($id)
9686    {
9687      $this->id = $id;
9688    }
9689    public function getId()
9690    {
9691      return $this->id;
9692    }
9693    public function setKind($kind)
9694    {
9695      $this->kind = $kind;
9696    }
9697    public function getKind()
9698    {
9699      return $this->kind;
9700    }
9701    public function setLocalizations($localizations)
9702    {
9703      $this->localizations = $localizations;
9704    }
9705    public function getLocalizations()
9706    {
9707      return $this->localizations;
9708    }
9709    public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player)
9710    {
9711      $this->player = $player;
9712    }
9713    public function getPlayer()
9714    {
9715      return $this->player;
9716    }
9717    public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet)
9718    {
9719      $this->snippet = $snippet;
9720    }
9721    public function getSnippet()
9722    {
9723      return $this->snippet;
9724    }
9725    public function setStatus(Google_Service_YouTube_PlaylistStatus $status)
9726    {
9727      $this->status = $status;
9728    }
9729    public function getStatus()
9730    {
9731      return $this->status;
9732    }
9733  }
9734  
9735  class Google_Service_YouTube_PlaylistContentDetails extends Google_Model
9736  {
9737    protected $internal_gapi_mappings = array(
9738    );
9739    public $itemCount;
9740  
9741  
9742    public function setItemCount($itemCount)
9743    {
9744      $this->itemCount = $itemCount;
9745    }
9746    public function getItemCount()
9747    {
9748      return $this->itemCount;
9749    }
9750  }
9751  
9752  class Google_Service_YouTube_PlaylistItem extends Google_Model
9753  {
9754    protected $internal_gapi_mappings = array(
9755    );
9756    protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails';
9757    protected $contentDetailsDataType = '';
9758    public $etag;
9759    public $id;
9760    public $kind;
9761    protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet';
9762    protected $snippetDataType = '';
9763    protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus';
9764    protected $statusDataType = '';
9765  
9766  
9767    public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails)
9768    {
9769      $this->contentDetails = $contentDetails;
9770    }
9771    public function getContentDetails()
9772    {
9773      return $this->contentDetails;
9774    }
9775    public function setEtag($etag)
9776    {
9777      $this->etag = $etag;
9778    }
9779    public function getEtag()
9780    {
9781      return $this->etag;
9782    }
9783    public function setId($id)
9784    {
9785      $this->id = $id;
9786    }
9787    public function getId()
9788    {
9789      return $this->id;
9790    }
9791    public function setKind($kind)
9792    {
9793      $this->kind = $kind;
9794    }
9795    public function getKind()
9796    {
9797      return $this->kind;
9798    }
9799    public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet)
9800    {
9801      $this->snippet = $snippet;
9802    }
9803    public function getSnippet()
9804    {
9805      return $this->snippet;
9806    }
9807    public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status)
9808    {
9809      $this->status = $status;
9810    }
9811    public function getStatus()
9812    {
9813      return $this->status;
9814    }
9815  }
9816  
9817  class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model
9818  {
9819    protected $internal_gapi_mappings = array(
9820    );
9821    public $endAt;
9822    public $note;
9823    public $startAt;
9824    public $videoId;
9825  
9826  
9827    public function setEndAt($endAt)
9828    {
9829      $this->endAt = $endAt;
9830    }
9831    public function getEndAt()
9832    {
9833      return $this->endAt;
9834    }
9835    public function setNote($note)
9836    {
9837      $this->note = $note;
9838    }
9839    public function getNote()
9840    {
9841      return $this->note;
9842    }
9843    public function setStartAt($startAt)
9844    {
9845      $this->startAt = $startAt;
9846    }
9847    public function getStartAt()
9848    {
9849      return $this->startAt;
9850    }
9851    public function setVideoId($videoId)
9852    {
9853      $this->videoId = $videoId;
9854    }
9855    public function getVideoId()
9856    {
9857      return $this->videoId;
9858    }
9859  }
9860  
9861  class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection
9862  {
9863    protected $collection_key = 'items';
9864    protected $internal_gapi_mappings = array(
9865    );
9866    public $etag;
9867    public $eventId;
9868    protected $itemsType = 'Google_Service_YouTube_PlaylistItem';
9869    protected $itemsDataType = 'array';
9870    public $kind;
9871    public $nextPageToken;
9872    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
9873    protected $pageInfoDataType = '';
9874    public $prevPageToken;
9875    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
9876    protected $tokenPaginationDataType = '';
9877    public $visitorId;
9878  
9879  
9880    public function setEtag($etag)
9881    {
9882      $this->etag = $etag;
9883    }
9884    public function getEtag()
9885    {
9886      return $this->etag;
9887    }
9888    public function setEventId($eventId)
9889    {
9890      $this->eventId = $eventId;
9891    }
9892    public function getEventId()
9893    {
9894      return $this->eventId;
9895    }
9896    public function setItems($items)
9897    {
9898      $this->items = $items;
9899    }
9900    public function getItems()
9901    {
9902      return $this->items;
9903    }
9904    public function setKind($kind)
9905    {
9906      $this->kind = $kind;
9907    }
9908    public function getKind()
9909    {
9910      return $this->kind;
9911    }
9912    public function setNextPageToken($nextPageToken)
9913    {
9914      $this->nextPageToken = $nextPageToken;
9915    }
9916    public function getNextPageToken()
9917    {
9918      return $this->nextPageToken;
9919    }
9920    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
9921    {
9922      $this->pageInfo = $pageInfo;
9923    }
9924    public function getPageInfo()
9925    {
9926      return $this->pageInfo;
9927    }
9928    public function setPrevPageToken($prevPageToken)
9929    {
9930      $this->prevPageToken = $prevPageToken;
9931    }
9932    public function getPrevPageToken()
9933    {
9934      return $this->prevPageToken;
9935    }
9936    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
9937    {
9938      $this->tokenPagination = $tokenPagination;
9939    }
9940    public function getTokenPagination()
9941    {
9942      return $this->tokenPagination;
9943    }
9944    public function setVisitorId($visitorId)
9945    {
9946      $this->visitorId = $visitorId;
9947    }
9948    public function getVisitorId()
9949    {
9950      return $this->visitorId;
9951    }
9952  }
9953  
9954  class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model
9955  {
9956    protected $internal_gapi_mappings = array(
9957    );
9958    public $channelId;
9959    public $channelTitle;
9960    public $description;
9961    public $playlistId;
9962    public $position;
9963    public $publishedAt;
9964    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
9965    protected $resourceIdDataType = '';
9966    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
9967    protected $thumbnailsDataType = '';
9968    public $title;
9969  
9970  
9971    public function setChannelId($channelId)
9972    {
9973      $this->channelId = $channelId;
9974    }
9975    public function getChannelId()
9976    {
9977      return $this->channelId;
9978    }
9979    public function setChannelTitle($channelTitle)
9980    {
9981      $this->channelTitle = $channelTitle;
9982    }
9983    public function getChannelTitle()
9984    {
9985      return $this->channelTitle;
9986    }
9987    public function setDescription($description)
9988    {
9989      $this->description = $description;
9990    }
9991    public function getDescription()
9992    {
9993      return $this->description;
9994    }
9995    public function setPlaylistId($playlistId)
9996    {
9997      $this->playlistId = $playlistId;
9998    }
9999    public function getPlaylistId()
10000    {
10001      return $this->playlistId;
10002    }
10003    public function setPosition($position)
10004    {
10005      $this->position = $position;
10006    }
10007    public function getPosition()
10008    {
10009      return $this->position;
10010    }
10011    public function setPublishedAt($publishedAt)
10012    {
10013      $this->publishedAt = $publishedAt;
10014    }
10015    public function getPublishedAt()
10016    {
10017      return $this->publishedAt;
10018    }
10019    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
10020    {
10021      $this->resourceId = $resourceId;
10022    }
10023    public function getResourceId()
10024    {
10025      return $this->resourceId;
10026    }
10027    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
10028    {
10029      $this->thumbnails = $thumbnails;
10030    }
10031    public function getThumbnails()
10032    {
10033      return $this->thumbnails;
10034    }
10035    public function setTitle($title)
10036    {
10037      $this->title = $title;
10038    }
10039    public function getTitle()
10040    {
10041      return $this->title;
10042    }
10043  }
10044  
10045  class Google_Service_YouTube_PlaylistItemStatus extends Google_Model
10046  {
10047    protected $internal_gapi_mappings = array(
10048    );
10049    public $privacyStatus;
10050  
10051  
10052    public function setPrivacyStatus($privacyStatus)
10053    {
10054      $this->privacyStatus = $privacyStatus;
10055    }
10056    public function getPrivacyStatus()
10057    {
10058      return $this->privacyStatus;
10059    }
10060  }
10061  
10062  class Google_Service_YouTube_PlaylistListResponse extends Google_Collection
10063  {
10064    protected $collection_key = 'items';
10065    protected $internal_gapi_mappings = array(
10066    );
10067    public $etag;
10068    public $eventId;
10069    protected $itemsType = 'Google_Service_YouTube_Playlist';
10070    protected $itemsDataType = 'array';
10071    public $kind;
10072    public $nextPageToken;
10073    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
10074    protected $pageInfoDataType = '';
10075    public $prevPageToken;
10076    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
10077    protected $tokenPaginationDataType = '';
10078    public $visitorId;
10079  
10080  
10081    public function setEtag($etag)
10082    {
10083      $this->etag = $etag;
10084    }
10085    public function getEtag()
10086    {
10087      return $this->etag;
10088    }
10089    public function setEventId($eventId)
10090    {
10091      $this->eventId = $eventId;
10092    }
10093    public function getEventId()
10094    {
10095      return $this->eventId;
10096    }
10097    public function setItems($items)
10098    {
10099      $this->items = $items;
10100    }
10101    public function getItems()
10102    {
10103      return $this->items;
10104    }
10105    public function setKind($kind)
10106    {
10107      $this->kind = $kind;
10108    }
10109    public function getKind()
10110    {
10111      return $this->kind;
10112    }
10113    public function setNextPageToken($nextPageToken)
10114    {
10115      $this->nextPageToken = $nextPageToken;
10116    }
10117    public function getNextPageToken()
10118    {
10119      return $this->nextPageToken;
10120    }
10121    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
10122    {
10123      $this->pageInfo = $pageInfo;
10124    }
10125    public function getPageInfo()
10126    {
10127      return $this->pageInfo;
10128    }
10129    public function setPrevPageToken($prevPageToken)
10130    {
10131      $this->prevPageToken = $prevPageToken;
10132    }
10133    public function getPrevPageToken()
10134    {
10135      return $this->prevPageToken;
10136    }
10137    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
10138    {
10139      $this->tokenPagination = $tokenPagination;
10140    }
10141    public function getTokenPagination()
10142    {
10143      return $this->tokenPagination;
10144    }
10145    public function setVisitorId($visitorId)
10146    {
10147      $this->visitorId = $visitorId;
10148    }
10149    public function getVisitorId()
10150    {
10151      return $this->visitorId;
10152    }
10153  }
10154  
10155  class Google_Service_YouTube_PlaylistLocalization extends Google_Model
10156  {
10157    protected $internal_gapi_mappings = array(
10158    );
10159    public $description;
10160    public $title;
10161  
10162  
10163    public function setDescription($description)
10164    {
10165      $this->description = $description;
10166    }
10167    public function getDescription()
10168    {
10169      return $this->description;
10170    }
10171    public function setTitle($title)
10172    {
10173      $this->title = $title;
10174    }
10175    public function getTitle()
10176    {
10177      return $this->title;
10178    }
10179  }
10180  
10181  class Google_Service_YouTube_PlaylistLocalizations extends Google_Model
10182  {
10183  }
10184  
10185  class Google_Service_YouTube_PlaylistPlayer extends Google_Model
10186  {
10187    protected $internal_gapi_mappings = array(
10188    );
10189    public $embedHtml;
10190  
10191  
10192    public function setEmbedHtml($embedHtml)
10193    {
10194      $this->embedHtml = $embedHtml;
10195    }
10196    public function getEmbedHtml()
10197    {
10198      return $this->embedHtml;
10199    }
10200  }
10201  
10202  class Google_Service_YouTube_PlaylistSnippet extends Google_Collection
10203  {
10204    protected $collection_key = 'tags';
10205    protected $internal_gapi_mappings = array(
10206    );
10207    public $channelId;
10208    public $channelTitle;
10209    public $defaultLanguage;
10210    public $description;
10211    protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization';
10212    protected $localizedDataType = '';
10213    public $publishedAt;
10214    public $tags;
10215    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
10216    protected $thumbnailsDataType = '';
10217    public $title;
10218  
10219  
10220    public function setChannelId($channelId)
10221    {
10222      $this->channelId = $channelId;
10223    }
10224    public function getChannelId()
10225    {
10226      return $this->channelId;
10227    }
10228    public function setChannelTitle($channelTitle)
10229    {
10230      $this->channelTitle = $channelTitle;
10231    }
10232    public function getChannelTitle()
10233    {
10234      return $this->channelTitle;
10235    }
10236    public function setDefaultLanguage($defaultLanguage)
10237    {
10238      $this->defaultLanguage = $defaultLanguage;
10239    }
10240    public function getDefaultLanguage()
10241    {
10242      return $this->defaultLanguage;
10243    }
10244    public function setDescription($description)
10245    {
10246      $this->description = $description;
10247    }
10248    public function getDescription()
10249    {
10250      return $this->description;
10251    }
10252    public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized)
10253    {
10254      $this->localized = $localized;
10255    }
10256    public function getLocalized()
10257    {
10258      return $this->localized;
10259    }
10260    public function setPublishedAt($publishedAt)
10261    {
10262      $this->publishedAt = $publishedAt;
10263    }
10264    public function getPublishedAt()
10265    {
10266      return $this->publishedAt;
10267    }
10268    public function setTags($tags)
10269    {
10270      $this->tags = $tags;
10271    }
10272    public function getTags()
10273    {
10274      return $this->tags;
10275    }
10276    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
10277    {
10278      $this->thumbnails = $thumbnails;
10279    }
10280    public function getThumbnails()
10281    {
10282      return $this->thumbnails;
10283    }
10284    public function setTitle($title)
10285    {
10286      $this->title = $title;
10287    }
10288    public function getTitle()
10289    {
10290      return $this->title;
10291    }
10292  }
10293  
10294  class Google_Service_YouTube_PlaylistStatus extends Google_Model
10295  {
10296    protected $internal_gapi_mappings = array(
10297    );
10298    public $privacyStatus;
10299  
10300  
10301    public function setPrivacyStatus($privacyStatus)
10302    {
10303      $this->privacyStatus = $privacyStatus;
10304    }
10305    public function getPrivacyStatus()
10306    {
10307      return $this->privacyStatus;
10308    }
10309  }
10310  
10311  class Google_Service_YouTube_PromotedItem extends Google_Model
10312  {
10313    protected $internal_gapi_mappings = array(
10314    );
10315    public $customMessage;
10316    protected $idType = 'Google_Service_YouTube_PromotedItemId';
10317    protected $idDataType = '';
10318    public $promotedByContentOwner;
10319    protected $timingType = 'Google_Service_YouTube_InvideoTiming';
10320    protected $timingDataType = '';
10321  
10322  
10323    public function setCustomMessage($customMessage)
10324    {
10325      $this->customMessage = $customMessage;
10326    }
10327    public function getCustomMessage()
10328    {
10329      return $this->customMessage;
10330    }
10331    public function setId(Google_Service_YouTube_PromotedItemId $id)
10332    {
10333      $this->id = $id;
10334    }
10335    public function getId()
10336    {
10337      return $this->id;
10338    }
10339    public function setPromotedByContentOwner($promotedByContentOwner)
10340    {
10341      $this->promotedByContentOwner = $promotedByContentOwner;
10342    }
10343    public function getPromotedByContentOwner()
10344    {
10345      return $this->promotedByContentOwner;
10346    }
10347    public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
10348    {
10349      $this->timing = $timing;
10350    }
10351    public function getTiming()
10352    {
10353      return $this->timing;
10354    }
10355  }
10356  
10357  class Google_Service_YouTube_PromotedItemId extends Google_Model
10358  {
10359    protected $internal_gapi_mappings = array(
10360    );
10361    public $recentlyUploadedBy;
10362    public $type;
10363    public $videoId;
10364    public $websiteUrl;
10365  
10366  
10367    public function setRecentlyUploadedBy($recentlyUploadedBy)
10368    {
10369      $this->recentlyUploadedBy = $recentlyUploadedBy;
10370    }
10371    public function getRecentlyUploadedBy()
10372    {
10373      return $this->recentlyUploadedBy;
10374    }
10375    public function setType($type)
10376    {
10377      $this->type = $type;
10378    }
10379    public function getType()
10380    {
10381      return $this->type;
10382    }
10383    public function setVideoId($videoId)
10384    {
10385      $this->videoId = $videoId;
10386    }
10387    public function getVideoId()
10388    {
10389      return $this->videoId;
10390    }
10391    public function setWebsiteUrl($websiteUrl)
10392    {
10393      $this->websiteUrl = $websiteUrl;
10394    }
10395    public function getWebsiteUrl()
10396    {
10397      return $this->websiteUrl;
10398    }
10399  }
10400  
10401  class Google_Service_YouTube_PropertyValue extends Google_Model
10402  {
10403    protected $internal_gapi_mappings = array(
10404    );
10405    public $property;
10406    public $value;
10407  
10408  
10409    public function setProperty($property)
10410    {
10411      $this->property = $property;
10412    }
10413    public function getProperty()
10414    {
10415      return $this->property;
10416    }
10417    public function setValue($value)
10418    {
10419      $this->value = $value;
10420    }
10421    public function getValue()
10422    {
10423      return $this->value;
10424    }
10425  }
10426  
10427  class Google_Service_YouTube_ResourceId extends Google_Model
10428  {
10429    protected $internal_gapi_mappings = array(
10430    );
10431    public $channelId;
10432    public $kind;
10433    public $playlistId;
10434    public $videoId;
10435  
10436  
10437    public function setChannelId($channelId)
10438    {
10439      $this->channelId = $channelId;
10440    }
10441    public function getChannelId()
10442    {
10443      return $this->channelId;
10444    }
10445    public function setKind($kind)
10446    {
10447      $this->kind = $kind;
10448    }
10449    public function getKind()
10450    {
10451      return $this->kind;
10452    }
10453    public function setPlaylistId($playlistId)
10454    {
10455      $this->playlistId = $playlistId;
10456    }
10457    public function getPlaylistId()
10458    {
10459      return $this->playlistId;
10460    }
10461    public function setVideoId($videoId)
10462    {
10463      $this->videoId = $videoId;
10464    }
10465    public function getVideoId()
10466    {
10467      return $this->videoId;
10468    }
10469  }
10470  
10471  class Google_Service_YouTube_SearchListResponse extends Google_Collection
10472  {
10473    protected $collection_key = 'items';
10474    protected $internal_gapi_mappings = array(
10475    );
10476    public $etag;
10477    public $eventId;
10478    protected $itemsType = 'Google_Service_YouTube_SearchResult';
10479    protected $itemsDataType = 'array';
10480    public $kind;
10481    public $nextPageToken;
10482    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
10483    protected $pageInfoDataType = '';
10484    public $prevPageToken;
10485    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
10486    protected $tokenPaginationDataType = '';
10487    public $visitorId;
10488  
10489  
10490    public function setEtag($etag)
10491    {
10492      $this->etag = $etag;
10493    }
10494    public function getEtag()
10495    {
10496      return $this->etag;
10497    }
10498    public function setEventId($eventId)
10499    {
10500      $this->eventId = $eventId;
10501    }
10502    public function getEventId()
10503    {
10504      return $this->eventId;
10505    }
10506    public function setItems($items)
10507    {
10508      $this->items = $items;
10509    }
10510    public function getItems()
10511    {
10512      return $this->items;
10513    }
10514    public function setKind($kind)
10515    {
10516      $this->kind = $kind;
10517    }
10518    public function getKind()
10519    {
10520      return $this->kind;
10521    }
10522    public function setNextPageToken($nextPageToken)
10523    {
10524      $this->nextPageToken = $nextPageToken;
10525    }
10526    public function getNextPageToken()
10527    {
10528      return $this->nextPageToken;
10529    }
10530    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
10531    {
10532      $this->pageInfo = $pageInfo;
10533    }
10534    public function getPageInfo()
10535    {
10536      return $this->pageInfo;
10537    }
10538    public function setPrevPageToken($prevPageToken)
10539    {
10540      $this->prevPageToken = $prevPageToken;
10541    }
10542    public function getPrevPageToken()
10543    {
10544      return $this->prevPageToken;
10545    }
10546    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
10547    {
10548      $this->tokenPagination = $tokenPagination;
10549    }
10550    public function getTokenPagination()
10551    {
10552      return $this->tokenPagination;
10553    }
10554    public function setVisitorId($visitorId)
10555    {
10556      $this->visitorId = $visitorId;
10557    }
10558    public function getVisitorId()
10559    {
10560      return $this->visitorId;
10561    }
10562  }
10563  
10564  class Google_Service_YouTube_SearchResult extends Google_Model
10565  {
10566    protected $internal_gapi_mappings = array(
10567    );
10568    public $etag;
10569    protected $idType = 'Google_Service_YouTube_ResourceId';
10570    protected $idDataType = '';
10571    public $kind;
10572    protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet';
10573    protected $snippetDataType = '';
10574  
10575  
10576    public function setEtag($etag)
10577    {
10578      $this->etag = $etag;
10579    }
10580    public function getEtag()
10581    {
10582      return $this->etag;
10583    }
10584    public function setId(Google_Service_YouTube_ResourceId $id)
10585    {
10586      $this->id = $id;
10587    }
10588    public function getId()
10589    {
10590      return $this->id;
10591    }
10592    public function setKind($kind)
10593    {
10594      $this->kind = $kind;
10595    }
10596    public function getKind()
10597    {
10598      return $this->kind;
10599    }
10600    public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet)
10601    {
10602      $this->snippet = $snippet;
10603    }
10604    public function getSnippet()
10605    {
10606      return $this->snippet;
10607    }
10608  }
10609  
10610  class Google_Service_YouTube_SearchResultSnippet extends Google_Model
10611  {
10612    protected $internal_gapi_mappings = array(
10613    );
10614    public $channelId;
10615    public $channelTitle;
10616    public $description;
10617    public $liveBroadcastContent;
10618    public $publishedAt;
10619    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
10620    protected $thumbnailsDataType = '';
10621    public $title;
10622  
10623  
10624    public function setChannelId($channelId)
10625    {
10626      $this->channelId = $channelId;
10627    }
10628    public function getChannelId()
10629    {
10630      return $this->channelId;
10631    }
10632    public function setChannelTitle($channelTitle)
10633    {
10634      $this->channelTitle = $channelTitle;
10635    }
10636    public function getChannelTitle()
10637    {
10638      return $this->channelTitle;
10639    }
10640    public function setDescription($description)
10641    {
10642      $this->description = $description;
10643    }
10644    public function getDescription()
10645    {
10646      return $this->description;
10647    }
10648    public function setLiveBroadcastContent($liveBroadcastContent)
10649    {
10650      $this->liveBroadcastContent = $liveBroadcastContent;
10651    }
10652    public function getLiveBroadcastContent()
10653    {
10654      return $this->liveBroadcastContent;
10655    }
10656    public function setPublishedAt($publishedAt)
10657    {
10658      $this->publishedAt = $publishedAt;
10659    }
10660    public function getPublishedAt()
10661    {
10662      return $this->publishedAt;
10663    }
10664    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
10665    {
10666      $this->thumbnails = $thumbnails;
10667    }
10668    public function getThumbnails()
10669    {
10670      return $this->thumbnails;
10671    }
10672    public function setTitle($title)
10673    {
10674      $this->title = $title;
10675    }
10676    public function getTitle()
10677    {
10678      return $this->title;
10679    }
10680  }
10681  
10682  class Google_Service_YouTube_Subscription extends Google_Model
10683  {
10684    protected $internal_gapi_mappings = array(
10685    );
10686    protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails';
10687    protected $contentDetailsDataType = '';
10688    public $etag;
10689    public $id;
10690    public $kind;
10691    protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet';
10692    protected $snippetDataType = '';
10693    protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet';
10694    protected $subscriberSnippetDataType = '';
10695  
10696  
10697    public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails)
10698    {
10699      $this->contentDetails = $contentDetails;
10700    }
10701    public function getContentDetails()
10702    {
10703      return $this->contentDetails;
10704    }
10705    public function setEtag($etag)
10706    {
10707      $this->etag = $etag;
10708    }
10709    public function getEtag()
10710    {
10711      return $this->etag;
10712    }
10713    public function setId($id)
10714    {
10715      $this->id = $id;
10716    }
10717    public function getId()
10718    {
10719      return $this->id;
10720    }
10721    public function setKind($kind)
10722    {
10723      $this->kind = $kind;
10724    }
10725    public function getKind()
10726    {
10727      return $this->kind;
10728    }
10729    public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet)
10730    {
10731      $this->snippet = $snippet;
10732    }
10733    public function getSnippet()
10734    {
10735      return $this->snippet;
10736    }
10737    public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet)
10738    {
10739      $this->subscriberSnippet = $subscriberSnippet;
10740    }
10741    public function getSubscriberSnippet()
10742    {
10743      return $this->subscriberSnippet;
10744    }
10745  }
10746  
10747  class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model
10748  {
10749    protected $internal_gapi_mappings = array(
10750    );
10751    public $activityType;
10752    public $newItemCount;
10753    public $totalItemCount;
10754  
10755  
10756    public function setActivityType($activityType)
10757    {
10758      $this->activityType = $activityType;
10759    }
10760    public function getActivityType()
10761    {
10762      return $this->activityType;
10763    }
10764    public function setNewItemCount($newItemCount)
10765    {
10766      $this->newItemCount = $newItemCount;
10767    }
10768    public function getNewItemCount()
10769    {
10770      return $this->newItemCount;
10771    }
10772    public function setTotalItemCount($totalItemCount)
10773    {
10774      $this->totalItemCount = $totalItemCount;
10775    }
10776    public function getTotalItemCount()
10777    {
10778      return $this->totalItemCount;
10779    }
10780  }
10781  
10782  class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection
10783  {
10784    protected $collection_key = 'items';
10785    protected $internal_gapi_mappings = array(
10786    );
10787    public $etag;
10788    public $eventId;
10789    protected $itemsType = 'Google_Service_YouTube_Subscription';
10790    protected $itemsDataType = 'array';
10791    public $kind;
10792    public $nextPageToken;
10793    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
10794    protected $pageInfoDataType = '';
10795    public $prevPageToken;
10796    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
10797    protected $tokenPaginationDataType = '';
10798    public $visitorId;
10799  
10800  
10801    public function setEtag($etag)
10802    {
10803      $this->etag = $etag;
10804    }
10805    public function getEtag()
10806    {
10807      return $this->etag;
10808    }
10809    public function setEventId($eventId)
10810    {
10811      $this->eventId = $eventId;
10812    }
10813    public function getEventId()
10814    {
10815      return $this->eventId;
10816    }
10817    public function setItems($items)
10818    {
10819      $this->items = $items;
10820    }
10821    public function getItems()
10822    {
10823      return $this->items;
10824    }
10825    public function setKind($kind)
10826    {
10827      $this->kind = $kind;
10828    }
10829    public function getKind()
10830    {
10831      return $this->kind;
10832    }
10833    public function setNextPageToken($nextPageToken)
10834    {
10835      $this->nextPageToken = $nextPageToken;
10836    }
10837    public function getNextPageToken()
10838    {
10839      return $this->nextPageToken;
10840    }
10841    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
10842    {
10843      $this->pageInfo = $pageInfo;
10844    }
10845    public function getPageInfo()
10846    {
10847      return $this->pageInfo;
10848    }
10849    public function setPrevPageToken($prevPageToken)
10850    {
10851      $this->prevPageToken = $prevPageToken;
10852    }
10853    public function getPrevPageToken()
10854    {
10855      return $this->prevPageToken;
10856    }
10857    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
10858    {
10859      $this->tokenPagination = $tokenPagination;
10860    }
10861    public function getTokenPagination()
10862    {
10863      return $this->tokenPagination;
10864    }
10865    public function setVisitorId($visitorId)
10866    {
10867      $this->visitorId = $visitorId;
10868    }
10869    public function getVisitorId()
10870    {
10871      return $this->visitorId;
10872    }
10873  }
10874  
10875  class Google_Service_YouTube_SubscriptionSnippet extends Google_Model
10876  {
10877    protected $internal_gapi_mappings = array(
10878    );
10879    public $channelId;
10880    public $channelTitle;
10881    public $description;
10882    public $publishedAt;
10883    protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
10884    protected $resourceIdDataType = '';
10885    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
10886    protected $thumbnailsDataType = '';
10887    public $title;
10888  
10889  
10890    public function setChannelId($channelId)
10891    {
10892      $this->channelId = $channelId;
10893    }
10894    public function getChannelId()
10895    {
10896      return $this->channelId;
10897    }
10898    public function setChannelTitle($channelTitle)
10899    {
10900      $this->channelTitle = $channelTitle;
10901    }
10902    public function getChannelTitle()
10903    {
10904      return $this->channelTitle;
10905    }
10906    public function setDescription($description)
10907    {
10908      $this->description = $description;
10909    }
10910    public function getDescription()
10911    {
10912      return $this->description;
10913    }
10914    public function setPublishedAt($publishedAt)
10915    {
10916      $this->publishedAt = $publishedAt;
10917    }
10918    public function getPublishedAt()
10919    {
10920      return $this->publishedAt;
10921    }
10922    public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
10923    {
10924      $this->resourceId = $resourceId;
10925    }
10926    public function getResourceId()
10927    {
10928      return $this->resourceId;
10929    }
10930    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
10931    {
10932      $this->thumbnails = $thumbnails;
10933    }
10934    public function getThumbnails()
10935    {
10936      return $this->thumbnails;
10937    }
10938    public function setTitle($title)
10939    {
10940      $this->title = $title;
10941    }
10942    public function getTitle()
10943    {
10944      return $this->title;
10945    }
10946  }
10947  
10948  class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model
10949  {
10950    protected $internal_gapi_mappings = array(
10951    );
10952    public $channelId;
10953    public $description;
10954    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
10955    protected $thumbnailsDataType = '';
10956    public $title;
10957  
10958  
10959    public function setChannelId($channelId)
10960    {
10961      $this->channelId = $channelId;
10962    }
10963    public function getChannelId()
10964    {
10965      return $this->channelId;
10966    }
10967    public function setDescription($description)
10968    {
10969      $this->description = $description;
10970    }
10971    public function getDescription()
10972    {
10973      return $this->description;
10974    }
10975    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
10976    {
10977      $this->thumbnails = $thumbnails;
10978    }
10979    public function getThumbnails()
10980    {
10981      return $this->thumbnails;
10982    }
10983    public function setTitle($title)
10984    {
10985      $this->title = $title;
10986    }
10987    public function getTitle()
10988    {
10989      return $this->title;
10990    }
10991  }
10992  
10993  class Google_Service_YouTube_Thumbnail extends Google_Model
10994  {
10995    protected $internal_gapi_mappings = array(
10996    );
10997    public $height;
10998    public $url;
10999    public $width;
11000  
11001  
11002    public function setHeight($height)
11003    {
11004      $this->height = $height;
11005    }
11006    public function getHeight()
11007    {
11008      return $this->height;
11009    }
11010    public function setUrl($url)
11011    {
11012      $this->url = $url;
11013    }
11014    public function getUrl()
11015    {
11016      return $this->url;
11017    }
11018    public function setWidth($width)
11019    {
11020      $this->width = $width;
11021    }
11022    public function getWidth()
11023    {
11024      return $this->width;
11025    }
11026  }
11027  
11028  class Google_Service_YouTube_ThumbnailDetails extends Google_Model
11029  {
11030    protected $internal_gapi_mappings = array(
11031    );
11032    protected $defaultType = 'Google_Service_YouTube_Thumbnail';
11033    protected $defaultDataType = '';
11034    protected $highType = 'Google_Service_YouTube_Thumbnail';
11035    protected $highDataType = '';
11036    protected $maxresType = 'Google_Service_YouTube_Thumbnail';
11037    protected $maxresDataType = '';
11038    protected $mediumType = 'Google_Service_YouTube_Thumbnail';
11039    protected $mediumDataType = '';
11040    protected $standardType = 'Google_Service_YouTube_Thumbnail';
11041    protected $standardDataType = '';
11042  
11043  
11044    public function setDefault(Google_Service_YouTube_Thumbnail $default)
11045    {
11046      $this->default = $default;
11047    }
11048    public function getDefault()
11049    {
11050      return $this->default;
11051    }
11052    public function setHigh(Google_Service_YouTube_Thumbnail $high)
11053    {
11054      $this->high = $high;
11055    }
11056    public function getHigh()
11057    {
11058      return $this->high;
11059    }
11060    public function setMaxres(Google_Service_YouTube_Thumbnail $maxres)
11061    {
11062      $this->maxres = $maxres;
11063    }
11064    public function getMaxres()
11065    {
11066      return $this->maxres;
11067    }
11068    public function setMedium(Google_Service_YouTube_Thumbnail $medium)
11069    {
11070      $this->medium = $medium;
11071    }
11072    public function getMedium()
11073    {
11074      return $this->medium;
11075    }
11076    public function setStandard(Google_Service_YouTube_Thumbnail $standard)
11077    {
11078      $this->standard = $standard;
11079    }
11080    public function getStandard()
11081    {
11082      return $this->standard;
11083    }
11084  }
11085  
11086  class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection
11087  {
11088    protected $collection_key = 'items';
11089    protected $internal_gapi_mappings = array(
11090    );
11091    public $etag;
11092    public $eventId;
11093    protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails';
11094    protected $itemsDataType = 'array';
11095    public $kind;
11096    public $visitorId;
11097  
11098  
11099    public function setEtag($etag)
11100    {
11101      $this->etag = $etag;
11102    }
11103    public function getEtag()
11104    {
11105      return $this->etag;
11106    }
11107    public function setEventId($eventId)
11108    {
11109      $this->eventId = $eventId;
11110    }
11111    public function getEventId()
11112    {
11113      return $this->eventId;
11114    }
11115    public function setItems($items)
11116    {
11117      $this->items = $items;
11118    }
11119    public function getItems()
11120    {
11121      return $this->items;
11122    }
11123    public function setKind($kind)
11124    {
11125      $this->kind = $kind;
11126    }
11127    public function getKind()
11128    {
11129      return $this->kind;
11130    }
11131    public function setVisitorId($visitorId)
11132    {
11133      $this->visitorId = $visitorId;
11134    }
11135    public function getVisitorId()
11136    {
11137      return $this->visitorId;
11138    }
11139  }
11140  
11141  class Google_Service_YouTube_TokenPagination extends Google_Model
11142  {
11143  }
11144  
11145  class Google_Service_YouTube_Video extends Google_Model
11146  {
11147    protected $internal_gapi_mappings = array(
11148    );
11149    protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating';
11150    protected $ageGatingDataType = '';
11151    protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails';
11152    protected $contentDetailsDataType = '';
11153    protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings';
11154    protected $conversionPingsDataType = '';
11155    public $etag;
11156    protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails';
11157    protected $fileDetailsDataType = '';
11158    public $id;
11159    public $kind;
11160    protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails';
11161    protected $liveStreamingDetailsDataType = '';
11162    protected $localizationsType = 'Google_Service_YouTube_VideoLocalization';
11163    protected $localizationsDataType = 'map';
11164    protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails';
11165    protected $monetizationDetailsDataType = '';
11166    protected $playerType = 'Google_Service_YouTube_VideoPlayer';
11167    protected $playerDataType = '';
11168    protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails';
11169    protected $processingDetailsDataType = '';
11170    protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails';
11171    protected $projectDetailsDataType = '';
11172    protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails';
11173    protected $recordingDetailsDataType = '';
11174    protected $snippetType = 'Google_Service_YouTube_VideoSnippet';
11175    protected $snippetDataType = '';
11176    protected $statisticsType = 'Google_Service_YouTube_VideoStatistics';
11177    protected $statisticsDataType = '';
11178    protected $statusType = 'Google_Service_YouTube_VideoStatus';
11179    protected $statusDataType = '';
11180    protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions';
11181    protected $suggestionsDataType = '';
11182    protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails';
11183    protected $topicDetailsDataType = '';
11184  
11185  
11186    public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating)
11187    {
11188      $this->ageGating = $ageGating;
11189    }
11190    public function getAgeGating()
11191    {
11192      return $this->ageGating;
11193    }
11194    public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails)
11195    {
11196      $this->contentDetails = $contentDetails;
11197    }
11198    public function getContentDetails()
11199    {
11200      return $this->contentDetails;
11201    }
11202    public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings)
11203    {
11204      $this->conversionPings = $conversionPings;
11205    }
11206    public function getConversionPings()
11207    {
11208      return $this->conversionPings;
11209    }
11210    public function setEtag($etag)
11211    {
11212      $this->etag = $etag;
11213    }
11214    public function getEtag()
11215    {
11216      return $this->etag;
11217    }
11218    public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails)
11219    {
11220      $this->fileDetails = $fileDetails;
11221    }
11222    public function getFileDetails()
11223    {
11224      return $this->fileDetails;
11225    }
11226    public function setId($id)
11227    {
11228      $this->id = $id;
11229    }
11230    public function getId()
11231    {
11232      return $this->id;
11233    }
11234    public function setKind($kind)
11235    {
11236      $this->kind = $kind;
11237    }
11238    public function getKind()
11239    {
11240      return $this->kind;
11241    }
11242    public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails)
11243    {
11244      $this->liveStreamingDetails = $liveStreamingDetails;
11245    }
11246    public function getLiveStreamingDetails()
11247    {
11248      return $this->liveStreamingDetails;
11249    }
11250    public function setLocalizations($localizations)
11251    {
11252      $this->localizations = $localizations;
11253    }
11254    public function getLocalizations()
11255    {
11256      return $this->localizations;
11257    }
11258    public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails)
11259    {
11260      $this->monetizationDetails = $monetizationDetails;
11261    }
11262    public function getMonetizationDetails()
11263    {
11264      return $this->monetizationDetails;
11265    }
11266    public function setPlayer(Google_Service_YouTube_VideoPlayer $player)
11267    {
11268      $this->player = $player;
11269    }
11270    public function getPlayer()
11271    {
11272      return $this->player;
11273    }
11274    public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails)
11275    {
11276      $this->processingDetails = $processingDetails;
11277    }
11278    public function getProcessingDetails()
11279    {
11280      return $this->processingDetails;
11281    }
11282    public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails)
11283    {
11284      $this->projectDetails = $projectDetails;
11285    }
11286    public function getProjectDetails()
11287    {
11288      return $this->projectDetails;
11289    }
11290    public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails)
11291    {
11292      $this->recordingDetails = $recordingDetails;
11293    }
11294    public function getRecordingDetails()
11295    {
11296      return $this->recordingDetails;
11297    }
11298    public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet)
11299    {
11300      $this->snippet = $snippet;
11301    }
11302    public function getSnippet()
11303    {
11304      return $this->snippet;
11305    }
11306    public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics)
11307    {
11308      $this->statistics = $statistics;
11309    }
11310    public function getStatistics()
11311    {
11312      return $this->statistics;
11313    }
11314    public function setStatus(Google_Service_YouTube_VideoStatus $status)
11315    {
11316      $this->status = $status;
11317    }
11318    public function getStatus()
11319    {
11320      return $this->status;
11321    }
11322    public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions)
11323    {
11324      $this->suggestions = $suggestions;
11325    }
11326    public function getSuggestions()
11327    {
11328      return $this->suggestions;
11329    }
11330    public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails)
11331    {
11332      $this->topicDetails = $topicDetails;
11333    }
11334    public function getTopicDetails()
11335    {
11336      return $this->topicDetails;
11337    }
11338  }
11339  
11340  class Google_Service_YouTube_VideoAbuseReport extends Google_Model
11341  {
11342    protected $internal_gapi_mappings = array(
11343    );
11344    public $comments;
11345    public $language;
11346    public $reasonId;
11347    public $secondaryReasonId;
11348    public $videoId;
11349  
11350  
11351    public function setComments($comments)
11352    {
11353      $this->comments = $comments;
11354    }
11355    public function getComments()
11356    {
11357      return $this->comments;
11358    }
11359    public function setLanguage($language)
11360    {
11361      $this->language = $language;
11362    }
11363    public function getLanguage()
11364    {
11365      return $this->language;
11366    }
11367    public function setReasonId($reasonId)
11368    {
11369      $this->reasonId = $reasonId;
11370    }
11371    public function getReasonId()
11372    {
11373      return $this->reasonId;
11374    }
11375    public function setSecondaryReasonId($secondaryReasonId)
11376    {
11377      $this->secondaryReasonId = $secondaryReasonId;
11378    }
11379    public function getSecondaryReasonId()
11380    {
11381      return $this->secondaryReasonId;
11382    }
11383    public function setVideoId($videoId)
11384    {
11385      $this->videoId = $videoId;
11386    }
11387    public function getVideoId()
11388    {
11389      return $this->videoId;
11390    }
11391  }
11392  
11393  class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model
11394  {
11395    protected $internal_gapi_mappings = array(
11396    );
11397    public $etag;
11398    public $id;
11399    public $kind;
11400    protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet';
11401    protected $snippetDataType = '';
11402  
11403  
11404    public function setEtag($etag)
11405    {
11406      $this->etag = $etag;
11407    }
11408    public function getEtag()
11409    {
11410      return $this->etag;
11411    }
11412    public function setId($id)
11413    {
11414      $this->id = $id;
11415    }
11416    public function getId()
11417    {
11418      return $this->id;
11419    }
11420    public function setKind($kind)
11421    {
11422      $this->kind = $kind;
11423    }
11424    public function getKind()
11425    {
11426      return $this->kind;
11427    }
11428    public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet)
11429    {
11430      $this->snippet = $snippet;
11431    }
11432    public function getSnippet()
11433    {
11434      return $this->snippet;
11435    }
11436  }
11437  
11438  class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection
11439  {
11440    protected $collection_key = 'items';
11441    protected $internal_gapi_mappings = array(
11442    );
11443    public $etag;
11444    public $eventId;
11445    protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason';
11446    protected $itemsDataType = 'array';
11447    public $kind;
11448    public $visitorId;
11449  
11450  
11451    public function setEtag($etag)
11452    {
11453      $this->etag = $etag;
11454    }
11455    public function getEtag()
11456    {
11457      return $this->etag;
11458    }
11459    public function setEventId($eventId)
11460    {
11461      $this->eventId = $eventId;
11462    }
11463    public function getEventId()
11464    {
11465      return $this->eventId;
11466    }
11467    public function setItems($items)
11468    {
11469      $this->items = $items;
11470    }
11471    public function getItems()
11472    {
11473      return $this->items;
11474    }
11475    public function setKind($kind)
11476    {
11477      $this->kind = $kind;
11478    }
11479    public function getKind()
11480    {
11481      return $this->kind;
11482    }
11483    public function setVisitorId($visitorId)
11484    {
11485      $this->visitorId = $visitorId;
11486    }
11487    public function getVisitorId()
11488    {
11489      return $this->visitorId;
11490    }
11491  }
11492  
11493  class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection
11494  {
11495    protected $collection_key = 'secondaryReasons';
11496    protected $internal_gapi_mappings = array(
11497    );
11498    public $label;
11499    protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason';
11500    protected $secondaryReasonsDataType = 'array';
11501  
11502  
11503    public function setLabel($label)
11504    {
11505      $this->label = $label;
11506    }
11507    public function getLabel()
11508    {
11509      return $this->label;
11510    }
11511    public function setSecondaryReasons($secondaryReasons)
11512    {
11513      $this->secondaryReasons = $secondaryReasons;
11514    }
11515    public function getSecondaryReasons()
11516    {
11517      return $this->secondaryReasons;
11518    }
11519  }
11520  
11521  class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model
11522  {
11523    protected $internal_gapi_mappings = array(
11524    );
11525    public $id;
11526    public $label;
11527  
11528  
11529    public function setId($id)
11530    {
11531      $this->id = $id;
11532    }
11533    public function getId()
11534    {
11535      return $this->id;
11536    }
11537    public function setLabel($label)
11538    {
11539      $this->label = $label;
11540    }
11541    public function getLabel()
11542    {
11543      return $this->label;
11544    }
11545  }
11546  
11547  class Google_Service_YouTube_VideoAgeGating extends Google_Model
11548  {
11549    protected $internal_gapi_mappings = array(
11550    );
11551    public $alcoholContent;
11552    public $restricted;
11553    public $videoGameRating;
11554  
11555  
11556    public function setAlcoholContent($alcoholContent)
11557    {
11558      $this->alcoholContent = $alcoholContent;
11559    }
11560    public function getAlcoholContent()
11561    {
11562      return $this->alcoholContent;
11563    }
11564    public function setRestricted($restricted)
11565    {
11566      $this->restricted = $restricted;
11567    }
11568    public function getRestricted()
11569    {
11570      return $this->restricted;
11571    }
11572    public function setVideoGameRating($videoGameRating)
11573    {
11574      $this->videoGameRating = $videoGameRating;
11575    }
11576    public function getVideoGameRating()
11577    {
11578      return $this->videoGameRating;
11579    }
11580  }
11581  
11582  class Google_Service_YouTube_VideoCategory extends Google_Model
11583  {
11584    protected $internal_gapi_mappings = array(
11585    );
11586    public $etag;
11587    public $id;
11588    public $kind;
11589    protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet';
11590    protected $snippetDataType = '';
11591  
11592  
11593    public function setEtag($etag)
11594    {
11595      $this->etag = $etag;
11596    }
11597    public function getEtag()
11598    {
11599      return $this->etag;
11600    }
11601    public function setId($id)
11602    {
11603      $this->id = $id;
11604    }
11605    public function getId()
11606    {
11607      return $this->id;
11608    }
11609    public function setKind($kind)
11610    {
11611      $this->kind = $kind;
11612    }
11613    public function getKind()
11614    {
11615      return $this->kind;
11616    }
11617    public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet)
11618    {
11619      $this->snippet = $snippet;
11620    }
11621    public function getSnippet()
11622    {
11623      return $this->snippet;
11624    }
11625  }
11626  
11627  class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection
11628  {
11629    protected $collection_key = 'items';
11630    protected $internal_gapi_mappings = array(
11631    );
11632    public $etag;
11633    public $eventId;
11634    protected $itemsType = 'Google_Service_YouTube_VideoCategory';
11635    protected $itemsDataType = 'array';
11636    public $kind;
11637    public $nextPageToken;
11638    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
11639    protected $pageInfoDataType = '';
11640    public $prevPageToken;
11641    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
11642    protected $tokenPaginationDataType = '';
11643    public $visitorId;
11644  
11645  
11646    public function setEtag($etag)
11647    {
11648      $this->etag = $etag;
11649    }
11650    public function getEtag()
11651    {
11652      return $this->etag;
11653    }
11654    public function setEventId($eventId)
11655    {
11656      $this->eventId = $eventId;
11657    }
11658    public function getEventId()
11659    {
11660      return $this->eventId;
11661    }
11662    public function setItems($items)
11663    {
11664      $this->items = $items;
11665    }
11666    public function getItems()
11667    {
11668      return $this->items;
11669    }
11670    public function setKind($kind)
11671    {
11672      $this->kind = $kind;
11673    }
11674    public function getKind()
11675    {
11676      return $this->kind;
11677    }
11678    public function setNextPageToken($nextPageToken)
11679    {
11680      $this->nextPageToken = $nextPageToken;
11681    }
11682    public function getNextPageToken()
11683    {
11684      return $this->nextPageToken;
11685    }
11686    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
11687    {
11688      $this->pageInfo = $pageInfo;
11689    }
11690    public function getPageInfo()
11691    {
11692      return $this->pageInfo;
11693    }
11694    public function setPrevPageToken($prevPageToken)
11695    {
11696      $this->prevPageToken = $prevPageToken;
11697    }
11698    public function getPrevPageToken()
11699    {
11700      return $this->prevPageToken;
11701    }
11702    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
11703    {
11704      $this->tokenPagination = $tokenPagination;
11705    }
11706    public function getTokenPagination()
11707    {
11708      return $this->tokenPagination;
11709    }
11710    public function setVisitorId($visitorId)
11711    {
11712      $this->visitorId = $visitorId;
11713    }
11714    public function getVisitorId()
11715    {
11716      return $this->visitorId;
11717    }
11718  }
11719  
11720  class Google_Service_YouTube_VideoCategorySnippet extends Google_Model
11721  {
11722    protected $internal_gapi_mappings = array(
11723    );
11724    public $assignable;
11725    public $channelId;
11726    public $title;
11727  
11728  
11729    public function setAssignable($assignable)
11730    {
11731      $this->assignable = $assignable;
11732    }
11733    public function getAssignable()
11734    {
11735      return $this->assignable;
11736    }
11737    public function setChannelId($channelId)
11738    {
11739      $this->channelId = $channelId;
11740    }
11741    public function getChannelId()
11742    {
11743      return $this->channelId;
11744    }
11745    public function setTitle($title)
11746    {
11747      $this->title = $title;
11748    }
11749    public function getTitle()
11750    {
11751      return $this->title;
11752    }
11753  }
11754  
11755  class Google_Service_YouTube_VideoContentDetails extends Google_Model
11756  {
11757    protected $internal_gapi_mappings = array(
11758    );
11759    public $caption;
11760    protected $contentRatingType = 'Google_Service_YouTube_ContentRating';
11761    protected $contentRatingDataType = '';
11762    protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy';
11763    protected $countryRestrictionDataType = '';
11764    public $definition;
11765    public $dimension;
11766    public $duration;
11767    public $licensedContent;
11768    protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction';
11769    protected $regionRestrictionDataType = '';
11770  
11771  
11772    public function setCaption($caption)
11773    {
11774      $this->caption = $caption;
11775    }
11776    public function getCaption()
11777    {
11778      return $this->caption;
11779    }
11780    public function setContentRating(Google_Service_YouTube_ContentRating $contentRating)
11781    {
11782      $this->contentRating = $contentRating;
11783    }
11784    public function getContentRating()
11785    {
11786      return $this->contentRating;
11787    }
11788    public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction)
11789    {
11790      $this->countryRestriction = $countryRestriction;
11791    }
11792    public function getCountryRestriction()
11793    {
11794      return $this->countryRestriction;
11795    }
11796    public function setDefinition($definition)
11797    {
11798      $this->definition = $definition;
11799    }
11800    public function getDefinition()
11801    {
11802      return $this->definition;
11803    }
11804    public function setDimension($dimension)
11805    {
11806      $this->dimension = $dimension;
11807    }
11808    public function getDimension()
11809    {
11810      return $this->dimension;
11811    }
11812    public function setDuration($duration)
11813    {
11814      $this->duration = $duration;
11815    }
11816    public function getDuration()
11817    {
11818      return $this->duration;
11819    }
11820    public function setLicensedContent($licensedContent)
11821    {
11822      $this->licensedContent = $licensedContent;
11823    }
11824    public function getLicensedContent()
11825    {
11826      return $this->licensedContent;
11827    }
11828    public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction)
11829    {
11830      $this->regionRestriction = $regionRestriction;
11831    }
11832    public function getRegionRestriction()
11833    {
11834      return $this->regionRestriction;
11835    }
11836  }
11837  
11838  class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection
11839  {
11840    protected $collection_key = 'blocked';
11841    protected $internal_gapi_mappings = array(
11842    );
11843    public $allowed;
11844    public $blocked;
11845  
11846  
11847    public function setAllowed($allowed)
11848    {
11849      $this->allowed = $allowed;
11850    }
11851    public function getAllowed()
11852    {
11853      return $this->allowed;
11854    }
11855    public function setBlocked($blocked)
11856    {
11857      $this->blocked = $blocked;
11858    }
11859    public function getBlocked()
11860    {
11861      return $this->blocked;
11862    }
11863  }
11864  
11865  class Google_Service_YouTube_VideoConversionPing extends Google_Model
11866  {
11867    protected $internal_gapi_mappings = array(
11868    );
11869    public $context;
11870    public $conversionUrl;
11871  
11872  
11873    public function setContext($context)
11874    {
11875      $this->context = $context;
11876    }
11877    public function getContext()
11878    {
11879      return $this->context;
11880    }
11881    public function setConversionUrl($conversionUrl)
11882    {
11883      $this->conversionUrl = $conversionUrl;
11884    }
11885    public function getConversionUrl()
11886    {
11887      return $this->conversionUrl;
11888    }
11889  }
11890  
11891  class Google_Service_YouTube_VideoConversionPings extends Google_Collection
11892  {
11893    protected $collection_key = 'pings';
11894    protected $internal_gapi_mappings = array(
11895    );
11896    protected $pingsType = 'Google_Service_YouTube_VideoConversionPing';
11897    protected $pingsDataType = 'array';
11898  
11899  
11900    public function setPings($pings)
11901    {
11902      $this->pings = $pings;
11903    }
11904    public function getPings()
11905    {
11906      return $this->pings;
11907    }
11908  }
11909  
11910  class Google_Service_YouTube_VideoFileDetails extends Google_Collection
11911  {
11912    protected $collection_key = 'videoStreams';
11913    protected $internal_gapi_mappings = array(
11914    );
11915    protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream';
11916    protected $audioStreamsDataType = 'array';
11917    public $bitrateBps;
11918    public $container;
11919    public $creationTime;
11920    public $durationMs;
11921    public $fileName;
11922    public $fileSize;
11923    public $fileType;
11924    protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint';
11925    protected $recordingLocationDataType = '';
11926    protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream';
11927    protected $videoStreamsDataType = 'array';
11928  
11929  
11930    public function setAudioStreams($audioStreams)
11931    {
11932      $this->audioStreams = $audioStreams;
11933    }
11934    public function getAudioStreams()
11935    {
11936      return $this->audioStreams;
11937    }
11938    public function setBitrateBps($bitrateBps)
11939    {
11940      $this->bitrateBps = $bitrateBps;
11941    }
11942    public function getBitrateBps()
11943    {
11944      return $this->bitrateBps;
11945    }
11946    public function setContainer($container)
11947    {
11948      $this->container = $container;
11949    }
11950    public function getContainer()
11951    {
11952      return $this->container;
11953    }
11954    public function setCreationTime($creationTime)
11955    {
11956      $this->creationTime = $creationTime;
11957    }
11958    public function getCreationTime()
11959    {
11960      return $this->creationTime;
11961    }
11962    public function setDurationMs($durationMs)
11963    {
11964      $this->durationMs = $durationMs;
11965    }
11966    public function getDurationMs()
11967    {
11968      return $this->durationMs;
11969    }
11970    public function setFileName($fileName)
11971    {
11972      $this->fileName = $fileName;
11973    }
11974    public function getFileName()
11975    {
11976      return $this->fileName;
11977    }
11978    public function setFileSize($fileSize)
11979    {
11980      $this->fileSize = $fileSize;
11981    }
11982    public function getFileSize()
11983    {
11984      return $this->fileSize;
11985    }
11986    public function setFileType($fileType)
11987    {
11988      $this->fileType = $fileType;
11989    }
11990    public function getFileType()
11991    {
11992      return $this->fileType;
11993    }
11994    public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation)
11995    {
11996      $this->recordingLocation = $recordingLocation;
11997    }
11998    public function getRecordingLocation()
11999    {
12000      return $this->recordingLocation;
12001    }
12002    public function setVideoStreams($videoStreams)
12003    {
12004      $this->videoStreams = $videoStreams;
12005    }
12006    public function getVideoStreams()
12007    {
12008      return $this->videoStreams;
12009    }
12010  }
12011  
12012  class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model
12013  {
12014    protected $internal_gapi_mappings = array(
12015    );
12016    public $bitrateBps;
12017    public $channelCount;
12018    public $codec;
12019    public $vendor;
12020  
12021  
12022    public function setBitrateBps($bitrateBps)
12023    {
12024      $this->bitrateBps = $bitrateBps;
12025    }
12026    public function getBitrateBps()
12027    {
12028      return $this->bitrateBps;
12029    }
12030    public function setChannelCount($channelCount)
12031    {
12032      $this->channelCount = $channelCount;
12033    }
12034    public function getChannelCount()
12035    {
12036      return $this->channelCount;
12037    }
12038    public function setCodec($codec)
12039    {
12040      $this->codec = $codec;
12041    }
12042    public function getCodec()
12043    {
12044      return $this->codec;
12045    }
12046    public function setVendor($vendor)
12047    {
12048      $this->vendor = $vendor;
12049    }
12050    public function getVendor()
12051    {
12052      return $this->vendor;
12053    }
12054  }
12055  
12056  class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model
12057  {
12058    protected $internal_gapi_mappings = array(
12059    );
12060    public $aspectRatio;
12061    public $bitrateBps;
12062    public $codec;
12063    public $frameRateFps;
12064    public $heightPixels;
12065    public $rotation;
12066    public $vendor;
12067    public $widthPixels;
12068  
12069  
12070    public function setAspectRatio($aspectRatio)
12071    {
12072      $this->aspectRatio = $aspectRatio;
12073    }
12074    public function getAspectRatio()
12075    {
12076      return $this->aspectRatio;
12077    }
12078    public function setBitrateBps($bitrateBps)
12079    {
12080      $this->bitrateBps = $bitrateBps;
12081    }
12082    public function getBitrateBps()
12083    {
12084      return $this->bitrateBps;
12085    }
12086    public function setCodec($codec)
12087    {
12088      $this->codec = $codec;
12089    }
12090    public function getCodec()
12091    {
12092      return $this->codec;
12093    }
12094    public function setFrameRateFps($frameRateFps)
12095    {
12096      $this->frameRateFps = $frameRateFps;
12097    }
12098    public function getFrameRateFps()
12099    {
12100      return $this->frameRateFps;
12101    }
12102    public function setHeightPixels($heightPixels)
12103    {
12104      $this->heightPixels = $heightPixels;
12105    }
12106    public function getHeightPixels()
12107    {
12108      return $this->heightPixels;
12109    }
12110    public function setRotation($rotation)
12111    {
12112      $this->rotation = $rotation;
12113    }
12114    public function getRotation()
12115    {
12116      return $this->rotation;
12117    }
12118    public function setVendor($vendor)
12119    {
12120      $this->vendor = $vendor;
12121    }
12122    public function getVendor()
12123    {
12124      return $this->vendor;
12125    }
12126    public function setWidthPixels($widthPixels)
12127    {
12128      $this->widthPixels = $widthPixels;
12129    }
12130    public function getWidthPixels()
12131    {
12132      return $this->widthPixels;
12133    }
12134  }
12135  
12136  class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection
12137  {
12138    protected $collection_key = 'items';
12139    protected $internal_gapi_mappings = array(
12140    );
12141    public $etag;
12142    public $eventId;
12143    protected $itemsType = 'Google_Service_YouTube_VideoRating';
12144    protected $itemsDataType = 'array';
12145    public $kind;
12146    public $visitorId;
12147  
12148  
12149    public function setEtag($etag)
12150    {
12151      $this->etag = $etag;
12152    }
12153    public function getEtag()
12154    {
12155      return $this->etag;
12156    }
12157    public function setEventId($eventId)
12158    {
12159      $this->eventId = $eventId;
12160    }
12161    public function getEventId()
12162    {
12163      return $this->eventId;
12164    }
12165    public function setItems($items)
12166    {
12167      $this->items = $items;
12168    }
12169    public function getItems()
12170    {
12171      return $this->items;
12172    }
12173    public function setKind($kind)
12174    {
12175      $this->kind = $kind;
12176    }
12177    public function getKind()
12178    {
12179      return $this->kind;
12180    }
12181    public function setVisitorId($visitorId)
12182    {
12183      $this->visitorId = $visitorId;
12184    }
12185    public function getVisitorId()
12186    {
12187      return $this->visitorId;
12188    }
12189  }
12190  
12191  class Google_Service_YouTube_VideoListResponse extends Google_Collection
12192  {
12193    protected $collection_key = 'items';
12194    protected $internal_gapi_mappings = array(
12195    );
12196    public $etag;
12197    public $eventId;
12198    protected $itemsType = 'Google_Service_YouTube_Video';
12199    protected $itemsDataType = 'array';
12200    public $kind;
12201    public $nextPageToken;
12202    protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
12203    protected $pageInfoDataType = '';
12204    public $prevPageToken;
12205    protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
12206    protected $tokenPaginationDataType = '';
12207    public $visitorId;
12208  
12209  
12210    public function setEtag($etag)
12211    {
12212      $this->etag = $etag;
12213    }
12214    public function getEtag()
12215    {
12216      return $this->etag;
12217    }
12218    public function setEventId($eventId)
12219    {
12220      $this->eventId = $eventId;
12221    }
12222    public function getEventId()
12223    {
12224      return $this->eventId;
12225    }
12226    public function setItems($items)
12227    {
12228      $this->items = $items;
12229    }
12230    public function getItems()
12231    {
12232      return $this->items;
12233    }
12234    public function setKind($kind)
12235    {
12236      $this->kind = $kind;
12237    }
12238    public function getKind()
12239    {
12240      return $this->kind;
12241    }
12242    public function setNextPageToken($nextPageToken)
12243    {
12244      $this->nextPageToken = $nextPageToken;
12245    }
12246    public function getNextPageToken()
12247    {
12248      return $this->nextPageToken;
12249    }
12250    public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
12251    {
12252      $this->pageInfo = $pageInfo;
12253    }
12254    public function getPageInfo()
12255    {
12256      return $this->pageInfo;
12257    }
12258    public function setPrevPageToken($prevPageToken)
12259    {
12260      $this->prevPageToken = $prevPageToken;
12261    }
12262    public function getPrevPageToken()
12263    {
12264      return $this->prevPageToken;
12265    }
12266    public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
12267    {
12268      $this->tokenPagination = $tokenPagination;
12269    }
12270    public function getTokenPagination()
12271    {
12272      return $this->tokenPagination;
12273    }
12274    public function setVisitorId($visitorId)
12275    {
12276      $this->visitorId = $visitorId;
12277    }
12278    public function getVisitorId()
12279    {
12280      return $this->visitorId;
12281    }
12282  }
12283  
12284  class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model
12285  {
12286    protected $internal_gapi_mappings = array(
12287    );
12288    public $actualEndTime;
12289    public $actualStartTime;
12290    public $concurrentViewers;
12291    public $scheduledEndTime;
12292    public $scheduledStartTime;
12293  
12294  
12295    public function setActualEndTime($actualEndTime)
12296    {
12297      $this->actualEndTime = $actualEndTime;
12298    }
12299    public function getActualEndTime()
12300    {
12301      return $this->actualEndTime;
12302    }
12303    public function setActualStartTime($actualStartTime)
12304    {
12305      $this->actualStartTime = $actualStartTime;
12306    }
12307    public function getActualStartTime()
12308    {
12309      return $this->actualStartTime;
12310    }
12311    public function setConcurrentViewers($concurrentViewers)
12312    {
12313      $this->concurrentViewers = $concurrentViewers;
12314    }
12315    public function getConcurrentViewers()
12316    {
12317      return $this->concurrentViewers;
12318    }
12319    public function setScheduledEndTime($scheduledEndTime)
12320    {
12321      $this->scheduledEndTime = $scheduledEndTime;
12322    }
12323    public function getScheduledEndTime()
12324    {
12325      return $this->scheduledEndTime;
12326    }
12327    public function setScheduledStartTime($scheduledStartTime)
12328    {
12329      $this->scheduledStartTime = $scheduledStartTime;
12330    }
12331    public function getScheduledStartTime()
12332    {
12333      return $this->scheduledStartTime;
12334    }
12335  }
12336  
12337  class Google_Service_YouTube_VideoLocalization extends Google_Model
12338  {
12339    protected $internal_gapi_mappings = array(
12340    );
12341    public $description;
12342    public $title;
12343  
12344  
12345    public function setDescription($description)
12346    {
12347      $this->description = $description;
12348    }
12349    public function getDescription()
12350    {
12351      return $this->description;
12352    }
12353    public function setTitle($title)
12354    {
12355      $this->title = $title;
12356    }
12357    public function getTitle()
12358    {
12359      return $this->title;
12360    }
12361  }
12362  
12363  class Google_Service_YouTube_VideoLocalizations extends Google_Model
12364  {
12365  }
12366  
12367  class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model
12368  {
12369    protected $internal_gapi_mappings = array(
12370    );
12371    protected $accessType = 'Google_Service_YouTube_AccessPolicy';
12372    protected $accessDataType = '';
12373  
12374  
12375    public function setAccess(Google_Service_YouTube_AccessPolicy $access)
12376    {
12377      $this->access = $access;
12378    }
12379    public function getAccess()
12380    {
12381      return $this->access;
12382    }
12383  }
12384  
12385  class Google_Service_YouTube_VideoPlayer extends Google_Model
12386  {
12387    protected $internal_gapi_mappings = array(
12388    );
12389    public $embedHtml;
12390  
12391  
12392    public function setEmbedHtml($embedHtml)
12393    {
12394      $this->embedHtml = $embedHtml;
12395    }
12396    public function getEmbedHtml()
12397    {
12398      return $this->embedHtml;
12399    }
12400  }
12401  
12402  class Google_Service_YouTube_VideoProcessingDetails extends Google_Model
12403  {
12404    protected $internal_gapi_mappings = array(
12405    );
12406    public $editorSuggestionsAvailability;
12407    public $fileDetailsAvailability;
12408    public $processingFailureReason;
12409    public $processingIssuesAvailability;
12410    protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress';
12411    protected $processingProgressDataType = '';
12412    public $processingStatus;
12413    public $tagSuggestionsAvailability;
12414    public $thumbnailsAvailability;
12415  
12416  
12417    public function setEditorSuggestionsAvailability($editorSuggestionsAvailability)
12418    {
12419      $this->editorSuggestionsAvailability = $editorSuggestionsAvailability;
12420    }
12421    public function getEditorSuggestionsAvailability()
12422    {
12423      return $this->editorSuggestionsAvailability;
12424    }
12425    public function setFileDetailsAvailability($fileDetailsAvailability)
12426    {
12427      $this->fileDetailsAvailability = $fileDetailsAvailability;
12428    }
12429    public function getFileDetailsAvailability()
12430    {
12431      return $this->fileDetailsAvailability;
12432    }
12433    public function setProcessingFailureReason($processingFailureReason)
12434    {
12435      $this->processingFailureReason = $processingFailureReason;
12436    }
12437    public function getProcessingFailureReason()
12438    {
12439      return $this->processingFailureReason;
12440    }
12441    public function setProcessingIssuesAvailability($processingIssuesAvailability)
12442    {
12443      $this->processingIssuesAvailability = $processingIssuesAvailability;
12444    }
12445    public function getProcessingIssuesAvailability()
12446    {
12447      return $this->processingIssuesAvailability;
12448    }
12449    public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress)
12450    {
12451      $this->processingProgress = $processingProgress;
12452    }
12453    public function getProcessingProgress()
12454    {
12455      return $this->processingProgress;
12456    }
12457    public function setProcessingStatus($processingStatus)
12458    {
12459      $this->processingStatus = $processingStatus;
12460    }
12461    public function getProcessingStatus()
12462    {
12463      return $this->processingStatus;
12464    }
12465    public function setTagSuggestionsAvailability($tagSuggestionsAvailability)
12466    {
12467      $this->tagSuggestionsAvailability = $tagSuggestionsAvailability;
12468    }
12469    public function getTagSuggestionsAvailability()
12470    {
12471      return $this->tagSuggestionsAvailability;
12472    }
12473    public function setThumbnailsAvailability($thumbnailsAvailability)
12474    {
12475      $this->thumbnailsAvailability = $thumbnailsAvailability;
12476    }
12477    public function getThumbnailsAvailability()
12478    {
12479      return $this->thumbnailsAvailability;
12480    }
12481  }
12482  
12483  class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model
12484  {
12485    protected $internal_gapi_mappings = array(
12486    );
12487    public $partsProcessed;
12488    public $partsTotal;
12489    public $timeLeftMs;
12490  
12491  
12492    public function setPartsProcessed($partsProcessed)
12493    {
12494      $this->partsProcessed = $partsProcessed;
12495    }
12496    public function getPartsProcessed()
12497    {
12498      return $this->partsProcessed;
12499    }
12500    public function setPartsTotal($partsTotal)
12501    {
12502      $this->partsTotal = $partsTotal;
12503    }
12504    public function getPartsTotal()
12505    {
12506      return $this->partsTotal;
12507    }
12508    public function setTimeLeftMs($timeLeftMs)
12509    {
12510      $this->timeLeftMs = $timeLeftMs;
12511    }
12512    public function getTimeLeftMs()
12513    {
12514      return $this->timeLeftMs;
12515    }
12516  }
12517  
12518  class Google_Service_YouTube_VideoProjectDetails extends Google_Collection
12519  {
12520    protected $collection_key = 'tags';
12521    protected $internal_gapi_mappings = array(
12522    );
12523    public $tags;
12524  
12525  
12526    public function setTags($tags)
12527    {
12528      $this->tags = $tags;
12529    }
12530    public function getTags()
12531    {
12532      return $this->tags;
12533    }
12534  }
12535  
12536  class Google_Service_YouTube_VideoRating extends Google_Model
12537  {
12538    protected $internal_gapi_mappings = array(
12539    );
12540    public $rating;
12541    public $videoId;
12542  
12543  
12544    public function setRating($rating)
12545    {
12546      $this->rating = $rating;
12547    }
12548    public function getRating()
12549    {
12550      return $this->rating;
12551    }
12552    public function setVideoId($videoId)
12553    {
12554      $this->videoId = $videoId;
12555    }
12556    public function getVideoId()
12557    {
12558      return $this->videoId;
12559    }
12560  }
12561  
12562  class Google_Service_YouTube_VideoRecordingDetails extends Google_Model
12563  {
12564    protected $internal_gapi_mappings = array(
12565    );
12566    protected $locationType = 'Google_Service_YouTube_GeoPoint';
12567    protected $locationDataType = '';
12568    public $locationDescription;
12569    public $recordingDate;
12570  
12571  
12572    public function setLocation(Google_Service_YouTube_GeoPoint $location)
12573    {
12574      $this->location = $location;
12575    }
12576    public function getLocation()
12577    {
12578      return $this->location;
12579    }
12580    public function setLocationDescription($locationDescription)
12581    {
12582      $this->locationDescription = $locationDescription;
12583    }
12584    public function getLocationDescription()
12585    {
12586      return $this->locationDescription;
12587    }
12588    public function setRecordingDate($recordingDate)
12589    {
12590      $this->recordingDate = $recordingDate;
12591    }
12592    public function getRecordingDate()
12593    {
12594      return $this->recordingDate;
12595    }
12596  }
12597  
12598  class Google_Service_YouTube_VideoSnippet extends Google_Collection
12599  {
12600    protected $collection_key = 'tags';
12601    protected $internal_gapi_mappings = array(
12602    );
12603    public $categoryId;
12604    public $channelId;
12605    public $channelTitle;
12606    public $defaultAudioLanguage;
12607    public $defaultLanguage;
12608    public $description;
12609    public $liveBroadcastContent;
12610    protected $localizedType = 'Google_Service_YouTube_VideoLocalization';
12611    protected $localizedDataType = '';
12612    public $publishedAt;
12613    public $tags;
12614    protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
12615    protected $thumbnailsDataType = '';
12616    public $title;
12617  
12618  
12619    public function setCategoryId($categoryId)
12620    {
12621      $this->categoryId = $categoryId;
12622    }
12623    public function getCategoryId()
12624    {
12625      return $this->categoryId;
12626    }
12627    public function setChannelId($channelId)
12628    {
12629      $this->channelId = $channelId;
12630    }
12631    public function getChannelId()
12632    {
12633      return $this->channelId;
12634    }
12635    public function setChannelTitle($channelTitle)
12636    {
12637      $this->channelTitle = $channelTitle;
12638    }
12639    public function getChannelTitle()
12640    {
12641      return $this->channelTitle;
12642    }
12643    public function setDefaultAudioLanguage($defaultAudioLanguage)
12644    {
12645      $this->defaultAudioLanguage = $defaultAudioLanguage;
12646    }
12647    public function getDefaultAudioLanguage()
12648    {
12649      return $this->defaultAudioLanguage;
12650    }
12651    public function setDefaultLanguage($defaultLanguage)
12652    {
12653      $this->defaultLanguage = $defaultLanguage;
12654    }
12655    public function getDefaultLanguage()
12656    {
12657      return $this->defaultLanguage;
12658    }
12659    public function setDescription($description)
12660    {
12661      $this->description = $description;
12662    }
12663    public function getDescription()
12664    {
12665      return $this->description;
12666    }
12667    public function setLiveBroadcastContent($liveBroadcastContent)
12668    {
12669      $this->liveBroadcastContent = $liveBroadcastContent;
12670    }
12671    public function getLiveBroadcastContent()
12672    {
12673      return $this->liveBroadcastContent;
12674    }
12675    public function setLocalized(Google_Service_YouTube_VideoLocalization $localized)
12676    {
12677      $this->localized = $localized;
12678    }
12679    public function getLocalized()
12680    {
12681      return $this->localized;
12682    }
12683    public function setPublishedAt($publishedAt)
12684    {
12685      $this->publishedAt = $publishedAt;
12686    }
12687    public function getPublishedAt()
12688    {
12689      return $this->publishedAt;
12690    }
12691    public function setTags($tags)
12692    {
12693      $this->tags = $tags;
12694    }
12695    public function getTags()
12696    {
12697      return $this->tags;
12698    }
12699    public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
12700    {
12701      $this->thumbnails = $thumbnails;
12702    }
12703    public function getThumbnails()
12704    {
12705      return $this->thumbnails;
12706    }
12707    public function setTitle($title)
12708    {
12709      $this->title = $title;
12710    }
12711    public function getTitle()
12712    {
12713      return $this->title;
12714    }
12715  }
12716  
12717  class Google_Service_YouTube_VideoStatistics extends Google_Model
12718  {
12719    protected $internal_gapi_mappings = array(
12720    );
12721    public $commentCount;
12722    public $dislikeCount;
12723    public $favoriteCount;
12724    public $likeCount;
12725    public $viewCount;
12726  
12727  
12728    public function setCommentCount($commentCount)
12729    {
12730      $this->commentCount = $commentCount;
12731    }
12732    public function getCommentCount()
12733    {
12734      return $this->commentCount;
12735    }
12736    public function setDislikeCount($dislikeCount)
12737    {
12738      $this->dislikeCount = $dislikeCount;
12739    }
12740    public function getDislikeCount()
12741    {
12742      return $this->dislikeCount;
12743    }
12744    public function setFavoriteCount($favoriteCount)
12745    {
12746      $this->favoriteCount = $favoriteCount;
12747    }
12748    public function getFavoriteCount()
12749    {
12750      return $this->favoriteCount;
12751    }
12752    public function setLikeCount($likeCount)
12753    {
12754      $this->likeCount = $likeCount;
12755    }
12756    public function getLikeCount()
12757    {
12758      return $this->likeCount;
12759    }
12760    public function setViewCount($viewCount)
12761    {
12762      $this->viewCount = $viewCount;
12763    }
12764    public function getViewCount()
12765    {
12766      return $this->viewCount;
12767    }
12768  }
12769  
12770  class Google_Service_YouTube_VideoStatus extends Google_Model
12771  {
12772    protected $internal_gapi_mappings = array(
12773    );
12774    public $embeddable;
12775    public $failureReason;
12776    public $license;
12777    public $privacyStatus;
12778    public $publicStatsViewable;
12779    public $publishAt;
12780    public $rejectionReason;
12781    public $uploadStatus;
12782  
12783  
12784    public function setEmbeddable($embeddable)
12785    {
12786      $this->embeddable = $embeddable;
12787    }
12788    public function getEmbeddable()
12789    {
12790      return $this->embeddable;
12791    }
12792    public function setFailureReason($failureReason)
12793    {
12794      $this->failureReason = $failureReason;
12795    }
12796    public function getFailureReason()
12797    {
12798      return $this->failureReason;
12799    }
12800    public function setLicense($license)
12801    {
12802      $this->license = $license;
12803    }
12804    public function getLicense()
12805    {
12806      return $this->license;
12807    }
12808    public function setPrivacyStatus($privacyStatus)
12809    {
12810      $this->privacyStatus = $privacyStatus;
12811    }
12812    public function getPrivacyStatus()
12813    {
12814      return $this->privacyStatus;
12815    }
12816    public function setPublicStatsViewable($publicStatsViewable)
12817    {
12818      $this->publicStatsViewable = $publicStatsViewable;
12819    }
12820    public function getPublicStatsViewable()
12821    {
12822      return $this->publicStatsViewable;
12823    }
12824    public function setPublishAt($publishAt)
12825    {
12826      $this->publishAt = $publishAt;
12827    }
12828    public function getPublishAt()
12829    {
12830      return $this->publishAt;
12831    }
12832    public function setRejectionReason($rejectionReason)
12833    {
12834      $this->rejectionReason = $rejectionReason;
12835    }
12836    public function getRejectionReason()
12837    {
12838      return $this->rejectionReason;
12839    }
12840    public function setUploadStatus($uploadStatus)
12841    {
12842      $this->uploadStatus = $uploadStatus;
12843    }
12844    public function getUploadStatus()
12845    {
12846      return $this->uploadStatus;
12847    }
12848  }
12849  
12850  class Google_Service_YouTube_VideoSuggestions extends Google_Collection
12851  {
12852    protected $collection_key = 'tagSuggestions';
12853    protected $internal_gapi_mappings = array(
12854    );
12855    public $editorSuggestions;
12856    public $processingErrors;
12857    public $processingHints;
12858    public $processingWarnings;
12859    protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion';
12860    protected $tagSuggestionsDataType = 'array';
12861  
12862  
12863    public function setEditorSuggestions($editorSuggestions)
12864    {
12865      $this->editorSuggestions = $editorSuggestions;
12866    }
12867    public function getEditorSuggestions()
12868    {
12869      return $this->editorSuggestions;
12870    }
12871    public function setProcessingErrors($processingErrors)
12872    {
12873      $this->processingErrors = $processingErrors;
12874    }
12875    public function getProcessingErrors()
12876    {
12877      return $this->processingErrors;
12878    }
12879    public function setProcessingHints($processingHints)
12880    {
12881      $this->processingHints = $processingHints;
12882    }
12883    public function getProcessingHints()
12884    {
12885      return $this->processingHints;
12886    }
12887    public function setProcessingWarnings($processingWarnings)
12888    {
12889      $this->processingWarnings = $processingWarnings;
12890    }
12891    public function getProcessingWarnings()
12892    {
12893      return $this->processingWarnings;
12894    }
12895    public function setTagSuggestions($tagSuggestions)
12896    {
12897      $this->tagSuggestions = $tagSuggestions;
12898    }
12899    public function getTagSuggestions()
12900    {
12901      return $this->tagSuggestions;
12902    }
12903  }
12904  
12905  class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection
12906  {
12907    protected $collection_key = 'categoryRestricts';
12908    protected $internal_gapi_mappings = array(
12909    );
12910    public $categoryRestricts;
12911    public $tag;
12912  
12913  
12914    public function setCategoryRestricts($categoryRestricts)
12915    {
12916      $this->categoryRestricts = $categoryRestricts;
12917    }
12918    public function getCategoryRestricts()
12919    {
12920      return $this->categoryRestricts;
12921    }
12922    public function setTag($tag)
12923    {
12924      $this->tag = $tag;
12925    }
12926    public function getTag()
12927    {
12928      return $this->tag;
12929    }
12930  }
12931  
12932  class Google_Service_YouTube_VideoTopicDetails extends Google_Collection
12933  {
12934    protected $collection_key = 'topicIds';
12935    protected $internal_gapi_mappings = array(
12936    );
12937    public $relevantTopicIds;
12938    public $topicIds;
12939  
12940  
12941    public function setRelevantTopicIds($relevantTopicIds)
12942    {
12943      $this->relevantTopicIds = $relevantTopicIds;
12944    }
12945    public function getRelevantTopicIds()
12946    {
12947      return $this->relevantTopicIds;
12948    }
12949    public function setTopicIds($topicIds)
12950    {
12951      $this->topicIds = $topicIds;
12952    }
12953    public function getTopicIds()
12954    {
12955      return $this->topicIds;
12956    }
12957  }
12958  
12959  class Google_Service_YouTube_WatchSettings extends Google_Model
12960  {
12961    protected $internal_gapi_mappings = array(
12962    );
12963    public $backgroundColor;
12964    public $featuredPlaylistId;
12965    public $textColor;
12966  
12967  
12968    public function setBackgroundColor($backgroundColor)
12969    {
12970      $this->backgroundColor = $backgroundColor;
12971    }
12972    public function getBackgroundColor()
12973    {
12974      return $this->backgroundColor;
12975    }
12976    public function setFeaturedPlaylistId($featuredPlaylistId)
12977    {
12978      $this->featuredPlaylistId = $featuredPlaylistId;
12979    }
12980    public function getFeaturedPlaylistId()
12981    {
12982      return $this->featuredPlaylistId;
12983    }
12984    public function setTextColor($textColor)
12985    {
12986      $this->textColor = $textColor;
12987    }
12988    public function getTextColor()
12989    {
12990      return $this->textColor;
12991    }
12992  }