PageRenderTime 67ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/google-api/contrib/Google_YoutubeService.php

https://github.com/lordcoste/analytics-s2s
PHP | 2318 lines | 1889 code | 83 blank | 346 comment | 34 complexity | e27884609b2a73f419abb567fa084e1c MD5 | raw file
Possible License(s): MIT, Apache-2.0
  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. * The "activities" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $youtubeService = new Google_YouTubeService(...);
  20. * $activities = $youtubeService->activities;
  21. * </code>
  22. */
  23. class Google_ActivitiesServiceResource extends Google_ServiceResource {
  24. /**
  25. * Post a channel bulletin. (activities.insert)
  26. *
  27. * @param string $part One or more parts to return on the current request.
  28. * @param Google_Activity $postBody
  29. * @param array $optParams Optional parameters.
  30. *
  31. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  32. * @return Google_Activity
  33. */
  34. public function insert($part, Google_Activity $postBody, $optParams = array()) {
  35. $params = array('part' => $part, 'postBody' => $postBody);
  36. $params = array_merge($params, $optParams);
  37. $data = $this->__call('insert', array($params));
  38. if ($this->useObjects()) {
  39. return new Google_Activity($data);
  40. } else {
  41. return $data;
  42. }
  43. }
  44. /**
  45. * Browse the YouTube channel activity collection. (activities.list)
  46. *
  47. * @param string $part Activity parts to include in the returned response. Valid values are: id, snippet and contentDetails.
  48. * @param array $optParams Optional parameters.
  49. *
  50. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  51. * @opt_param string publishedBefore Only return activities published before given date (exclusive).
  52. * @opt_param string channelId YouTube ID of the channel.
  53. * @opt_param string mine Flag indicating to return user's activities.
  54. * @opt_param string maxResults Maximum number of results to return
  55. * @opt_param string pageToken Token for the page selection.
  56. * @opt_param string home Flag indicating to return user's homepage feed.
  57. * @opt_param string publishedAfter Only return activities published after given date (inclusive).
  58. * @return Google_ActivityListResponse
  59. */
  60. public function listActivities($part, $optParams = array()) {
  61. $params = array('part' => $part);
  62. $params = array_merge($params, $optParams);
  63. $data = $this->__call('list', array($params));
  64. if ($this->useObjects()) {
  65. return new Google_ActivityListResponse($data);
  66. } else {
  67. return $data;
  68. }
  69. }
  70. }
  71. /**
  72. * The "search" collection of methods.
  73. * Typical usage is:
  74. * <code>
  75. * $youtubeService = new Google_YouTubeService(...);
  76. * $search = $youtubeService->search;
  77. * </code>
  78. */
  79. class Google_SearchServiceResource extends Google_ServiceResource {
  80. /**
  81. * Universal search for youtube. (search.list)
  82. *
  83. * @param string $part Search result parts to include in the returned response. Valid values are: id and snippet.
  84. * @param array $optParams Optional parameters.
  85. *
  86. * @opt_param string topicId Only search for resources with the specified topic
  87. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  88. * @opt_param string videoDuration Add a filter on the duration of the videos.
  89. * @opt_param string videoDimension Add a filter for the number of dimensions in the videos.
  90. * @opt_param string videoLicense Add a filter on the licensing of the videos.
  91. * @opt_param string maxResults Maximum number of search results to return per page.
  92. * @opt_param string videoCaption Add a filter on the the presence of captions on the videos.
  93. * @opt_param string q Query to search in Youtube.
  94. * @opt_param string pageToken Token for the page selection.
  95. * @opt_param string videoDefinition Add a filter for the definition of the videos.
  96. * @opt_param string published Only search for resources uploaded at a specific pediod
  97. * @opt_param string relatedToVideo Search for resources related to this video. Need to be used with type set to 'video'
  98. * @opt_param string type Type of resource to search.
  99. * @opt_param string order Sort order.
  100. * @return Google_SearchListResponse
  101. */
  102. public function listSearch($part, $optParams = array()) {
  103. $params = array('part' => $part);
  104. $params = array_merge($params, $optParams);
  105. $data = $this->__call('list', array($params));
  106. if ($this->useObjects()) {
  107. return new Google_SearchListResponse($data);
  108. } else {
  109. return $data;
  110. }
  111. }
  112. }
  113. /**
  114. * The "guideCategories" collection of methods.
  115. * Typical usage is:
  116. * <code>
  117. * $youtubeService = new Google_YouTubeService(...);
  118. * $guideCategories = $youtubeService->guideCategories;
  119. * </code>
  120. */
  121. class Google_GuideCategoriesServiceResource extends Google_ServiceResource {
  122. /**
  123. * Browse the YouTube guide category collection. (guideCategories.list)
  124. *
  125. * @param string $part Guide category parts to include in the returned response. Valid values are: id and snippet.
  126. * @param array $optParams Optional parameters.
  127. *
  128. * @opt_param string regionCode Return the channelCategories in the given region code.
  129. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  130. * @opt_param string id Comma-separated YouTube IDs of the channelCategories to be returned.
  131. * @opt_param string hl Language for the returned channelCategories.
  132. * @return Google_GuideCategoryListResponse
  133. */
  134. public function listGuideCategories($part, $optParams = array()) {
  135. $params = array('part' => $part);
  136. $params = array_merge($params, $optParams);
  137. $data = $this->__call('list', array($params));
  138. if ($this->useObjects()) {
  139. return new Google_GuideCategoryListResponse($data);
  140. } else {
  141. return $data;
  142. }
  143. }
  144. }
  145. /**
  146. * The "playlists" collection of methods.
  147. * Typical usage is:
  148. * <code>
  149. * $youtubeService = new Google_YouTubeService(...);
  150. * $playlists = $youtubeService->playlists;
  151. * </code>
  152. */
  153. class Google_PlaylistsServiceResource extends Google_ServiceResource {
  154. /**
  155. * Create a playlist. (playlists.insert)
  156. *
  157. * @param string $part One or more parts to return on the current request.
  158. * @param Google_Playlist $postBody
  159. * @param array $optParams Optional parameters.
  160. *
  161. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  162. * @return Google_Playlist
  163. */
  164. public function insert($part, Google_Playlist $postBody, $optParams = array()) {
  165. $params = array('part' => $part, 'postBody' => $postBody);
  166. $params = array_merge($params, $optParams);
  167. $data = $this->__call('insert', array($params));
  168. if ($this->useObjects()) {
  169. return new Google_Playlist($data);
  170. } else {
  171. return $data;
  172. }
  173. }
  174. /**
  175. * Browse the YouTube playlist collection. (playlists.list)
  176. *
  177. * @param string $part Playlist parts to include in the returned response. Valid values are: id, snippet and status.
  178. * @param array $optParams Optional parameters.
  179. *
  180. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  181. * @opt_param string mine Flag indicating only return the playlists of the authenticated user.
  182. * @opt_param string maxResults Maximum number of results to return
  183. * @opt_param string pageToken Token for the page selection.
  184. * @opt_param string id Comma-separated YouTube IDs of the playlists to be returned.
  185. * @return Google_PlaylistListResponse
  186. */
  187. public function listPlaylists($part, $optParams = array()) {
  188. $params = array('part' => $part);
  189. $params = array_merge($params, $optParams);
  190. $data = $this->__call('list', array($params));
  191. if ($this->useObjects()) {
  192. return new Google_PlaylistListResponse($data);
  193. } else {
  194. return $data;
  195. }
  196. }
  197. /**
  198. * Update a playlist. (playlists.update)
  199. *
  200. * @param string $part One or more parts to return on the current request.
  201. * @param Google_Playlist $postBody
  202. * @param array $optParams Optional parameters.
  203. *
  204. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  205. * @return Google_Playlist
  206. */
  207. public function update($part, Google_Playlist $postBody, $optParams = array()) {
  208. $params = array('part' => $part, 'postBody' => $postBody);
  209. $params = array_merge($params, $optParams);
  210. $data = $this->__call('update', array($params));
  211. if ($this->useObjects()) {
  212. return new Google_Playlist($data);
  213. } else {
  214. return $data;
  215. }
  216. }
  217. /**
  218. * Deletes playlists by IDs. (playlists.delete)
  219. *
  220. * @param string $id YouTube IDs of the playlists to be deleted.
  221. * @param array $optParams Optional parameters.
  222. *
  223. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  224. */
  225. public function delete($id, $optParams = array()) {
  226. $params = array('id' => $id);
  227. $params = array_merge($params, $optParams);
  228. $data = $this->__call('delete', array($params));
  229. return $data;
  230. }
  231. }
  232. /**
  233. * The "videos" collection of methods.
  234. * Typical usage is:
  235. * <code>
  236. * $youtubeService = new Google_YouTubeService(...);
  237. * $videos = $youtubeService->videos;
  238. * </code>
  239. */
  240. class Google_VideosServiceResource extends Google_ServiceResource {
  241. /**
  242. * Upload a video to YouTube. (videos.insert)
  243. *
  244. * @param string $part One or more parts to return on the current request.
  245. * @param Google_Video $postBody
  246. * @param array $optParams Optional parameters.
  247. *
  248. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  249. * @return Google_Video
  250. */
  251. public function insert($part, Google_Video $postBody, $optParams = array()) {
  252. $params = array('part' => $part, 'postBody' => $postBody);
  253. $params = array_merge($params, $optParams);
  254. $data = $this->__call('insert', array($params));
  255. if ($this->useObjects()) {
  256. return new Google_Video($data);
  257. } else {
  258. return $data;
  259. }
  260. }
  261. /**
  262. * Browse the YouTube video collection. (videos.list)
  263. *
  264. * @param string $id YouTube IDs of the videos to be returned.
  265. * @param string $part Video parts to include in the returned response. Valid values are: id, snippet, contentDetails, player, statistics, status and topicDetails.
  266. * @param array $optParams Optional parameters.
  267. *
  268. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  269. * @return Google_VideoListResponse
  270. */
  271. public function listVideos($id, $part, $optParams = array()) {
  272. $params = array('id' => $id, 'part' => $part);
  273. $params = array_merge($params, $optParams);
  274. $data = $this->__call('list', array($params));
  275. if ($this->useObjects()) {
  276. return new Google_VideoListResponse($data);
  277. } else {
  278. return $data;
  279. }
  280. }
  281. /**
  282. * Update a video. (videos.update)
  283. *
  284. * @param string $part One or more parts to return on the current request.
  285. * @param Google_Video $postBody
  286. * @param array $optParams Optional parameters.
  287. *
  288. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  289. * @return Google_Video
  290. */
  291. public function update($part, Google_Video $postBody, $optParams = array()) {
  292. $params = array('part' => $part, 'postBody' => $postBody);
  293. $params = array_merge($params, $optParams);
  294. $data = $this->__call('update', array($params));
  295. if ($this->useObjects()) {
  296. return new Google_Video($data);
  297. } else {
  298. return $data;
  299. }
  300. }
  301. /**
  302. * Delete a YouTube video. (videos.delete)
  303. *
  304. * @param string $id YouTube ID of the video to be deleted.
  305. * @param array $optParams Optional parameters.
  306. *
  307. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  308. */
  309. public function delete($id, $optParams = array()) {
  310. $params = array('id' => $id);
  311. $params = array_merge($params, $optParams);
  312. $data = $this->__call('delete', array($params));
  313. return $data;
  314. }
  315. }
  316. /**
  317. * The "subscriptions" collection of methods.
  318. * Typical usage is:
  319. * <code>
  320. * $youtubeService = new Google_YouTubeService(...);
  321. * $subscriptions = $youtubeService->subscriptions;
  322. * </code>
  323. */
  324. class Google_SubscriptionsServiceResource extends Google_ServiceResource {
  325. /**
  326. * Insert a subscription. (subscriptions.insert)
  327. *
  328. * @param string $part One or more parts to return on the current request.
  329. * @param Google_Subscription $postBody
  330. * @param array $optParams Optional parameters.
  331. *
  332. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  333. * @return Google_Subscription
  334. */
  335. public function insert($part, Google_Subscription $postBody, $optParams = array()) {
  336. $params = array('part' => $part, 'postBody' => $postBody);
  337. $params = array_merge($params, $optParams);
  338. $data = $this->__call('insert', array($params));
  339. if ($this->useObjects()) {
  340. return new Google_Subscription($data);
  341. } else {
  342. return $data;
  343. }
  344. }
  345. /**
  346. * Browses the subscriptions collection. (subscriptions.list)
  347. *
  348. * @param string $part Subscription parts to include in the returned response. Valid values are: id, snippet and contentDetails.
  349. * @param array $optParams Optional parameters.
  350. *
  351. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  352. * @opt_param string channelId Only return subscriptions to given channelId.
  353. * @opt_param string mine Flag indicating only return the subscriptions of the authenticated user.
  354. * @opt_param string maxResults Maximum number of search results to return per page.
  355. * @opt_param string forChannelId Comma separated list of channel IDs to return subscriptions for.
  356. * @opt_param string pageToken Token for the page selection.
  357. * @opt_param string order Sort order.
  358. * @opt_param string id YouTube IDs of the subscriptions to be returned.
  359. * @return Google_SubscriptionListResponse
  360. */
  361. public function listSubscriptions($part, $optParams = array()) {
  362. $params = array('part' => $part);
  363. $params = array_merge($params, $optParams);
  364. $data = $this->__call('list', array($params));
  365. if ($this->useObjects()) {
  366. return new Google_SubscriptionListResponse($data);
  367. } else {
  368. return $data;
  369. }
  370. }
  371. /**
  372. * Deletes subscriptions by IDs. (subscriptions.delete)
  373. *
  374. * @param string $id YouTube IDs of the subscription to be deleted.
  375. * @param array $optParams Optional parameters.
  376. *
  377. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  378. */
  379. public function delete($id, $optParams = array()) {
  380. $params = array('id' => $id);
  381. $params = array_merge($params, $optParams);
  382. $data = $this->__call('delete', array($params));
  383. return $data;
  384. }
  385. }
  386. /**
  387. * The "channels" collection of methods.
  388. * Typical usage is:
  389. * <code>
  390. * $youtubeService = new Google_YouTubeService(...);
  391. * $channels = $youtubeService->channels;
  392. * </code>
  393. */
  394. class Google_ChannelsServiceResource extends Google_ServiceResource {
  395. /**
  396. * Browse the YouTube channel collection. Either the 'id' or 'mine' parameter must be set.
  397. * (channels.list)
  398. *
  399. * @param string $part Channel parts to include in the returned response. Valid values are: id, snippet, contentDetails and topicDetails.
  400. * @param array $optParams Optional parameters.
  401. *
  402. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  403. * @opt_param string mine Filter to only channels owned by authenticated user.
  404. * @opt_param string maxResults Maximum number of results to return
  405. * @opt_param string id YouTube IDs of the channels to be returned.
  406. * @opt_param string pageToken Token for the page selection.
  407. * @opt_param string mySubscribers Filter to channels that subscribed to the channel of the authenticated user.
  408. * @opt_param string categoryId Filter to retrieve the channels within the given category ID.
  409. * @return Google_ChannelListResponse
  410. */
  411. public function listChannels($part, $optParams = array()) {
  412. $params = array('part' => $part);
  413. $params = array_merge($params, $optParams);
  414. $data = $this->__call('list', array($params));
  415. if ($this->useObjects()) {
  416. return new Google_ChannelListResponse($data);
  417. } else {
  418. return $data;
  419. }
  420. }
  421. }
  422. /**
  423. * The "playlistItems" collection of methods.
  424. * Typical usage is:
  425. * <code>
  426. * $youtubeService = new Google_YouTubeService(...);
  427. * $playlistItems = $youtubeService->playlistItems;
  428. * </code>
  429. */
  430. class Google_PlaylistItemsServiceResource extends Google_ServiceResource {
  431. /**
  432. * Insert a resource into a playlist. (playlistItems.insert)
  433. *
  434. * @param string $part One or more parts to return on the current request.
  435. * @param Google_PlaylistItem $postBody
  436. * @param array $optParams Optional parameters.
  437. *
  438. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  439. * @return Google_PlaylistItem
  440. */
  441. public function insert($part, Google_PlaylistItem $postBody, $optParams = array()) {
  442. $params = array('part' => $part, 'postBody' => $postBody);
  443. $params = array_merge($params, $optParams);
  444. $data = $this->__call('insert', array($params));
  445. if ($this->useObjects()) {
  446. return new Google_PlaylistItem($data);
  447. } else {
  448. return $data;
  449. }
  450. }
  451. /**
  452. * Browse the YouTube playlist collection. (playlistItems.list)
  453. *
  454. * @param string $part Playlist item parts to include in the returned response. Valid values are: id, snippet and contentDetails.
  455. * @param array $optParams Optional parameters.
  456. *
  457. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  458. * @opt_param string playlistId Retrieves playlist items from the given playlist id.
  459. * @opt_param string maxResults Maximum number of results to return
  460. * @opt_param string pageToken Token for the page selection.
  461. * @opt_param string id YouTube IDs of the playlist items to be returned.
  462. * @return Google_PlaylistItemListResponse
  463. */
  464. public function listPlaylistItems($part, $optParams = array()) {
  465. $params = array('part' => $part);
  466. $params = array_merge($params, $optParams);
  467. $data = $this->__call('list', array($params));
  468. if ($this->useObjects()) {
  469. return new Google_PlaylistItemListResponse($data);
  470. } else {
  471. return $data;
  472. }
  473. }
  474. /**
  475. * Update a playlist item. (playlistItems.update)
  476. *
  477. * @param string $part One or more parts to return on the current request.
  478. * @param Google_PlaylistItem $postBody
  479. * @param array $optParams Optional parameters.
  480. *
  481. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  482. * @return Google_PlaylistItem
  483. */
  484. public function update($part, Google_PlaylistItem $postBody, $optParams = array()) {
  485. $params = array('part' => $part, 'postBody' => $postBody);
  486. $params = array_merge($params, $optParams);
  487. $data = $this->__call('update', array($params));
  488. if ($this->useObjects()) {
  489. return new Google_PlaylistItem($data);
  490. } else {
  491. return $data;
  492. }
  493. }
  494. /**
  495. * Deletes playlist items by IDs. (playlistItems.delete)
  496. *
  497. * @param string $id YouTube IDs of the playlist items to be deleted.
  498. * @param array $optParams Optional parameters.
  499. *
  500. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  501. */
  502. public function delete($id, $optParams = array()) {
  503. $params = array('id' => $id);
  504. $params = array_merge($params, $optParams);
  505. $data = $this->__call('delete', array($params));
  506. return $data;
  507. }
  508. }
  509. /**
  510. * The "videoCategories" collection of methods.
  511. * Typical usage is:
  512. * <code>
  513. * $youtubeService = new Google_YouTubeService(...);
  514. * $videoCategories = $youtubeService->videoCategories;
  515. * </code>
  516. */
  517. class Google_VideoCategoriesServiceResource extends Google_ServiceResource {
  518. /**
  519. * Browse list of video categories. (videoCategories.list)
  520. *
  521. * @param string $part Video category parts to include in the returned response. Valid values are: id and snippet.
  522. * @param array $optParams Optional parameters.
  523. *
  524. * @opt_param string regionCode Return all the categories in this region.
  525. * @opt_param string onBehalfOfContentOwner The authenticated user acts on behalf of this content owner.
  526. * @opt_param string id IDs of the categories to be returned.
  527. * @opt_param string hl Language used for the title of the categories.
  528. * @return Google_VideoCategoryListResponse
  529. */
  530. public function listVideoCategories($part, $optParams = array()) {
  531. $params = array('part' => $part);
  532. $params = array_merge($params, $optParams);
  533. $data = $this->__call('list', array($params));
  534. if ($this->useObjects()) {
  535. return new Google_VideoCategoryListResponse($data);
  536. } else {
  537. return $data;
  538. }
  539. }
  540. }
  541. /**
  542. * Service definition for Google_YouTube (v3).
  543. *
  544. * <p>
  545. * Programmatic access to YouTube features.
  546. * </p>
  547. *
  548. * <p>
  549. * For more information about this service, see the
  550. * <a href="https://developers.google.com/youtube" target="_blank">API Documentation</a>
  551. * </p>
  552. *
  553. * @author Google, Inc.
  554. */
  555. class Google_YouTubeService extends Google_Service {
  556. public $activities;
  557. public $search;
  558. public $guideCategories;
  559. public $playlists;
  560. public $videos;
  561. public $subscriptions;
  562. public $channels;
  563. public $playlistItems;
  564. public $videoCategories;
  565. /**
  566. * Constructs the internal representation of the YouTube service.
  567. *
  568. * @param Google_Client $client
  569. */
  570. public function __construct(Google_Client $client) {
  571. $this->servicePath = 'youtube/v3/';
  572. $this->version = 'v3';
  573. $this->serviceName = 'youtube';
  574. $client->addService($this->serviceName, $this->version);
  575. $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/youtube"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "httpMethod": "POST", "path": "activities", "id": "youtube.activities.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "publishedBefore": {"type": "string", "location": "query", "format": "date-time"}, "channelId": {"type": "string", "location": "query"}, "mine": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "pageToken": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "home": {"type": "string", "location": "query"}, "publishedAfter": {"type": "string", "location": "query", "format": "date-time"}}, "id": "youtube.activities.list", "httpMethod": "GET", "path": "activities", "response": {"$ref": "ActivityListResponse"}}}}', true));
  576. $this->search = new Google_SearchServiceResource($this, $this->serviceName, 'search', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"topicId": {"type": "string", "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "videoDimension": {"enum": ["2d", "3d", "any"], "type": "string", "location": "query"}, "videoLicense": {"enum": ["any", "creativeCommon", "youtube"], "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "videoCaption": {"enum": ["any", "closedCaption", "none"], "type": "string", "location": "query"}, "videoDuration": {"enum": ["any", "long", "medium", "short"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "published": {"enum": ["any", "thisWeek", "today"], "type": "string", "location": "query"}, "relatedToVideo": {"type": "string", "location": "query"}, "type": {"default": "video,channel,playlist", "type": "string", "location": "query"}, "order": {"default": "SEARCH_SORT_RELEVANCE", "enum": ["date", "rating", "relevance", "view_count"], "type": "string", "location": "query"}, "videoDefinition": {"enum": ["any", "high", "standard"], "type": "string", "location": "query"}}, "id": "youtube.search.list", "httpMethod": "GET", "path": "search", "response": {"$ref": "SearchListResponse"}}}}', true));
  577. $this->guideCategories = new Google_GuideCategoriesServiceResource($this, $this->serviceName, 'guideCategories', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"regionCode": {"type": "string", "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "hl": {"default": "en-US", "type": "string", "location": "query"}}, "id": "youtube.guideCategories.list", "httpMethod": "GET", "path": "guideCategories", "response": {"$ref": "GuideCategoryListResponse"}}}}', true));
  578. $this->playlists = new Google_PlaylistsServiceResource($this, $this->serviceName, 'playlists', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "httpMethod": "POST", "path": "playlists", "id": "youtube.playlists.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "mine": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "pageToken": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}}, "id": "youtube.playlists.list", "httpMethod": "GET", "path": "playlists", "response": {"$ref": "PlaylistListResponse"}}, "update": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "httpMethod": "PUT", "path": "playlists", "id": "youtube.playlists.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "path": "playlists", "id": "youtube.playlists.delete", "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
  579. $this->videos = new Google_VideosServiceResource($this, $this->serviceName, 'videos', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.upload"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "Video"}, "mediaUpload": {"maxSize": "64GB", "protocols": {"simple": {"path": "/upload/youtube/v3/videos", "multipart": true}, "resumable": {"path": "/resumable/upload/youtube/v3/videos", "multipart": true}}, "accept": ["application/octet-stream", "video/*"]}, "response": {"$ref": "Video"}, "httpMethod": "POST", "path": "videos", "id": "youtube.videos.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "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"}}, "update": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "Video"}, "response": {"$ref": "Video"}, "httpMethod": "PUT", "path": "videos", "id": "youtube.videos.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "path": "videos", "id": "youtube.videos.delete", "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
  580. $this->subscriptions = new Google_SubscriptionsServiceResource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}, "httpMethod": "POST", "path": "subscriptions", "id": "youtube.subscriptions.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "channelId": {"type": "string", "location": "query"}, "mine": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "forChannelId": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "order": {"default": "SUBSCRIPTION_ORDER_RELEVANCE", "enum": ["alphabetical", "relevance", "unread"], "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}}, "id": "youtube.subscriptions.list", "httpMethod": "GET", "path": "subscriptions", "response": {"$ref": "SubscriptionListResponse"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "path": "subscriptions", "id": "youtube.subscriptions.delete", "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
  581. $this->channels = new Google_ChannelsServiceResource($this, $this->serviceName, 'channels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "mine": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "id": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "mySubscribers": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "categoryId": {"type": "string", "location": "query"}}, "id": "youtube.channels.list", "httpMethod": "GET", "path": "channels", "response": {"$ref": "ChannelListResponse"}}}}', true));
  582. $this->playlistItems = new Google_PlaylistItemsServiceResource($this, $this->serviceName, 'playlistItems', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "httpMethod": "POST", "path": "playlistItems", "id": "youtube.playlistItems.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "playlistId": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "5", "maximum": "50", "minimum": "0", "location": "query", "type": "integer"}, "pageToken": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}}, "id": "youtube.playlistItems.list", "httpMethod": "GET", "path": "playlistItems", "response": {"$ref": "PlaylistItemListResponse"}}, "update": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "httpMethod": "PUT", "path": "playlistItems", "id": "youtube.playlistItems.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"], "path": "playlistItems", "id": "youtube.playlistItems.delete", "parameters": {"onBehalfOfContentOwner": {"type": "string", "location": "query"}, "id": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
  583. $this->videoCategories = new Google_VideoCategoriesServiceResource($this, $this->serviceName, 'videoCategories', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "parameters": {"regionCode": {"type": "string", "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "part": {"required": true, "type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "hl": {"default": "en_US", "type": "string", "location": "query"}}, "id": "youtube.videoCategories.list", "httpMethod": "GET", "path": "videoCategories", "response": {"$ref": "VideoCategoryListResponse"}}}}', true));
  584. }
  585. }
  586. class Google_Activity extends Google_Model {
  587. protected $__snippetType = 'Google_ActivitySnippet';
  588. protected $__snippetDataType = '';
  589. public $snippet;
  590. protected $__contentDetailsType = 'Google_ActivityContentDetails';
  591. protected $__contentDetailsDataType = '';
  592. public $contentDetails;
  593. public $kind;
  594. public $etag;
  595. public $id;
  596. public function setSnippet(Google_ActivitySnippet $snippet) {
  597. $this->snippet = $snippet;
  598. }
  599. public function getSnippet() {
  600. return $this->snippet;
  601. }
  602. public function setContentDetails(Google_ActivityContentDetails $contentDetails) {
  603. $this->contentDetails = $contentDetails;
  604. }
  605. public function getContentDetails() {
  606. return $this->contentDetails;
  607. }
  608. public function setKind($kind) {
  609. $this->kind = $kind;
  610. }
  611. public function getKind() {
  612. return $this->kind;
  613. }
  614. public function setEtag($etag) {
  615. $this->etag = $etag;
  616. }
  617. public function getEtag() {
  618. return $this->etag;
  619. }
  620. public function setId($id) {
  621. $this->id = $id;
  622. }
  623. public function getId() {
  624. return $this->id;
  625. }
  626. }
  627. class Google_ActivityContentDetails extends Google_Model {
  628. protected $__commentType = 'Google_ActivityContentDetailsComment';
  629. protected $__commentDataType = '';
  630. public $comment;
  631. protected $__playlistItemType = 'Google_ActivityContentDetailsPlaylistItem';
  632. protected $__playlistItemDataType = '';
  633. public $playlistItem;
  634. protected $__likeType = 'Google_ActivityContentDetailsLike';
  635. protected $__likeDataType = '';
  636. public $like;
  637. protected $__socialType = 'Google_ActivityContentDetailsSocial';
  638. protected $__socialDataType = '';
  639. public $social;
  640. protected $__favoriteType = 'Google_ActivityContentDetailsFavorite';
  641. protected $__favoriteDataType = '';
  642. public $favorite;
  643. protected $__uploadType = 'Google_ActivityContentDetailsUpload';
  644. protected $__uploadDataType = '';
  645. public $upload;
  646. protected $__recommendationType = 'Google_ActivityContentDetailsRecommendation';
  647. protected $__recommendationDataType = '';
  648. public $recommendation;
  649. protected $__bulletinType = 'Google_ActivityContentDetailsBulletin';
  650. protected $__bulletinDataType = '';
  651. public $bulletin;
  652. protected $__subscriptionType = 'Google_ActivityContentDetailsSubscription';
  653. protected $__subscriptionDataType = '';
  654. public $subscription;
  655. public function setComment(Google_ActivityContentDetailsComment $comment) {
  656. $this->comment = $comment;
  657. }
  658. public function getComment() {
  659. return $this->comment;
  660. }
  661. public function setPlaylistItem(Google_ActivityContentDetailsPlaylistItem $playlistItem) {
  662. $this->playlistItem = $playlistItem;
  663. }
  664. public function getPlaylistItem() {
  665. return $this->playlistItem;
  666. }
  667. public function setLike(Google_ActivityContentDetailsLike $like) {
  668. $this->like = $like;
  669. }
  670. public function getLike() {
  671. return $this->like;
  672. }
  673. public function setSocial(Google_ActivityContentDetailsSocial $social) {
  674. $this->social = $social;
  675. }
  676. public function getSocial() {
  677. return $this->social;
  678. }
  679. public function setFavorite(Google_ActivityContentDetailsFavorite $favorite) {
  680. $this->favorite = $favorite;
  681. }
  682. public function getFavorite() {
  683. return $this->favorite;
  684. }
  685. public function setUpload(Google_ActivityContentDetailsUpload $upload) {
  686. $this->upload = $upload;
  687. }
  688. public function getUpload() {
  689. return $this->upload;
  690. }
  691. public function setRecommendation(Google_ActivityContentDetailsRecommendation $recommendation) {
  692. $this->recommendation = $recommendation;
  693. }
  694. public function getRecommendation() {
  695. return $this->recommendation;
  696. }
  697. public function setBulletin(Google_ActivityContentDetailsBulletin $bulletin) {
  698. $this->bulletin = $bulletin;
  699. }
  700. public function getBulletin() {
  701. return $this->bulletin;
  702. }
  703. public function setSubscription(Google_ActivityContentDetailsSubscription $subscription) {
  704. $this->subscription = $subscription;
  705. }
  706. public function getSubscription() {
  707. return $this->subscription;
  708. }
  709. }
  710. class Google_ActivityContentDetailsBulletin extends Google_Model {
  711. protected $__resourceIdType = 'Google_ResourceId';
  712. protected $__resourceIdDataType = '';
  713. public $resourceId;
  714. public function setResourceId(Google_ResourceId $resourceId) {
  715. $this->resourceId = $resourceId;
  716. }
  717. public function getResourceId() {
  718. return $this->resourceId;
  719. }
  720. }
  721. class Google_ActivityContentDetailsComment extends Google_Model {
  722. protected $__resourceIdType = 'Google_ResourceId';
  723. protected $__resourceIdDataType = '';
  724. public $resourceId;
  725. public function setResourceId(Google_ResourceId $resourceId) {
  726. $this->resourceId = $resourceId;
  727. }
  728. public function getResourceId() {
  729. return $this->resourceId;
  730. }
  731. }
  732. class Google_ActivityContentDetailsFavorite extends Google_Model {
  733. protected $__resourceIdType = 'Google_ResourceId';
  734. protected $__resourceIdDataType = '';
  735. public $resourceId;
  736. public function setResourceId(Google_ResourceId $resourceId) {
  737. $this->resourceId = $resourceId;
  738. }
  739. public function getResourceId() {
  740. return $this->resourceId;
  741. }
  742. }
  743. class Google_ActivityContentDetailsLike extends Google_Model {
  744. protected $__resourceIdType = 'Google_ResourceId';
  745. protected $__resourceIdDataType = '';
  746. public $resourceId;
  747. public function setResourceId(Google_ResourceId $resourceId) {
  748. $this->resourceId = $resourceId;
  749. }
  750. public function getResourceId() {
  751. return $this->resourceId;
  752. }
  753. }
  754. class Google_ActivityContentDetailsPlaylistItem extends Google_Model {
  755. protected $__resourceIdType = 'Google_ResourceId';
  756. protected $__resourceIdDataType = '';
  757. public $resourceId;
  758. public $playlistId;
  759. public function setResourceId(Google_ResourceId $resourceId) {
  760. $this->resourceId = $resourceId;
  761. }
  762. public function getResourceId() {
  763. return $this->resourceId;
  764. }
  765. public function setPlaylistId($playlistId) {
  766. $this->playlistId = $playlistId;
  767. }
  768. public function getPlaylistId() {
  769. return $this->playlistId;
  770. }
  771. }
  772. class Google_ActivityContentDetailsRecommendation extends Google_Model {
  773. protected $__resourceIdType = 'Google_ResourceId';
  774. protected $__resourceIdDataType = '';
  775. public $resourceId;
  776. public $reason;
  777. protected $__seedResourceIdType = 'Google_ResourceId';
  778. protected $__seedResourceIdDataType = '';
  779. public $seedResourceId;
  780. public function setResourceId(Google_ResourceId $resourceId) {
  781. $this->resourceId = $resourceId;
  782. }
  783. public function getResourceId() {
  784. return $this->resourceId;
  785. }
  786. public function setReason($reason) {
  787. $this->reason = $reason;
  788. }
  789. public function getReason() {
  790. return $this->reason;
  791. }
  792. public function setSeedResourceId(Google_ResourceId $seedResourceId) {
  793. $this->seedResourceId = $seedResourceId;
  794. }
  795. public function getSeedResourceId() {
  796. return $this->seedResourceId;
  797. }
  798. }
  799. class Google_ActivityContentDetailsSocial extends Google_Model {
  800. protected $__resourceIdType = 'Google_ResourceId';
  801. protected $__resourceIdDataType = '';
  802. public $resourceId;
  803. public $imageUrl;
  804. public $type;
  805. public $referenceUrl;
  806. public $author;
  807. public function setResourceId(Google_ResourceId $resourceId) {
  808. $this->resourceId = $resourceId;
  809. }
  810. public function getResourceId() {
  811. return $this->resourceId;
  812. }
  813. public function setImageUrl($imageUrl) {
  814. $this->imageUrl = $imageUrl;
  815. }
  816. public function getImageUrl() {
  817. return $this->imageUrl;
  818. }
  819. public function setType($type) {
  820. $this->type = $type;
  821. }
  822. public function getType() {
  823. return $this->type;
  824. }
  825. public function setReferenceUrl($referenceUrl) {
  826. $this->referenceUrl = $referenceUrl;
  827. }
  828. public function getReferenceUrl() {
  829. return $this->referenceUrl;
  830. }
  831. public function setAuthor($author) {
  832. $this->author = $author;
  833. }
  834. public function getAuthor() {
  835. return $this->author;
  836. }
  837. }
  838. class Google_ActivityContentDetailsSubscription extends Google_Model {
  839. protected $__resourceIdType = 'Google_ResourceId';
  840. protected $__resourceIdDataType = '';
  841. public $resourceId;
  842. public function setResourceId(Google_ResourceId $resourceId) {
  843. $this->resourceId = $resourceId;
  844. }
  845. public function getResourceId() {
  846. return $this->resourceId;
  847. }
  848. }
  849. class Google_ActivityContentDetailsUpload extends Google_Model {
  850. public $videoId;
  851. public function setVideoId($videoId) {
  852. $this->videoId = $videoId;
  853. }
  854. public function getVideoId() {
  855. return $this->videoId;
  856. }
  857. }
  858. class Google_ActivityListResponse extends Google_Model {
  859. public $nextPageToken;
  860. public $kind;
  861. protected $__itemsType = 'Google_Activity';
  862. protected $__itemsDataType = 'array';
  863. public $items;
  864. public $etag;
  865. public $prevPageToken;
  866. protected $__pageInfoType = 'Google_PageInfo';
  867. protected $__pageInfoDataType = '';
  868. public $pageInfo;
  869. public function setNextPageToken($nextPageToken) {
  870. $this->nextPageToken = $nextPageToken;
  871. }
  872. public function getNextPageToken() {
  873. return $this->nextPageToken;
  874. }
  875. public function setKind($kind) {
  876. $this->kind = $kind;
  877. }
  878. public function getKind() {
  879. return $this->kind;
  880. }
  881. public function setItems(/* array(Google_Activity) */ $items) {
  882. $this->assertIsArray($items, 'Google_Activity', __METHOD__);
  883. $this->items = $items;
  884. }
  885. public function getItems() {
  886. return $this->items;
  887. }
  888. public function setEtag($etag) {
  889. $this->etag = $etag;
  890. }
  891. public function getEtag() {
  892. return $this->etag;
  893. }
  894. public function setPrevPageToken($prevPageToken) {
  895. $this->prevPageToken = $prevPageToken;
  896. }
  897. public function getPrevPageToken() {
  898. return $this->prevPageToken;
  899. }
  900. public function setPageInfo(Google_PageInfo $pageInfo) {
  901. $this->pageInfo = $pageInfo;
  902. }
  903. public function getPageInfo() {
  904. return $this->pageInfo;
  905. }
  906. }
  907. class Google_ActivitySnippet extends Google_Model {
  908. protected $__thumbnailsType = 'Google_Thumbnail';
  909. protected $__thumbnailsDataType = 'map';
  910. public $thumbnails;
  911. public $title;
  912. public $channelId;
  913. public $publishedAt;
  914. public $type;
  915. public $groupId;
  916. public $description;
  917. public function setThumbnails(Google_Thumbnail $thumbnails) {
  918. $this->thumbnails = $thumbnails;
  919. }
  920. public function getThumbnails() {
  921. return $this->thumbnails;
  922. }
  923. public function setTitle($title) {
  924. $this->title = $title;
  925. }
  926. public function getTitle() {
  927. return $this->title;
  928. }
  929. public function setChannelId($channelId) {
  930. $this->channelId = $channelId;
  931. }
  932. public function getChannelId() {
  933. return $this->channelId;
  934. }
  935. public function setPublishedAt($publishedAt) {
  936. $this->publishedAt = $publishedAt;
  937. }
  938. public function getPublishedAt() {
  939. return $this->publishedAt;
  940. }
  941. public function setType($type) {
  942. $this->type = $type;
  943. }
  944. public function getType() {
  945. return $this->type;
  946. }
  947. public function setGroupId($groupId) {
  948. $this->groupId = $groupId;
  949. }
  950. public function getGroupId() {
  951. return $this->groupId;
  952. }
  953. public function setDescription($description) {
  954. $this->description = $description;
  955. }
  956. public function getDescription() {
  957. return $this->description;
  958. }
  959. }
  960. class Google_Channel extends Google_Model {
  961. protected $__topicDetailsType = 'Google_ChannelTopicDetails';
  962. protected $__topicDetailsDataType = '';
  963. public $topicDetails;
  964. public $kind;
  965. protected $__statisticsType = 'Google_ChannelStatistics';
  966. protected $__statisticsDataType = '';
  967. public $statistics;
  968. protected $__contentDetailsType = 'Google_ChannelContentDetails';
  969. protected $__contentDetailsDataType = '';
  970. public $contentDetails;
  971. protected $__snippetType = 'Google_ChannelSnippet';
  972. protected $__snippetDataType = '';
  973. public $snippet;
  974. public $etag;
  975. public $id;
  976. public function setTopicDetails(Google_ChannelTopicDetails $topicDetails) {
  977. $this->topicDetails = $topicDetails;
  978. }
  979. public function getTopicDetails() {
  980. return $this->topicDetails;
  981. }
  982. public function setKind($kind) {
  983. $this->kind = $kind;
  984. }
  985. public function getKind() {
  986. return $this->kind;
  987. }
  988. public function setStatistics(Google_ChannelStatistics $statistics) {
  989. $this->statistics = $statistics;
  990. }
  991. public function getStatistics() {
  992. return $this->statistics;
  993. }
  994. public function setContentDetails(Google_ChannelContentDetails $contentDetails) {
  995. $this->contentDetails = $contentDetails;
  996. }
  997. public function getContentDetails() {
  998. return $this->contentDetails;
  999. }
  1000. public function setSnippet(Google_ChannelSnippet $snippet) {
  1001. $this->snippet = $snippet;
  1002. }
  1003. public function getSnippet() {
  1004. return $this->snippet;
  1005. }
  1006. public function setEtag($etag) {
  1007. $this->etag = $etag;
  1008. }
  1009. public function getEtag() {
  1010. return $this->etag;
  1011. }
  1012. public function setId($id) {
  1013. $this->id = $id;
  1014. }
  1015. public function getId() {
  1016. return $this->id;
  1017. }
  1018. }
  1019. class Google_ChannelContentDetails extends Google_Model {
  1020. public $privacyStatus;
  1021. public $uploads;
  1022. public function setPrivacyStatus($privacyStatus) {
  1023. $this->privacyStatus = $privacyStatus;
  1024. }
  1025. public function getPrivacyStatus() {
  1026. return $this->privacyStatus;
  1027. }
  1028. public function setUploads($uploads) {
  1029. $this->uploads = $uploads;
  1030. }
  1031. public function getUploads() {
  1032. return $this->uploads;
  1033. }
  1034. }
  1035. class Google_ChannelListResponse extends Google_Model {
  1036. public $nextPageToken;
  1037. public $kind;
  1038. protected $__itemsType = 'Google_Channel';
  1039. protected $__itemsDataType = 'array';
  1040. public $items;
  1041. public $etag;
  1042. public $prevPageToken;
  1043. protected $__pageInfoType = 'Google_PageInfo';
  1044. protected $__pageInfoDataType = '';
  1045. public $pageInfo;
  1046. public function setNextPageToken($nextPageToken) {
  1047. $this->nextPageToken = $nextPageToken;
  1048. }
  1049. public function getNextPageToken() {
  1050. return $this->nextPageToken;
  1051. }
  1052. public function setKind($kind) {
  1053. $this->kind = $kind;
  1054. }
  1055. public function getKind() {
  1056. return $this->kind;
  1057. }
  1058. public function setItems(/* array(Google_Channel) */ $items) {
  1059. $this->assertIsArray($items, 'Google_Channel', __METHOD__);
  1060. $this->items = $items;
  1061. }
  1062. public function getItems() {
  1063. return $this->items;
  1064. }
  1065. public function setEtag($etag) {
  1066. $this->etag = $etag;
  1067. }
  1068. public function getEtag() {
  1069. return $this->etag;
  1070. }
  1071. public function setPrevPageToken($prevPageToken) {
  1072. $this->prevPageToken = $prevPageToken;
  1073. }
  1074. public function getPrevPageToken() {
  1075. return $this->prevPageToken;
  1076. }
  1077. public function setPageInfo(Google_PageInfo $pageInfo) {
  1078. $this->pageInfo = $pageInfo;
  1079. }
  1080. public function getPageInfo() {
  1081. return $this->pageInfo;
  1082. }
  1083. }
  1084. class Google_ChannelSnippet extends Google_Model {
  1085. public $title;
  1086. public $channelId;
  1087. public $description;
  1088. public $publishedAt;
  1089. protected $__thumbnailsType = 'Google_Thumbnail';
  1090. protected $__thumbnailsDataType = 'map';
  1091. public $thumbnails;
  1092. public function setTitle($title) {
  1093. $this->title = $title;
  1094. }
  1095. public function getTitle() {
  1096. return $this->title;
  1097. }
  1098. public function setChannelId($channelId) {
  1099. $this->channelId = $channelId;
  1100. }
  1101. public function getChannelId() {
  1102. return $this->channelId;
  1103. }
  1104. public function setDescription($description) {
  1105. $this->description = $description;
  1106. }
  1107. public function getDescription() {
  1108. return $this->description;
  1109. }
  1110. public function setPublishedAt($publishedAt) {
  1111. $this->publishedAt = $publishedAt;
  1112. }
  1113. public function getPublishedAt() {
  1114. return $this->publishedAt;
  1115. }
  1116. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1117. $this->thumbnails = $thumbnails;
  1118. }
  1119. public function getThumbnails() {
  1120. return $this->thumbnails;
  1121. }
  1122. }
  1123. class Google_ChannelStatistics extends Google_Model {
  1124. public $commentCount;
  1125. public $subscriberCount;
  1126. public $videoCount;
  1127. public $viewCount;
  1128. public function setCommentCount($commentCount) {
  1129. $this->commentCount = $commentCount;
  1130. }
  1131. public function getCommentCount() {
  1132. return $this->commentCount;
  1133. }
  1134. public function setSubscriberCount($subscriberCount) {
  1135. $this->subscriberCount = $subscriberCount;
  1136. }
  1137. public function getSubscriberCount() {
  1138. return $this->subscriberCount;
  1139. }
  1140. public function setVideoCount($videoCount) {
  1141. $this->videoCount = $videoCount;
  1142. }
  1143. public function getVideoCount() {
  1144. return $this->videoCount;
  1145. }
  1146. public function setViewCount($viewCount) {
  1147. $this->viewCount = $viewCount;
  1148. }
  1149. public function getViewCount() {
  1150. return $this->viewCount;
  1151. }
  1152. }
  1153. class Google_ChannelTopicDetails extends Google_Model {
  1154. public $topicIds;
  1155. public function setTopicIds($topicIds) {
  1156. $this->topicIds = $topicIds;
  1157. }
  1158. public function getTopicIds() {
  1159. return $this->topicIds;
  1160. }
  1161. }
  1162. class Google_GuideCategory extends Google_Model {
  1163. protected $__snippetType = 'Google_GuideCategorySnippet';
  1164. protected $__snippetDataType = '';
  1165. public $snippet;
  1166. public $kind;
  1167. public $etag;
  1168. public $id;
  1169. public function setSnippet(Google_GuideCategorySnippet $snippet) {
  1170. $this->snippet = $snippet;
  1171. }
  1172. public function getSnippet() {
  1173. return $this->snippet;
  1174. }
  1175. public function setKind($kind) {
  1176. $this->kind = $kind;
  1177. }
  1178. public function getKind() {
  1179. return $this->kind;
  1180. }
  1181. public function setEtag($etag) {
  1182. $this->etag = $etag;
  1183. }
  1184. public function getEtag() {
  1185. return $this->etag;
  1186. }
  1187. public function setId($id) {
  1188. $this->id = $id;
  1189. }
  1190. public function getId() {
  1191. return $this->id;
  1192. }
  1193. }
  1194. class Google_GuideCategoryListResponse extends Google_Model {
  1195. protected $__itemsType = 'Google_GuideCategory';
  1196. protected $__itemsDataType = 'array';
  1197. public $items;
  1198. public $kind;
  1199. public $etag;
  1200. public function setItems(/* array(Google_GuideCategory) */ $items) {
  1201. $this->assertIsArray($items, 'Google_GuideCategory', __METHOD__);
  1202. $this->items = $items;
  1203. }
  1204. public function getItems() {
  1205. return $this->items;
  1206. }
  1207. public function setKind($kind) {
  1208. $this->kind = $kind;
  1209. }
  1210. public function getKind() {
  1211. return $this->kind;
  1212. }
  1213. public function setEtag($etag) {
  1214. $this->etag = $etag;
  1215. }
  1216. public function getEtag() {
  1217. return $this->etag;
  1218. }
  1219. }
  1220. class Google_GuideCategorySnippet extends Google_Model {
  1221. public $channelId;
  1222. public $title;
  1223. public function setChannelId($channelId) {
  1224. $this->channelId = $channelId;
  1225. }
  1226. public function getChannelId() {
  1227. return $this->channelId;
  1228. }
  1229. public function setTitle($title) {
  1230. $this->title = $title;
  1231. }
  1232. public function getTitle() {
  1233. return $this->title;
  1234. }
  1235. }
  1236. class Google_PageInfo extends Google_Model {
  1237. public $totalResults;
  1238. public $resultsPerPage;
  1239. public function setTotalResults($totalResults) {
  1240. $this->totalResults = $totalResults;
  1241. }
  1242. public function getTotalResults() {
  1243. return $this->totalResults;
  1244. }
  1245. public function setResultsPerPage($resultsPerPage) {
  1246. $this->resultsPerPage = $resultsPerPage;
  1247. }
  1248. public function getResultsPerPage() {
  1249. return $this->resultsPerPage;
  1250. }
  1251. }
  1252. class Google_Playlist extends Google_Model {
  1253. protected $__snippetType = 'Google_PlaylistSnippet';
  1254. protected $__snippetDataType = '';
  1255. public $snippet;
  1256. protected $__statusType = 'Google_PlaylistStatus';
  1257. protected $__statusDataType = '';
  1258. public $status;
  1259. public $kind;
  1260. public $etag;
  1261. public $id;
  1262. public function setSnippet(Google_PlaylistSnippet $snippet) {
  1263. $this->snippet = $snippet;
  1264. }
  1265. public function getSnippet() {
  1266. return $this->snippet;
  1267. }
  1268. public function setStatus(Google_PlaylistStatus $status) {
  1269. $this->status = $status;
  1270. }
  1271. public function getStatus() {
  1272. return $this->status;
  1273. }
  1274. public function setKind($kind) {
  1275. $this->kind = $kind;
  1276. }
  1277. public function getKind() {
  1278. return $this->kind;
  1279. }
  1280. public function setEtag($etag) {
  1281. $this->etag = $etag;
  1282. }
  1283. public function getEtag() {
  1284. return $this->etag;
  1285. }
  1286. public function setId($id) {
  1287. $this->id = $id;
  1288. }
  1289. public function getId() {
  1290. return $this->id;
  1291. }
  1292. }
  1293. class Google_PlaylistItem extends Google_Model {
  1294. protected $__snippetType = 'Google_PlaylistItemSnippet';
  1295. protected $__snippetDataType = '';
  1296. public $snippet;
  1297. protected $__contentDetailsType = 'Google_PlaylistItemContentDetails';
  1298. protected $__contentDetailsDataType = '';
  1299. public $contentDetails;
  1300. public $kind;
  1301. public $etag;
  1302. public $id;
  1303. public function setSnippet(Google_PlaylistItemSnippet $snippet) {
  1304. $this->snippet = $snippet;
  1305. }
  1306. public function getSnippet() {
  1307. return $this->snippet;
  1308. }
  1309. public function setContentDetails(Google_PlaylistItemContentDetails $contentDetails) {
  1310. $this->contentDetails = $contentDetails;
  1311. }
  1312. public function getContentDetails() {
  1313. return $this->contentDetails;
  1314. }
  1315. public function setKind($kind) {
  1316. $this->kind = $kind;
  1317. }
  1318. public function getKind() {
  1319. return $this->kind;
  1320. }
  1321. public function setEtag($etag) {
  1322. $this->etag = $etag;
  1323. }
  1324. public function getEtag() {
  1325. return $this->etag;
  1326. }
  1327. public function setId($id) {
  1328. $this->id = $id;
  1329. }
  1330. public function getId() {
  1331. return $this->id;
  1332. }
  1333. }
  1334. class Google_PlaylistItemContentDetails extends Google_Model {
  1335. public $note;
  1336. public $startAt;
  1337. public $endAt;
  1338. public $videoId;
  1339. public function setNote($note) {
  1340. $this->note = $note;
  1341. }
  1342. public function getNote() {
  1343. return $this->note;
  1344. }
  1345. public function setStartAt($startAt) {
  1346. $this->startAt = $startAt;
  1347. }
  1348. public function getStartAt() {
  1349. return $this->startAt;
  1350. }
  1351. public function setEndAt($endAt) {
  1352. $this->endAt = $endAt;
  1353. }
  1354. public function getEndAt() {
  1355. return $this->endAt;
  1356. }
  1357. public function setVideoId($videoId) {
  1358. $this->videoId = $videoId;
  1359. }
  1360. public function getVideoId() {
  1361. return $this->videoId;
  1362. }
  1363. }
  1364. class Google_PlaylistItemListResponse extends Google_Model {
  1365. public $nextPageToken;
  1366. public $kind;
  1367. protected $__itemsType = 'Google_PlaylistItem';
  1368. protected $__itemsDataType = 'array';
  1369. public $items;
  1370. public $etag;
  1371. public $prevPageToken;
  1372. protected $__pageInfoType = 'Google_PageInfo';
  1373. protected $__pageInfoDataType = '';
  1374. public $pageInfo;
  1375. public function setNextPageToken($nextPageToken) {
  1376. $this->nextPageToken = $nextPageToken;
  1377. }
  1378. public function getNextPageToken() {
  1379. return $this->nextPageToken;
  1380. }
  1381. public function setKind($kind) {
  1382. $this->kind = $kind;
  1383. }
  1384. public function getKind() {
  1385. return $this->kind;
  1386. }
  1387. public function setItems(/* array(Google_PlaylistItem) */ $items) {
  1388. $this->assertIsArray($items, 'Google_PlaylistItem', __METHOD__);
  1389. $this->items = $items;
  1390. }
  1391. public function getItems() {
  1392. return $this->items;
  1393. }
  1394. public function setEtag($etag) {
  1395. $this->etag = $etag;
  1396. }
  1397. public function getEtag() {
  1398. return $this->etag;
  1399. }
  1400. public function setPrevPageToken($prevPageToken) {
  1401. $this->prevPageToken = $prevPageToken;
  1402. }
  1403. public function getPrevPageToken() {
  1404. return $this->prevPageToken;
  1405. }
  1406. public function setPageInfo(Google_PageInfo $pageInfo) {
  1407. $this->pageInfo = $pageInfo;
  1408. }
  1409. public function getPageInfo() {
  1410. return $this->pageInfo;
  1411. }
  1412. }
  1413. class Google_PlaylistItemSnippet extends Google_Model {
  1414. public $playlistId;
  1415. public $description;
  1416. public $title;
  1417. protected $__resourceIdType = 'Google_ResourceId';
  1418. protected $__resourceIdDataType = '';
  1419. public $resourceId;
  1420. public $channelId;
  1421. public $publishedAt;
  1422. public $position;
  1423. protected $__thumbnailsType = 'Google_Thumbnail';
  1424. protected $__thumbnailsDataType = 'map';
  1425. public $thumbnails;
  1426. public function setPlaylistId($playlistId) {
  1427. $this->playlistId = $playlistId;
  1428. }
  1429. public function getPlaylistId() {
  1430. return $this->playlistId;
  1431. }
  1432. public function setDescription($description) {
  1433. $this->description = $description;
  1434. }
  1435. public function getDescription() {
  1436. return $this->description;
  1437. }
  1438. public function setTitle($title) {
  1439. $this->title = $title;
  1440. }
  1441. public function getTitle() {
  1442. return $this->title;
  1443. }
  1444. public function setResourceId(Google_ResourceId $resourceId) {
  1445. $this->resourceId = $resourceId;
  1446. }
  1447. public function getResourceId() {
  1448. return $this->resourceId;
  1449. }
  1450. public function setChannelId($channelId) {
  1451. $this->channelId = $channelId;
  1452. }
  1453. public function getChannelId() {
  1454. return $this->channelId;
  1455. }
  1456. public function setPublishedAt($publishedAt) {
  1457. $this->publishedAt = $publishedAt;
  1458. }
  1459. public function getPublishedAt() {
  1460. return $this->publishedAt;
  1461. }
  1462. public function setPosition($position) {
  1463. $this->position = $position;
  1464. }
  1465. public function getPosition() {
  1466. return $this->position;
  1467. }
  1468. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1469. $this->thumbnails = $thumbnails;
  1470. }
  1471. public function getThumbnails() {
  1472. return $this->thumbnails;
  1473. }
  1474. }
  1475. class Google_PlaylistListResponse extends Google_Model {
  1476. public $nextPageToken;
  1477. public $kind;
  1478. protected $__itemsType = 'Google_Playlist';
  1479. protected $__itemsDataType = 'array';
  1480. public $items;
  1481. public $etag;
  1482. public $prevPageToken;
  1483. protected $__pageInfoType = 'Google_PageInfo';
  1484. protected $__pageInfoDataType = '';
  1485. public $pageInfo;
  1486. public function setNextPageToken($nextPageToken) {
  1487. $this->nextPageToken = $nextPageToken;
  1488. }
  1489. public function getNextPageToken() {
  1490. return $this->nextPageToken;
  1491. }
  1492. public function setKind($kind) {
  1493. $this->kind = $kind;
  1494. }
  1495. public function getKind() {
  1496. return $this->kind;
  1497. }
  1498. public function setItems(/* array(Google_Playlist) */ $items) {
  1499. $this->assertIsArray($items, 'Google_Playlist', __METHOD__);
  1500. $this->items = $items;
  1501. }
  1502. public function getItems() {
  1503. return $this->items;
  1504. }
  1505. public function setEtag($etag) {
  1506. $this->etag = $etag;
  1507. }
  1508. public function getEtag() {
  1509. return $this->etag;
  1510. }
  1511. public function setPrevPageToken($prevPageToken) {
  1512. $this->prevPageToken = $prevPageToken;
  1513. }
  1514. public function getPrevPageToken() {
  1515. return $this->prevPageToken;
  1516. }
  1517. public function setPageInfo(Google_PageInfo $pageInfo) {
  1518. $this->pageInfo = $pageInfo;
  1519. }
  1520. public function getPageInfo() {
  1521. return $this->pageInfo;
  1522. }
  1523. }
  1524. class Google_PlaylistSnippet extends Google_Model {
  1525. public $title;
  1526. public $channelId;
  1527. public $description;
  1528. public $publishedAt;
  1529. protected $__thumbnailsType = 'Google_Thumbnail';
  1530. protected $__thumbnailsDataType = 'map';
  1531. public $thumbnails;
  1532. public function setTitle($title) {
  1533. $this->title = $title;
  1534. }
  1535. public function getTitle() {
  1536. return $this->title;
  1537. }
  1538. public function setChannelId($channelId) {
  1539. $this->channelId = $channelId;
  1540. }
  1541. public function getChannelId() {
  1542. return $this->channelId;
  1543. }
  1544. public function setDescription($description) {
  1545. $this->description = $description;
  1546. }
  1547. public function getDescription() {
  1548. return $this->description;
  1549. }
  1550. public function setPublishedAt($publishedAt) {
  1551. $this->publishedAt = $publishedAt;
  1552. }
  1553. public function getPublishedAt() {
  1554. return $this->publishedAt;
  1555. }
  1556. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1557. $this->thumbnails = $thumbnails;
  1558. }
  1559. public function getThumbnails() {
  1560. return $this->thumbnails;
  1561. }
  1562. }
  1563. class Google_PlaylistStatus extends Google_Model {
  1564. public $privacyStatus;
  1565. public function setPrivacyStatus($privacyStatus) {
  1566. $this->privacyStatus = $privacyStatus;
  1567. }
  1568. public function getPrivacyStatus() {
  1569. return $this->privacyStatus;
  1570. }
  1571. }
  1572. class Google_ResourceId extends Google_Model {
  1573. public $kind;
  1574. public $channelId;
  1575. public $playlistId;
  1576. public $videoId;
  1577. public function setKind($kind) {
  1578. $this->kind = $kind;
  1579. }
  1580. public function getKind() {
  1581. return $this->kind;
  1582. }
  1583. public function setChannelId($channelId) {
  1584. $this->channelId = $channelId;
  1585. }
  1586. public function getChannelId() {
  1587. return $this->channelId;
  1588. }
  1589. public function setPlaylistId($playlistId) {
  1590. $this->playlistId = $playlistId;
  1591. }
  1592. public function getPlaylistId() {
  1593. return $this->playlistId;
  1594. }
  1595. public function setVideoId($videoId) {
  1596. $this->videoId = $videoId;
  1597. }
  1598. public function getVideoId() {
  1599. return $this->videoId;
  1600. }
  1601. }
  1602. class Google_SearchListResponse extends Google_Model {
  1603. public $nextPageToken;
  1604. public $kind;
  1605. protected $__itemsType = 'Google_SearchResult';
  1606. protected $__itemsDataType = 'array';
  1607. public $items;
  1608. public $etag;
  1609. public $prevPageToken;
  1610. protected $__pageInfoType = 'Google_PageInfo';
  1611. protected $__pageInfoDataType = '';
  1612. public $pageInfo;
  1613. public function setNextPageToken($nextPageToken) {
  1614. $this->nextPageToken = $nextPageToken;
  1615. }
  1616. public function getNextPageToken() {
  1617. return $this->nextPageToken;
  1618. }
  1619. public function setKind($kind) {
  1620. $this->kind = $kind;
  1621. }
  1622. public function getKind() {
  1623. return $this->kind;
  1624. }
  1625. public function setItems(/* array(Google_SearchResult) */ $items) {
  1626. $this->assertIsArray($items, 'Google_SearchResult', __METHOD__);
  1627. $this->items = $items;
  1628. }
  1629. public function getItems() {
  1630. return $this->items;
  1631. }
  1632. public function setEtag($etag) {
  1633. $this->etag = $etag;
  1634. }
  1635. public function getEtag() {
  1636. return $this->etag;
  1637. }
  1638. public function setPrevPageToken($prevPageToken) {
  1639. $this->prevPageToken = $prevPageToken;
  1640. }
  1641. public function getPrevPageToken() {
  1642. return $this->prevPageToken;
  1643. }
  1644. public function setPageInfo(Google_PageInfo $pageInfo) {
  1645. $this->pageInfo = $pageInfo;
  1646. }
  1647. public function getPageInfo() {
  1648. return $this->pageInfo;
  1649. }
  1650. }
  1651. class Google_SearchResult extends Google_Model {
  1652. protected $__snippetType = 'Google_SearchResultSnippet';
  1653. protected $__snippetDataType = '';
  1654. public $snippet;
  1655. public $kind;
  1656. public $etag;
  1657. protected $__idType = 'Google_ResourceId';
  1658. protected $__idDataType = '';
  1659. public $id;
  1660. public function setSnippet(Google_SearchResultSnippet $snippet) {
  1661. $this->snippet = $snippet;
  1662. }
  1663. public function getSnippet() {
  1664. return $this->snippet;
  1665. }
  1666. public function setKind($kind) {
  1667. $this->kind = $kind;
  1668. }
  1669. public function getKind() {
  1670. return $this->kind;
  1671. }
  1672. public function setEtag($etag) {
  1673. $this->etag = $etag;
  1674. }
  1675. public function getEtag() {
  1676. return $this->etag;
  1677. }
  1678. public function setId(Google_ResourceId $id) {
  1679. $this->id = $id;
  1680. }
  1681. public function getId() {
  1682. return $this->id;
  1683. }
  1684. }
  1685. class Google_SearchResultSnippet extends Google_Model {
  1686. public $title;
  1687. public $channelId;
  1688. public $description;
  1689. public $publishedAt;
  1690. protected $__thumbnailsType = 'Google_Thumbnail';
  1691. protected $__thumbnailsDataType = 'map';
  1692. public $thumbnails;
  1693. public function setTitle($title) {
  1694. $this->title = $title;
  1695. }
  1696. public function getTitle() {
  1697. return $this->title;
  1698. }
  1699. public function setChannelId($channelId) {
  1700. $this->channelId = $channelId;
  1701. }
  1702. public function getChannelId() {
  1703. return $this->channelId;
  1704. }
  1705. public function setDescription($description) {
  1706. $this->description = $description;
  1707. }
  1708. public function getDescription() {
  1709. return $this->description;
  1710. }
  1711. public function setPublishedAt($publishedAt) {
  1712. $this->publishedAt = $publishedAt;
  1713. }
  1714. public function getPublishedAt() {
  1715. return $this->publishedAt;
  1716. }
  1717. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1718. $this->thumbnails = $thumbnails;
  1719. }
  1720. public function getThumbnails() {
  1721. return $this->thumbnails;
  1722. }
  1723. }
  1724. class Google_Subscription extends Google_Model {
  1725. protected $__snippetType = 'Google_SubscriptionSnippet';
  1726. protected $__snippetDataType = '';
  1727. public $snippet;
  1728. protected $__contentDetailsType = 'Google_SubscriptionContentDetails';
  1729. protected $__contentDetailsDataType = '';
  1730. public $contentDetails;
  1731. public $kind;
  1732. public $etag;
  1733. public $id;
  1734. public function setSnippet(Google_SubscriptionSnippet $snippet) {
  1735. $this->snippet = $snippet;
  1736. }
  1737. public function getSnippet() {
  1738. return $this->snippet;
  1739. }
  1740. public function setContentDetails(Google_SubscriptionContentDetails $contentDetails) {
  1741. $this->contentDetails = $contentDetails;
  1742. }
  1743. public function getContentDetails() {
  1744. return $this->contentDetails;
  1745. }
  1746. public function setKind($kind) {
  1747. $this->kind = $kind;
  1748. }
  1749. public function getKind() {
  1750. return $this->kind;
  1751. }
  1752. public function setEtag($etag) {
  1753. $this->etag = $etag;
  1754. }
  1755. public function getEtag() {
  1756. return $this->etag;
  1757. }
  1758. public function setId($id) {
  1759. $this->id = $id;
  1760. }
  1761. public function getId() {
  1762. return $this->id;
  1763. }
  1764. }
  1765. class Google_SubscriptionContentDetails extends Google_Model {
  1766. public $newItemCount;
  1767. public $totalItemCount;
  1768. public function setNewItemCount($newItemCount) {
  1769. $this->newItemCount = $newItemCount;
  1770. }
  1771. public function getNewItemCount() {
  1772. return $this->newItemCount;
  1773. }
  1774. public function setTotalItemCount($totalItemCount) {
  1775. $this->totalItemCount = $totalItemCount;
  1776. }
  1777. public function getTotalItemCount() {
  1778. return $this->totalItemCount;
  1779. }
  1780. }
  1781. class Google_SubscriptionListResponse extends Google_Model {
  1782. public $nextPageToken;
  1783. public $kind;
  1784. protected $__itemsType = 'Google_Subscription';
  1785. protected $__itemsDataType = 'array';
  1786. public $items;
  1787. public $etag;
  1788. public $prevPageToken;
  1789. protected $__pageInfoType = 'Google_PageInfo';
  1790. protected $__pageInfoDataType = '';
  1791. public $pageInfo;
  1792. public function setNextPageToken($nextPageToken) {
  1793. $this->nextPageToken = $nextPageToken;
  1794. }
  1795. public function getNextPageToken() {
  1796. return $this->nextPageToken;
  1797. }
  1798. public function setKind($kind) {
  1799. $this->kind = $kind;
  1800. }
  1801. public function getKind() {
  1802. return $this->kind;
  1803. }
  1804. public function setItems(/* array(Google_Subscription) */ $items) {
  1805. $this->assertIsArray($items, 'Google_Subscription', __METHOD__);
  1806. $this->items = $items;
  1807. }
  1808. public function getItems() {
  1809. return $this->items;
  1810. }
  1811. public function setEtag($etag) {
  1812. $this->etag = $etag;
  1813. }
  1814. public function getEtag() {
  1815. return $this->etag;
  1816. }
  1817. public function setPrevPageToken($prevPageToken) {
  1818. $this->prevPageToken = $prevPageToken;
  1819. }
  1820. public function getPrevPageToken() {
  1821. return $this->prevPageToken;
  1822. }
  1823. public function setPageInfo(Google_PageInfo $pageInfo) {
  1824. $this->pageInfo = $pageInfo;
  1825. }
  1826. public function getPageInfo() {
  1827. return $this->pageInfo;
  1828. }
  1829. }
  1830. class Google_SubscriptionSnippet extends Google_Model {
  1831. public $description;
  1832. public $title;
  1833. protected $__resourceIdType = 'Google_ResourceId';
  1834. protected $__resourceIdDataType = '';
  1835. public $resourceId;
  1836. public $channelId;
  1837. public $publishedAt;
  1838. protected $__thumbnailsType = 'Google_Thumbnail';
  1839. protected $__thumbnailsDataType = 'map';
  1840. public $thumbnails;
  1841. public function setDescription($description) {
  1842. $this->description = $description;
  1843. }
  1844. public function getDescription() {
  1845. return $this->description;
  1846. }
  1847. public function setTitle($title) {
  1848. $this->title = $title;
  1849. }
  1850. public function getTitle() {
  1851. return $this->title;
  1852. }
  1853. public function setResourceId(Google_ResourceId $resourceId) {
  1854. $this->resourceId = $resourceId;
  1855. }
  1856. public function getResourceId() {
  1857. return $this->resourceId;
  1858. }
  1859. public function setChannelId($channelId) {
  1860. $this->channelId = $channelId;
  1861. }
  1862. public function getChannelId() {
  1863. return $this->channelId;
  1864. }
  1865. public function setPublishedAt($publishedAt) {
  1866. $this->publishedAt = $publishedAt;
  1867. }
  1868. public function getPublishedAt() {
  1869. return $this->publishedAt;
  1870. }
  1871. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1872. $this->thumbnails = $thumbnails;
  1873. }
  1874. public function getThumbnails() {
  1875. return $this->thumbnails;
  1876. }
  1877. }
  1878. class Google_Thumbnail extends Google_Model {
  1879. public $url;
  1880. public function setUrl($url) {
  1881. $this->url = $url;
  1882. }
  1883. public function getUrl() {
  1884. return $this->url;
  1885. }
  1886. }
  1887. class Google_Video extends Google_Model {
  1888. protected $__statusType = 'Google_VideoStatus';
  1889. protected $__statusDataType = '';
  1890. public $status;
  1891. protected $__topicDetailsType = 'Google_VideoTopicDetails';
  1892. protected $__topicDetailsDataType = '';
  1893. public $topicDetails;
  1894. public $kind;
  1895. protected $__statisticsType = 'Google_VideoStatistics';
  1896. protected $__statisticsDataType = '';
  1897. public $statistics;
  1898. protected $__contentDetailsType = 'Google_VideoContentDetails';
  1899. protected $__contentDetailsDataType = '';
  1900. public $contentDetails;
  1901. protected $__snippetType = 'Google_VideoSnippet';
  1902. protected $__snippetDataType = '';
  1903. public $snippet;
  1904. protected $__playerType = 'Google_VideoPlayer';
  1905. protected $__playerDataType = '';
  1906. public $player;
  1907. public $etag;
  1908. public $id;
  1909. public function setStatus(Google_VideoStatus $status) {
  1910. $this->status = $status;
  1911. }
  1912. public function getStatus() {
  1913. return $this->status;
  1914. }
  1915. public function setTopicDetails(Google_VideoTopicDetails $topicDetails) {
  1916. $this->topicDetails = $topicDetails;
  1917. }
  1918. public function getTopicDetails() {
  1919. return $this->topicDetails;
  1920. }
  1921. public function setKind($kind) {
  1922. $this->kind = $kind;
  1923. }
  1924. public function getKind() {
  1925. return $this->kind;
  1926. }
  1927. public function setStatistics(Google_VideoStatistics $statistics) {
  1928. $this->statistics = $statistics;
  1929. }
  1930. public function getStatistics() {
  1931. return $this->statistics;
  1932. }
  1933. public function setContentDetails(Google_VideoContentDetails $contentDetails) {
  1934. $this->contentDetails = $contentDetails;
  1935. }
  1936. public function getContentDetails() {
  1937. return $this->contentDetails;
  1938. }
  1939. public function setSnippet(Google_VideoSnippet $snippet) {
  1940. $this->snippet = $snippet;
  1941. }
  1942. public function getSnippet() {
  1943. return $this->snippet;
  1944. }
  1945. public function setPlayer(Google_VideoPlayer $player) {
  1946. $this->player = $player;
  1947. }
  1948. public function getPlayer() {
  1949. return $this->player;
  1950. }
  1951. public function setEtag($etag) {
  1952. $this->etag = $etag;
  1953. }
  1954. public function getEtag() {
  1955. return $this->etag;
  1956. }
  1957. public function setId($id) {
  1958. $this->id = $id;
  1959. }
  1960. public function getId() {
  1961. return $this->id;
  1962. }
  1963. }
  1964. class Google_VideoCategory extends Google_Model {
  1965. protected $__snippetType = 'Google_VideoCategorySnippet';
  1966. protected $__snippetDataType = '';
  1967. public $snippet;
  1968. public $kind;
  1969. public $etag;
  1970. public $id;
  1971. public function setSnippet(Google_VideoCategorySnippet $snippet) {
  1972. $this->snippet = $snippet;
  1973. }
  1974. public function getSnippet() {
  1975. return $this->snippet;
  1976. }
  1977. public function setKind($kind) {
  1978. $this->kind = $kind;
  1979. }
  1980. public function getKind() {
  1981. return $this->kind;
  1982. }
  1983. public function setEtag($etag) {
  1984. $this->etag = $etag;
  1985. }
  1986. public function getEtag() {
  1987. return $this->etag;
  1988. }
  1989. public function setId($id) {
  1990. $this->id = $id;
  1991. }
  1992. public function getId() {
  1993. return $this->id;
  1994. }
  1995. }
  1996. class Google_VideoCategoryListResponse extends Google_Model {
  1997. protected $__itemsType = 'Google_VideoCategory';
  1998. protected $__itemsDataType = 'array';
  1999. public $items;
  2000. public $kind;
  2001. public $etag;
  2002. public function setItems(/* array(Google_VideoCategory) */ $items) {
  2003. $this->assertIsArray($items, 'Google_VideoCategory', __METHOD__);
  2004. $this->items = $items;
  2005. }
  2006. public function getItems() {
  2007. return $this->items;
  2008. }
  2009. public function setKind($kind) {
  2010. $this->kind = $kind;
  2011. }
  2012. public function getKind() {
  2013. return $this->kind;
  2014. }
  2015. public function setEtag($etag) {
  2016. $this->etag = $etag;
  2017. }
  2018. public function getEtag() {
  2019. return $this->etag;
  2020. }
  2021. }
  2022. class Google_VideoCategorySnippet extends Google_Model {
  2023. public $channelId;
  2024. public $title;
  2025. public function setChannelId($channelId) {
  2026. $this->channelId = $channelId;
  2027. }
  2028. public function getChannelId() {
  2029. return $this->channelId;
  2030. }
  2031. public function setTitle($title) {
  2032. $this->title = $title;
  2033. }
  2034. public function getTitle() {
  2035. return $this->title;
  2036. }
  2037. }
  2038. class Google_VideoContentDetails extends Google_Model {
  2039. public $duration;
  2040. protected $__regionRestrictionType = 'Google_VideoContentDetailsRegionRestriction';
  2041. protected $__regionRestrictionDataType = '';
  2042. public $regionRestriction;
  2043. public function setDuration($duration) {
  2044. $this->duration = $duration;
  2045. }
  2046. public function getDuration() {
  2047. return $this->duration;
  2048. }
  2049. public function setRegionRestriction(Google_VideoContentDetailsRegionRestriction $regionRestriction) {
  2050. $this->regionRestriction = $regionRestriction;
  2051. }
  2052. public function getRegionRestriction() {
  2053. return $this->regionRestriction;
  2054. }
  2055. }
  2056. class Google_VideoContentDetailsRegionRestriction extends Google_Model {
  2057. public $blocked;
  2058. public $allowed;
  2059. public function setBlocked($blocked) {
  2060. $this->blocked = $blocked;
  2061. }
  2062. public function getBlocked() {
  2063. return $this->blocked;
  2064. }
  2065. public function setAllowed($allowed) {
  2066. $this->allowed = $allowed;
  2067. }
  2068. public function getAllowed() {
  2069. return $this->allowed;
  2070. }
  2071. }
  2072. class Google_VideoListResponse extends Google_Model {
  2073. protected $__itemsType = 'Google_Video';
  2074. protected $__itemsDataType = 'array';
  2075. public $items;
  2076. public $kind;
  2077. public $etag;
  2078. public function setItems(/* array(Google_Video) */ $items) {
  2079. $this->assertIsArray($items, 'Google_Video', __METHOD__);
  2080. $this->items = $items;
  2081. }
  2082. public function getItems() {
  2083. return $this->items;
  2084. }
  2085. public function setKind($kind) {
  2086. $this->kind = $kind;
  2087. }
  2088. public function getKind() {
  2089. return $this->kind;
  2090. }
  2091. public function setEtag($etag) {
  2092. $this->etag = $etag;
  2093. }
  2094. public function getEtag() {
  2095. return $this->etag;
  2096. }
  2097. }
  2098. class Google_VideoPlayer extends Google_Model {
  2099. public $embedHtml;
  2100. public function setEmbedHtml($embedHtml) {
  2101. $this->embedHtml = $embedHtml;
  2102. }
  2103. public function getEmbedHtml() {
  2104. return $this->embedHtml;
  2105. }
  2106. }
  2107. class Google_VideoSnippet extends Google_Model {
  2108. protected $__thumbnailsType = 'Google_Thumbnail';
  2109. protected $__thumbnailsDataType = 'map';
  2110. public $thumbnails;
  2111. public $tags;
  2112. public $channelId;
  2113. public $publishedAt;
  2114. public $title;
  2115. public $categoryId;
  2116. public $description;
  2117. public function setThumbnails(Google_Thumbnail $thumbnails) {
  2118. $this->thumbnails = $thumbnails;
  2119. }
  2120. public function getThumbnails() {
  2121. return $this->thumbnails;
  2122. }
  2123. public function setTags($tags) {
  2124. $this->tags = $tags;
  2125. }
  2126. public function getTags() {
  2127. return $this->tags;
  2128. }
  2129. public function setChannelId($channelId) {
  2130. $this->channelId = $channelId;
  2131. }
  2132. public function getChannelId() {
  2133. return $this->channelId;
  2134. }
  2135. public function setPublishedAt($publishedAt) {
  2136. $this->publishedAt = $publishedAt;
  2137. }
  2138. public function getPublishedAt() {
  2139. return $this->publishedAt;
  2140. }
  2141. public function setTitle($title) {
  2142. $this->title = $title;
  2143. }
  2144. public function getTitle() {
  2145. return $this->title;
  2146. }
  2147. public function setCategoryId($categoryId) {
  2148. $this->categoryId = $categoryId;
  2149. }
  2150. public function getCategoryId() {
  2151. return $this->categoryId;
  2152. }
  2153. public function setDescription($description) {
  2154. $this->description = $description;
  2155. }
  2156. public function getDescription() {
  2157. return $this->description;
  2158. }
  2159. }
  2160. class Google_VideoStatistics extends Google_Model {
  2161. public $commentCount;
  2162. public $viewCount;
  2163. public $favoriteCount;
  2164. public $dislikeCount;
  2165. public $likeCount;
  2166. public function setCommentCount($commentCount) {
  2167. $this->commentCount = $commentCount;
  2168. }
  2169. public function getCommentCount() {
  2170. return $this->commentCount;
  2171. }
  2172. public function setViewCount($viewCount) {
  2173. $this->viewCount = $viewCount;
  2174. }
  2175. public function getViewCount() {
  2176. return $this->viewCount;
  2177. }
  2178. public function setFavoriteCount($favoriteCount) {
  2179. $this->favoriteCount = $favoriteCount;
  2180. }
  2181. public function getFavoriteCount() {
  2182. return $this->favoriteCount;
  2183. }
  2184. public function setDislikeCount($dislikeCount) {
  2185. $this->dislikeCount = $dislikeCount;
  2186. }
  2187. public function getDislikeCount() {
  2188. return $this->dislikeCount;
  2189. }
  2190. public function setLikeCount($likeCount) {
  2191. $this->likeCount = $likeCount;
  2192. }
  2193. public function getLikeCount() {
  2194. return $this->likeCount;
  2195. }
  2196. }
  2197. class Google_VideoStatus extends Google_Model {
  2198. public $privacyStatus;
  2199. public $uploadStatus;
  2200. public $rejectionReason;
  2201. public $failureReason;
  2202. public function setPrivacyStatus($privacyStatus) {
  2203. $this->privacyStatus = $privacyStatus;
  2204. }
  2205. public function getPrivacyStatus() {
  2206. return $this->privacyStatus;
  2207. }
  2208. public function setUploadStatus($uploadStatus) {
  2209. $this->uploadStatus = $uploadStatus;
  2210. }
  2211. public function getUploadStatus() {
  2212. return $this->uploadStatus;
  2213. }
  2214. public function setRejectionReason($rejectionReason) {
  2215. $this->rejectionReason = $rejectionReason;
  2216. }
  2217. public function getRejectionReason() {
  2218. return $this->rejectionReason;
  2219. }
  2220. public function setFailureReason($failureReason) {
  2221. $this->failureReason = $failureReason;
  2222. }
  2223. public function getFailureReason() {
  2224. return $this->failureReason;
  2225. }
  2226. }
  2227. class Google_VideoTopicDetails extends Google_Model {
  2228. public $topicIds;
  2229. public function setTopicIds($topicIds) {
  2230. $this->topicIds = $topicIds;
  2231. }
  2232. public function getTopicIds() {
  2233. return $this->topicIds;
  2234. }
  2235. }