PageRenderTime 77ms CodeModel.GetById 17ms RepoModel.GetById 2ms 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

Large files files are truncated, but you can click here to view the full file

  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 setPrivacyStatu

Large files files are truncated, but you can click here to view the full file