Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
2
/*
3
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
 * use this file except in compliance with the License. You may obtain a copy of
5
 * the License at
6
 *
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software
10
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
 * License for the specific language governing permissions and limitations under
13
 * the License.
14
 */
15
 
16
 
17
  /**
18
   * The "channels" collection of methods.
19
   * Typical usage is:
20
   *  <code>
21
   *   $youtubeService = new Google_YoutubeService(...);
22
   *   $channels = $youtubeService->channels;
23
   *  </code>
24
   */
25
  class Google_ChannelsServiceResource extends Google_ServiceResource {
26
 
27
 
28
    /**
29
     * Browse the YouTube channel collection. Either the 'id' or 'mine' parameter must be set.
30
     * (channels.list)
31
     *
32
     * @param string $part Parts of the channel resource to be returned.
33
     * @param array $optParams Optional parameters.
34
     *
35
     * @opt_param string id YouTube IDs of the channels to be returned.
36
     * @opt_param string mine Flag indicating only return the channel ids of the authenticated user.
37
     * @return Google_ChannelListResponse
38
     */
39
    public function listChannels($part, $optParams = array()) {
40
      $params = array('part' => $part);
41
      $params = array_merge($params, $optParams);
42
      $data = $this->__call('list', array($params));
43
      if ($this->useObjects()) {
44
        return new Google_ChannelListResponse($data);
45
      } else {
46
        return $data;
47
      }
48
    }
49
  }
50
 
51
  /**
52
   * The "search" collection of methods.
53
   * Typical usage is:
54
   *  <code>
55
   *   $youtubeService = new Google_YoutubeService(...);
56
   *   $search = $youtubeService->search;
57
   *  </code>
58
   */
59
  class Google_SearchServiceResource extends Google_ServiceResource {
60
 
61
 
62
    /**
63
     * Universal search for youtube. (search.list)
64
     *
65
     * @param array $optParams Optional parameters.
66
     *
67
     * @opt_param string q Query to search in Youtube.
68
     * @opt_param string startIndex Index of the first search result to return.
69
     * @opt_param string type Type of resource to search.
70
     * @opt_param string order Sort order.
71
     * @opt_param string maxResults Maximum number of search results to return per page.
72
     * @return Google_SearchListResponse
73
     */
74
    public function listSearch($optParams = array()) {
75
      $params = array();
76
      $params = array_merge($params, $optParams);
77
      $data = $this->__call('list', array($params));
78
      if ($this->useObjects()) {
79
        return new Google_SearchListResponse($data);
80
      } else {
81
        return $data;
82
      }
83
    }
84
  }
85
 
86
  /**
87
   * The "playlistitems" collection of methods.
88
   * Typical usage is:
89
   *  <code>
90
   *   $youtubeService = new Google_YoutubeService(...);
91
   *   $playlistitems = $youtubeService->playlistitems;
92
   *  </code>
93
   */
94
  class Google_PlaylistitemsServiceResource extends Google_ServiceResource {
95
 
96
 
97
    /**
98
     * Browse the YouTube playlist collection. (playlistitems.list)
99
     *
100
     * @param string $part Parts of the playlist resource to be returned.
101
     * @param array $optParams Optional parameters.
102
     *
103
     * @opt_param string startIndex Index of the first element to return (starts at 0)
104
     * @opt_param string playlistId Retrieves playlist items from the given playlist id.
105
     * @opt_param string id YouTube IDs of the playlists to be returned.
106
     * @opt_param string maxResults Maximum number of results to return
107
     * @return Google_PlaylistItemListResponse
108
     */
109
    public function listPlaylistitems($part, $optParams = array()) {
110
      $params = array('part' => $part);
111
      $params = array_merge($params, $optParams);
112
      $data = $this->__call('list', array($params));
113
      if ($this->useObjects()) {
114
        return new Google_PlaylistItemListResponse($data);
115
      } else {
116
        return $data;
117
      }
118
    }
119
  }
120
 
