PageRenderTime 50ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/social_network/GoogleAPI/src/contrib/Google_YouTubeService.php

https://github.com/dikafryo/sw4u
PHP | 3684 lines | 3102 code | 120 blank | 462 comment | 50 complexity | 41740022788c34e3bba26abb889855a7 MD5 | raw file
Possible License(s): 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. * Posts a bulletin for a specific channel. (The user submitting the request must be authorized to
  26. * act on the channel's behalf.) (activities.insert)
  27. *
  28. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  29. The part names that you can include in the parameter value are snippet and contentDetails.
  30. * @param Google_Activity $postBody
  31. * @param array $optParams Optional parameters.
  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. * Returns a list of channel activity events that match the request criteria. For example, you can
  46. * retrieve events associated with a particular channel, events associated with the user's
  47. * subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each
  48. * user. (activities.list)
  49. *
  50. * @param string $part The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
  51. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set part=snippet, the API response will also contain all of those nested properties.
  52. * @param array $optParams Optional parameters.
  53. *
  54. * @opt_param string channelId The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.
  55. * @opt_param string home Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.
  56. * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
  57. * @opt_param bool mine Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
  58. * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
  59. * @opt_param string publishedAfter The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be included in the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
  60. * @opt_param string publishedBefore The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be excluded from the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
  61. * @return Google_ActivityListResponse
  62. */
  63. public function listActivities($part, $optParams = array()) {
  64. $params = array('part' => $part);
  65. $params = array_merge($params, $optParams);
  66. $data = $this->__call('list', array($params));
  67. if ($this->useObjects()) {
  68. return new Google_ActivityListResponse($data);
  69. } else {
  70. return $data;
  71. }
  72. }
  73. }
  74. /**
  75. * The "channels" collection of methods.
  76. * Typical usage is:
  77. * <code>
  78. * $youtubeService = new Google_YouTubeService(...);
  79. * $channels = $youtubeService->channels;
  80. * </code>
  81. */
  82. class Google_ChannelsServiceResource extends Google_ServiceResource {
  83. /**
  84. * Returns a collection of zero or more channel resources that match the request criteria.
  85. * (channels.list)
  86. *
  87. * @param string $part The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, statistics, and topicDetails.
  88. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.
  89. * @param array $optParams Optional parameters.
  90. *
  91. * @opt_param string categoryId The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.
  92. * @opt_param string id The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel's YouTube channel ID.
  93. * @opt_param string maxResults The maxResults parameter specifies the maximum number of items that should be returned in the result set.
  94. * @opt_param bool mine Set this parameter's value to true to instruct the API to only return channels owned by the authenticated user.
  95. * @opt_param string mySubscribers Set this parameter's value to true to retrieve a list of channels that subscribed to the authenticated user's channel.
  96. * @opt_param string pageToken The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
  97. * @return Google_ChannelListResponse
  98. */
  99. public function listChannels($part, $optParams = array()) {
  100. $params = array('part' => $part);
  101. $params = array_merge($params, $optParams);
  102. $data = $this->__call('list', array($params));
  103. if ($this->useObjects()) {
  104. return new Google_ChannelListResponse($data);
  105. } else {
  106. return $data;
  107. }
  108. }
  109. }
  110. /**
  111. * The "guideCategories" collection of methods.
  112. * Typical usage is:
  113. * <code>
  114. * $youtubeService = new Google_YouTubeService(...);
  115. * $guideCategories = $youtubeService->guideCategories;
  116. * </code>
  117. */
  118. class Google_GuideCategoriesServiceResource extends Google_ServiceResource {
  119. /**
  120. * Returns a list of categories that can be associated with YouTube channels. (guideCategories.list)
  121. *
  122. * @param string $part The part parameter specifies a comma-separated list of one or more guideCategory resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.
  123. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a guideCategory resource, the snippet property contains other properties, such as the category's title. If you set part=snippet, the API response will also contain all of those nested properties.
  124. * @param array $optParams Optional parameters.
  125. *
  126. * @opt_param string hl The hl parameter specifies the language that will be used for text values in the API response.
  127. * @opt_param string id The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the YouTube channel category ID.
  128. * @opt_param string regionCode The regionCode parameter instructs the API to return the list of guide categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
  129. * @return Google_GuideCategoryListResponse
  130. */
  131. public function listGuideCategories($part, $optParams = array()) {
  132. $params = array('part' => $part);
  133. $params = array_merge($params, $optParams);
  134. $data = $this->__call('list', array($params));
  135. if ($this->useObjects()) {
  136. return new Google_GuideCategoryListResponse($data);
  137. } else {
  138. return $data;
  139. }
  140. }
  141. }
  142. /**
  143. * The "liveBroadcasts" collection of methods.
  144. * Typical usage is:
  145. * <code>
  146. * $youtubeService = new Google_YouTubeService(...);
  147. * $liveBroadcasts = $youtubeService->liveBroadcasts;
  148. * </code>
  149. */
  150. class Google_LiveBroadcastsServiceResource extends Google_ServiceResource {
  151. /**
  152. * Bind a YouTube live broadcast to a stream. (liveBroadcasts.bind)
  153. *
  154. * @param string $id ID of the broadcast to which the stream will be bound
  155. * @param string $part Live broadcast parts to be returned in the response. Valid values are: id, snippet, status, slateSettings, contentDetails.
  156. * @param array $optParams Optional parameters.
  157. *
  158. * @opt_param string streamId ID of the stream to bind to the broadcast
  159. * @return Google_LiveBroadcast
  160. */
  161. public function bind($id, $part, $optParams = array()) {
  162. $params = array('id' => $id, 'part' => $part);
  163. $params = array_merge($params, $optParams);
  164. $data = $this->__call('bind', array($params));
  165. if ($this->useObjects()) {
  166. return new Google_LiveBroadcast($data);
  167. } else {
  168. return $data;
  169. }
  170. }
  171. /**
  172. * Delete a YouTube live broadcast. (liveBroadcasts.delete)
  173. *
  174. * @param string $id The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.
  175. * @param array $optParams Optional parameters.
  176. */
  177. public function delete($id, $optParams = array()) {
  178. $params = array('id' => $id);
  179. $params = array_merge($params, $optParams);
  180. $data = $this->__call('delete', array($params));
  181. return $data;
  182. }
  183. /**
  184. * Insert a YouTube live broadcast. (liveBroadcasts.insert)
  185. *
  186. * @param string $part Live broadcast parts to be set for the broadcast as well as included in the returned response. Valid values are: snippet, status, slateSettings, contentDetails.
  187. * @param Google_LiveBroadcast $postBody
  188. * @param array $optParams Optional parameters.
  189. * @return Google_LiveBroadcast
  190. */
  191. public function insert($part, Google_LiveBroadcast $postBody, $optParams = array()) {
  192. $params = array('part' => $part, 'postBody' => $postBody);
  193. $params = array_merge($params, $optParams);
  194. $data = $this->__call('insert', array($params));
  195. if ($this->useObjects()) {
  196. return new Google_LiveBroadcast($data);
  197. } else {
  198. return $data;
  199. }
  200. }
  201. /**
  202. * Browse the YouTube broadcast collection. (liveBroadcasts.list)
  203. *
  204. * @param string $part Live broadcast parts to include in the returned response. Valid values are: id, snippet, status, slateSettings, contentDetails.
  205. * @param array $optParams Optional parameters.
  206. *
  207. * @opt_param string broadcastStatus Filter to only return broadcasts with the given status by the authenticated user.
  208. * @opt_param string id IDs of the live broadcasts to be returned.
  209. * @opt_param string maxResults Maximum number of results to return
  210. * @opt_param bool mine Filter to only return broadcasts owned by authenticated user.
  211. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the request is be on behalf of
  212. * @opt_param string pageToken Token for the page selection.
  213. * @return Google_LiveBroadcastList
  214. */
  215. public function listLiveBroadcasts($part, $optParams = array()) {
  216. $params = array('part' => $part);
  217. $params = array_merge($params, $optParams);
  218. $data = $this->__call('list', array($params));
  219. if ($this->useObjects()) {
  220. return new Google_LiveBroadcastList($data);
  221. } else {
  222. return $data;
  223. }
  224. }
  225. /**
  226. * Change the broadcasting status of a YouTube live broadcast and start all the processes associated
  227. * with it. (liveBroadcasts.transition)
  228. *
  229. * @param string $broadcastStatus Desired broadcast status.
  230. * @param string $id ID of the broadcast to change status
  231. * @param string $part Live broadcast parts to be returned in the response. Valid values are: id, snippet, status, slateSettings, contentDetails.
  232. * @param array $optParams Optional parameters.
  233. * @return Google_LiveBroadcast
  234. */
  235. public function transition($broadcastStatus, $id, $part, $optParams = array()) {
  236. $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('transition', array($params));
  239. if ($this->useObjects()) {
  240. return new Google_LiveBroadcast($data);
  241. } else {
  242. return $data;
  243. }
  244. }
  245. /**
  246. * Update a YouTube live broadcast. (liveBroadcasts.update)
  247. *
  248. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  249. The part names that you can include in the parameter value are id, snippet, status, slateSettings, contentDetails.
  250. * @param Google_LiveBroadcast $postBody
  251. * @param array $optParams Optional parameters.
  252. * @return Google_LiveBroadcast
  253. */
  254. public function update($part, Google_LiveBroadcast $postBody, $optParams = array()) {
  255. $params = array('part' => $part, 'postBody' => $postBody);
  256. $params = array_merge($params, $optParams);
  257. $data = $this->__call('update', array($params));
  258. if ($this->useObjects()) {
  259. return new Google_LiveBroadcast($data);
  260. } else {
  261. return $data;
  262. }
  263. }
  264. }
  265. /**
  266. * The "liveStreams" collection of methods.
  267. * Typical usage is:
  268. * <code>
  269. * $youtubeService = new Google_YouTubeService(...);
  270. * $liveStreams = $youtubeService->liveStreams;
  271. * </code>
  272. */
  273. class Google_LiveStreamsServiceResource extends Google_ServiceResource {
  274. /**
  275. * Delete a live stream. (liveStreams.delete)
  276. *
  277. * @param string $id The id parameter specifies the YouTube live stream ID for the resource that is being deleted.
  278. * @param array $optParams Optional parameters.
  279. */
  280. public function delete($id, $optParams = array()) {
  281. $params = array('id' => $id);
  282. $params = array_merge($params, $optParams);
  283. $data = $this->__call('delete', array($params));
  284. return $data;
  285. }
  286. /**
  287. * Insert a YouTube live stream. (liveStreams.insert)
  288. *
  289. * @param string $part Live stream parts to include in the returned response. Valid values are: id, snippet, cdn, status.
  290. * @param Google_LiveStream $postBody
  291. * @param array $optParams Optional parameters.
  292. * @return Google_LiveStream
  293. */
  294. public function insert($part, Google_LiveStream $postBody, $optParams = array()) {
  295. $params = array('part' => $part, 'postBody' => $postBody);
  296. $params = array_merge($params, $optParams);
  297. $data = $this->__call('insert', array($params));
  298. if ($this->useObjects()) {
  299. return new Google_LiveStream($data);
  300. } else {
  301. return $data;
  302. }
  303. }
  304. /**
  305. * Browse the YouTube live stream collection. (liveStreams.list)
  306. *
  307. * @param string $part Live stream parts to include in the returned response. Valid values are: id, snippet, cdn, status.
  308. * @param array $optParams Optional parameters.
  309. *
  310. * @opt_param string id IDs of the live streams to be returned.
  311. * @opt_param string maxResults Maximum number of results to return
  312. * @opt_param bool mine Filter to only live streams owned by authenticated user.
  313. * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the request is to be on behalf of
  314. * @opt_param string pageToken Token for the page selection.
  315. * @return Google_LiveStreamList
  316. */
  317. public function listLiveStreams($part, $optParams = array()) {
  318. $params = array('part' => $part);
  319. $params = array_merge($params, $optParams);
  320. $data = $this->__call('list', array($params));
  321. if ($this->useObjects()) {
  322. return new Google_LiveStreamList($data);
  323. } else {
  324. return $data;
  325. }
  326. }
  327. /**
  328. * Update a YouTube live stream. (liveStreams.update)
  329. *
  330. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  331. The part names that you can include in the parameter value are id, snippet, cdn, status.
  332. * @param Google_LiveStream $postBody
  333. * @param array $optParams Optional parameters.
  334. * @return Google_LiveStream
  335. */
  336. public function update($part, Google_LiveStream $postBody, $optParams = array()) {
  337. $params = array('part' => $part, 'postBody' => $postBody);
  338. $params = array_merge($params, $optParams);
  339. $data = $this->__call('update', array($params));
  340. if ($this->useObjects()) {
  341. return new Google_LiveStream($data);
  342. } else {
  343. return $data;
  344. }
  345. }
  346. }
  347. /**
  348. * The "playlistItems" collection of methods.
  349. * Typical usage is:
  350. * <code>
  351. * $youtubeService = new Google_YouTubeService(...);
  352. * $playlistItems = $youtubeService->playlistItems;
  353. * </code>
  354. */
  355. class Google_PlaylistItemsServiceResource extends Google_ServiceResource {
  356. /**
  357. * Deletes a playlist item. (playlistItems.delete)
  358. *
  359. * @param string $id The id parameter specifies the YouTube playlist item ID for the playlist item that is being deleted. In a playlistItem resource, the id property specifies the playlist item's ID.
  360. * @param array $optParams Optional parameters.
  361. */
  362. public function delete($id, $optParams = array()) {
  363. $params = array('id' => $id);
  364. $params = array_merge($params, $optParams);
  365. $data = $this->__call('delete', array($params));
  366. return $data;
  367. }
  368. /**
  369. * Adds a resource to a playlist. (playlistItems.insert)
  370. *
  371. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  372. The part names that you can include in the parameter value are snippet and contentDetails.
  373. * @param Google_PlaylistItem $postBody
  374. * @param array $optParams Optional parameters.
  375. * @return Google_PlaylistItem
  376. */
  377. public function insert($part, Google_PlaylistItem $postBody, $optParams = array()) {
  378. $params = array('part' => $part, 'postBody' => $postBody);
  379. $params = array_merge($params, $optParams);
  380. $data = $this->__call('insert', array($params));
  381. if ($this->useObjects()) {
  382. return new Google_PlaylistItem($data);
  383. } else {
  384. return $data;
  385. }
  386. }
  387. /**
  388. * Returns a collection of playlist items that match the API request parameters. You can retrieve
  389. * all of the playlist items in a specified playlist or retrieve one or more playlist items by their
  390. * unique IDs. (playlistItems.list)
  391. *
  392. * @param string $part The part parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
  393. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set part=snippet, the API response will contain all of those properties.
  394. * @param array $optParams Optional parameters.
  395. *
  396. * @opt_param string id The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
  397. * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
  398. * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
  399. * @opt_param string playlistId The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve playlist items. Note that even though this is an optional parameter, every request to retrieve playlist items must specify a value for either the id parameter or the playlistId parameter.
  400. * @opt_param string videoId The videoId parameter specifies that the request should return only the playlist items that contain the specified video.
  401. * @return Google_PlaylistItemListResponse
  402. */
  403. public function listPlaylistItems($part, $optParams = array()) {
  404. $params = array('part' => $part);
  405. $params = array_merge($params, $optParams);
  406. $data = $this->__call('list', array($params));
  407. if ($this->useObjects()) {
  408. return new Google_PlaylistItemListResponse($data);
  409. } else {
  410. return $data;
  411. }
  412. }
  413. /**
  414. * Modifies a playlist item. For example, you could update the item's position in the playlist.
  415. * (playlistItems.update)
  416. *
  417. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  418. The part names that you can include in the parameter value are snippet and contentDetails.
  419. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
  420. * @param Google_PlaylistItem $postBody
  421. * @param array $optParams Optional parameters.
  422. * @return Google_PlaylistItem
  423. */
  424. public function update($part, Google_PlaylistItem $postBody, $optParams = array()) {
  425. $params = array('part' => $part, 'postBody' => $postBody);
  426. $params = array_merge($params, $optParams);
  427. $data = $this->__call('update', array($params));
  428. if ($this->useObjects()) {
  429. return new Google_PlaylistItem($data);
  430. } else {
  431. return $data;
  432. }
  433. }
  434. }
  435. /**
  436. * The "playlists" collection of methods.
  437. * Typical usage is:
  438. * <code>
  439. * $youtubeService = new Google_YouTubeService(...);
  440. * $playlists = $youtubeService->playlists;
  441. * </code>
  442. */
  443. class Google_PlaylistsServiceResource extends Google_ServiceResource {
  444. /**
  445. * Deletes a playlist. (playlists.delete)
  446. *
  447. * @param string $id The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a playlist resource, the id property specifies the playlist's ID.
  448. * @param array $optParams Optional parameters.
  449. */
  450. public function delete($id, $optParams = array()) {
  451. $params = array('id' => $id);
  452. $params = array_merge($params, $optParams);
  453. $data = $this->__call('delete', array($params));
  454. return $data;
  455. }
  456. /**
  457. * Creates a playlist. (playlists.insert)
  458. *
  459. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  460. The part names that you can include in the parameter value are snippet and status.
  461. * @param Google_Playlist $postBody
  462. * @param array $optParams Optional parameters.
  463. * @return Google_Playlist
  464. */
  465. public function insert($part, Google_Playlist $postBody, $optParams = array()) {
  466. $params = array('part' => $part, 'postBody' => $postBody);
  467. $params = array_merge($params, $optParams);
  468. $data = $this->__call('insert', array($params));
  469. if ($this->useObjects()) {
  470. return new Google_Playlist($data);
  471. } else {
  472. return $data;
  473. }
  474. }
  475. /**
  476. * Returns a collection of playlists that match the API request parameters. For example, you can
  477. * retrieve all playlists that the authenticated user owns, or you can retrieve one or more
  478. * playlists by their unique IDs. (playlists.list)
  479. *
  480. * @param string $part The part parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and status.
  481. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set part=snippet, the API response will contain all of those properties.
  482. * @param array $optParams Optional parameters.
  483. *
  484. * @opt_param string channelId This value indicates that the API should only return the specified channel's playlists.
  485. * @opt_param string id The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. In a playlist resource, the id property specifies the playlist's YouTube playlist ID.
  486. * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
  487. * @opt_param bool mine Set this parameter's value to true to instruct the API to only return playlists owned by the authenticated user.
  488. * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
  489. * @return Google_PlaylistListResponse
  490. */
  491. public function listPlaylists($part, $optParams = array()) {
  492. $params = array('part' => $part);
  493. $params = array_merge($params, $optParams);
  494. $data = $this->__call('list', array($params));
  495. if ($this->useObjects()) {
  496. return new Google_PlaylistListResponse($data);
  497. } else {
  498. return $data;
  499. }
  500. }
  501. /**
  502. * Modifies a playlist. For example, you could change a playlist's title, description, or privacy
  503. * status. (playlists.update)
  504. *
  505. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  506. The part names that you can include in the parameter value are snippet and status.
  507. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist's privacy setting is contained in the status part. As such, if your request is updating a private playlist, and the request's part parameter value includes the status part, the playlist's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the playlist will revert to the default privacy setting.
  508. * @param Google_Playlist $postBody
  509. * @param array $optParams Optional parameters.
  510. * @return Google_Playlist
  511. */
  512. public function update($part, Google_Playlist $postBody, $optParams = array()) {
  513. $params = array('part' => $part, 'postBody' => $postBody);
  514. $params = array_merge($params, $optParams);
  515. $data = $this->__call('update', array($params));
  516. if ($this->useObjects()) {
  517. return new Google_Playlist($data);
  518. } else {
  519. return $data;
  520. }
  521. }
  522. }
  523. /**
  524. * The "search" collection of methods.
  525. * Typical usage is:
  526. * <code>
  527. * $youtubeService = new Google_YouTubeService(...);
  528. * $search = $youtubeService->search;
  529. * </code>
  530. */
  531. class Google_SearchServiceResource extends Google_ServiceResource {
  532. /**
  533. * Returns a collection of search results that match the query parameters specified in the API
  534. * request. By default, a search result set identifies matching video, channel, and playlist
  535. * resources, but you can also configure queries to only retrieve a specific type of resource.
  536. * (search.list)
  537. *
  538. * @param string $part The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.
  539. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a search result, the snippet property contains other properties that identify the result's title, description, and so forth. If you set part=snippet, the API response will also contain all of those nested properties.
  540. * @param array $optParams Optional parameters.
  541. *
  542. * @opt_param string channelId The channelId parameter indicates that the API response should only contain resources created by the channel
  543. * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
  544. * @opt_param string order The order parameter specifies the method that will be used to order resources in the API response.
  545. * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
  546. * @opt_param string publishedAfter The publishedAfter parameter indicates that the API response should only contain resources created after the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).
  547. * @opt_param string publishedBefore The publishedBefore parameter indicates that the API response should only contain resources created before the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).
  548. * @opt_param string q The q parameter specifies the query term to search for.
  549. * @opt_param string regionCode The regionCode parameter instructs the API to return search results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
  550. * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a list of videos that are related to the video that the parameter value identifies. The parameter value must be set to a YouTube video ID and, if you are using this parameter, the type parameter must be set to video.
  551. * @opt_param string topicId The topicId parameter indicates that the API response should only contain resources associated with the specified topic. The value identifies a Freebase topic ID.
  552. * @opt_param string type The type parameter restricts a search query to only retrieve a particular type of resource.
  553. * @opt_param string videoCaption The videoCaption parameter indicates whether the API should filter video search results based on whether they have captions.
  554. * @opt_param string videoCategoryId The videoCategoryId parameter filters video search results based on their category.
  555. * @opt_param string videoDefinition The videoDefinition parameter lets you restrict a search to only include either high definition (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, though higher resolutions, like 1080p, might also be available.
  556. * @opt_param string videoDimension The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
  557. * @opt_param string videoDuration The videoDuration parameter filters video search results based on their duration.
  558. * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded into a webpage.
  559. * @opt_param string videoLicense The videoLicense parameter filters search results to only include videos with a particular license. YouTube lets video uploaders choose to attach either the Creative Commons license or the standard YouTube license to each of their videos.
  560. * @opt_param string videoSyndicated The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com.
  561. * @return Google_SearchListResponse
  562. */
  563. public function listSearch($part, $optParams = array()) {
  564. $params = array('part' => $part);
  565. $params = array_merge($params, $optParams);
  566. $data = $this->__call('list', array($params));
  567. if ($this->useObjects()) {
  568. return new Google_SearchListResponse($data);
  569. } else {
  570. return $data;
  571. }
  572. }
  573. }
  574. /**
  575. * The "subscriptions" collection of methods.
  576. * Typical usage is:
  577. * <code>
  578. * $youtubeService = new Google_YouTubeService(...);
  579. * $subscriptions = $youtubeService->subscriptions;
  580. * </code>
  581. */
  582. class Google_SubscriptionsServiceResource extends Google_ServiceResource {
  583. /**
  584. * Deletes a subscription. (subscriptions.delete)
  585. *
  586. * @param string $id The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a subscription resource, the id property specifies the YouTube subscription ID.
  587. * @param array $optParams Optional parameters.
  588. */
  589. public function delete($id, $optParams = array()) {
  590. $params = array('id' => $id);
  591. $params = array_merge($params, $optParams);
  592. $data = $this->__call('delete', array($params));
  593. return $data;
  594. }
  595. /**
  596. * Adds a subscription for the authenticated user's channel. (subscriptions.insert)
  597. *
  598. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  599. The part names that you can include in the parameter value are snippet and contentDetails.
  600. * @param Google_Subscription $postBody
  601. * @param array $optParams Optional parameters.
  602. * @return Google_Subscription
  603. */
  604. public function insert($part, Google_Subscription $postBody, $optParams = array()) {
  605. $params = array('part' => $part, 'postBody' => $postBody);
  606. $params = array_merge($params, $optParams);
  607. $data = $this->__call('insert', array($params));
  608. if ($this->useObjects()) {
  609. return new Google_Subscription($data);
  610. } else {
  611. return $data;
  612. }
  613. }
  614. /**
  615. * Returns subscription resources that match the API request criteria. (subscriptions.list)
  616. *
  617. * @param string $part The part parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
  618. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set part=snippet, the API response will also contain all of those nested properties.
  619. * @param array $optParams Optional parameters.
  620. *
  621. * @opt_param string channelId The channelId parameter specifies a YouTube channel ID. The API will only return that channel's subscriptions.
  622. * @opt_param string forChannelId The forChannelId parameter specifies a comma-separated list of channel IDs. The API response will then only contain subscriptions matching those channels.
  623. * @opt_param string id The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the resource(s) that are being retrieved. In a subscription resource, the id property specifies the YouTube subscription ID.
  624. * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
  625. * @opt_param bool mine Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
  626. * @opt_param string order The order parameter specifies the method that will be used to sort resources in the API response.
  627. * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
  628. * @return Google_SubscriptionListResponse
  629. */
  630. public function listSubscriptions($part, $optParams = array()) {
  631. $params = array('part' => $part);
  632. $params = array_merge($params, $optParams);
  633. $data = $this->__call('list', array($params));
  634. if ($this->useObjects()) {
  635. return new Google_SubscriptionListResponse($data);
  636. } else {
  637. return $data;
  638. }
  639. }
  640. }
  641. /**
  642. * The "videoCategories" collection of methods.
  643. * Typical usage is:
  644. * <code>
  645. * $youtubeService = new Google_YouTubeService(...);
  646. * $videoCategories = $youtubeService->videoCategories;
  647. * </code>
  648. */
  649. class Google_VideoCategoriesServiceResource extends Google_ServiceResource {
  650. /**
  651. * Returns a list of categories that can be associated with YouTube videos. (videoCategories.list)
  652. *
  653. * @param string $part The part parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.
  654. * @param array $optParams Optional parameters.
  655. *
  656. * @opt_param string hl The hl parameter specifies the language that should be used for text values in the API response.
  657. * @opt_param string id The id parameter specifies a comma-separated list of video category IDs for the resources that you are retrieving.
  658. * @opt_param string regionCode The regionCode parameter instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
  659. * @return Google_VideoCategoryListResponse
  660. */
  661. public function listVideoCategories($part, $optParams = array()) {
  662. $params = array('part' => $part);
  663. $params = array_merge($params, $optParams);
  664. $data = $this->__call('list', array($params));
  665. if ($this->useObjects()) {
  666. return new Google_VideoCategoryListResponse($data);
  667. } else {
  668. return $data;
  669. }
  670. }
  671. }
  672. /**
  673. * The "videos" collection of methods.
  674. * Typical usage is:
  675. * <code>
  676. * $youtubeService = new Google_YouTubeService(...);
  677. * $videos = $youtubeService->videos;
  678. * </code>
  679. */
  680. class Google_VideosServiceResource extends Google_ServiceResource {
  681. /**
  682. * Deletes a YouTube video. (videos.delete)
  683. *
  684. * @param string $id The id parameter specifies the YouTube video ID for the resource that is being deleted. In a video resource, the id property specifies the video's ID.
  685. * @param array $optParams Optional parameters.
  686. */
  687. public function delete($id, $optParams = array()) {
  688. $params = array('id' => $id);
  689. $params = array_merge($params, $optParams);
  690. $data = $this->__call('delete', array($params));
  691. return $data;
  692. }
  693. /**
  694. * Uploads a video to YouTube and optionally sets the video's metadata. (videos.insert)
  695. *
  696. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  697. The part names that you can include in the parameter value are snippet, contentDetails, player, statistics, status, and topicDetails. However, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
  698. * @param Google_Video $postBody
  699. * @param array $optParams Optional parameters.
  700. * @return Google_Video
  701. */
  702. public function insert($part, Google_Video $postBody, $optParams = array()) {
  703. $params = array('part' => $part, 'postBody' => $postBody);
  704. $params = array_merge($params, $optParams);
  705. $data = $this->__call('insert', array($params));
  706. if ($this->useObjects()) {
  707. return new Google_Video($data);
  708. } else {
  709. return $data;
  710. }
  711. }
  712. /**
  713. * Returns a list of videos that match the API request parameters. (videos.list)
  714. *
  715. * @param string $id The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.
  716. * @param string $part The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, player, statistics, status, and topicDetails.
  717. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties.
  718. * @param array $optParams Optional parameters.
  719. * @return Google_VideoListResponse
  720. */
  721. public function listVideos($id, $part, $optParams = array()) {
  722. $params = array('id' => $id, 'part' => $part);
  723. $params = array_merge($params, $optParams);
  724. $data = $this->__call('list', array($params));
  725. if ($this->useObjects()) {
  726. return new Google_VideoListResponse($data);
  727. } else {
  728. return $data;
  729. }
  730. }
  731. /**
  732. * Updates a video's metadata. (videos.update)
  733. *
  734. * @param string $part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
  735. The part names that you can include in the parameter value are snippet, contentDetails, player, statistics, status, and topicDetails.
  736. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting.
  737. In addition, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
  738. * @param Google_Video $postBody
  739. * @param array $optParams Optional parameters.
  740. * @return Google_Video
  741. */
  742. public function update($part, Google_Video $postBody, $optParams = array()) {
  743. $params = array('part' => $part, 'postBody' => $postBody);
  744. $params = array_merge($params, $optParams);
  745. $data = $this->__call('update', array($params));
  746. if ($this->useObjects()) {
  747. return new Google_Video($data);
  748. } else {
  749. return $data;
  750. }
  751. }
  752. }
  753. /**
  754. * Service definition for Google_YouTube (v3).
  755. *
  756. * <p>
  757. * Programmatic access to YouTube features.
  758. * </p>
  759. *
  760. * <p>
  761. * For more information about this service, see the
  762. * <a href="https://developers.google.com/youtube/v3" target="_blank">API Documentation</a>
  763. * </p>
  764. *
  765. * @author Google, Inc.
  766. */
  767. class Google_YouTubeService extends Google_Service {
  768. public $activities;
  769. public $channels;
  770. public $guideCategories;
  771. public $liveBroadcasts;
  772. public $liveStreams;
  773. public $playlistItems;
  774. public $playlists;
  775. public $search;
  776. public $subscriptions;
  777. public $videoCategories;
  778. public $videos;
  779. /**
  780. * Constructs the internal representation of the YouTube service.
  781. *
  782. * @param Google_Client $client
  783. */
  784. public function __construct(Google_Client $client) {
  785. $this->servicePath = 'youtube/v3/';
  786. $this->version = 'v3';
  787. $this->serviceName = 'youtube';
  788. $client->addService($this->serviceName, $this->version);
  789. $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"insert": {"id": "youtube.activities.insert", "path": "activities", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.activities.list", "path": "activities", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "home": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "publishedAfter": {"type": "string", "format": "date-time", "location": "query"}, "publishedBefore": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "ActivityListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly"]}}}', true));
  790. $this->channels = new Google_ChannelsServiceResource($this, $this->serviceName, 'channels', json_decode('{"methods": {"list": {"id": "youtube.channels.list", "path": "channels", "httpMethod": "GET", "parameters": {"categoryId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "mySubscribers": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "ChannelListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  791. $this->guideCategories = new Google_GuideCategoriesServiceResource($this, $this->serviceName, 'guideCategories', json_decode('{"methods": {"list": {"id": "youtube.guideCategories.list", "path": "guideCategories", "httpMethod": "GET", "parameters": {"hl": {"type": "string", "default": "en-US", "location": "query"}, "id": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "regionCode": {"type": "string", "location": "query"}}, "response": {"$ref": "GuideCategoryListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  792. $this->liveBroadcasts = new Google_LiveBroadcastsServiceResource($this, $this->serviceName, 'liveBroadcasts', json_decode('{"methods": {"bind": {"id": "youtube.liveBroadcasts.bind", "path": "liveBroadcasts/bind", "httpMethod": "POST", "parameters": {"id": {"type": "string", "required": true, "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "streamId": {"type": "string", "location": "query"}}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "delete": {"id": "youtube.liveBroadcasts.delete", "path": "liveBroadcasts", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "insert": {"id": "youtube.liveBroadcasts.insert", "path": "liveBroadcasts", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveBroadcast"}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.liveBroadcasts.list", "path": "liveBroadcasts", "httpMethod": "GET", "parameters": {"broadcastStatus": {"type": "string", "enum": ["active", "all", "completed", "upcoming"], "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "onBehalfOf": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveBroadcastList"}, "scopes": ["https://www.googleapis.com/auth/youtube.readonly"]}, "transition": {"id": "youtube.liveBroadcasts.transition", "path": "liveBroadcasts/transition", "httpMethod": "POST", "parameters": {"broadcastStatus": {"type": "string", "required": true, "enum": ["complete", "live", "testing"], "location": "query"}, "id": {"type": "string", "required": true, "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "update": {"id": "youtube.liveBroadcasts.update", "path": "liveBroadcasts", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveBroadcast"}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}}}', true));
  793. $this->liveStreams = new Google_LiveStreamsServiceResource($this, $this->serviceName, 'liveStreams', json_decode('{"methods": {"delete": {"id": "youtube.liveStreams.delete", "path": "liveStreams", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "insert": {"id": "youtube.liveStreams.insert", "path": "liveStreams", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveStream"}, "response": {"$ref": "LiveStream"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.liveStreams.list", "path": "liveStreams", "httpMethod": "GET", "parameters": {"id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "onBehalfOf": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveStreamList"}, "scopes": ["https://www.googleapis.com/auth/youtube.readonly"]}, "update": {"id": "youtube.liveStreams.update", "path": "liveStreams", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveStream"}, "response": {"$ref": "LiveStream"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}}}', true));
  794. $this->playlistItems = new Google_PlaylistItemsServiceResource($this, $this->serviceName, 'playlistItems', json_decode('{"methods": {"delete": {"id": "youtube.playlistItems.delete", "path": "playlistItems", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.playlistItems.insert", "path": "playlistItems", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.playlistItems.list", "path": "playlistItems", "httpMethod": "GET", "parameters": {"id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "playlistId": {"type": "string", "location": "query"}, "videoId": {"type": "string", "location": "query"}}, "response": {"$ref": "PlaylistItemListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.playlistItems.update", "path": "playlistItems", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  795. $this->playlists = new Google_PlaylistsServiceResource($this, $this->serviceName, 'playlists', json_decode('{"methods": {"delete": {"id": "youtube.playlists.delete", "path": "playlists", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.playlists.insert", "path": "playlists", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.playlists.list", "path": "playlists", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "PlaylistListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.playlists.update", "path": "playlists", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  796. $this->search = new Google_SearchServiceResource($this, $this->serviceName, 'search', json_decode('{"methods": {"list": {"id": "youtube.search.list", "path": "search", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "order": {"type": "string", "default": "SEARCH_SORT_RELEVANCE", "enum": ["date", "rating", "relevance", "viewCount"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "publishedAfter": {"type": "string", "format": "date-time", "location": "query"}, "publishedBefore": {"type": "string", "format": "date-time", "location": "query"}, "q": {"type": "string", "location": "query"}, "regionCode": {"type": "string", "location": "query"}, "relatedToVideoId": {"type": "string", "location": "query"}, "topicId": {"type": "string", "location": "query"}, "type": {"type": "string", "default": "video,channel,playlist", "location": "query"}, "videoCaption": {"type": "string", "enum": ["any", "closedCaption", "none"], "location": "query"}, "videoCategoryId": {"type": "string", "location": "query"}, "videoDefinition": {"type": "string", "enum": ["any", "high", "standard"], "location": "query"}, "videoDimension": {"type": "string", "enum": ["2d", "3d", "any"], "location": "query"}, "videoDuration": {"type": "string", "enum": ["any", "long", "medium", "short"], "location": "query"}, "videoEmbeddable": {"type": "string", "enum": ["any", "true"], "location": "query"}, "videoLicense": {"type": "string", "enum": ["any", "creativeCommon", "youtube"], "location": "query"}, "videoSyndicated": {"type": "string", "enum": ["any", "true"], "location": "query"}}, "response": {"$ref": "SearchListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  797. $this->subscriptions = new Google_SubscriptionsServiceResource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"delete": {"id": "youtube.subscriptions.delete", "path": "subscriptions", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.subscriptions.insert", "path": "subscriptions", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "forChannelId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "order": {"type": "string", "default": "SUBSCRIPTION_ORDER_RELEVANCE", "enum": ["alphabetical", "relevance", "unread"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "SubscriptionListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  798. $this->videoCategories = new Google_VideoCategoriesServiceResource($this, $this->serviceName, 'videoCategories', json_decode('{"methods": {"list": {"id": "youtube.videoCategories.list", "path": "videoCategories", "httpMethod": "GET", "parameters": {"hl": {"type": "string", "default": "en_US", "location": "query"}, "id": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "regionCode": {"type": "string", "location": "query"}}, "response": {"$ref": "VideoCategoryListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  799. $this->videos = new Google_VideosServiceResource($this, $this->serviceName, 'videos', json_decode('{"methods": {"delete": {"id": "youtube.videos.delete", "path": "videos", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.videos.insert", "path": "videos", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Video"}, "response": {"$ref": "Video"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.upload", "https://www.googleapis.com/auth/youtubepartner"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream", "video/*"], "maxSize": "64GB", "protocols": {"simple": {"multipart": true, "path": "/upload/youtube/v3/videos"}, "resumable": {"multipart": true, "path": "/resumable/upload/youtube/v3/videos"}}}}, "list": {"id": "youtube.videos.list", "path": "videos", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "VideoListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.videos.update", "path": "videos", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Video"}, "response": {"$ref": "Video"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true));
  800. }
  801. }
  802. class Google_AccessPolicy extends Google_Model {
  803. public $allowed;
  804. public $exception;
  805. public function setAllowed($allowed) {
  806. $this->allowed = $allowed;
  807. }
  808. public function getAllowed() {
  809. return $this->allowed;
  810. }
  811. public function setException(/* array(Google_string) */ $exception) {
  812. $this->assertIsArray($exception, 'Google_string', __METHOD__);
  813. $this->exception = $exception;
  814. }
  815. public function getException() {
  816. return $this->exception;
  817. }
  818. }
  819. class Google_Activity extends Google_Model {
  820. protected $__contentDetailsType = 'Google_ActivityContentDetails';
  821. protected $__contentDetailsDataType = '';
  822. public $contentDetails;
  823. public $etag;
  824. public $id;
  825. public $kind;
  826. protected $__snippetType = 'Google_ActivitySnippet';
  827. protected $__snippetDataType = '';
  828. public $snippet;
  829. public function setContentDetails(Google_ActivityContentDetails $contentDetails) {
  830. $this->contentDetails = $contentDetails;
  831. }
  832. public function getContentDetails() {
  833. return $this->contentDetails;
  834. }
  835. public function setEtag($etag) {
  836. $this->etag = $etag;
  837. }
  838. public function getEtag() {
  839. return $this->etag;
  840. }
  841. public function setId($id) {
  842. $this->id = $id;
  843. }
  844. public function getId() {
  845. return $this->id;
  846. }
  847. public function setKind($kind) {
  848. $this->kind = $kind;
  849. }
  850. public function getKind() {
  851. return $this->kind;
  852. }
  853. public function setSnippet(Google_ActivitySnippet $snippet) {
  854. $this->snippet = $snippet;
  855. }
  856. public function getSnippet() {
  857. return $this->snippet;
  858. }
  859. }
  860. class Google_ActivityContentDetails extends Google_Model {
  861. protected $__bulletinType = 'Google_ActivityContentDetailsBulletin';
  862. protected $__bulletinDataType = '';
  863. public $bulletin;
  864. protected $__channelItemType = 'Google_ActivityContentDetailsChannelItem';
  865. protected $__channelItemDataType = '';
  866. public $channelItem;
  867. protected $__commentType = 'Google_ActivityContentDetailsComment';
  868. protected $__commentDataType = '';
  869. public $comment;
  870. protected $__favoriteType = 'Google_ActivityContentDetailsFavorite';
  871. protected $__favoriteDataType = '';
  872. public $favorite;
  873. protected $__likeType = 'Google_ActivityContentDetailsLike';
  874. protected $__likeDataType = '';
  875. public $like;
  876. protected $__playlistItemType = 'Google_ActivityContentDetailsPlaylistItem';
  877. protected $__playlistItemDataType = '';
  878. public $playlistItem;
  879. protected $__recommendationType = 'Google_ActivityContentDetailsRecommendation';
  880. protected $__recommendationDataType = '';
  881. public $recommendation;
  882. protected $__socialType = 'Google_ActivityContentDetailsSocial';
  883. protected $__socialDataType = '';
  884. public $social;
  885. protected $__subscriptionType = 'Google_ActivityContentDetailsSubscription';
  886. protected $__subscriptionDataType = '';
  887. public $subscription;
  888. protected $__uploadType = 'Google_ActivityContentDetailsUpload';
  889. protected $__uploadDataType = '';
  890. public $upload;
  891. public function setBulletin(Google_ActivityContentDetailsBulletin $bulletin) {
  892. $this->bulletin = $bulletin;
  893. }
  894. public function getBulletin() {
  895. return $this->bulletin;
  896. }
  897. public function setChannelItem(Google_ActivityContentDetailsChannelItem $channelItem) {
  898. $this->channelItem = $channelItem;
  899. }
  900. public function getChannelItem() {
  901. return $this->channelItem;
  902. }
  903. public function setComment(Google_ActivityContentDetailsComment $comment) {
  904. $this->comment = $comment;
  905. }
  906. public function getComment() {
  907. return $this->comment;
  908. }
  909. public function setFavorite(Google_ActivityContentDetailsFavorite $favorite) {
  910. $this->favorite = $favorite;
  911. }
  912. public function getFavorite() {
  913. return $this->favorite;
  914. }
  915. public function setLike(Google_ActivityContentDetailsLike $like) {
  916. $this->like = $like;
  917. }
  918. public function getLike() {
  919. return $this->like;
  920. }
  921. public function setPlaylistItem(Google_ActivityContentDetailsPlaylistItem $playlistItem) {
  922. $this->playlistItem = $playlistItem;
  923. }
  924. public function getPlaylistItem() {
  925. return $this->playlistItem;
  926. }
  927. public function setRecommendation(Google_ActivityContentDetailsRecommendation $recommendation) {
  928. $this->recommendation = $recommendation;
  929. }
  930. public function getRecommendation() {
  931. return $this->recommendation;
  932. }
  933. public function setSocial(Google_ActivityContentDetailsSocial $social) {
  934. $this->social = $social;
  935. }
  936. public function getSocial() {
  937. return $this->social;
  938. }
  939. public function setSubscription(Google_ActivityContentDetailsSubscription $subscription) {
  940. $this->subscription = $subscription;
  941. }
  942. public function getSubscription() {
  943. return $this->subscription;
  944. }
  945. public function setUpload(Google_ActivityContentDetailsUpload $upload) {
  946. $this->upload = $upload;
  947. }
  948. public function getUpload() {
  949. return $this->upload;
  950. }
  951. }
  952. class Google_ActivityContentDetailsBulletin extends Google_Model {
  953. protected $__resourceIdType = 'Google_ResourceId';
  954. protected $__resourceIdDataType = '';
  955. public $resourceId;
  956. public function setResourceId(Google_ResourceId $resourceId) {
  957. $this->resourceId = $resourceId;
  958. }
  959. public function getResourceId() {
  960. return $this->resourceId;
  961. }
  962. }
  963. class Google_ActivityContentDetailsChannelItem extends Google_Model {
  964. protected $__resourceIdType = 'Google_ResourceId';
  965. protected $__resourceIdDataType = '';
  966. public $resourceId;
  967. public function setResourceId(Google_ResourceId $resourceId) {
  968. $this->resourceId = $resourceId;
  969. }
  970. public function getResourceId() {
  971. return $this->resourceId;
  972. }
  973. }
  974. class Google_ActivityContentDetailsComment extends Google_Model {
  975. protected $__resourceIdType = 'Google_ResourceId';
  976. protected $__resourceIdDataType = '';
  977. public $resourceId;
  978. public function setResourceId(Google_ResourceId $resourceId) {
  979. $this->resourceId = $resourceId;
  980. }
  981. public function getResourceId() {
  982. return $this->resourceId;
  983. }
  984. }
  985. class Google_ActivityContentDetailsFavorite extends Google_Model {
  986. protected $__resourceIdType = 'Google_ResourceId';
  987. protected $__resourceIdDataType = '';
  988. public $resourceId;
  989. public function setResourceId(Google_ResourceId $resourceId) {
  990. $this->resourceId = $resourceId;
  991. }
  992. public function getResourceId() {
  993. return $this->resourceId;
  994. }
  995. }
  996. class Google_ActivityContentDetailsLike extends Google_Model {
  997. protected $__resourceIdType = 'Google_ResourceId';
  998. protected $__resourceIdDataType = '';
  999. public $resourceId;
  1000. public function setResourceId(Google_ResourceId $resourceId) {
  1001. $this->resourceId = $resourceId;
  1002. }
  1003. public function getResourceId() {
  1004. return $this->resourceId;
  1005. }
  1006. }
  1007. class Google_ActivityContentDetailsPlaylistItem extends Google_Model {
  1008. public $playlistId;
  1009. public $playlistItemId;
  1010. protected $__resourceIdType = 'Google_ResourceId';
  1011. protected $__resourceIdDataType = '';
  1012. public $resourceId;
  1013. public function setPlaylistId($playlistId) {
  1014. $this->playlistId = $playlistId;
  1015. }
  1016. public function getPlaylistId() {
  1017. return $this->playlistId;
  1018. }
  1019. public function setPlaylistItemId($playlistItemId) {
  1020. $this->playlistItemId = $playlistItemId;
  1021. }
  1022. public function getPlaylistItemId() {
  1023. return $this->playlistItemId;
  1024. }
  1025. public function setResourceId(Google_ResourceId $resourceId) {
  1026. $this->resourceId = $resourceId;
  1027. }
  1028. public function getResourceId() {
  1029. return $this->resourceId;
  1030. }
  1031. }
  1032. class Google_ActivityContentDetailsRecommendation extends Google_Model {
  1033. public $reason;
  1034. protected $__resourceIdType = 'Google_ResourceId';
  1035. protected $__resourceIdDataType = '';
  1036. public $resourceId;
  1037. protected $__seedResourceIdType = 'Google_ResourceId';
  1038. protected $__seedResourceIdDataType = '';
  1039. public $seedResourceId;
  1040. public function setReason($reason) {
  1041. $this->reason = $reason;
  1042. }
  1043. public function getReason() {
  1044. return $this->reason;
  1045. }
  1046. public function setResourceId(Google_ResourceId $resourceId) {
  1047. $this->resourceId = $resourceId;
  1048. }
  1049. public function getResourceId() {
  1050. return $this->resourceId;
  1051. }
  1052. public function setSeedResourceId(Google_ResourceId $seedResourceId) {
  1053. $this->seedResourceId = $seedResourceId;
  1054. }
  1055. public function getSeedResourceId() {
  1056. return $this->seedResourceId;
  1057. }
  1058. }
  1059. class Google_ActivityContentDetailsSocial extends Google_Model {
  1060. public $author;
  1061. public $imageUrl;
  1062. public $referenceUrl;
  1063. protected $__resourceIdType = 'Google_ResourceId';
  1064. protected $__resourceIdDataType = '';
  1065. public $resourceId;
  1066. public $type;
  1067. public function setAuthor($author) {
  1068. $this->author = $author;
  1069. }
  1070. public function getAuthor() {
  1071. return $this->author;
  1072. }
  1073. public function setImageUrl($imageUrl) {
  1074. $this->imageUrl = $imageUrl;
  1075. }
  1076. public function getImageUrl() {
  1077. return $this->imageUrl;
  1078. }
  1079. public function setReferenceUrl($referenceUrl) {
  1080. $this->referenceUrl = $referenceUrl;
  1081. }
  1082. public function getReferenceUrl() {
  1083. return $this->referenceUrl;
  1084. }
  1085. public function setResourceId(Google_ResourceId $resourceId) {
  1086. $this->resourceId = $resourceId;
  1087. }
  1088. public function getResourceId() {
  1089. return $this->resourceId;
  1090. }
  1091. public function setType($type) {
  1092. $this->type = $type;
  1093. }
  1094. public function getType() {
  1095. return $this->type;
  1096. }
  1097. }
  1098. class Google_ActivityContentDetailsSubscription extends Google_Model {
  1099. protected $__resourceIdType = 'Google_ResourceId';
  1100. protected $__resourceIdDataType = '';
  1101. public $resourceId;
  1102. public function setResourceId(Google_ResourceId $resourceId) {
  1103. $this->resourceId = $resourceId;
  1104. }
  1105. public function getResourceId() {
  1106. return $this->resourceId;
  1107. }
  1108. }
  1109. class Google_ActivityContentDetailsUpload extends Google_Model {
  1110. public $videoId;
  1111. public function setVideoId($videoId) {
  1112. $this->videoId = $videoId;
  1113. }
  1114. public function getVideoId() {
  1115. return $this->videoId;
  1116. }
  1117. }
  1118. class Google_ActivityListResponse extends Google_Model {
  1119. public $etag;
  1120. protected $__itemsType = 'Google_Activity';
  1121. protected $__itemsDataType = 'array';
  1122. public $items;
  1123. public $kind;
  1124. public $nextPageToken;
  1125. protected $__pageInfoType = 'Google_PageInfo';
  1126. protected $__pageInfoDataType = '';
  1127. public $pageInfo;
  1128. public $prevPageToken;
  1129. public function setEtag($etag) {
  1130. $this->etag = $etag;
  1131. }
  1132. public function getEtag() {
  1133. return $this->etag;
  1134. }
  1135. public function setItems(/* array(Google_Activity) */ $items) {
  1136. $this->assertIsArray($items, 'Google_Activity', __METHOD__);
  1137. $this->items = $items;
  1138. }
  1139. public function getItems() {
  1140. return $this->items;
  1141. }
  1142. public function setKind($kind) {
  1143. $this->kind = $kind;
  1144. }
  1145. public function getKind() {
  1146. return $this->kind;
  1147. }
  1148. public function setNextPageToken($nextPageToken) {
  1149. $this->nextPageToken = $nextPageToken;
  1150. }
  1151. public function getNextPageToken() {
  1152. return $this->nextPageToken;
  1153. }
  1154. public function setPageInfo(Google_PageInfo $pageInfo) {
  1155. $this->pageInfo = $pageInfo;
  1156. }
  1157. public function getPageInfo() {
  1158. return $this->pageInfo;
  1159. }
  1160. public function setPrevPageToken($prevPageToken) {
  1161. $this->prevPageToken = $prevPageToken;
  1162. }
  1163. public function getPrevPageToken() {
  1164. return $this->prevPageToken;
  1165. }
  1166. }
  1167. class Google_ActivitySnippet extends Google_Model {
  1168. public $channelId;
  1169. public $description;
  1170. public $groupId;
  1171. public $publishedAt;
  1172. protected $__thumbnailsType = 'Google_Thumbnail';
  1173. protected $__thumbnailsDataType = 'map';
  1174. public $thumbnails;
  1175. public $title;
  1176. public $type;
  1177. public function setChannelId($channelId) {
  1178. $this->channelId = $channelId;
  1179. }
  1180. public function getChannelId() {
  1181. return $this->channelId;
  1182. }
  1183. public function setDescription($description) {
  1184. $this->description = $description;
  1185. }
  1186. public function getDescription() {
  1187. return $this->description;
  1188. }
  1189. public function setGroupId($groupId) {
  1190. $this->groupId = $groupId;
  1191. }
  1192. public function getGroupId() {
  1193. return $this->groupId;
  1194. }
  1195. public function setPublishedAt($publishedAt) {
  1196. $this->publishedAt = $publishedAt;
  1197. }
  1198. public function getPublishedAt() {
  1199. return $this->publishedAt;
  1200. }
  1201. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1202. $this->thumbnails = $thumbnails;
  1203. }
  1204. public function getThumbnails() {
  1205. return $this->thumbnails;
  1206. }
  1207. public function setTitle($title) {
  1208. $this->title = $title;
  1209. }
  1210. public function getTitle() {
  1211. return $this->title;
  1212. }
  1213. public function setType($type) {
  1214. $this->type = $type;
  1215. }
  1216. public function getType() {
  1217. return $this->type;
  1218. }
  1219. }
  1220. class Google_Channel extends Google_Model {
  1221. protected $__contentDetailsType = 'Google_ChannelContentDetails';
  1222. protected $__contentDetailsDataType = '';
  1223. public $contentDetails;
  1224. public $etag;
  1225. public $id;
  1226. public $kind;
  1227. protected $__snippetType = 'Google_ChannelSnippet';
  1228. protected $__snippetDataType = '';
  1229. public $snippet;
  1230. protected $__statisticsType = 'Google_ChannelStatistics';
  1231. protected $__statisticsDataType = '';
  1232. public $statistics;
  1233. protected $__statusType = 'Google_ChannelStatus';
  1234. protected $__statusDataType = '';
  1235. public $status;
  1236. protected $__topicDetailsType = 'Google_ChannelTopicDetails';
  1237. protected $__topicDetailsDataType = '';
  1238. public $topicDetails;
  1239. public function setContentDetails(Google_ChannelContentDetails $contentDetails) {
  1240. $this->contentDetails = $contentDetails;
  1241. }
  1242. public function getContentDetails() {
  1243. return $this->contentDetails;
  1244. }
  1245. public function setEtag($etag) {
  1246. $this->etag = $etag;
  1247. }
  1248. public function getEtag() {
  1249. return $this->etag;
  1250. }
  1251. public function setId($id) {
  1252. $this->id = $id;
  1253. }
  1254. public function getId() {
  1255. return $this->id;
  1256. }
  1257. public function setKind($kind) {
  1258. $this->kind = $kind;
  1259. }
  1260. public function getKind() {
  1261. return $this->kind;
  1262. }
  1263. public function setSnippet(Google_ChannelSnippet $snippet) {
  1264. $this->snippet = $snippet;
  1265. }
  1266. public function getSnippet() {
  1267. return $this->snippet;
  1268. }
  1269. public function setStatistics(Google_ChannelStatistics $statistics) {
  1270. $this->statistics = $statistics;
  1271. }
  1272. public function getStatistics() {
  1273. return $this->statistics;
  1274. }
  1275. public function setStatus(Google_ChannelStatus $status) {
  1276. $this->status = $status;
  1277. }
  1278. public function getStatus() {
  1279. return $this->status;
  1280. }
  1281. public function setTopicDetails(Google_ChannelTopicDetails $topicDetails) {
  1282. $this->topicDetails = $topicDetails;
  1283. }
  1284. public function getTopicDetails() {
  1285. return $this->topicDetails;
  1286. }
  1287. }
  1288. class Google_ChannelContentDetails extends Google_Model {
  1289. public $googlePlusUserId;
  1290. protected $__relatedPlaylistsType = 'Google_ChannelContentDetailsRelatedPlaylists';
  1291. protected $__relatedPlaylistsDataType = '';
  1292. public $relatedPlaylists;
  1293. public function setGooglePlusUserId($googlePlusUserId) {
  1294. $this->googlePlusUserId = $googlePlusUserId;
  1295. }
  1296. public function getGooglePlusUserId() {
  1297. return $this->googlePlusUserId;
  1298. }
  1299. public function setRelatedPlaylists(Google_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) {
  1300. $this->relatedPlaylists = $relatedPlaylists;
  1301. }
  1302. public function getRelatedPlaylists() {
  1303. return $this->relatedPlaylists;
  1304. }
  1305. }
  1306. class Google_ChannelContentDetailsRelatedPlaylists extends Google_Model {
  1307. public $favorites;
  1308. public $likes;
  1309. public $uploads;
  1310. public $watchHistory;
  1311. public $watchLater;
  1312. public function setFavorites($favorites) {
  1313. $this->favorites = $favorites;
  1314. }
  1315. public function getFavorites() {
  1316. return $this->favorites;
  1317. }
  1318. public function setLikes($likes) {
  1319. $this->likes = $likes;
  1320. }
  1321. public function getLikes() {
  1322. return $this->likes;
  1323. }
  1324. public function setUploads($uploads) {
  1325. $this->uploads = $uploads;
  1326. }
  1327. public function getUploads() {
  1328. return $this->uploads;
  1329. }
  1330. public function setWatchHistory($watchHistory) {
  1331. $this->watchHistory = $watchHistory;
  1332. }
  1333. public function getWatchHistory() {
  1334. return $this->watchHistory;
  1335. }
  1336. public function setWatchLater($watchLater) {
  1337. $this->watchLater = $watchLater;
  1338. }
  1339. public function getWatchLater() {
  1340. return $this->watchLater;
  1341. }
  1342. }
  1343. class Google_ChannelListResponse extends Google_Model {
  1344. public $etag;
  1345. protected $__itemsType = 'Google_Channel';
  1346. protected $__itemsDataType = 'array';
  1347. public $items;
  1348. public $kind;
  1349. public $nextPageToken;
  1350. protected $__pageInfoType = 'Google_PageInfo';
  1351. protected $__pageInfoDataType = '';
  1352. public $pageInfo;
  1353. public $prevPageToken;
  1354. public function setEtag($etag) {
  1355. $this->etag = $etag;
  1356. }
  1357. public function getEtag() {
  1358. return $this->etag;
  1359. }
  1360. public function setItems(/* array(Google_Channel) */ $items) {
  1361. $this->assertIsArray($items, 'Google_Channel', __METHOD__);
  1362. $this->items = $items;
  1363. }
  1364. public function getItems() {
  1365. return $this->items;
  1366. }
  1367. public function setKind($kind) {
  1368. $this->kind = $kind;
  1369. }
  1370. public function getKind() {
  1371. return $this->kind;
  1372. }
  1373. public function setNextPageToken($nextPageToken) {
  1374. $this->nextPageToken = $nextPageToken;
  1375. }
  1376. public function getNextPageToken() {
  1377. return $this->nextPageToken;
  1378. }
  1379. public function setPageInfo(Google_PageInfo $pageInfo) {
  1380. $this->pageInfo = $pageInfo;
  1381. }
  1382. public function getPageInfo() {
  1383. return $this->pageInfo;
  1384. }
  1385. public function setPrevPageToken($prevPageToken) {
  1386. $this->prevPageToken = $prevPageToken;
  1387. }
  1388. public function getPrevPageToken() {
  1389. return $this->prevPageToken;
  1390. }
  1391. }
  1392. class Google_ChannelSnippet extends Google_Model {
  1393. public $description;
  1394. public $publishedAt;
  1395. protected $__thumbnailsType = 'Google_Thumbnail';
  1396. protected $__thumbnailsDataType = 'map';
  1397. public $thumbnails;
  1398. public $title;
  1399. public function setDescription($description) {
  1400. $this->description = $description;
  1401. }
  1402. public function getDescription() {
  1403. return $this->description;
  1404. }
  1405. public function setPublishedAt($publishedAt) {
  1406. $this->publishedAt = $publishedAt;
  1407. }
  1408. public function getPublishedAt() {
  1409. return $this->publishedAt;
  1410. }
  1411. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1412. $this->thumbnails = $thumbnails;
  1413. }
  1414. public function getThumbnails() {
  1415. return $this->thumbnails;
  1416. }
  1417. public function setTitle($title) {
  1418. $this->title = $title;
  1419. }
  1420. public function getTitle() {
  1421. return $this->title;
  1422. }
  1423. }
  1424. class Google_ChannelStatistics extends Google_Model {
  1425. public $commentCount;
  1426. public $subscriberCount;
  1427. public $videoCount;
  1428. public $viewCount;
  1429. public function setCommentCount($commentCount) {
  1430. $this->commentCount = $commentCount;
  1431. }
  1432. public function getCommentCount() {
  1433. return $this->commentCount;
  1434. }
  1435. public function setSubscriberCount($subscriberCount) {
  1436. $this->subscriberCount = $subscriberCount;
  1437. }
  1438. public function getSubscriberCount() {
  1439. return $this->subscriberCount;
  1440. }
  1441. public function setVideoCount($videoCount) {
  1442. $this->videoCount = $videoCount;
  1443. }
  1444. public function getVideoCount() {
  1445. return $this->videoCount;
  1446. }
  1447. public function setViewCount($viewCount) {
  1448. $this->viewCount = $viewCount;
  1449. }
  1450. public function getViewCount() {
  1451. return $this->viewCount;
  1452. }
  1453. }
  1454. class Google_ChannelStatus extends Google_Model {
  1455. public $privacyStatus;
  1456. public function setPrivacyStatus($privacyStatus) {
  1457. $this->privacyStatus = $privacyStatus;
  1458. }
  1459. public function getPrivacyStatus() {
  1460. return $this->privacyStatus;
  1461. }
  1462. }
  1463. class Google_ChannelTopicDetails extends Google_Model {
  1464. public $topicIds;
  1465. public function setTopicIds(/* array(Google_string) */ $topicIds) {
  1466. $this->assertIsArray($topicIds, 'Google_string', __METHOD__);
  1467. $this->topicIds = $topicIds;
  1468. }
  1469. public function getTopicIds() {
  1470. return $this->topicIds;
  1471. }
  1472. }
  1473. class Google_GeoPoint extends Google_Model {
  1474. public $elevation;
  1475. public $latitude;
  1476. public $longitude;
  1477. public function setElevation($elevation) {
  1478. $this->elevation = $elevation;
  1479. }
  1480. public function getElevation() {
  1481. return $this->elevation;
  1482. }
  1483. public function setLatitude($latitude) {
  1484. $this->latitude = $latitude;
  1485. }
  1486. public function getLatitude() {
  1487. return $this->latitude;
  1488. }
  1489. public function setLongitude($longitude) {
  1490. $this->longitude = $longitude;
  1491. }
  1492. public function getLongitude() {
  1493. return $this->longitude;
  1494. }
  1495. }
  1496. class Google_GuideCategory extends Google_Model {
  1497. public $etag;
  1498. public $id;
  1499. public $kind;
  1500. protected $__snippetType = 'Google_GuideCategorySnippet';
  1501. protected $__snippetDataType = '';
  1502. public $snippet;
  1503. public function setEtag($etag) {
  1504. $this->etag = $etag;
  1505. }
  1506. public function getEtag() {
  1507. return $this->etag;
  1508. }
  1509. public function setId($id) {
  1510. $this->id = $id;
  1511. }
  1512. public function getId() {
  1513. return $this->id;
  1514. }
  1515. public function setKind($kind) {
  1516. $this->kind = $kind;
  1517. }
  1518. public function getKind() {
  1519. return $this->kind;
  1520. }
  1521. public function setSnippet(Google_GuideCategorySnippet $snippet) {
  1522. $this->snippet = $snippet;
  1523. }
  1524. public function getSnippet() {
  1525. return $this->snippet;
  1526. }
  1527. }
  1528. class Google_GuideCategoryListResponse extends Google_Model {
  1529. public $etag;
  1530. protected $__itemsType = 'Google_GuideCategory';
  1531. protected $__itemsDataType = 'array';
  1532. public $items;
  1533. public $kind;
  1534. public function setEtag($etag) {
  1535. $this->etag = $etag;
  1536. }
  1537. public function getEtag() {
  1538. return $this->etag;
  1539. }
  1540. public function setItems(/* array(Google_GuideCategory) */ $items) {
  1541. $this->assertIsArray($items, 'Google_GuideCategory', __METHOD__);
  1542. $this->items = $items;
  1543. }
  1544. public function getItems() {
  1545. return $this->items;
  1546. }
  1547. public function setKind($kind) {
  1548. $this->kind = $kind;
  1549. }
  1550. public function getKind() {
  1551. return $this->kind;
  1552. }
  1553. }
  1554. class Google_GuideCategorySnippet extends Google_Model {
  1555. public $channelId;
  1556. public $title;
  1557. public function setChannelId($channelId) {
  1558. $this->channelId = $channelId;
  1559. }
  1560. public function getChannelId() {
  1561. return $this->channelId;
  1562. }
  1563. public function setTitle($title) {
  1564. $this->title = $title;
  1565. }
  1566. public function getTitle() {
  1567. return $this->title;
  1568. }
  1569. }
  1570. class Google_LiveBroadcast extends Google_Model {
  1571. protected $__contentDetailsType = 'Google_LiveBroadcastContentDetails';
  1572. protected $__contentDetailsDataType = '';
  1573. public $contentDetails;
  1574. public $etag;
  1575. public $id;
  1576. public $kind;
  1577. protected $__slateSettingsType = 'Google_LiveBroadcastSlateSettings';
  1578. protected $__slateSettingsDataType = '';
  1579. public $slateSettings;
  1580. protected $__snippetType = 'Google_LiveBroadcastSnippet';
  1581. protected $__snippetDataType = '';
  1582. public $snippet;
  1583. protected $__statusType = 'Google_LiveBroadcastStatus';
  1584. protected $__statusDataType = '';
  1585. public $status;
  1586. public function setContentDetails(Google_LiveBroadcastContentDetails $contentDetails) {
  1587. $this->contentDetails = $contentDetails;
  1588. }
  1589. public function getContentDetails() {
  1590. return $this->contentDetails;
  1591. }
  1592. public function setEtag($etag) {
  1593. $this->etag = $etag;
  1594. }
  1595. public function getEtag() {
  1596. return $this->etag;
  1597. }
  1598. public function setId($id) {
  1599. $this->id = $id;
  1600. }
  1601. public function getId() {
  1602. return $this->id;
  1603. }
  1604. public function setKind($kind) {
  1605. $this->kind = $kind;
  1606. }
  1607. public function getKind() {
  1608. return $this->kind;
  1609. }
  1610. public function setSlateSettings(Google_LiveBroadcastSlateSettings $slateSettings) {
  1611. $this->slateSettings = $slateSettings;
  1612. }
  1613. public function getSlateSettings() {
  1614. return $this->slateSettings;
  1615. }
  1616. public function setSnippet(Google_LiveBroadcastSnippet $snippet) {
  1617. $this->snippet = $snippet;
  1618. }
  1619. public function getSnippet() {
  1620. return $this->snippet;
  1621. }
  1622. public function setStatus(Google_LiveBroadcastStatus $status) {
  1623. $this->status = $status;
  1624. }
  1625. public function getStatus() {
  1626. return $this->status;
  1627. }
  1628. }
  1629. class Google_LiveBroadcastContentDetails extends Google_Model {
  1630. public $boundStreamId;
  1631. public $enableArchive;
  1632. public $enableContentEncryption;
  1633. public $enableDvr;
  1634. public $enableEmbed;
  1635. protected $__monitorStreamType = 'Google_LiveBroadcastContentDetailsMonitorStream';
  1636. protected $__monitorStreamDataType = '';
  1637. public $monitorStream;
  1638. public $startWithSlateCuepoint;
  1639. public function setBoundStreamId($boundStreamId) {
  1640. $this->boundStreamId = $boundStreamId;
  1641. }
  1642. public function getBoundStreamId() {
  1643. return $this->boundStreamId;
  1644. }
  1645. public function setEnableArchive($enableArchive) {
  1646. $this->enableArchive = $enableArchive;
  1647. }
  1648. public function getEnableArchive() {
  1649. return $this->enableArchive;
  1650. }
  1651. public function setEnableContentEncryption($enableContentEncryption) {
  1652. $this->enableContentEncryption = $enableContentEncryption;
  1653. }
  1654. public function getEnableContentEncryption() {
  1655. return $this->enableContentEncryption;
  1656. }
  1657. public function setEnableDvr($enableDvr) {
  1658. $this->enableDvr = $enableDvr;
  1659. }
  1660. public function getEnableDvr() {
  1661. return $this->enableDvr;
  1662. }
  1663. public function setEnableEmbed($enableEmbed) {
  1664. $this->enableEmbed = $enableEmbed;
  1665. }
  1666. public function getEnableEmbed() {
  1667. return $this->enableEmbed;
  1668. }
  1669. public function setMonitorStream(Google_LiveBroadcastContentDetailsMonitorStream $monitorStream) {
  1670. $this->monitorStream = $monitorStream;
  1671. }
  1672. public function getMonitorStream() {
  1673. return $this->monitorStream;
  1674. }
  1675. public function setStartWithSlateCuepoint($startWithSlateCuepoint) {
  1676. $this->startWithSlateCuepoint = $startWithSlateCuepoint;
  1677. }
  1678. public function getStartWithSlateCuepoint() {
  1679. return $this->startWithSlateCuepoint;
  1680. }
  1681. }
  1682. class Google_LiveBroadcastContentDetailsMonitorStream extends Google_Model {
  1683. public $broadcastStreamDelayMs;
  1684. public $embedHtml;
  1685. public $enableMonitorStream;
  1686. public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) {
  1687. $this->broadcastStreamDelayMs = $broadcastStreamDelayMs;
  1688. }
  1689. public function getBroadcastStreamDelayMs() {
  1690. return $this->broadcastStreamDelayMs;
  1691. }
  1692. public function setEmbedHtml($embedHtml) {
  1693. $this->embedHtml = $embedHtml;
  1694. }
  1695. public function getEmbedHtml() {
  1696. return $this->embedHtml;
  1697. }
  1698. public function setEnableMonitorStream($enableMonitorStream) {
  1699. $this->enableMonitorStream = $enableMonitorStream;
  1700. }
  1701. public function getEnableMonitorStream() {
  1702. return $this->enableMonitorStream;
  1703. }
  1704. }
  1705. class Google_LiveBroadcastList extends Google_Model {
  1706. public $etag;
  1707. protected $__itemsType = 'Google_LiveBroadcast';
  1708. protected $__itemsDataType = 'array';
  1709. public $items;
  1710. public $kind;
  1711. public $nextPageToken;
  1712. protected $__pageInfoType = 'Google_PageInfo';
  1713. protected $__pageInfoDataType = '';
  1714. public $pageInfo;
  1715. public $prevPageToken;
  1716. public function setEtag($etag) {
  1717. $this->etag = $etag;
  1718. }
  1719. public function getEtag() {
  1720. return $this->etag;
  1721. }
  1722. public function setItems(/* array(Google_LiveBroadcast) */ $items) {
  1723. $this->assertIsArray($items, 'Google_LiveBroadcast', __METHOD__);
  1724. $this->items = $items;
  1725. }
  1726. public function getItems() {
  1727. return $this->items;
  1728. }
  1729. public function setKind($kind) {
  1730. $this->kind = $kind;
  1731. }
  1732. public function getKind() {
  1733. return $this->kind;
  1734. }
  1735. public function setNextPageToken($nextPageToken) {
  1736. $this->nextPageToken = $nextPageToken;
  1737. }
  1738. public function getNextPageToken() {
  1739. return $this->nextPageToken;
  1740. }
  1741. public function setPageInfo(Google_PageInfo $pageInfo) {
  1742. $this->pageInfo = $pageInfo;
  1743. }
  1744. public function getPageInfo() {
  1745. return $this->pageInfo;
  1746. }
  1747. public function setPrevPageToken($prevPageToken) {
  1748. $this->prevPageToken = $prevPageToken;
  1749. }
  1750. public function getPrevPageToken() {
  1751. return $this->prevPageToken;
  1752. }
  1753. }
  1754. class Google_LiveBroadcastSlateSettings extends Google_Model {
  1755. public $enableSlates;
  1756. protected $__slatesType = 'Google_LiveBroadcastSlateSettingsSlates';
  1757. protected $__slatesDataType = 'map';
  1758. public $slates;
  1759. public function setEnableSlates($enableSlates) {
  1760. $this->enableSlates = $enableSlates;
  1761. }
  1762. public function getEnableSlates() {
  1763. return $this->enableSlates;
  1764. }
  1765. public function setSlates(Google_LiveBroadcastSlateSettingsSlates $slates) {
  1766. $this->slates = $slates;
  1767. }
  1768. public function getSlates() {
  1769. return $this->slates;
  1770. }
  1771. }
  1772. class Google_LiveBroadcastSlateSettingsSlates extends Google_Model {
  1773. public $backgroundUrl;
  1774. public $textLines;
  1775. public function setBackgroundUrl($backgroundUrl) {
  1776. $this->backgroundUrl = $backgroundUrl;
  1777. }
  1778. public function getBackgroundUrl() {
  1779. return $this->backgroundUrl;
  1780. }
  1781. public function setTextLines(/* array(Google_string) */ $textLines) {
  1782. $this->assertIsArray($textLines, 'Google_string', __METHOD__);
  1783. $this->textLines = $textLines;
  1784. }
  1785. public function getTextLines() {
  1786. return $this->textLines;
  1787. }
  1788. }
  1789. class Google_LiveBroadcastSnippet extends Google_Model {
  1790. public $actualEndTime;
  1791. public $actualStartTime;
  1792. public $channelId;
  1793. public $description;
  1794. public $publishedAt;
  1795. public $scheduledEndTime;
  1796. public $scheduledStartTime;
  1797. protected $__thumbnailsType = 'Google_Thumbnail';
  1798. protected $__thumbnailsDataType = 'map';
  1799. public $thumbnails;
  1800. public $title;
  1801. public function setActualEndTime($actualEndTime) {
  1802. $this->actualEndTime = $actualEndTime;
  1803. }
  1804. public function getActualEndTime() {
  1805. return $this->actualEndTime;
  1806. }
  1807. public function setActualStartTime($actualStartTime) {
  1808. $this->actualStartTime = $actualStartTime;
  1809. }
  1810. public function getActualStartTime() {
  1811. return $this->actualStartTime;
  1812. }
  1813. public function setChannelId($channelId) {
  1814. $this->channelId = $channelId;
  1815. }
  1816. public function getChannelId() {
  1817. return $this->channelId;
  1818. }
  1819. public function setDescription($description) {
  1820. $this->description = $description;
  1821. }
  1822. public function getDescription() {
  1823. return $this->description;
  1824. }
  1825. public function setPublishedAt($publishedAt) {
  1826. $this->publishedAt = $publishedAt;
  1827. }
  1828. public function getPublishedAt() {
  1829. return $this->publishedAt;
  1830. }
  1831. public function setScheduledEndTime($scheduledEndTime) {
  1832. $this->scheduledEndTime = $scheduledEndTime;
  1833. }
  1834. public function getScheduledEndTime() {
  1835. return $this->scheduledEndTime;
  1836. }
  1837. public function setScheduledStartTime($scheduledStartTime) {
  1838. $this->scheduledStartTime = $scheduledStartTime;
  1839. }
  1840. public function getScheduledStartTime() {
  1841. return $this->scheduledStartTime;
  1842. }
  1843. public function setThumbnails(Google_Thumbnail $thumbnails) {
  1844. $this->thumbnails = $thumbnails;
  1845. }
  1846. public function getThumbnails() {
  1847. return $this->thumbnails;
  1848. }
  1849. public function setTitle($title) {
  1850. $this->title = $title;
  1851. }
  1852. public function getTitle() {
  1853. return $this->title;
  1854. }
  1855. }
  1856. class Google_LiveBroadcastStatus extends Google_Model {
  1857. public $lifeCycleStatus;
  1858. public $privacyStatus;
  1859. public function setLifeCycleStatus($lifeCycleStatus) {
  1860. $this->lifeCycleStatus = $lifeCycleStatus;
  1861. }
  1862. public function getLifeCycleStatus() {
  1863. return $this->lifeCycleStatus;
  1864. }
  1865. public function setPrivacyStatus($privacyStatus) {
  1866. $this->privacyStatus = $privacyStatus;
  1867. }
  1868. public function getPrivacyStatus() {
  1869. return $this->privacyStatus;
  1870. }
  1871. }
  1872. class Google_LiveStream extends Google_Model {
  1873. protected $__cdnType = 'Google_LiveStreamCdn';
  1874. protected $__cdnDataType = '';
  1875. public $cdn;
  1876. public $etag;
  1877. public $id;
  1878. public $kind;
  1879. protected $__snippetType = 'Google_LiveStreamSnippet';
  1880. protected $__snippetDataType = '';
  1881. public $snippet;
  1882. protected $__statusType = 'Google_LiveStreamStatus';
  1883. protected $__statusDataType = '';
  1884. public $status;
  1885. public function setCdn(Google_LiveStreamCdn $cdn) {
  1886. $this->cdn = $cdn;
  1887. }
  1888. public function getCdn() {
  1889. return $this->cdn;
  1890. }
  1891. public function setEtag($etag) {
  1892. $this->etag = $etag;
  1893. }
  1894. public function getEtag() {
  1895. return $this->etag;
  1896. }
  1897. public function setId($id) {
  1898. $this->id = $id;
  1899. }
  1900. public function getId() {
  1901. return $this->id;
  1902. }
  1903. public function setKind($kind) {
  1904. $this->kind = $kind;
  1905. }
  1906. public function getKind() {
  1907. return $this->kind;
  1908. }
  1909. public function setSnippet(Google_LiveStreamSnippet $snippet) {
  1910. $this->snippet = $snippet;
  1911. }
  1912. public function getSnippet() {
  1913. return $this->snippet;
  1914. }
  1915. public function setStatus(Google_LiveStreamStatus $status) {
  1916. $this->status = $status;
  1917. }
  1918. public function getStatus() {
  1919. return $this->status;
  1920. }
  1921. }
  1922. class Google_LiveStreamCdn extends Google_Model {
  1923. public $format;
  1924. protected $__ingestionInfoType = 'Google_LiveStreamCdnIngestionInfo';
  1925. protected $__ingestionInfoDataType = '';
  1926. public $ingestionInfo;
  1927. public $ingestionType;
  1928. protected $__multicastIngestionInfoType = 'Google_LiveStreamCdnMulticastIngestionInfo';
  1929. protected $__multicastIngestionInfoDataType = '';
  1930. public $multicastIngestionInfo;
  1931. public function setFormat($format) {
  1932. $this->format = $format;
  1933. }
  1934. public function getFormat() {
  1935. return $this->format;
  1936. }
  1937. public function setIngestionInfo(Google_LiveStreamCdnIngestionInfo $ingestionInfo) {
  1938. $this->ingestionInfo = $ingestionInfo;
  1939. }
  1940. public function getIngestionInfo() {
  1941. return $this->ingestionInfo;
  1942. }
  1943. public function setIngestionType($ingestionType) {
  1944. $this->ingestionType = $ingestionType;
  1945. }
  1946. public function getIngestionType() {
  1947. return $this->ingestionType;
  1948. }
  1949. public function setMulticastIngestionInfo(Google_LiveStreamCdnMulticastIngestionInfo $multicastIngestionInfo) {
  1950. $this->multicastIngestionInfo = $multicastIngestionInfo;
  1951. }
  1952. public function getMulticastIngestionInfo() {
  1953. return $this->multicastIngestionInfo;
  1954. }
  1955. }
  1956. class Google_LiveStreamCdnIngestionInfo extends Google_Model {
  1957. public $backupIngestionAddress;
  1958. public $ingestionAddress;
  1959. public $streamName;
  1960. public function setBackupIngestionAddress($backupIngestionAddress) {
  1961. $this->backupIngestionAddress = $backupIngestionAddress;
  1962. }
  1963. public function getBackupIngestionAddress() {
  1964. return $this->backupIngestionAddress;
  1965. }
  1966. public function setIngestionAddress($ingestionAddress) {
  1967. $this->ingestionAddress = $ingestionAddress;
  1968. }
  1969. public function getIngestionAddress() {
  1970. return $this->ingestionAddress;
  1971. }
  1972. public function setStreamName($streamName) {
  1973. $this->streamName = $streamName;
  1974. }
  1975. public function getStreamName() {
  1976. return $this->streamName;
  1977. }
  1978. }
  1979. class Google_LiveStreamCdnMulticastIngestionInfo extends Google_Model {
  1980. public $multicastAddress;
  1981. public function setMulticastAddress($multicastAddress) {
  1982. $this->multicastAddress = $multicastAddress;
  1983. }
  1984. public function getMulticastAddress() {
  1985. return $this->multicastAddress;
  1986. }
  1987. }
  1988. class Google_LiveStreamList extends Google_Model {
  1989. public $etag;
  1990. protected $__itemsType = 'Google_LiveStream';
  1991. protected $__itemsDataType = 'array';
  1992. public $items;
  1993. public $kind;
  1994. public $nextPageToken;
  1995. protected $__pageInfoType = 'Google_PageInfo';
  1996. protected $__pageInfoDataType = '';
  1997. public $pageInfo;
  1998. public $prevPageToken;
  1999. public function setEtag($etag) {
  2000. $this->etag = $etag;
  2001. }
  2002. public function getEtag() {
  2003. return $this->etag;
  2004. }
  2005. public function setItems(/* array(Google_LiveStream) */ $items) {
  2006. $this->assertIsArray($items, 'Google_LiveStream', __METHOD__);
  2007. $this->items = $items;
  2008. }
  2009. public function getItems() {
  2010. return $this->items;
  2011. }
  2012. public function setKind($kind) {
  2013. $this->kind = $kind;
  2014. }
  2015. public function getKind() {
  2016. return $this->kind;
  2017. }
  2018. public function setNextPageToken($nextPageToken) {
  2019. $this->nextPageToken = $nextPageToken;
  2020. }
  2021. public function getNextPageToken() {
  2022. return $this->nextPageToken;
  2023. }
  2024. public function setPageInfo(Google_PageInfo $pageInfo) {
  2025. $this->pageInfo = $pageInfo;
  2026. }
  2027. public function getPageInfo() {
  2028. return $this->pageInfo;
  2029. }
  2030. public function setPrevPageToken($prevPageToken) {
  2031. $this->prevPageToken = $prevPageToken;
  2032. }
  2033. public function getPrevPageToken() {
  2034. return $this->prevPageToken;
  2035. }
  2036. }
  2037. class Google_LiveStreamSnippet extends Google_Model {
  2038. public $channelId;
  2039. public $description;
  2040. public $publishedAt;
  2041. public $title;
  2042. public function setChannelId($channelId) {
  2043. $this->channelId = $channelId;
  2044. }
  2045. public function getChannelId() {
  2046. return $this->channelId;
  2047. }
  2048. public function setDescription($description) {
  2049. $this->description = $description;
  2050. }
  2051. public function getDescription() {
  2052. return $this->description;
  2053. }
  2054. public function setPublishedAt($publishedAt) {
  2055. $this->publishedAt = $publishedAt;
  2056. }
  2057. public function getPublishedAt() {
  2058. return $this->publishedAt;
  2059. }
  2060. public function setTitle($title) {
  2061. $this->title = $title;
  2062. }
  2063. public function getTitle() {
  2064. return $this->title;
  2065. }
  2066. }
  2067. class Google_LiveStreamStatus extends Google_Model {
  2068. public $streamStatus;
  2069. public function setStreamStatus($streamStatus) {
  2070. $this->streamStatus = $streamStatus;
  2071. }
  2072. public function getStreamStatus() {
  2073. return $this->streamStatus;
  2074. }
  2075. }
  2076. class Google_PageInfo extends Google_Model {
  2077. public $resultsPerPage;
  2078. public $totalResults;
  2079. public function setResultsPerPage($resultsPerPage) {
  2080. $this->resultsPerPage = $resultsPerPage;
  2081. }
  2082. public function getResultsPerPage() {
  2083. return $this->resultsPerPage;
  2084. }
  2085. public function setTotalResults($totalResults) {
  2086. $this->totalResults = $totalResults;
  2087. }
  2088. public function getTotalResults() {
  2089. return $this->totalResults;
  2090. }
  2091. }
  2092. class Google_Playlist extends Google_Model {
  2093. protected $__contentDetailsType = 'Google_PlaylistContentDetails';
  2094. protected $__contentDetailsDataType = '';
  2095. public $contentDetails;
  2096. public $etag;
  2097. public $id;
  2098. public $kind;
  2099. protected $__playerType = 'Google_PlaylistPlayer';
  2100. protected $__playerDataType = '';
  2101. public $player;
  2102. protected $__snippetType = 'Google_PlaylistSnippet';
  2103. protected $__snippetDataType = '';
  2104. public $snippet;
  2105. protected $__statusType = 'Google_PlaylistStatus';
  2106. protected $__statusDataType = '';
  2107. public $status;
  2108. public function setContentDetails(Google_PlaylistContentDetails $contentDetails) {
  2109. $this->contentDetails = $contentDetails;
  2110. }
  2111. public function getContentDetails() {
  2112. return $this->contentDetails;
  2113. }
  2114. public function setEtag($etag) {
  2115. $this->etag = $etag;
  2116. }
  2117. public function getEtag() {
  2118. return $this->etag;
  2119. }
  2120. public function setId($id) {
  2121. $this->id = $id;
  2122. }
  2123. public function getId() {
  2124. return $this->id;
  2125. }
  2126. public function setKind($kind) {
  2127. $this->kind = $kind;
  2128. }
  2129. public function getKind() {
  2130. return $this->kind;
  2131. }
  2132. public function setPlayer(Google_PlaylistPlayer $player) {
  2133. $this->player = $player;
  2134. }
  2135. public function getPlayer() {
  2136. return $this->player;
  2137. }
  2138. public function setSnippet(Google_PlaylistSnippet $snippet) {
  2139. $this->snippet = $snippet;
  2140. }
  2141. public function getSnippet() {
  2142. return $this->snippet;
  2143. }
  2144. public function setStatus(Google_PlaylistStatus $status) {
  2145. $this->status = $status;
  2146. }
  2147. public function getStatus() {
  2148. return $this->status;
  2149. }
  2150. }
  2151. class Google_PlaylistContentDetails extends Google_Model {
  2152. public $itemCount;
  2153. public function setItemCount($itemCount) {
  2154. $this->itemCount = $itemCount;
  2155. }
  2156. public function getItemCount() {
  2157. return $this->itemCount;
  2158. }
  2159. }
  2160. class Google_PlaylistItem extends Google_Model {
  2161. protected $__contentDetailsType = 'Google_PlaylistItemContentDetails';
  2162. protected $__contentDetailsDataType = '';
  2163. public $contentDetails;
  2164. public $etag;
  2165. public $id;
  2166. public $kind;
  2167. protected $__snippetType = 'Google_PlaylistItemSnippet';
  2168. protected $__snippetDataType = '';
  2169. public $snippet;
  2170. public function setContentDetails(Google_PlaylistItemContentDetails $contentDetails) {
  2171. $this->contentDetails = $contentDetails;
  2172. }
  2173. public function getContentDetails() {
  2174. return $this->contentDetails;
  2175. }
  2176. public function setEtag($etag) {
  2177. $this->etag = $etag;
  2178. }
  2179. public function getEtag() {
  2180. return $this->etag;
  2181. }
  2182. public function setId($id) {
  2183. $this->id = $id;
  2184. }
  2185. public function getId() {
  2186. return $this->id;
  2187. }
  2188. public function setKind($kind) {
  2189. $this->kind = $kind;
  2190. }
  2191. public function getKind() {
  2192. return $this->kind;
  2193. }
  2194. public function setSnippet(Google_PlaylistItemSnippet $snippet) {
  2195. $this->snippet = $snippet;
  2196. }
  2197. public function getSnippet() {
  2198. return $this->snippet;
  2199. }
  2200. }
  2201. class Google_PlaylistItemContentDetails extends Google_Model {
  2202. public $endAt;
  2203. public $note;
  2204. public $startAt;
  2205. public $videoId;
  2206. public function setEndAt($endAt) {
  2207. $this->endAt = $endAt;
  2208. }
  2209. public function getEndAt() {
  2210. return $this->endAt;
  2211. }
  2212. public function setNote($note) {
  2213. $this->note = $note;
  2214. }
  2215. public function getNote() {
  2216. return $this->note;
  2217. }
  2218. public function setStartAt($startAt) {
  2219. $this->startAt = $startAt;
  2220. }
  2221. public function getStartAt() {
  2222. return $this->startAt;
  2223. }
  2224. public function setVideoId($videoId) {
  2225. $this->videoId = $videoId;
  2226. }
  2227. public function getVideoId() {
  2228. return $this->videoId;
  2229. }
  2230. }
  2231. class Google_PlaylistItemListResponse extends Google_Model {
  2232. public $etag;
  2233. protected $__itemsType = 'Google_PlaylistItem';
  2234. protected $__itemsDataType = 'array';
  2235. public $items;
  2236. public $kind;
  2237. public $nextPageToken;
  2238. protected $__pageInfoType = 'Google_PageInfo';
  2239. protected $__pageInfoDataType = '';
  2240. public $pageInfo;
  2241. public $prevPageToken;
  2242. public function setEtag($etag) {
  2243. $this->etag = $etag;
  2244. }
  2245. public function getEtag() {
  2246. return $this->etag;
  2247. }
  2248. public function setItems(/* array(Google_PlaylistItem) */ $items) {
  2249. $this->assertIsArray($items, 'Google_PlaylistItem', __METHOD__);
  2250. $this->items = $items;
  2251. }
  2252. public function getItems() {
  2253. return $this->items;
  2254. }
  2255. public function setKind($kind) {
  2256. $this->kind = $kind;
  2257. }
  2258. public function getKind() {
  2259. return $this->kind;
  2260. }
  2261. public function setNextPageToken($nextPageToken) {
  2262. $this->nextPageToken = $nextPageToken;
  2263. }
  2264. public function getNextPageToken() {
  2265. return $this->nextPageToken;
  2266. }
  2267. public function setPageInfo(Google_PageInfo $pageInfo) {
  2268. $this->pageInfo = $pageInfo;
  2269. }
  2270. public function getPageInfo() {
  2271. return $this->pageInfo;
  2272. }
  2273. public function setPrevPageToken($prevPageToken) {
  2274. $this->prevPageToken = $prevPageToken;
  2275. }
  2276. public function getPrevPageToken() {
  2277. return $this->prevPageToken;
  2278. }
  2279. }
  2280. class Google_PlaylistItemSnippet extends Google_Model {
  2281. public $channelId;
  2282. public $description;
  2283. public $playlistId;
  2284. public $position;
  2285. public $publishedAt;
  2286. protected $__resourceIdType = 'Google_ResourceId';
  2287. protected $__resourceIdDataType = '';
  2288. public $resourceId;
  2289. protected $__thumbnailsType = 'Google_Thumbnail';
  2290. protected $__thumbnailsDataType = 'map';
  2291. public $thumbnails;
  2292. public $title;
  2293. public function setChannelId($channelId) {
  2294. $this->channelId = $channelId;
  2295. }
  2296. public function getChannelId() {
  2297. return $this->channelId;
  2298. }
  2299. public function setDescription($description) {
  2300. $this->description = $description;
  2301. }
  2302. public function getDescription() {
  2303. return $this->description;
  2304. }
  2305. public function setPlaylistId($playlistId) {
  2306. $this->playlistId = $playlistId;
  2307. }
  2308. public function getPlaylistId() {
  2309. return $this->playlistId;
  2310. }
  2311. public function setPosition($position) {
  2312. $this->position = $position;
  2313. }
  2314. public function getPosition() {
  2315. return $this->position;
  2316. }
  2317. public function setPublishedAt($publishedAt) {
  2318. $this->publishedAt = $publishedAt;
  2319. }
  2320. public function getPublishedAt() {
  2321. return $this->publishedAt;
  2322. }
  2323. public function setResourceId(Google_ResourceId $resourceId) {
  2324. $this->resourceId = $resourceId;
  2325. }
  2326. public function getResourceId() {
  2327. return $this->resourceId;
  2328. }
  2329. public function setThumbnails(Google_Thumbnail $thumbnails) {
  2330. $this->thumbnails = $thumbnails;
  2331. }
  2332. public function getThumbnails() {
  2333. return $this->thumbnails;
  2334. }
  2335. public function setTitle($title) {
  2336. $this->title = $title;
  2337. }
  2338. public function getTitle() {
  2339. return $this->title;
  2340. }
  2341. }
  2342. class Google_PlaylistListResponse extends Google_Model {
  2343. public $etag;
  2344. protected $__itemsType = 'Google_Playlist';
  2345. protected $__itemsDataType = 'array';
  2346. public $items;
  2347. public $kind;
  2348. public $nextPageToken;
  2349. protected $__pageInfoType = 'Google_PageInfo';
  2350. protected $__pageInfoDataType = '';
  2351. public $pageInfo;
  2352. public $prevPageToken;
  2353. public function setEtag($etag) {
  2354. $this->etag = $etag;
  2355. }
  2356. public function getEtag() {
  2357. return $this->etag;
  2358. }
  2359. public function setItems(/* array(Google_Playlist) */ $items) {
  2360. $this->assertIsArray($items, 'Google_Playlist', __METHOD__);
  2361. $this->items = $items;
  2362. }
  2363. public function getItems() {
  2364. return $this->items;
  2365. }
  2366. public function setKind($kind) {
  2367. $this->kind = $kind;
  2368. }
  2369. public function getKind() {
  2370. return $this->kind;
  2371. }
  2372. public function setNextPageToken($nextPageToken) {
  2373. $this->nextPageToken = $nextPageToken;
  2374. }
  2375. public function getNextPageToken() {
  2376. return $this->nextPageToken;
  2377. }
  2378. public function setPageInfo(Google_PageInfo $pageInfo) {
  2379. $this->pageInfo = $pageInfo;
  2380. }
  2381. public function getPageInfo() {
  2382. return $this->pageInfo;
  2383. }
  2384. public function setPrevPageToken($prevPageToken) {
  2385. $this->prevPageToken = $prevPageToken;
  2386. }
  2387. public function getPrevPageToken() {
  2388. return $this->prevPageToken;
  2389. }
  2390. }
  2391. class Google_PlaylistPlayer extends Google_Model {
  2392. public $embedHtml;
  2393. public function setEmbedHtml($embedHtml) {
  2394. $this->embedHtml = $embedHtml;
  2395. }
  2396. public function getEmbedHtml() {
  2397. return $this->embedHtml;
  2398. }
  2399. }
  2400. class Google_PlaylistSnippet extends Google_Model {
  2401. public $channelId;
  2402. public $description;
  2403. public $publishedAt;
  2404. protected $__thumbnailsType = 'Google_Thumbnail';
  2405. protected $__thumbnailsDataType = 'map';
  2406. public $thumbnails;
  2407. public $title;
  2408. public function setChannelId($channelId) {
  2409. $this->channelId = $channelId;
  2410. }
  2411. public function getChannelId() {
  2412. return $this->channelId;
  2413. }
  2414. public function setDescription($description) {
  2415. $this->description = $description;
  2416. }
  2417. public function getDescription() {
  2418. return $this->description;
  2419. }
  2420. public function setPublishedAt($publishedAt) {
  2421. $this->publishedAt = $publishedAt;
  2422. }
  2423. public function getPublishedAt() {
  2424. return $this->publishedAt;
  2425. }
  2426. public function setThumbnails(Google_Thumbnail $thumbnails) {
  2427. $this->thumbnails = $thumbnails;
  2428. }
  2429. public function getThumbnails() {
  2430. return $this->thumbnails;
  2431. }
  2432. public function setTitle($title) {
  2433. $this->title = $title;
  2434. }
  2435. public function getTitle() {
  2436. return $this->title;
  2437. }
  2438. }
  2439. class Google_PlaylistStatus extends Google_Model {
  2440. public $privacyStatus;
  2441. public function setPrivacyStatus($privacyStatus) {
  2442. $this->privacyStatus = $privacyStatus;
  2443. }
  2444. public function getPrivacyStatus() {
  2445. return $this->privacyStatus;
  2446. }
  2447. }
  2448. class Google_ResourceId extends Google_Model {
  2449. public $channelId;
  2450. public $kind;
  2451. public $playlistId;
  2452. public $videoId;
  2453. public function setChannelId($channelId) {
  2454. $this->channelId = $channelId;
  2455. }
  2456. public function getChannelId() {
  2457. return $this->channelId;
  2458. }
  2459. public function setKind($kind) {
  2460. $this->kind = $kind;
  2461. }
  2462. public function getKind() {
  2463. return $this->kind;
  2464. }
  2465. public function setPlaylistId($playlistId) {
  2466. $this->playlistId = $playlistId;
  2467. }
  2468. public function getPlaylistId() {
  2469. return $this->playlistId;
  2470. }
  2471. public function setVideoId($videoId) {
  2472. $this->videoId = $videoId;
  2473. }
  2474. public function getVideoId() {
  2475. return $this->videoId;
  2476. }
  2477. }
  2478. class Google_SearchListResponse extends Google_Model {
  2479. public $etag;
  2480. protected $__itemsType = 'Google_SearchResult';
  2481. protected $__itemsDataType = 'array';
  2482. public $items;
  2483. public $kind;
  2484. public $nextPageToken;
  2485. protected $__pageInfoType = 'Google_PageInfo';
  2486. protected $__pageInfoDataType = '';
  2487. public $pageInfo;
  2488. public $prevPageToken;
  2489. public function setEtag($etag) {
  2490. $this->etag = $etag;
  2491. }
  2492. public function getEtag() {
  2493. return $this->etag;
  2494. }
  2495. public function setItems(/* array(Google_SearchResult) */ $items) {
  2496. $this->assertIsArray($items, 'Google_SearchResult', __METHOD__);
  2497. $this->items = $items;
  2498. }
  2499. public function getItems() {
  2500. return $this->items;
  2501. }
  2502. public function setKind($kind) {
  2503. $this->kind = $kind;
  2504. }
  2505. public function getKind() {
  2506. return $this->kind;
  2507. }
  2508. public function setNextPageToken($nextPageToken) {
  2509. $this->nextPageToken = $nextPageToken;
  2510. }
  2511. public function getNextPageToken() {
  2512. return $this->nextPageToken;
  2513. }
  2514. public function setPageInfo(Google_PageInfo $pageInfo) {
  2515. $this->pageInfo = $pageInfo;
  2516. }
  2517. public function getPageInfo() {
  2518. return $this->pageInfo;
  2519. }
  2520. public function setPrevPageToken($prevPageToken) {
  2521. $this->prevPageToken = $prevPageToken;
  2522. }
  2523. public function getPrevPageToken() {
  2524. return $this->prevPageToken;
  2525. }
  2526. }
  2527. class Google_SearchResult extends Google_Model {
  2528. public $etag;
  2529. protected $__idType = 'Google_ResourceId';
  2530. protected $__idDataType = '';
  2531. public $id;
  2532. public $kind;
  2533. protected $__snippetType = 'Google_SearchResultSnippet';
  2534. protected $__snippetDataType = '';
  2535. public $snippet;
  2536. public function setEtag($etag) {
  2537. $this->etag = $etag;
  2538. }
  2539. public function getEtag() {
  2540. return $this->etag;
  2541. }
  2542. public function setId(Google_ResourceId $id) {
  2543. $this->id = $id;
  2544. }
  2545. public function getId() {
  2546. return $this->id;
  2547. }
  2548. public function setKind($kind) {
  2549. $this->kind = $kind;
  2550. }
  2551. public function getKind() {
  2552. return $this->kind;
  2553. }
  2554. public function setSnippet(Google_SearchResultSnippet $snippet) {
  2555. $this->snippet = $snippet;
  2556. }
  2557. public function getSnippet() {
  2558. return $this->snippet;
  2559. }
  2560. }
  2561. class Google_SearchResultSnippet extends Google_Model {
  2562. public $channelId;
  2563. public $description;
  2564. public $publishedAt;
  2565. protected $__thumbnailsType = 'Google_Thumbnail';
  2566. protected $__thumbnailsDataType = 'map';
  2567. public $thumbnails;
  2568. public $title;
  2569. public function setChannelId($channelId) {
  2570. $this->channelId = $channelId;
  2571. }
  2572. public function getChannelId() {
  2573. return $this->channelId;
  2574. }
  2575. public function setDescription($description) {
  2576. $this->description = $description;
  2577. }
  2578. public function getDescription() {
  2579. return $this->description;
  2580. }
  2581. public function setPublishedAt($publishedAt) {
  2582. $this->publishedAt = $publishedAt;
  2583. }
  2584. public function getPublishedAt() {
  2585. return $this->publishedAt;
  2586. }
  2587. public function setThumbnails(Google_Thumbnail $thumbnails) {
  2588. $this->thumbnails = $thumbnails;
  2589. }
  2590. public function getThumbnails() {
  2591. return $this->thumbnails;
  2592. }
  2593. public function setTitle($title) {
  2594. $this->title = $title;
  2595. }
  2596. public function getTitle() {
  2597. return $this->title;
  2598. }
  2599. }
  2600. class Google_Subscription extends Google_Model {
  2601. protected $__contentDetailsType = 'Google_SubscriptionContentDetails';
  2602. protected $__contentDetailsDataType = '';
  2603. public $contentDetails;
  2604. public $etag;
  2605. public $id;
  2606. public $kind;
  2607. protected $__snippetType = 'Google_SubscriptionSnippet';
  2608. protected $__snippetDataType = '';
  2609. public $snippet;
  2610. public function setContentDetails(Google_SubscriptionContentDetails $contentDetails) {
  2611. $this->contentDetails = $contentDetails;
  2612. }
  2613. public function getContentDetails() {
  2614. return $this->contentDetails;
  2615. }
  2616. public function setEtag($etag) {
  2617. $this->etag = $etag;
  2618. }
  2619. public function getEtag() {
  2620. return $this->etag;
  2621. }
  2622. public function setId($id) {
  2623. $this->id = $id;
  2624. }
  2625. public function getId() {
  2626. return $this->id;
  2627. }
  2628. public function setKind($kind) {
  2629. $this->kind = $kind;
  2630. }
  2631. public function getKind() {
  2632. return $this->kind;
  2633. }
  2634. public function setSnippet(Google_SubscriptionSnippet $snippet) {
  2635. $this->snippet = $snippet;
  2636. }
  2637. public function getSnippet() {
  2638. return $this->snippet;
  2639. }
  2640. }
  2641. class Google_SubscriptionContentDetails extends Google_Model {
  2642. public $newItemCount;
  2643. public $totalItemCount;
  2644. public function setNewItemCount($newItemCount) {
  2645. $this->newItemCount = $newItemCount;
  2646. }
  2647. public function getNewItemCount() {
  2648. return $this->newItemCount;
  2649. }
  2650. public function setTotalItemCount($totalItemCount) {
  2651. $this->totalItemCount = $totalItemCount;
  2652. }
  2653. public function getTotalItemCount() {
  2654. return $this->totalItemCount;
  2655. }
  2656. }
  2657. class Google_SubscriptionListResponse extends Google_Model {
  2658. public $etag;
  2659. protected $__itemsType = 'Google_Subscription';
  2660. protected $__itemsDataType = 'array';
  2661. public $items;
  2662. public $kind;
  2663. public $nextPageToken;
  2664. protected $__pageInfoType = 'Google_PageInfo';
  2665. protected $__pageInfoDataType = '';
  2666. public $pageInfo;
  2667. public $prevPageToken;
  2668. public function setEtag($etag) {
  2669. $this->etag = $etag;
  2670. }
  2671. public function getEtag() {
  2672. return $this->etag;
  2673. }
  2674. public function setItems(/* array(Google_Subscription) */ $items) {
  2675. $this->assertIsArray($items, 'Google_Subscription', __METHOD__);
  2676. $this->items = $items;
  2677. }
  2678. public function getItems() {
  2679. return $this->items;
  2680. }
  2681. public function setKind($kind) {
  2682. $this->kind = $kind;
  2683. }
  2684. public function getKind() {
  2685. return $this->kind;
  2686. }
  2687. public function setNextPageToken($nextPageToken) {
  2688. $this->nextPageToken = $nextPageToken;
  2689. }
  2690. public function getNextPageToken() {
  2691. return $this->nextPageToken;
  2692. }
  2693. public function setPageInfo(Google_PageInfo $pageInfo) {
  2694. $this->pageInfo = $pageInfo;
  2695. }
  2696. public function getPageInfo() {
  2697. return $this->pageInfo;
  2698. }
  2699. public function setPrevPageToken($prevPageToken) {
  2700. $this->prevPageToken = $prevPageToken;
  2701. }
  2702. public function getPrevPageToken() {
  2703. return $this->prevPageToken;
  2704. }
  2705. }
  2706. class Google_SubscriptionSnippet extends Google_Model {
  2707. public $channelId;
  2708. public $description;
  2709. public $publishedAt;
  2710. protected $__resourceIdType = 'Google_ResourceId';
  2711. protected $__resourceIdDataType = '';
  2712. public $resourceId;
  2713. protected $__thumbnailsType = 'Google_Thumbnail';
  2714. protected $__thumbnailsDataType = 'map';
  2715. public $thumbnails;
  2716. public $title;
  2717. public function setChannelId($channelId) {
  2718. $this->channelId = $channelId;
  2719. }
  2720. public function getChannelId() {
  2721. return $this->channelId;
  2722. }
  2723. public function setDescription($description) {
  2724. $this->description = $description;
  2725. }
  2726. public function getDescription() {
  2727. return $this->description;
  2728. }
  2729. public function setPublishedAt($publishedAt) {
  2730. $this->publishedAt = $publishedAt;
  2731. }
  2732. public function getPublishedAt() {
  2733. return $this->publishedAt;
  2734. }
  2735. public function setResourceId(Google_ResourceId $resourceId) {
  2736. $this->resourceId = $resourceId;
  2737. }
  2738. public function getResourceId() {
  2739. return $this->resourceId;
  2740. }
  2741. public function setThumbnails(Google_Thumbnail $thumbnails) {
  2742. $this->thumbnails = $thumbnails;
  2743. }
  2744. public function getThumbnails() {
  2745. return $this->thumbnails;
  2746. }
  2747. public function setTitle($title) {
  2748. $this->title = $title;
  2749. }
  2750. public function getTitle() {
  2751. return $this->title;
  2752. }
  2753. }
  2754. class Google_Thumbnail extends Google_Model {
  2755. public $height;
  2756. public $url;
  2757. public $width;
  2758. public function setHeight($height) {
  2759. $this->height = $height;
  2760. }
  2761. public function getHeight() {
  2762. return $this->height;
  2763. }
  2764. public function setUrl($url) {
  2765. $this->url = $url;
  2766. }
  2767. public function getUrl() {
  2768. return $this->url;
  2769. }
  2770. public function setWidth($width) {
  2771. $this->width = $width;
  2772. }
  2773. public function getWidth() {
  2774. return $this->width;
  2775. }
  2776. }
  2777. class Google_Video extends Google_Model {
  2778. protected $__contentDetailsType = 'Google_VideoContentDetails';
  2779. protected $__contentDetailsDataType = '';
  2780. public $contentDetails;
  2781. public $etag;
  2782. protected $__fileDetailsType = 'Google_VideoFileDetails';
  2783. protected $__fileDetailsDataType = '';
  2784. public $fileDetails;
  2785. public $id;
  2786. public $kind;
  2787. protected $__monetizationDetailsType = 'Google_VideoMonetizationDetails';
  2788. protected $__monetizationDetailsDataType = '';
  2789. public $monetizationDetails;
  2790. protected $__playerType = 'Google_VideoPlayer';
  2791. protected $__playerDataType = '';
  2792. public $player;
  2793. protected $__processingDetailsType = 'Google_VideoProcessingDetails';
  2794. protected $__processingDetailsDataType = '';
  2795. public $processingDetails;
  2796. protected $__recordingDetailsType = 'Google_VideoRecordingDetails';
  2797. protected $__recordingDetailsDataType = '';
  2798. public $recordingDetails;
  2799. protected $__snippetType = 'Google_VideoSnippet';
  2800. protected $__snippetDataType = '';
  2801. public $snippet;
  2802. protected $__statisticsType = 'Google_VideoStatistics';
  2803. protected $__statisticsDataType = '';
  2804. public $statistics;
  2805. protected $__statusType = 'Google_VideoStatus';
  2806. protected $__statusDataType = '';
  2807. public $status;
  2808. protected $__suggestionsType = 'Google_VideoSuggestions';
  2809. protected $__suggestionsDataType = '';
  2810. public $suggestions;
  2811. protected $__topicDetailsType = 'Google_VideoTopicDetails';
  2812. protected $__topicDetailsDataType = '';
  2813. public $topicDetails;
  2814. public function setContentDetails(Google_VideoContentDetails $contentDetails) {
  2815. $this->contentDetails = $contentDetails;
  2816. }
  2817. public function getContentDetails() {
  2818. return $this->contentDetails;
  2819. }
  2820. public function setEtag($etag) {
  2821. $this->etag = $etag;
  2822. }
  2823. public function getEtag() {
  2824. return $this->etag;
  2825. }
  2826. public function setFileDetails(Google_VideoFileDetails $fileDetails) {
  2827. $this->fileDetails = $fileDetails;
  2828. }
  2829. public function getFileDetails() {
  2830. return $this->fileDetails;
  2831. }
  2832. public function setId($id) {
  2833. $this->id = $id;
  2834. }
  2835. public function getId() {
  2836. return $this->id;
  2837. }
  2838. public function setKind($kind) {
  2839. $this->kind = $kind;
  2840. }
  2841. public function getKind() {
  2842. return $this->kind;
  2843. }
  2844. public function setMonetizationDetails(Google_VideoMonetizationDetails $monetizationDetails) {
  2845. $this->monetizationDetails = $monetizationDetails;
  2846. }
  2847. public function getMonetizationDetails() {
  2848. return $this->monetizationDetails;
  2849. }
  2850. public function setPlayer(Google_VideoPlayer $player) {
  2851. $this->player = $player;
  2852. }
  2853. public function getPlayer() {
  2854. return $this->player;
  2855. }
  2856. public function setProcessingDetails(Google_VideoProcessingDetails $processingDetails) {
  2857. $this->processingDetails = $processingDetails;
  2858. }
  2859. public function getProcessingDetails() {
  2860. return $this->processingDetails;
  2861. }
  2862. public function setRecordingDetails(Google_VideoRecordingDetails $recordingDetails) {
  2863. $this->recordingDetails = $recordingDetails;
  2864. }
  2865. public function getRecordingDetails() {
  2866. return $this->recordingDetails;
  2867. }
  2868. public function setSnippet(Google_VideoSnippet $snippet) {
  2869. $this->snippet = $snippet;
  2870. }
  2871. public function getSnippet() {
  2872. return $this->snippet;
  2873. }
  2874. public function setStatistics(Google_VideoStatistics $statistics) {
  2875. $this->statistics = $statistics;
  2876. }
  2877. public function getStatistics() {
  2878. return $this->statistics;
  2879. }
  2880. public function setStatus(Google_VideoStatus $status) {
  2881. $this->status = $status;
  2882. }
  2883. public function getStatus() {
  2884. return $this->status;
  2885. }
  2886. public function setSuggestions(Google_VideoSuggestions $suggestions) {
  2887. $this->suggestions = $suggestions;
  2888. }
  2889. public function getSuggestions() {
  2890. return $this->suggestions;
  2891. }
  2892. public function setTopicDetails(Google_VideoTopicDetails $topicDetails) {
  2893. $this->topicDetails = $topicDetails;
  2894. }
  2895. public function getTopicDetails() {
  2896. return $this->topicDetails;
  2897. }
  2898. }
  2899. class Google_VideoCategory extends Google_Model {
  2900. public $etag;
  2901. public $id;
  2902. public $kind;
  2903. protected $__snippetType = 'Google_VideoCategorySnippet';
  2904. protected $__snippetDataType = '';
  2905. public $snippet;
  2906. public function setEtag($etag) {
  2907. $this->etag = $etag;
  2908. }
  2909. public function getEtag() {
  2910. return $this->etag;
  2911. }
  2912. public function setId($id) {
  2913. $this->id = $id;
  2914. }
  2915. public function getId() {
  2916. return $this->id;
  2917. }
  2918. public function setKind($kind) {
  2919. $this->kind = $kind;
  2920. }
  2921. public function getKind() {
  2922. return $this->kind;
  2923. }
  2924. public function setSnippet(Google_VideoCategorySnippet $snippet) {
  2925. $this->snippet = $snippet;
  2926. }
  2927. public function getSnippet() {
  2928. return $this->snippet;
  2929. }
  2930. }
  2931. class Google_VideoCategoryListResponse extends Google_Model {
  2932. public $etag;
  2933. protected $__itemsType = 'Google_VideoCategory';
  2934. protected $__itemsDataType = 'array';
  2935. public $items;
  2936. public $kind;
  2937. public function setEtag($etag) {
  2938. $this->etag = $etag;
  2939. }
  2940. public function getEtag() {
  2941. return $this->etag;
  2942. }
  2943. public function setItems(/* array(Google_VideoCategory) */ $items) {
  2944. $this->assertIsArray($items, 'Google_VideoCategory', __METHOD__);
  2945. $this->items = $items;
  2946. }
  2947. public function getItems() {
  2948. return $this->items;
  2949. }
  2950. public function setKind($kind) {
  2951. $this->kind = $kind;
  2952. }
  2953. public function getKind() {
  2954. return $this->kind;
  2955. }
  2956. }
  2957. class Google_VideoCategorySnippet extends Google_Model {
  2958. public $channelId;
  2959. public $title;
  2960. public function setChannelId($channelId) {
  2961. $this->channelId = $channelId;
  2962. }
  2963. public function getChannelId() {
  2964. return $this->channelId;
  2965. }
  2966. public function setTitle($title) {
  2967. $this->title = $title;
  2968. }
  2969. public function getTitle() {
  2970. return $this->title;
  2971. }
  2972. }
  2973. class Google_VideoContentDetails extends Google_Model {
  2974. public $caption;
  2975. public $definition;
  2976. public $dimension;
  2977. public $duration;
  2978. public $licensedContent;
  2979. protected $__regionRestrictionType = 'Google_VideoContentDetailsRegionRestriction';
  2980. protected $__regionRestrictionDataType = '';
  2981. public $regionRestriction;
  2982. public function setCaption($caption) {
  2983. $this->caption = $caption;
  2984. }
  2985. public function getCaption() {
  2986. return $this->caption;
  2987. }
  2988. public function setDefinition($definition) {
  2989. $this->definition = $definition;
  2990. }
  2991. public function getDefinition() {
  2992. return $this->definition;
  2993. }
  2994. public function setDimension($dimension) {
  2995. $this->dimension = $dimension;
  2996. }
  2997. public function getDimension() {
  2998. return $this->dimension;
  2999. }
  3000. public function setDuration($duration) {
  3001. $this->duration = $duration;
  3002. }
  3003. public function getDuration() {
  3004. return $this->duration;
  3005. }
  3006. public function setLicensedContent($licensedContent) {
  3007. $this->licensedContent = $licensedContent;
  3008. }
  3009. public function getLicensedContent() {
  3010. return $this->licensedContent;
  3011. }
  3012. public function setRegionRestriction(Google_VideoContentDetailsRegionRestriction $regionRestriction) {
  3013. $this->regionRestriction = $regionRestriction;
  3014. }
  3015. public function getRegionRestriction() {
  3016. return $this->regionRestriction;
  3017. }
  3018. }
  3019. class Google_VideoContentDetailsRegionRestriction extends Google_Model {
  3020. public $allowed;
  3021. public $blocked;
  3022. public function setAllowed(/* array(Google_string) */ $allowed) {
  3023. $this->assertIsArray($allowed, 'Google_string', __METHOD__);
  3024. $this->allowed = $allowed;
  3025. }
  3026. public function getAllowed() {
  3027. return $this->allowed;
  3028. }
  3029. public function setBlocked(/* array(Google_string) */ $blocked) {
  3030. $this->assertIsArray($blocked, 'Google_string', __METHOD__);
  3031. $this->blocked = $blocked;
  3032. }
  3033. public function getBlocked() {
  3034. return $this->blocked;
  3035. }
  3036. }
  3037. class Google_VideoFileDetails extends Google_Model {
  3038. protected $__audioStreamsType = 'Google_VideoFileDetailsAudioStream';
  3039. protected $__audioStreamsDataType = 'array';
  3040. public $audioStreams;
  3041. public $bitrateBps;
  3042. public $container;
  3043. public $creationTime;
  3044. public $durationMs;
  3045. public $fileName;
  3046. public $fileSize;
  3047. public $fileType;
  3048. protected $__recordingLocationType = 'Google_GeoPoint';
  3049. protected $__recordingLocationDataType = '';
  3050. public $recordingLocation;
  3051. protected $__videoStreamsType = 'Google_VideoFileDetailsVideoStream';
  3052. protected $__videoStreamsDataType = 'array';
  3053. public $videoStreams;
  3054. public function setAudioStreams(/* array(Google_VideoFileDetailsAudioStream) */ $audioStreams) {
  3055. $this->assertIsArray($audioStreams, 'Google_VideoFileDetailsAudioStream', __METHOD__);
  3056. $this->audioStreams = $audioStreams;
  3057. }
  3058. public function getAudioStreams() {
  3059. return $this->audioStreams;
  3060. }
  3061. public function setBitrateBps($bitrateBps) {
  3062. $this->bitrateBps = $bitrateBps;
  3063. }
  3064. public function getBitrateBps() {
  3065. return $this->bitrateBps;
  3066. }
  3067. public function setContainer($container) {
  3068. $this->container = $container;
  3069. }
  3070. public function getContainer() {
  3071. return $this->container;
  3072. }
  3073. public function setCreationTime($creationTime) {
  3074. $this->creationTime = $creationTime;
  3075. }
  3076. public function getCreationTime() {
  3077. return $this->creationTime;
  3078. }
  3079. public function setDurationMs($durationMs) {
  3080. $this->durationMs = $durationMs;
  3081. }
  3082. public function getDurationMs() {
  3083. return $this->durationMs;
  3084. }
  3085. public function setFileName($fileName) {
  3086. $this->fileName = $fileName;
  3087. }
  3088. public function getFileName() {
  3089. return $this->fileName;
  3090. }
  3091. public function setFileSize($fileSize) {
  3092. $this->fileSize = $fileSize;
  3093. }
  3094. public function getFileSize() {
  3095. return $this->fileSize;
  3096. }
  3097. public function setFileType($fileType) {
  3098. $this->fileType = $fileType;
  3099. }
  3100. public function getFileType() {
  3101. return $this->fileType;
  3102. }
  3103. public function setRecordingLocation(Google_GeoPoint $recordingLocation) {
  3104. $this->recordingLocation = $recordingLocation;
  3105. }
  3106. public function getRecordingLocation() {
  3107. return $this->recordingLocation;
  3108. }
  3109. public function setVideoStreams(/* array(Google_VideoFileDetailsVideoStream) */ $videoStreams) {
  3110. $this->assertIsArray($videoStreams, 'Google_VideoFileDetailsVideoStream', __METHOD__);
  3111. $this->videoStreams = $videoStreams;
  3112. }
  3113. public function getVideoStreams() {
  3114. return $this->videoStreams;
  3115. }
  3116. }
  3117. class Google_VideoFileDetailsAudioStream extends Google_Model {
  3118. public $bitrateBps;
  3119. public $channelCount;
  3120. public $codec;
  3121. public $vendor;
  3122. public function setBitrateBps($bitrateBps) {
  3123. $this->bitrateBps = $bitrateBps;
  3124. }
  3125. public function getBitrateBps() {
  3126. return $this->bitrateBps;
  3127. }
  3128. public function setChannelCount($channelCount) {
  3129. $this->channelCount = $channelCount;
  3130. }
  3131. public function getChannelCount() {
  3132. return $this->channelCount;
  3133. }
  3134. public function setCodec($codec) {
  3135. $this->codec = $codec;
  3136. }
  3137. public function getCodec() {
  3138. return $this->codec;
  3139. }
  3140. public function setVendor($vendor) {
  3141. $this->vendor = $vendor;
  3142. }
  3143. public function getVendor() {
  3144. return $this->vendor;
  3145. }
  3146. }
  3147. class Google_VideoFileDetailsVideoStream extends Google_Model {
  3148. public $aspectRatio;
  3149. public $bitrateBps;
  3150. public $codec;
  3151. public $frameRateFps;
  3152. public $heightPixels;
  3153. public $rotation;
  3154. public $vendor;
  3155. public $widthPixels;
  3156. public function setAspectRatio($aspectRatio) {
  3157. $this->aspectRatio = $aspectRatio;
  3158. }
  3159. public function getAspectRatio() {
  3160. return $this->aspectRatio;
  3161. }
  3162. public function setBitrateBps($bitrateBps) {
  3163. $this->bitrateBps = $bitrateBps;
  3164. }
  3165. public function getBitrateBps() {
  3166. return $this->bitrateBps;
  3167. }
  3168. public function setCodec($codec) {
  3169. $this->codec = $codec;
  3170. }
  3171. public function getCodec() {
  3172. return $this->codec;
  3173. }
  3174. public function setFrameRateFps($frameRateFps) {
  3175. $this->frameRateFps = $frameRateFps;
  3176. }
  3177. public function getFrameRateFps() {
  3178. return $this->frameRateFps;
  3179. }
  3180. public function setHeightPixels($heightPixels) {
  3181. $this->heightPixels = $heightPixels;
  3182. }
  3183. public function getHeightPixels() {
  3184. return $this->heightPixels;
  3185. }
  3186. public function setRotation($rotation) {
  3187. $this->rotation = $rotation;
  3188. }
  3189. public function getRotation() {
  3190. return $this->rotation;
  3191. }
  3192. public function setVendor($vendor) {
  3193. $this->vendor = $vendor;
  3194. }
  3195. public function getVendor() {
  3196. return $this->vendor;
  3197. }
  3198. public function setWidthPixels($widthPixels) {
  3199. $this->widthPixels = $widthPixels;
  3200. }
  3201. public function getWidthPixels() {
  3202. return $this->widthPixels;
  3203. }
  3204. }
  3205. class Google_VideoListResponse extends Google_Model {
  3206. public $etag;
  3207. protected $__itemsType = 'Google_Video';
  3208. protected $__itemsDataType = 'array';
  3209. public $items;
  3210. public $kind;
  3211. public function setEtag($etag) {
  3212. $this->etag = $etag;
  3213. }
  3214. public function getEtag() {
  3215. return $this->etag;
  3216. }
  3217. public function setItems(/* array(Google_Video) */ $items) {
  3218. $this->assertIsArray($items, 'Google_Video', __METHOD__);
  3219. $this->items = $items;
  3220. }
  3221. public function getItems() {
  3222. return $this->items;
  3223. }
  3224. public function setKind($kind) {
  3225. $this->kind = $kind;
  3226. }
  3227. public function getKind() {
  3228. return $this->kind;
  3229. }
  3230. }
  3231. class Google_VideoMonetizationDetails extends Google_Model {
  3232. protected $__accessType = 'Google_AccessPolicy';
  3233. protected $__accessDataType = '';
  3234. public $access;
  3235. public function setAccess(Google_AccessPolicy $access) {
  3236. $this->access = $access;
  3237. }
  3238. public function getAccess() {
  3239. return $this->access;
  3240. }
  3241. }
  3242. class Google_VideoPlayer extends Google_Model {
  3243. public $embedHtml;
  3244. public function setEmbedHtml($embedHtml) {
  3245. $this->embedHtml = $embedHtml;
  3246. }
  3247. public function getEmbedHtml() {
  3248. return $this->embedHtml;
  3249. }
  3250. }
  3251. class Google_VideoProcessingDetails extends Google_Model {
  3252. public $editorSuggestionsAvailability;
  3253. public $fileDetailsAvailability;
  3254. public $processingFailureReason;
  3255. public $processingIssuesAvailability;
  3256. protected $__processingProgressType = 'Google_VideoProcessingDetailsProcessingProgress';
  3257. protected $__processingProgressDataType = '';
  3258. public $processingProgress;
  3259. public $processingStatus;
  3260. public $tagSuggestionsAvailability;
  3261. public $thumbnailsAvailability;
  3262. public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) {
  3263. $this->editorSuggestionsAvailability = $editorSuggestionsAvailability;
  3264. }
  3265. public function getEditorSuggestionsAvailability() {
  3266. return $this->editorSuggestionsAvailability;
  3267. }
  3268. public function setFileDetailsAvailability($fileDetailsAvailability) {
  3269. $this->fileDetailsAvailability = $fileDetailsAvailability;
  3270. }
  3271. public function getFileDetailsAvailability() {
  3272. return $this->fileDetailsAvailability;
  3273. }
  3274. public function setProcessingFailureReason($processingFailureReason) {
  3275. $this->processingFailureReason = $processingFailureReason;
  3276. }
  3277. public function getProcessingFailureReason() {
  3278. return $this->processingFailureReason;
  3279. }
  3280. public function setProcessingIssuesAvailability($processingIssuesAvailability) {
  3281. $this->processingIssuesAvailability = $processingIssuesAvailability;
  3282. }
  3283. public function getProcessingIssuesAvailability() {
  3284. return $this->processingIssuesAvailability;
  3285. }
  3286. public function setProcessingProgress(Google_VideoProcessingDetailsProcessingProgress $processingProgress) {
  3287. $this->processingProgress = $processingProgress;
  3288. }
  3289. public function getProcessingProgress() {
  3290. return $this->processingProgress;
  3291. }
  3292. public function setProcessingStatus($processingStatus) {
  3293. $this->processingStatus = $processingStatus;
  3294. }
  3295. public function getProcessingStatus() {
  3296. return $this->processingStatus;
  3297. }
  3298. public function setTagSuggestionsAvailability($tagSuggestionsAvailability) {
  3299. $this->tagSuggestionsAvailability = $tagSuggestionsAvailability;
  3300. }
  3301. public function getTagSuggestionsAvailability() {
  3302. return $this->tagSuggestionsAvailability;
  3303. }
  3304. public function setThumbnailsAvailability($thumbnailsAvailability) {
  3305. $this->thumbnailsAvailability = $thumbnailsAvailability;
  3306. }
  3307. public function getThumbnailsAvailability() {
  3308. return $this->thumbnailsAvailability;
  3309. }
  3310. }
  3311. class Google_VideoProcessingDetailsProcessingProgress extends Google_Model {
  3312. public $partsProcessed;
  3313. public $partsTotal;
  3314. public $timeLeftMs;
  3315. public function setPartsProcessed($partsProcessed) {
  3316. $this->partsProcessed = $partsProcessed;
  3317. }
  3318. public function getPartsProcessed() {
  3319. return $this->partsProcessed;
  3320. }
  3321. public function setPartsTotal($partsTotal) {
  3322. $this->partsTotal = $partsTotal;
  3323. }
  3324. public function getPartsTotal() {
  3325. return $this->partsTotal;
  3326. }
  3327. public function setTimeLeftMs($timeLeftMs) {
  3328. $this->timeLeftMs = $timeLeftMs;
  3329. }
  3330. public function getTimeLeftMs() {
  3331. return $this->timeLeftMs;
  3332. }
  3333. }
  3334. class Google_VideoRecordingDetails extends Google_Model {
  3335. protected $__locationType = 'Google_GeoPoint';
  3336. protected $__locationDataType = '';
  3337. public $location;
  3338. public $locationDescription;
  3339. public $recordingDate;
  3340. public function setLocation(Google_GeoPoint $location) {
  3341. $this->location = $location;
  3342. }
  3343. public function getLocation() {
  3344. return $this->location;
  3345. }
  3346. public function setLocationDescription($locationDescription) {
  3347. $this->locationDescription = $locationDescription;
  3348. }
  3349. public function getLocationDescription() {
  3350. return $this->locationDescription;
  3351. }
  3352. public function setRecordingDate($recordingDate) {
  3353. $this->recordingDate = $recordingDate;
  3354. }
  3355. public function getRecordingDate() {
  3356. return $this->recordingDate;
  3357. }
  3358. }
  3359. class Google_VideoSnippet extends Google_Model {
  3360. public $categoryId;
  3361. public $channelId;
  3362. public $description;
  3363. public $publishedAt;
  3364. public $tags;
  3365. protected $__thumbnailsType = 'Google_Thumbnail';
  3366. protected $__thumbnailsDataType = 'map';
  3367. public $thumbnails;
  3368. public $title;
  3369. public function setCategoryId($categoryId) {
  3370. $this->categoryId = $categoryId;
  3371. }
  3372. public function getCategoryId() {
  3373. return $this->categoryId;
  3374. }
  3375. public function setChannelId($channelId) {
  3376. $this->channelId = $channelId;
  3377. }
  3378. public function getChannelId() {
  3379. return $this->channelId;
  3380. }
  3381. public function setDescription($description) {
  3382. $this->description = $description;
  3383. }
  3384. public function getDescription() {
  3385. return $this->description;
  3386. }
  3387. public function setPublishedAt($publishedAt) {
  3388. $this->publishedAt = $publishedAt;
  3389. }
  3390. public function getPublishedAt() {
  3391. return $this->publishedAt;
  3392. }
  3393. public function setTags(/* array(Google_string) */ $tags) {
  3394. $this->assertIsArray($tags, 'Google_string', __METHOD__);
  3395. $this->tags = $tags;
  3396. }
  3397. public function getTags() {
  3398. return $this->tags;
  3399. }
  3400. public function setThumbnails(Google_Thumbnail $thumbnails) {
  3401. $this->thumbnails = $thumbnails;
  3402. }
  3403. public function getThumbnails() {
  3404. return $this->thumbnails;
  3405. }
  3406. public function setTitle($title) {
  3407. $this->title = $title;
  3408. }
  3409. public function getTitle() {
  3410. return $this->title;
  3411. }
  3412. }
  3413. class Google_VideoStatistics extends Google_Model {
  3414. public $commentCount;
  3415. public $dislikeCount;
  3416. public $favoriteCount;
  3417. public $likeCount;
  3418. public $viewCount;
  3419. public function setCommentCount($commentCount) {
  3420. $this->commentCount = $commentCount;
  3421. }
  3422. public function getCommentCount() {
  3423. return $this->commentCount;
  3424. }
  3425. public function setDislikeCount($dislikeCount) {
  3426. $this->dislikeCount = $dislikeCount;
  3427. }
  3428. public function getDislikeCount() {
  3429. return $this->dislikeCount;
  3430. }
  3431. public function setFavoriteCount($favoriteCount) {
  3432. $this->favoriteCount = $favoriteCount;
  3433. }
  3434. public function getFavoriteCount() {
  3435. return $this->favoriteCount;
  3436. }
  3437. public function setLikeCount($likeCount) {
  3438. $this->likeCount = $likeCount;
  3439. }
  3440. public function getLikeCount() {
  3441. return $this->likeCount;
  3442. }
  3443. public function setViewCount($viewCount) {
  3444. $this->viewCount = $viewCount;
  3445. }
  3446. public function getViewCount() {
  3447. return $this->viewCount;
  3448. }
  3449. }
  3450. class Google_VideoStatus extends Google_Model {
  3451. public $embeddable;
  3452. public $failureReason;
  3453. public $license;
  3454. public $privacyStatus;
  3455. public $rejectionReason;
  3456. public $uploadStatus;
  3457. public function setEmbeddable($embeddable) {
  3458. $this->embeddable = $embeddable;
  3459. }
  3460. public function getEmbeddable() {
  3461. return $this->embeddable;
  3462. }
  3463. public function setFailureReason($failureReason) {
  3464. $this->failureReason = $failureReason;
  3465. }
  3466. public function getFailureReason() {
  3467. return $this->failureReason;
  3468. }
  3469. public function setLicense($license) {
  3470. $this->license = $license;
  3471. }
  3472. public function getLicense() {
  3473. return $this->license;
  3474. }
  3475. public function setPrivacyStatus($privacyStatus) {
  3476. $this->privacyStatus = $privacyStatus;
  3477. }
  3478. public function getPrivacyStatus() {
  3479. return $this->privacyStatus;
  3480. }
  3481. public function setRejectionReason($rejectionReason) {
  3482. $this->rejectionReason = $rejectionReason;
  3483. }
  3484. public function getRejectionReason() {
  3485. return $this->rejectionReason;
  3486. }
  3487. public function setUploadStatus($uploadStatus) {
  3488. $this->uploadStatus = $uploadStatus;
  3489. }
  3490. public function getUploadStatus() {
  3491. return $this->uploadStatus;
  3492. }
  3493. }
  3494. class Google_VideoSuggestions extends Google_Model {
  3495. public $editorSuggestions;
  3496. public $processingErrors;
  3497. public $processingHints;
  3498. public $processingWarnings;
  3499. protected $__tagSuggestionsType = 'Google_VideoSuggestionsTagSuggestion';
  3500. protected $__tagSuggestionsDataType = 'array';
  3501. public $tagSuggestions;
  3502. public function setEditorSuggestions(/* array(Google_string) */ $editorSuggestions) {
  3503. $this->assertIsArray($editorSuggestions, 'Google_string', __METHOD__);
  3504. $this->editorSuggestions = $editorSuggestions;
  3505. }
  3506. public function getEditorSuggestions() {
  3507. return $this->editorSuggestions;
  3508. }
  3509. public function setProcessingErrors(/* array(Google_string) */ $processingErrors) {
  3510. $this->assertIsArray($processingErrors, 'Google_string', __METHOD__);
  3511. $this->processingErrors = $processingErrors;
  3512. }
  3513. public function getProcessingErrors() {
  3514. return $this->processingErrors;
  3515. }
  3516. public function setProcessingHints(/* array(Google_string) */ $processingHints) {
  3517. $this->assertIsArray($processingHints, 'Google_string', __METHOD__);
  3518. $this->processingHints = $processingHints;
  3519. }
  3520. public function getProcessingHints() {
  3521. return $this->processingHints;
  3522. }
  3523. public function setProcessingWarnings(/* array(Google_string) */ $processingWarnings) {
  3524. $this->assertIsArray($processingWarnings, 'Google_string', __METHOD__);
  3525. $this->processingWarnings = $processingWarnings;
  3526. }
  3527. public function getProcessingWarnings() {
  3528. return $this->processingWarnings;
  3529. }
  3530. public function setTagSuggestions(/* array(Google_VideoSuggestionsTagSuggestion) */ $tagSuggestions) {
  3531. $this->assertIsArray($tagSuggestions, 'Google_VideoSuggestionsTagSuggestion', __METHOD__);
  3532. $this->tagSuggestions = $tagSuggestions;
  3533. }
  3534. public function getTagSuggestions() {
  3535. return $this->tagSuggestions;
  3536. }
  3537. }
  3538. class Google_VideoSuggestionsTagSuggestion extends Google_Model {
  3539. public $categoryRestricts;
  3540. public $tag;
  3541. public function setCategoryRestricts(/* array(Google_string) */ $categoryRestricts) {
  3542. $this->assertIsArray($categoryRestricts, 'Google_string', __METHOD__);
  3543. $this->categoryRestricts = $categoryRestricts;
  3544. }
  3545. public function getCategoryRestricts() {
  3546. return $this->categoryRestricts;
  3547. }
  3548. public function setTag($tag) {
  3549. $this->tag = $tag;
  3550. }
  3551. public function getTag() {
  3552. return $this->tag;
  3553. }
  3554. }
  3555. class Google_VideoTopicDetails extends Google_Model {
  3556. public $topicIds;
  3557. public function setTopicIds(/* array(Google_string) */ $topicIds) {
  3558. $this->assertIsArray($topicIds, 'Google_string', __METHOD__);
  3559. $this->topicIds = $topicIds;
  3560. }
  3561. public function getTopicIds() {
  3562. return $this->topicIds;
  3563. }
  3564. }