121
  /**
122
   * The "playlists" collection of methods.
123
   * Typical usage is:
124
   *  <code>
125
   *   $youtubeService = new Google_YoutubeService(...);
126
   *   $playlists = $youtubeService->playlists;
127
   *  </code>
128
   */
129
  class Google_PlaylistsServiceResource extends Google_ServiceResource {
130
 
131
 
132
    /**
133
     * Browse the YouTube playlist collection. (playlists.list)
134
     *
135
     * @param string $id YouTube IDs of the playlists to be returned.
136
     * @param string $part Parts of the playlist resource to be returned.
137
     * @param array $optParams Optional parameters.
138
     * @return Google_PlaylistListResponse
139
     */
140
    public function listPlaylists($id, $part, $optParams = array()) {
141
      $params = array('id' => $id, 'part' => $part);
142
      $params = array_merge($params, $optParams);
143
      $data = $this->__call('list', array($params));
144
      if ($this->useObjects()) {
145
        return new Google_PlaylistListResponse($data);
146
      } else {
147
        return $data;
148
      }
149
    }
150
  }
151
 
152
  /**
153
   * The "videos" collection of methods.
154
   * Typical usage is:
155
   *  <code>
156
   *   $youtubeService = new Google_YoutubeService(...);
157
   *   $videos = $youtubeService->videos;
158
   *  </code>
159
   */
160
  class Google_VideosServiceResource extends Google_ServiceResource {
161
 
162
 
163
    /**
164
     * Browse the YouTube video collection. (videos.list)
165
     *
166
     * @param string $id YouTube IDs of the videos to be returned.
167
     * @param string $part Parts of the video resource to be returned.
168
     * @param array $optParams Optional parameters.
169
     * @return Google_VideoListResponse
170
     */
171
    public function listVideos($id, $part, $optParams = array()) {
172
      $params = array('id' => $id, 'part' => $part);
173
      $params = array_merge($params, $optParams);
174
      $data = $this->__call('list', array($params));
175
      if ($this->useObjects()) {
176
        return new Google_VideoListResponse($data);
177
      } else {
178
        return $data;
179
      }
180
    }
181
  }
182
 
183
/**
184
 * Service definition for Google_Youtube (v3alpha).
185
 *
186
 * <p>
187
 * Programmatic access to YouTube features.
188
 * </p>
189
 *
190
 * <p>
191
 * For more information about this service, see the
192
 * <a href="https://developers.google.com/youtube" target="_blank">API Documentation</a>
193
 * </p>
194
 *
195
 * @author Google, Inc.
196
 */
197
class Google_YoutubeService extends Google_Service {
198
  public $channels;
199
  public $search;
200
  public $playlistitems;
201
  public $playlists;
202
  public $videos;
203
  /**
204
   * Constructs the internal representation of the Youtube service.
205
   *
206
   * @param Google_Client $client
207
   */
208
  public function __construct(Google_Client $client) {
209
    $this->servicePath = 'youtube/v3alpha/';
210
    $this->version = 'v3alpha';
211
    $this->serviceName = 'youtube';
212
 
213
    $client->addService($this->serviceName, $this->version);
214
    $this->channels = new Google_ChannelsServiceResource($this, $this->serviceName, 'channels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"part": {"required": true, "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "mine": {"type": "string", "location": "query"}}, "id": "youtube.channels.list", "httpMethod": "GET", "path": "channels", "response": {"$ref": "ChannelListResponse"}}}}', true));
215
    $this->search = new Google_SearchServiceResource($this, $this->serviceName, 'search', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"q": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "default": "0", "maximum": "1000", "minimum": "0", "location": "query", "type": "integer"}, "type": {"repeated": true, "enum": ["channel", "playlist", "video"], "type": "string", "location": "query"}, "order": {"default": "SEARCH_SORT_RELEVANCE", "enum": ["date", "rating", "relevance", "view_count"], "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "25", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}}, "response": {"$ref": "SearchListResponse"}, "httpMethod": "GET", "path": "search", "id": "youtube.search.list"}}}', true));
216
    $this->playlistitems = new Google_PlaylistitemsServiceResource($this, $this->serviceName, 'playlistitems', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "part": {"required": true, "type": "string", "location": "query"}, "playlistId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"default": "50", "minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "youtube.playlistitems.list", "httpMethod": "GET", "path": "playlistitems", "response": {"$ref": "PlaylistItemListResponse"}}}}', true));
217
    $this->playlists = new Google_PlaylistsServiceResource($this, $this->serviceName, 'playlists', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"part": {"required": true, "type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "id": "youtube.playlists.list", "httpMethod": "GET", "path": "playlists", "response": {"$ref": "PlaylistListResponse"}}}}', true));
218
    $this->videos = new Google_VideosServiceResource($this, $this->serviceName, 'videos', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"part": {"required": true, "type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "id": "youtube.videos.list", "httpMethod": "GET", "path": "videos", "response": {"$ref": "VideoListResponse"}}}}', true));
219
 
220
  }
221
}
222
 
223
class Google_Channel extends Google_Model {
224
  public $kind;
225
  protected $__statisticsType = 'Google_ChannelStatistics';
226
  protected $__statisticsDataType = '';
227
  public $statistics;
228
  protected $__contentDetailsType = 'Google_ChannelContentDetails';
229
  protected $__contentDetailsDataType = '';
230
  public $contentDetails;
231
  protected $__snippetType = 'Google_ChannelSnippet';
232
  protected $__snippetDataType = '';
233
  public $snippet;
234
  public $etag;
235
  public $id;
236
  public function setKind($kind) {
237
    $this->kind = $kind;
238
  }
239
  public function getKind() {
240
    return $this->kind;
241
  }
242
  public function setStatistics(Google_ChannelStatistics $statistics) {
243
    $this->statistics = $statistics;
244
  }
245
  public function getStatistics() {
246
    return $this->statistics;
247
  }
248
  public function setContentDetails(Google_ChannelContentDetails $contentDetails) {
249
    $this->contentDetails = $contentDetails;
250
  }
251
  public function getContentDetails() {
252
    return $this->contentDetails;
253
  }
254
  public function setSnippet(Google_ChannelSnippet $snippet) {
255
    $this->snippet = $snippet;
256
  }
257
  public function getSnippet() {
258
    return $this->snippet;
259
  }
260
  public function setEtag($etag) {
261
    $this->etag = $etag;
262
  }
263
  public function getEtag() {
264
    return $this->etag;
265
  }
266
  public function setId($id) {
267
    $this->id = $id;
268
  }
269
  public function getId() {
270
    return $this->id;
271
  }
272
}
273
 
274
class Google_ChannelContentDetails extends Google_Model {
275
  public $privacyStatus;
276
  public $uploads;
277
  public function setPrivacyStatus($privacyStatus) {
278
    $this->privacyStatus = $privacyStatus;
279
  }
280
  public function getPrivacyStatus() {
281
    return $this->privacyStatus;
282
  }
283
  public function setUploads($uploads) {
284
    $this->uploads = $uploads;
285
  }
286
  public function getUploads() {
287
    return $this->uploads;
288
  }
289
}
290
 
291
class Google_ChannelListResponse extends Google_Model {
292
  protected $__channelsType = 'Google_Channel';
293
  protected $__channelsDataType = 'map';
294
  public $channels;
295
  public $kind;
296
  public $etag;
297
  public function setChannels(Google_Channel $channels) {
298
    $this->channels = $channels;
299
  }
300
  public function getChannels() {
301
    return $this->channels;
302
  }
303
  public function setKind($kind) {
304
    $this->kind = $kind;
305
  }
306
  public function getKind() {
307
    return $this->kind;
308
  }
309
  public function setEtag($etag) {
310
    $this->etag = $etag;
311
  }
312
  public function getEtag() {
313
    return $this->etag;
314
  }
315
}
316
 
317
class Google_ChannelSnippet extends Google_Model {
318
  public $title;
319
  public $description;
320
  protected $__thumbnailsType = 'Google_Thumbnail';
321
  protected $__thumbnailsDataType = 'map';
322
  public $thumbnails;
323
  public function setTitle($title) {
324
    $this->title = $title;
325
  }
326
  public function getTitle() {
327
    return $this->title;
328
  }
329
  public function setDescription($description) {
330
    $this->description = $description;
331
  }
332
  public function getDescription() {
333
    return $this->description;
334
  }
335
  public function setThumbnails(Google_Thumbnail $thumbnails) {
336
    $this->thumbnails = $thumbnails;
337
  }
338
  public function getThumbnails() {
339
    return $this->thumbnails;
340
  }
341
}
342
 
343
class Google_ChannelStatistics extends Google_Model {
344
  public $commentCount;
345
  public $subscriberCount;
346
  public $videoCount;
347
  public $viewCount;
348
  public function setCommentCount($commentCount) {
349
    $this->commentCount = $commentCount;
350
  }
351
  public function getCommentCount() {
352
    return $this->commentCount;
353
  }
354
  public function setSubscriberCount($subscriberCount) {
355
    $this->subscriberCount = $subscriberCount;
356
  }
357
  public function getSubscriberCount() {
358
    return $this->subscriberCount;
359
  }
360
  public function setVideoCount($videoCount) {
361
    $this->videoCount = $videoCount;
362
  }
363
  public function getVideoCount() {
364
    return $this->videoCount;
365
  }
366
  public function setViewCount($viewCount) {
367
    $this->viewCount = $viewCount;
368
  }
369
  public function getViewCount() {
370
    return $this->viewCount;
371
  }
372
}
373
 
374
class Google_PageInfo extends Google_Model {
375
  public $totalResults;
376
  public $startIndex;
377
  public $resultPerPage;
378
  public function setTotalResults($totalResults) {
379
    $this->totalResults = $totalResults;
380
  }
381
  public function getTotalResults() {
382
    return $this->totalResults;
383
  }
384
  public function setStartIndex($startIndex) {
385
    $this->startIndex = $startIndex;
386
  }
387
  public function getStartIndex() {
388
    return $this->startIndex;
389
  }
390
  public function setResultPerPage($resultPerPage) {
391
    $this->resultPerPage = $resultPerPage;
392
  }
393
  public function getResultPerPage() {
394
    return $this->resultPerPage;
395
  }
396
}
397
 
398
class Google_Playlist extends Google_Model {
399
  protected $__snippetType = 'Google_PlaylistSnippet';
400
  protected $__snippetDataType = '';
401
  public $snippet;
402
  public $kind;
403
  public $etag;
404
  public $id;
405
  public function setSnippet(Google_PlaylistSnippet $snippet) {
406
    $this->snippet = $snippet;
407
  }
408
  public function getSnippet() {
409
    return $this->snippet;
410
  }
411
  public function setKind($kind) {
412
    $this->kind = $kind;
413
  }
414
  public function getKind() {
415
    return $this->kind;
416
  }
417
  public function setEtag($etag) {
418
    $this->etag = $etag;
419
  }
420
  public function getEtag() {
421
    return $this->etag;
422
  }
423
  public function setId($id) {
424
    $this->id = $id;
425
  }
426
  public function getId() {
427
    return $this->id;
428
  }
429
}
430
 
431
class Google_PlaylistItem extends Google_Model {
432
  protected $__snippetType = 'Google_PlaylistItemSnippet';
433
  protected $__snippetDataType = '';
434
  public $snippet;
435
  public $kind;
436
  public $etag;
437
  public $id;
438
  public function setSnippet(Google_PlaylistItemSnippet $snippet) {
439
    $this->snippet = $snippet;
440
  }
441
  public function getSnippet() {
442
    return $this->snippet;
443
  }
444
  public function setKind($kind) {
445
    $this->kind = $kind;
446
  }
447
  public function getKind() {
448
    return $this->kind;
449
  }
450
  public function setEtag($etag) {
451
    $this->etag = $etag;
452
  }
453
  public function getEtag() {
454
    return $this->etag;
455
  }
456
  public function setId($id) {
457
    $this->id = $id;
458
  }
459
  public function getId() {
460
    return $this->id;
461
  }
462
}
463
 
464
class Google_PlaylistItemListResponse extends Google_Model {
465
  protected $__playlistItemsType = 'Google_PlaylistItem';
466
  protected $__playlistItemsDataType = 'map';
467
  public $playlistItems;
468
  public $kind;
469
  public $etag;
470
  public function setPlaylistItems(Google_PlaylistItem $playlistItems) {
471
    $this->playlistItems = $playlistItems;
472
  }
473
  public function getPlaylistItems() {
474
    return $this->playlistItems;
475
  }
476
  public function setKind($kind) {
477
    $this->kind = $kind;
478
  }
479
  public function getKind() {
480
    return $this->kind;
481
  }
482
  public function setEtag($etag) {
483
    $this->etag = $etag;
484
  }
485
  public function getEtag() {
486
    return $this->etag;
487
  }
488
}
489
 
490
class Google_PlaylistItemSnippet extends Google_Model {
491
  public $playlistId;
492
  public $description;
493
  public $title;
494
  protected $__resourceIdType = 'Google_ResourceId';
495
  protected $__resourceIdDataType = '';
496
  public $resourceId;
497
  public $channelId;
498
  public $publishedAt;
499
  public $position;
500
  public function setPlaylistId($playlistId) {
501
    $this->playlistId = $playlistId;
502
  }
503
  public function getPlaylistId() {
504
    return $this->playlistId;
505
  }
506
  public function setDescription($description) {
507
    $this->description = $description;
508
  }
509
  public function getDescription() {
510
    return $this->description;
511
  }
512
  public function setTitle($title) {
513
    $this->title = $title;
514
  }
515
  public function getTitle() {
516
    return $this->title;
517
  }
518
  public function setResourceId(Google_ResourceId $resourceId) {
519
    $this->resourceId = $resourceId;
520
  }
521
  public function getResourceId() {
522
    return $this->resourceId;
523
  }
524
  public function setChannelId($channelId) {
525
    $this->channelId = $channelId;
526
  }
527
  public function getChannelId() {
528
    return $this->channelId;
529
  }
530
  public function setPublishedAt($publishedAt) {
531
    $this->publishedAt = $publishedAt;
532
  }
533
  public function getPublishedAt() {
534
    return $this->publishedAt;
535
  }
536
  public function setPosition($position) {
537
    $this->position = $position;
538
  }
539
  public function getPosition() {
540
    return $this->position;
541
  }
542
}
543
 
544
class Google_PlaylistListResponse extends Google_Model {
545
  public $kind;
546
  public $etag;
547
  protected $__playlistsType = 'Google_Playlist';
548
  protected $__playlistsDataType = 'map';
549
  public $playlists;
550
  public function setKind($kind) {
551
    $this->kind = $kind;
552
  }
553
  public function getKind() {
554
    return $this->kind;
555
  }
556
  public function setEtag($etag) {
557
    $this->etag = $etag;
558
  }
559
  public function getEtag() {
560
    return $this->etag;
561
  }
562
  public function setPlaylists(Google_Playlist $playlists) {
563
    $this->playlists = $playlists;
564
  }
565
  public function getPlaylists() {
566
    return $this->playlists;
567
  }
568
}
569
 
570
class Google_PlaylistSnippet extends Google_Model {
571
  public $title;
572
  public $channelId;
573
  public $description;
574
  public $publishedAt;
575
  public $tags;
576
  public function setTitle($title) {
577
    $this->title = $title;
578
  }
579
  public function getTitle() {
580
    return $this->title;
581
  }
582
  public function setChannelId($channelId) {
583
    $this->channelId = $channelId;
584
  }
585
  public function getChannelId() {
586
    return $this->channelId;
587
  }
588
  public function setDescription($description) {
589
    $this->description = $description;
590
  }
591
  public function getDescription() {
592
    return $this->description;
593
  }
594
  public function setPublishedAt($publishedAt) {
595
    $this->publishedAt = $publishedAt;
596
  }
597
  public function getPublishedAt() {
598
    return $this->publishedAt;
599
  }
600
  public function setTags(/* array(Google_string) */ $tags) {
601
    $this->assertIsArray($tags, 'Google_string', __METHOD__);
602
    $this->tags = $tags;
603
  }
604
  public function getTags() {
605
    return $this->tags;
606
  }
607
}
608
 
609
class Google_ResourceId extends Google_Model {
610
  public $kind;
611
  public $channelId;
612
  public $playlistId;
613
  public $videoId;
614
  public function setKind($kind) {
615
    $this->kind = $kind;
616
  }
617
  public function getKind() {
618
    return $this->kind;
619
  }
620
  public function setChannelId($channelId) {
621
    $this->channelId = $channelId;
622
  }
623
  public function getChannelId() {
624
    return $this->channelId;
625
  }
626
  public function setPlaylistId($playlistId) {
627
    $this->playlistId = $playlistId;
628
  }
629
  public function getPlaylistId() {
630
    return $this->playlistId;
631
  }
632
  public function setVideoId($videoId) {
633
    $this->videoId = $videoId;
634
  }
635
  public function getVideoId() {
636
    return $this->videoId;
637
  }
638
}
639
 
640
class Google_SearchListResponse extends Google_Model {
641
  protected $__searchResultsType = 'Google_SearchResult';
642
  protected $__searchResultsDataType = 'array';
643
  public $searchResults;
644
  public $kind;
645
  public $etag;
646
  protected $__pageInfoType = 'Google_PageInfo';
647
  protected $__pageInfoDataType = '';
648
  public $pageInfo;
649
  public function setSearchResults(/* array(Google_SearchResult) */ $searchResults) {
650
    $this->assertIsArray($searchResults, 'Google_SearchResult', __METHOD__);
651
    $this->searchResults = $searchResults;
652
  }
653
  public function getSearchResults() {
654
    return $this->searchResults;
655
  }
656
  public function setKind($kind) {
657
    $this->kind = $kind;
658
  }
659
  public function getKind() {
660
    return $this->kind;
661
  }
662
  public function setEtag($etag) {
663
    $this->etag = $etag;
664
  }
665
  public function getEtag() {
666
    return $this->etag;
667
  }
668
  public function setPageInfo(Google_PageInfo $pageInfo) {
669
    $this->pageInfo = $pageInfo;
670
  }
671
  public function getPageInfo() {
672
    return $this->pageInfo;
673
  }
674
}
675
 
676
class Google_SearchResult extends Google_Model {
677
  protected $__snippetType = 'Google_SearchResultSnippet';
678
  protected $__snippetDataType = '';
679
  public $snippet;
680
  public $kind;
681
  public $etag;
682
  protected $__idType = 'Google_ResourceId';
683
  protected $__idDataType = '';
684
  public $id;
685
  public function setSnippet(Google_SearchResultSnippet $snippet) {
686
    $this->snippet = $snippet;
687
  }
688
  public function getSnippet() {
689
    return $this->snippet;
690
  }
691
  public function setKind($kind) {
692
    $this->kind = $kind;
693
  }
694
  public function getKind() {
695
    return $this->kind;
696
  }
697
  public function setEtag($etag) {
698
    $this->etag = $etag;
699
  }
700
  public function getEtag() {
701
    return $this->etag;
702
  }
703
  public function setId(Google_ResourceId $id) {
704
    $this->id = $id;
705
  }
706
  public function getId() {
707
    return $this->id;
708
  }
709
}
710
 
711
class Google_SearchResultSnippet extends Google_Model {
712
  public $channelId;
713
  public $description;
714
  public $publishedAt;
715
  public $title;
716
  public function setChannelId($channelId) {
717
    $this->channelId = $channelId;
718
  }
719
  public function getChannelId() {
720
    return $this->channelId;
721
  }
722
  public function setDescription($description) {
723
    $this->description = $description;
724
  }
725
  public function getDescription() {
726
    return $this->description;
727
  }
728
  public function setPublishedAt($publishedAt) {
729
    $this->publishedAt = $publishedAt;
730
  }
731
  public function getPublishedAt() {
732
    return $this->publishedAt;
733
  }
734
  public function setTitle($title) {
735
    $this->title = $title;
736
  }
737
  public function getTitle() {
738
    return $this->title;
739
  }
740
}
741
 
742
class Google_Thumbnail extends Google_Model {
743
  public $url;
744
  public function setUrl($url) {
745
    $this->url = $url;
746
  }
747
  public function getUrl() {
748
    return $this->url;
749
  }
750
}
751
 
752
class Google_Video extends Google_Model {
753
  protected $__statusType = 'Google_VideoStatus';
754
  protected $__statusDataType = '';
755
  public $status;
756
  public $kind;
757
  protected $__statisticsType = 'Google_VideoStatistics';
758
  protected $__statisticsDataType = '';
759
  public $statistics;
760
  protected $__contentDetailsType = 'Google_VideoContentDetails';
761
  protected $__contentDetailsDataType = '';
762
  public $contentDetails;
763
  protected $__snippetType = 'Google_VideoSnippet';
764
  protected $__snippetDataType = '';
765
  public $snippet;
766
  protected $__playerType = 'Google_VideoPlayer';
767
  protected $__playerDataType = '';
768
  public $player;
769
  public $etag;
770
  public $id;
771
  public function setStatus(Google_VideoStatus $status) {
772
    $this->status = $status;
773
  }
774
  public function getStatus() {
775
    return $this->status;
776
  }
777
  public function setKind($kind) {
778
    $this->kind = $kind;
779
  }
780
  public function getKind() {
781
    return $this->kind;
782
  }
783
  public function setStatistics(Google_VideoStatistics $statistics) {
784
    $this->statistics = $statistics;
785
  }
786
  public function getStatistics() {
787
    return $this->statistics;
788
  }
789
  public function setContentDetails(Google_VideoContentDetails $contentDetails) {
790
    $this->contentDetails = $contentDetails;
791
  }
792
  public function getContentDetails() {
793
    return $this->contentDetails;
794
  }
795
  public function setSnippet(Google_VideoSnippet $snippet) {
796
    $this->snippet = $snippet;
797
  }
798
  public function getSnippet() {
799
    return $this->snippet;
800
  }
801
  public function setPlayer(Google_VideoPlayer $player) {
802
    $this->player = $player;
803
  }
804
  public function getPlayer() {
805
    return $this->player;
806
  }
807
  public function setEtag($etag) {
808
    $this->etag = $etag;
809
  }
810
  public function getEtag() {
811
    return $this->etag;
812
  }
813
  public function setId($id) {
814
    $this->id = $id;
815
  }
816
  public function getId() {
817
    return $this->id;
818
  }
819
}
820
 
821
class Google_VideoContentDetails extends Google_Model {
822
  public $duration;
823
  public $aspectRatio;
824
  public function setDuration($duration) {
825
    $this->duration = $duration;
826
  }
827
  public function getDuration() {
828
    return $this->duration;
829
  }
830
  public function setAspectRatio($aspectRatio) {
831
    $this->aspectRatio = $aspectRatio;
832
  }
833
  public function getAspectRatio() {
834
    return $this->aspectRatio;
835
  }
836
}
837
 
838
class Google_VideoListResponse extends Google_Model {
839
  public $kind;
840
  public $etag;
841
  protected $__videosType = 'Google_Video';
842
  protected $__videosDataType = 'map';
843
  public $videos;
844
  public function setKind($kind) {
845
    $this->kind = $kind;
846
  }
847
  public function getKind() {
848
    return $this->kind;
849
  }
850
  public function setEtag($etag) {
851
    $this->etag = $etag;
852
  }
853
  public function getEtag() {
854
    return $this->etag;
855
  }
856
  public function setVideos(Google_Video $videos) {
857
    $this->videos = $videos;
858
  }
859
  public function getVideos() {
860
    return $this->videos;
861
  }
862
}
863
 
864
class Google_VideoPlayer extends Google_Model {
865
  public $embedHtml;
866
  public function setEmbedHtml($embedHtml) {
867
    $this->embedHtml = $embedHtml;
868
  }
869
  public function getEmbedHtml() {
870
    return $this->embedHtml;
871
  }
872
}
873
 
874
class Google_VideoSnippet extends Google_Model {
875
  protected $__thumbnailsType = 'Google_Thumbnail';
876
  protected $__thumbnailsDataType = 'map';
877
  public $thumbnails;
878
  public $tags;
879
  public $channelId;
880
  public $publishedAt;
881
  public $title;
882
  public $categoryId;
883
  public $description;
884
  public function setThumbnails(Google_Thumbnail $thumbnails) {
885
    $this->thumbnails = $thumbnails;
886
  }
887
  public function getThumbnails() {
888
    return $this->thumbnails;
889
  }
890
  public function setTags(/* array(Google_string) */ $tags) {
891
    $this->assertIsArray($tags, 'Google_string', __METHOD__);
892
    $this->tags = $tags;
893
  }
894
  public function getTags() {
895
    return $this->tags;
896
  }
897
  public function setChannelId($channelId) {
898
    $this->channelId = $channelId;
899
  }
900
  public function getChannelId() {
901
    return $this->channelId;
902
  }
903
  public function setPublishedAt($publishedAt) {
904
    $this->publishedAt = $publishedAt;
905
  }
906
  public function getPublishedAt() {
907
    return $this->publishedAt;
908
  }
909
  public function setTitle($title) {
910
    $this->title = $title;
911
  }
912
  public function getTitle() {
913
    return $this->title;
914
  }
915
  public function setCategoryId($categoryId) {
916
    $this->categoryId = $categoryId;
917
  }
918
  public function getCategoryId() {
919
    return $this->categoryId;
920
  }
921
  public function setDescription($description) {
922
    $this->description = $description;
923
  }
924
  public function getDescription() {
925
    return $this->description;
926
  }
927
}
928
 
929
class Google_VideoStatistics extends Google_Model {
930
  public $commentCount;
931
  public $viewCount;
932
  public $favoriteCount;
933
  public $dislikeCount;
934
  public $likeCount;
935
  public function setCommentCount($commentCount) {
936
    $this->commentCount = $commentCount;
937
  }
938
  public function getCommentCount() {
939
    return $this->commentCount;
940
  }
941
  public function setViewCount($viewCount) {
942
    $this->viewCount = $viewCount;
943
  }
944
  public function getViewCount() {
945
    return $this->viewCount;
946
  }
947
  public function setFavoriteCount($favoriteCount) {
948
    $this->favoriteCount = $favoriteCount;
949
  }
950
  public function getFavoriteCount() {
951
    return $this->favoriteCount;
952
  }
953
  public function setDislikeCount($dislikeCount) {
954
    $this->dislikeCount = $dislikeCount;
955
  }
956
  public function getDislikeCount() {
957
    return $this->dislikeCount;
958
  }
959
  public function setLikeCount($likeCount) {
960
    $this->likeCount = $likeCount;
961
  }
962
  public function getLikeCount() {
963
    return $this->likeCount;
964
  }
965
}
966
 
967
class Google_VideoStatus extends Google_Model {
968
  public $privacyStatus;
969
  public $uploadStatus;
970
  public $rejectionReason;
971
  public $failureReason;
972
  public function setPrivacyStatus($privacyStatus) {
973
    $this->privacyStatus = $privacyStatus;
974
  }
975
  public function getPrivacyStatus() {
976
    return $this->privacyStatus;
977
  }
978
  public function setUploadStatus($uploadStatus) {
979
    $this->uploadStatus = $uploadStatus;
980
  }
981
  public function getUploadStatus() {
982
    return $this->uploadStatus;
983
  }
984
  public function setRejectionReason($rejectionReason) {
985
    $this->rejectionReason = $rejectionReason;
986
  }
987
  public function getRejectionReason() {
988
    return $this->rejectionReason;
989
  }
990
  public function setFailureReason($failureReason) {
991
    $this->failureReason = $failureReason;
992
  }
993
  public function getFailureReason() {
994
    return $this->failureReason;
995
  }
996
}