PageRenderTime 1006ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 2ms

/src/Google/Service/YouTube.php

https://github.com/leogaggl/pluspress
PHP | 9342 lines | 6755 code | 1247 blank | 1340 comment | 0 complexity | 941d89213233bddad91815aef593d343 MD5 | raw file
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for YouTube (v3).
  19. *
  20. * <p>
  21. * Programmatic access to YouTube features.
  22. * </p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/youtube/v3" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_YouTube extends Google_Service
  32. {
  33. /** Manage your YouTube account. */
  34. const YOUTUBE = "https://www.googleapis.com/auth/youtube";
  35. /** View your YouTube account. */
  36. const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly";
  37. /** Manage your YouTube videos. */
  38. const YOUTUBE_UPLOAD = "https://www.googleapis.com/auth/youtube.upload";
  39. /** View and manage your assets and associated content on YouTube. */
  40. const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner";
  41. /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */
  42. const YOUTUBEPARTNER_CHANNEL_AUDIT = "https://www.googleapis.com/auth/youtubepartner-channel-audit";
  43. public $activities;
  44. public $channelBanners;
  45. public $channels;
  46. public $guideCategories;
  47. public $liveBroadcasts;
  48. public $liveStreams;
  49. public $playlistItems;
  50. public $playlists;
  51. public $search;
  52. public $subscriptions;
  53. public $thumbnails;
  54. public $videoCategories;
  55. public $videos;
  56. public $watermarks;
  57. /**
  58. * Constructs the internal representation of the YouTube service.
  59. *
  60. * @param Google_Client $client
  61. */
  62. public function __construct(Google_Client $client)
  63. {
  64. parent::__construct($client);
  65. $this->servicePath = 'youtube/v3/';
  66. $this->version = 'v3';
  67. $this->serviceName = 'youtube';
  68. $this->activities = new Google_Service_YouTube_Activities_Resource(
  69. $this,
  70. $this->serviceName,
  71. 'activities',
  72. array(
  73. 'methods' => array(
  74. 'insert' => array(
  75. 'path' => 'activities',
  76. 'httpMethod' => 'POST',
  77. 'parameters' => array(
  78. 'part' => array(
  79. 'location' => 'query',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ),
  83. ),
  84. ),'list' => array(
  85. 'path' => 'activities',
  86. 'httpMethod' => 'GET',
  87. 'parameters' => array(
  88. 'part' => array(
  89. 'location' => 'query',
  90. 'type' => 'string',
  91. 'required' => true,
  92. ),
  93. 'regionCode' => array(
  94. 'location' => 'query',
  95. 'type' => 'string',
  96. ),
  97. 'publishedBefore' => array(
  98. 'location' => 'query',
  99. 'type' => 'string',
  100. ),
  101. 'channelId' => array(
  102. 'location' => 'query',
  103. 'type' => 'string',
  104. ),
  105. 'mine' => array(
  106. 'location' => 'query',
  107. 'type' => 'boolean',
  108. ),
  109. 'maxResults' => array(
  110. 'location' => 'query',
  111. 'type' => 'integer',
  112. ),
  113. 'pageToken' => array(
  114. 'location' => 'query',
  115. 'type' => 'string',
  116. ),
  117. 'home' => array(
  118. 'location' => 'query',
  119. 'type' => 'boolean',
  120. ),
  121. 'publishedAfter' => array(
  122. 'location' => 'query',
  123. 'type' => 'string',
  124. ),
  125. ),
  126. ),
  127. )
  128. )
  129. );
  130. $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource(
  131. $this,
  132. $this->serviceName,
  133. 'channelBanners',
  134. array(
  135. 'methods' => array(
  136. 'insert' => array(
  137. 'path' => 'channelBanners/insert',
  138. 'httpMethod' => 'POST',
  139. 'parameters' => array(
  140. 'onBehalfOfContentOwner' => array(
  141. 'location' => 'query',
  142. 'type' => 'string',
  143. ),
  144. ),
  145. ),
  146. )
  147. )
  148. );
  149. $this->channels = new Google_Service_YouTube_Channels_Resource(
  150. $this,
  151. $this->serviceName,
  152. 'channels',
  153. array(
  154. 'methods' => array(
  155. 'list' => array(
  156. 'path' => 'channels',
  157. 'httpMethod' => 'GET',
  158. 'parameters' => array(
  159. 'part' => array(
  160. 'location' => 'query',
  161. 'type' => 'string',
  162. 'required' => true,
  163. ),
  164. 'managedByMe' => array(
  165. 'location' => 'query',
  166. 'type' => 'boolean',
  167. ),
  168. 'onBehalfOfContentOwner' => array(
  169. 'location' => 'query',
  170. 'type' => 'string',
  171. ),
  172. 'forUsername' => array(
  173. 'location' => 'query',
  174. 'type' => 'string',
  175. ),
  176. 'mine' => array(
  177. 'location' => 'query',
  178. 'type' => 'boolean',
  179. ),
  180. 'maxResults' => array(
  181. 'location' => 'query',
  182. 'type' => 'integer',
  183. ),
  184. 'id' => array(
  185. 'location' => 'query',
  186. 'type' => 'string',
  187. ),
  188. 'pageToken' => array(
  189. 'location' => 'query',
  190. 'type' => 'string',
  191. ),
  192. 'mySubscribers' => array(
  193. 'location' => 'query',
  194. 'type' => 'boolean',
  195. ),
  196. 'categoryId' => array(
  197. 'location' => 'query',
  198. 'type' => 'string',
  199. ),
  200. ),
  201. ),'update' => array(
  202. 'path' => 'channels',
  203. 'httpMethod' => 'PUT',
  204. 'parameters' => array(
  205. 'part' => array(
  206. 'location' => 'query',
  207. 'type' => 'string',
  208. 'required' => true,
  209. ),
  210. 'onBehalfOfContentOwner' => array(
  211. 'location' => 'query',
  212. 'type' => 'string',
  213. ),
  214. ),
  215. ),
  216. )
  217. )
  218. );
  219. $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource(
  220. $this,
  221. $this->serviceName,
  222. 'guideCategories',
  223. array(
  224. 'methods' => array(
  225. 'list' => array(
  226. 'path' => 'guideCategories',
  227. 'httpMethod' => 'GET',
  228. 'parameters' => array(
  229. 'part' => array(
  230. 'location' => 'query',
  231. 'type' => 'string',
  232. 'required' => true,
  233. ),
  234. 'regionCode' => array(
  235. 'location' => 'query',
  236. 'type' => 'string',
  237. ),
  238. 'id' => array(
  239. 'location' => 'query',
  240. 'type' => 'string',
  241. ),
  242. 'hl' => array(
  243. 'location' => 'query',
  244. 'type' => 'string',
  245. ),
  246. ),
  247. ),
  248. )
  249. )
  250. );
  251. $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource(
  252. $this,
  253. $this->serviceName,
  254. 'liveBroadcasts',
  255. array(
  256. 'methods' => array(
  257. 'bind' => array(
  258. 'path' => 'liveBroadcasts/bind',
  259. 'httpMethod' => 'POST',
  260. 'parameters' => array(
  261. 'id' => array(
  262. 'location' => 'query',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ),
  266. 'part' => array(
  267. 'location' => 'query',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ),
  271. 'onBehalfOfContentOwner' => array(
  272. 'location' => 'query',
  273. 'type' => 'string',
  274. ),
  275. 'streamId' => array(
  276. 'location' => 'query',
  277. 'type' => 'string',
  278. ),
  279. ),
  280. ),'control' => array(
  281. 'path' => 'liveBroadcasts/control',
  282. 'httpMethod' => 'POST',
  283. 'parameters' => array(
  284. 'id' => array(
  285. 'location' => 'query',
  286. 'type' => 'string',
  287. 'required' => true,
  288. ),
  289. 'part' => array(
  290. 'location' => 'query',
  291. 'type' => 'string',
  292. 'required' => true,
  293. ),
  294. 'onBehalfOfContentOwner' => array(
  295. 'location' => 'query',
  296. 'type' => 'string',
  297. ),
  298. 'displaySlate' => array(
  299. 'location' => 'query',
  300. 'type' => 'boolean',
  301. ),
  302. 'offsetTimeMs' => array(
  303. 'location' => 'query',
  304. 'type' => 'string',
  305. ),
  306. 'walltime' => array(
  307. 'location' => 'query',
  308. 'type' => 'string',
  309. ),
  310. ),
  311. ),'delete' => array(
  312. 'path' => 'liveBroadcasts',
  313. 'httpMethod' => 'DELETE',
  314. 'parameters' => array(
  315. 'id' => array(
  316. 'location' => 'query',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ),
  320. 'onBehalfOfContentOwner' => array(
  321. 'location' => 'query',
  322. 'type' => 'string',
  323. ),
  324. ),
  325. ),'insert' => array(
  326. 'path' => 'liveBroadcasts',
  327. 'httpMethod' => 'POST',
  328. 'parameters' => array(
  329. 'part' => array(
  330. 'location' => 'query',
  331. 'type' => 'string',
  332. 'required' => true,
  333. ),
  334. 'onBehalfOfContentOwner' => array(
  335. 'location' => 'query',
  336. 'type' => 'string',
  337. ),
  338. ),
  339. ),'list' => array(
  340. 'path' => 'liveBroadcasts',
  341. 'httpMethod' => 'GET',
  342. 'parameters' => array(
  343. 'part' => array(
  344. 'location' => 'query',
  345. 'type' => 'string',
  346. 'required' => true,
  347. ),
  348. 'broadcastStatus' => array(
  349. 'location' => 'query',
  350. 'type' => 'string',
  351. ),
  352. 'mine' => array(
  353. 'location' => 'query',
  354. 'type' => 'boolean',
  355. ),
  356. 'maxResults' => array(
  357. 'location' => 'query',
  358. 'type' => 'integer',
  359. ),
  360. 'pageToken' => array(
  361. 'location' => 'query',
  362. 'type' => 'string',
  363. ),
  364. 'id' => array(
  365. 'location' => 'query',
  366. 'type' => 'string',
  367. ),
  368. ),
  369. ),'transition' => array(
  370. 'path' => 'liveBroadcasts/transition',
  371. 'httpMethod' => 'POST',
  372. 'parameters' => array(
  373. 'broadcastStatus' => array(
  374. 'location' => 'query',
  375. 'type' => 'string',
  376. 'required' => true,
  377. ),
  378. 'id' => array(
  379. 'location' => 'query',
  380. 'type' => 'string',
  381. 'required' => true,
  382. ),
  383. 'part' => array(
  384. 'location' => 'query',
  385. 'type' => 'string',
  386. 'required' => true,
  387. ),
  388. 'onBehalfOfContentOwner' => array(
  389. 'location' => 'query',
  390. 'type' => 'string',
  391. ),
  392. ),
  393. ),'update' => array(
  394. 'path' => 'liveBroadcasts',
  395. 'httpMethod' => 'PUT',
  396. 'parameters' => array(
  397. 'part' => array(
  398. 'location' => 'query',
  399. 'type' => 'string',
  400. 'required' => true,
  401. ),
  402. 'onBehalfOfContentOwner' => array(
  403. 'location' => 'query',
  404. 'type' => 'string',
  405. ),
  406. ),
  407. ),
  408. )
  409. )
  410. );
  411. $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource(
  412. $this,
  413. $this->serviceName,
  414. 'liveStreams',
  415. array(
  416. 'methods' => array(
  417. 'delete' => array(
  418. 'path' => 'liveStreams',
  419. 'httpMethod' => 'DELETE',
  420. 'parameters' => array(
  421. 'id' => array(
  422. 'location' => 'query',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ),
  426. ),
  427. ),'insert' => array(
  428. 'path' => 'liveStreams',
  429. 'httpMethod' => 'POST',
  430. 'parameters' => array(
  431. 'part' => array(
  432. 'location' => 'query',
  433. 'type' => 'string',
  434. 'required' => true,
  435. ),
  436. ),
  437. ),'list' => array(
  438. 'path' => 'liveStreams',
  439. 'httpMethod' => 'GET',
  440. 'parameters' => array(
  441. 'part' => array(
  442. 'location' => 'query',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ),
  446. 'pageToken' => array(
  447. 'location' => 'query',
  448. 'type' => 'string',
  449. ),
  450. 'id' => array(
  451. 'location' => 'query',
  452. 'type' => 'string',
  453. ),
  454. 'maxResults' => array(
  455. 'location' => 'query',
  456. 'type' => 'integer',
  457. ),
  458. 'mine' => array(
  459. 'location' => 'query',
  460. 'type' => 'boolean',
  461. ),
  462. ),
  463. ),'update' => array(
  464. 'path' => 'liveStreams',
  465. 'httpMethod' => 'PUT',
  466. 'parameters' => array(
  467. 'part' => array(
  468. 'location' => 'query',
  469. 'type' => 'string',
  470. 'required' => true,
  471. ),
  472. ),
  473. ),
  474. )
  475. )
  476. );
  477. $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource(
  478. $this,
  479. $this->serviceName,
  480. 'playlistItems',
  481. array(
  482. 'methods' => array(
  483. 'delete' => array(
  484. 'path' => 'playlistItems',
  485. 'httpMethod' => 'DELETE',
  486. 'parameters' => array(
  487. 'id' => array(
  488. 'location' => 'query',
  489. 'type' => 'string',
  490. 'required' => true,
  491. ),
  492. ),
  493. ),'insert' => array(
  494. 'path' => 'playlistItems',
  495. 'httpMethod' => 'POST',
  496. 'parameters' => array(
  497. 'part' => array(
  498. 'location' => 'query',
  499. 'type' => 'string',
  500. 'required' => true,
  501. ),
  502. 'onBehalfOfContentOwner' => array(
  503. 'location' => 'query',
  504. 'type' => 'string',
  505. ),
  506. ),
  507. ),'list' => array(
  508. 'path' => 'playlistItems',
  509. 'httpMethod' => 'GET',
  510. 'parameters' => array(
  511. 'part' => array(
  512. 'location' => 'query',
  513. 'type' => 'string',
  514. 'required' => true,
  515. ),
  516. 'onBehalfOfContentOwner' => array(
  517. 'location' => 'query',
  518. 'type' => 'string',
  519. ),
  520. 'playlistId' => array(
  521. 'location' => 'query',
  522. 'type' => 'string',
  523. ),
  524. 'videoId' => array(
  525. 'location' => 'query',
  526. 'type' => 'string',
  527. ),
  528. 'maxResults' => array(
  529. 'location' => 'query',
  530. 'type' => 'integer',
  531. ),
  532. 'pageToken' => array(
  533. 'location' => 'query',
  534. 'type' => 'string',
  535. ),
  536. 'id' => array(
  537. 'location' => 'query',
  538. 'type' => 'string',
  539. ),
  540. ),
  541. ),'update' => array(
  542. 'path' => 'playlistItems',
  543. 'httpMethod' => 'PUT',
  544. 'parameters' => array(
  545. 'part' => array(
  546. 'location' => 'query',
  547. 'type' => 'string',
  548. 'required' => true,
  549. ),
  550. ),
  551. ),
  552. )
  553. )
  554. );
  555. $this->playlists = new Google_Service_YouTube_Playlists_Resource(
  556. $this,
  557. $this->serviceName,
  558. 'playlists',
  559. array(
  560. 'methods' => array(
  561. 'delete' => array(
  562. 'path' => 'playlists',
  563. 'httpMethod' => 'DELETE',
  564. 'parameters' => array(
  565. 'id' => array(
  566. 'location' => 'query',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. 'onBehalfOfContentOwner' => array(
  571. 'location' => 'query',
  572. 'type' => 'string',
  573. ),
  574. ),
  575. ),'insert' => array(
  576. 'path' => 'playlists',
  577. 'httpMethod' => 'POST',
  578. 'parameters' => array(
  579. 'part' => array(
  580. 'location' => 'query',
  581. 'type' => 'string',
  582. 'required' => true,
  583. ),
  584. 'onBehalfOfContentOwnerChannel' => array(
  585. 'location' => 'query',
  586. 'type' => 'string',
  587. ),
  588. 'onBehalfOfContentOwner' => array(
  589. 'location' => 'query',
  590. 'type' => 'string',
  591. ),
  592. ),
  593. ),'list' => array(
  594. 'path' => 'playlists',
  595. 'httpMethod' => 'GET',
  596. 'parameters' => array(
  597. 'part' => array(
  598. 'location' => 'query',
  599. 'type' => 'string',
  600. 'required' => true,
  601. ),
  602. 'onBehalfOfContentOwner' => array(
  603. 'location' => 'query',
  604. 'type' => 'string',
  605. ),
  606. 'onBehalfOfContentOwnerChannel' => array(
  607. 'location' => 'query',
  608. 'type' => 'string',
  609. ),
  610. 'channelId' => array(
  611. 'location' => 'query',
  612. 'type' => 'string',
  613. ),
  614. 'mine' => array(
  615. 'location' => 'query',
  616. 'type' => 'boolean',
  617. ),
  618. 'maxResults' => array(
  619. 'location' => 'query',
  620. 'type' => 'integer',
  621. ),
  622. 'pageToken' => array(
  623. 'location' => 'query',
  624. 'type' => 'string',
  625. ),
  626. 'id' => array(
  627. 'location' => 'query',
  628. 'type' => 'string',
  629. ),
  630. ),
  631. ),'update' => array(
  632. 'path' => 'playlists',
  633. 'httpMethod' => 'PUT',
  634. 'parameters' => array(
  635. 'part' => array(
  636. 'location' => 'query',
  637. 'type' => 'string',
  638. 'required' => true,
  639. ),
  640. 'onBehalfOfContentOwner' => array(
  641. 'location' => 'query',
  642. 'type' => 'string',
  643. ),
  644. ),
  645. ),
  646. )
  647. )
  648. );
  649. $this->search = new Google_Service_YouTube_Search_Resource(
  650. $this,
  651. $this->serviceName,
  652. 'search',
  653. array(
  654. 'methods' => array(
  655. 'list' => array(
  656. 'path' => 'search',
  657. 'httpMethod' => 'GET',
  658. 'parameters' => array(
  659. 'part' => array(
  660. 'location' => 'query',
  661. 'type' => 'string',
  662. 'required' => true,
  663. ),
  664. 'eventType' => array(
  665. 'location' => 'query',
  666. 'type' => 'string',
  667. ),
  668. 'channelId' => array(
  669. 'location' => 'query',
  670. 'type' => 'string',
  671. ),
  672. 'videoSyndicated' => array(
  673. 'location' => 'query',
  674. 'type' => 'string',
  675. ),
  676. 'channelType' => array(
  677. 'location' => 'query',
  678. 'type' => 'string',
  679. ),
  680. 'videoCaption' => array(
  681. 'location' => 'query',
  682. 'type' => 'string',
  683. ),
  684. 'publishedAfter' => array(
  685. 'location' => 'query',
  686. 'type' => 'string',
  687. ),
  688. 'onBehalfOfContentOwner' => array(
  689. 'location' => 'query',
  690. 'type' => 'string',
  691. ),
  692. 'pageToken' => array(
  693. 'location' => 'query',
  694. 'type' => 'string',
  695. ),
  696. 'forContentOwner' => array(
  697. 'location' => 'query',
  698. 'type' => 'boolean',
  699. ),
  700. 'regionCode' => array(
  701. 'location' => 'query',
  702. 'type' => 'string',
  703. ),
  704. 'videoType' => array(
  705. 'location' => 'query',
  706. 'type' => 'string',
  707. ),
  708. 'type' => array(
  709. 'location' => 'query',
  710. 'type' => 'string',
  711. ),
  712. 'topicId' => array(
  713. 'location' => 'query',
  714. 'type' => 'string',
  715. ),
  716. 'publishedBefore' => array(
  717. 'location' => 'query',
  718. 'type' => 'string',
  719. ),
  720. 'videoDimension' => array(
  721. 'location' => 'query',
  722. 'type' => 'string',
  723. ),
  724. 'videoLicense' => array(
  725. 'location' => 'query',
  726. 'type' => 'string',
  727. ),
  728. 'maxResults' => array(
  729. 'location' => 'query',
  730. 'type' => 'integer',
  731. ),
  732. 'relatedToVideoId' => array(
  733. 'location' => 'query',
  734. 'type' => 'string',
  735. ),
  736. 'videoDefinition' => array(
  737. 'location' => 'query',
  738. 'type' => 'string',
  739. ),
  740. 'videoDuration' => array(
  741. 'location' => 'query',
  742. 'type' => 'string',
  743. ),
  744. 'forMine' => array(
  745. 'location' => 'query',
  746. 'type' => 'boolean',
  747. ),
  748. 'q' => array(
  749. 'location' => 'query',
  750. 'type' => 'string',
  751. ),
  752. 'safeSearch' => array(
  753. 'location' => 'query',
  754. 'type' => 'string',
  755. ),
  756. 'videoEmbeddable' => array(
  757. 'location' => 'query',
  758. 'type' => 'string',
  759. ),
  760. 'videoCategoryId' => array(
  761. 'location' => 'query',
  762. 'type' => 'string',
  763. ),
  764. 'order' => array(
  765. 'location' => 'query',
  766. 'type' => 'string',
  767. ),
  768. ),
  769. ),
  770. )
  771. )
  772. );
  773. $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource(
  774. $this,
  775. $this->serviceName,
  776. 'subscriptions',
  777. array(
  778. 'methods' => array(
  779. 'delete' => array(
  780. 'path' => 'subscriptions',
  781. 'httpMethod' => 'DELETE',
  782. 'parameters' => array(
  783. 'id' => array(
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. 'required' => true,
  787. ),
  788. ),
  789. ),'insert' => array(
  790. 'path' => 'subscriptions',
  791. 'httpMethod' => 'POST',
  792. 'parameters' => array(
  793. 'part' => array(
  794. 'location' => 'query',
  795. 'type' => 'string',
  796. 'required' => true,
  797. ),
  798. ),
  799. ),'list' => array(
  800. 'path' => 'subscriptions',
  801. 'httpMethod' => 'GET',
  802. 'parameters' => array(
  803. 'part' => array(
  804. 'location' => 'query',
  805. 'type' => 'string',
  806. 'required' => true,
  807. ),
  808. 'onBehalfOfContentOwner' => array(
  809. 'location' => 'query',
  810. 'type' => 'string',
  811. ),
  812. 'onBehalfOfContentOwnerChannel' => array(
  813. 'location' => 'query',
  814. 'type' => 'string',
  815. ),
  816. 'channelId' => array(
  817. 'location' => 'query',
  818. 'type' => 'string',
  819. ),
  820. 'mine' => array(
  821. 'location' => 'query',
  822. 'type' => 'boolean',
  823. ),
  824. 'maxResults' => array(
  825. 'location' => 'query',
  826. 'type' => 'integer',
  827. ),
  828. 'forChannelId' => array(
  829. 'location' => 'query',
  830. 'type' => 'string',
  831. ),
  832. 'pageToken' => array(
  833. 'location' => 'query',
  834. 'type' => 'string',
  835. ),
  836. 'mySubscribers' => array(
  837. 'location' => 'query',
  838. 'type' => 'boolean',
  839. ),
  840. 'order' => array(
  841. 'location' => 'query',
  842. 'type' => 'string',
  843. ),
  844. 'id' => array(
  845. 'location' => 'query',
  846. 'type' => 'string',
  847. ),
  848. ),
  849. ),
  850. )
  851. )
  852. );
  853. $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource(
  854. $this,
  855. $this->serviceName,
  856. 'thumbnails',
  857. array(
  858. 'methods' => array(
  859. 'set' => array(
  860. 'path' => 'thumbnails/set',
  861. 'httpMethod' => 'POST',
  862. 'parameters' => array(
  863. 'videoId' => array(
  864. 'location' => 'query',
  865. 'type' => 'string',
  866. 'required' => true,
  867. ),
  868. 'onBehalfOfContentOwner' => array(
  869. 'location' => 'query',
  870. 'type' => 'string',
  871. ),
  872. ),
  873. ),
  874. )
  875. )
  876. );
  877. $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource(
  878. $this,
  879. $this->serviceName,
  880. 'videoCategories',
  881. array(
  882. 'methods' => array(
  883. 'list' => array(
  884. 'path' => 'videoCategories',
  885. 'httpMethod' => 'GET',
  886. 'parameters' => array(
  887. 'part' => array(
  888. 'location' => 'query',
  889. 'type' => 'string',
  890. 'required' => true,
  891. ),
  892. 'regionCode' => array(
  893. 'location' => 'query',
  894. 'type' => 'string',
  895. ),
  896. 'id' => array(
  897. 'location' => 'query',
  898. 'type' => 'string',
  899. ),
  900. 'hl' => array(
  901. 'location' => 'query',
  902. 'type' => 'string',
  903. ),
  904. ),
  905. ),
  906. )
  907. )
  908. );
  909. $this->videos = new Google_Service_YouTube_Videos_Resource(
  910. $this,
  911. $this->serviceName,
  912. 'videos',
  913. array(
  914. 'methods' => array(
  915. 'delete' => array(
  916. 'path' => 'videos',
  917. 'httpMethod' => 'DELETE',
  918. 'parameters' => array(
  919. 'id' => array(
  920. 'location' => 'query',
  921. 'type' => 'string',
  922. 'required' => true,
  923. ),
  924. 'onBehalfOfContentOwner' => array(
  925. 'location' => 'query',
  926. 'type' => 'string',
  927. ),
  928. ),
  929. ),'getRating' => array(
  930. 'path' => 'videos/getRating',
  931. 'httpMethod' => 'GET',
  932. 'parameters' => array(
  933. 'id' => array(
  934. 'location' => 'query',
  935. 'type' => 'string',
  936. 'required' => true,
  937. ),
  938. 'onBehalfOfContentOwner' => array(
  939. 'location' => 'query',
  940. 'type' => 'string',
  941. ),
  942. ),
  943. ),'insert' => array(
  944. 'path' => 'videos',
  945. 'httpMethod' => 'POST',
  946. 'parameters' => array(
  947. 'part' => array(
  948. 'location' => 'query',
  949. 'type' => 'string',
  950. 'required' => true,
  951. ),
  952. 'onBehalfOfContentOwner' => array(
  953. 'location' => 'query',
  954. 'type' => 'string',
  955. ),
  956. 'stabilize' => array(
  957. 'location' => 'query',
  958. 'type' => 'boolean',
  959. ),
  960. 'onBehalfOfContentOwnerChannel' => array(
  961. 'location' => 'query',
  962. 'type' => 'string',
  963. ),
  964. 'notifySubscribers' => array(
  965. 'location' => 'query',
  966. 'type' => 'boolean',
  967. ),
  968. 'autoLevels' => array(
  969. 'location' => 'query',
  970. 'type' => 'boolean',
  971. ),
  972. ),
  973. ),'list' => array(
  974. 'path' => 'videos',
  975. 'httpMethod' => 'GET',
  976. 'parameters' => array(
  977. 'part' => array(
  978. 'location' => 'query',
  979. 'type' => 'string',
  980. 'required' => true,
  981. ),
  982. 'onBehalfOfContentOwner' => array(
  983. 'location' => 'query',
  984. 'type' => 'string',
  985. ),
  986. 'regionCode' => array(
  987. 'location' => 'query',
  988. 'type' => 'string',
  989. ),
  990. 'locale' => array(
  991. 'location' => 'query',
  992. 'type' => 'string',
  993. ),
  994. 'videoCategoryId' => array(
  995. 'location' => 'query',
  996. 'type' => 'string',
  997. ),
  998. 'chart' => array(
  999. 'location' => 'query',
  1000. 'type' => 'string',
  1001. ),
  1002. 'maxResults' => array(
  1003. 'location' => 'query',
  1004. 'type' => 'integer',
  1005. ),
  1006. 'pageToken' => array(
  1007. 'location' => 'query',
  1008. 'type' => 'string',
  1009. ),
  1010. 'myRating' => array(
  1011. 'location' => 'query',
  1012. 'type' => 'string',
  1013. ),
  1014. 'id' => array(
  1015. 'location' => 'query',
  1016. 'type' => 'string',
  1017. ),
  1018. ),
  1019. ),'rate' => array(
  1020. 'path' => 'videos/rate',
  1021. 'httpMethod' => 'POST',
  1022. 'parameters' => array(
  1023. 'id' => array(
  1024. 'location' => 'query',
  1025. 'type' => 'string',
  1026. 'required' => true,
  1027. ),
  1028. 'rating' => array(
  1029. 'location' => 'query',
  1030. 'type' => 'string',
  1031. 'required' => true,
  1032. ),
  1033. 'onBehalfOfContentOwner' => array(
  1034. 'location' => 'query',
  1035. 'type' => 'string',
  1036. ),
  1037. ),
  1038. ),'update' => array(
  1039. 'path' => 'videos',
  1040. 'httpMethod' => 'PUT',
  1041. 'parameters' => array(
  1042. 'part' => array(
  1043. 'location' => 'query',
  1044. 'type' => 'string',
  1045. 'required' => true,
  1046. ),
  1047. 'onBehalfOfContentOwner' => array(
  1048. 'location' => 'query',
  1049. 'type' => 'string',
  1050. ),
  1051. ),
  1052. ),
  1053. )
  1054. )
  1055. );
  1056. $this->watermarks = new Google_Service_YouTube_Watermarks_Resource(
  1057. $this,
  1058. $this->serviceName,
  1059. 'watermarks',
  1060. array(
  1061. 'methods' => array(
  1062. 'set' => array(
  1063. 'path' => 'watermarks/set',
  1064. 'httpMethod' => 'POST',
  1065. 'parameters' => array(
  1066. 'channelId' => array(
  1067. 'location' => 'query',
  1068. 'type' => 'string',
  1069. 'required' => true,
  1070. ),
  1071. 'onBehalfOfContentOwner' => array(
  1072. 'location' => 'query',
  1073. 'type' => 'string',
  1074. ),
  1075. ),
  1076. ),'unset' => array(
  1077. 'path' => 'watermarks/unset',
  1078. 'httpMethod' => 'POST',
  1079. 'parameters' => array(
  1080. 'channelId' => array(
  1081. 'location' => 'query',
  1082. 'type' => 'string',
  1083. 'required' => true,
  1084. ),
  1085. 'onBehalfOfContentOwner' => array(
  1086. 'location' => 'query',
  1087. 'type' => 'string',
  1088. ),
  1089. ),
  1090. ),
  1091. )
  1092. )
  1093. );
  1094. }
  1095. }
  1096. /**
  1097. * The "activities" collection of methods.
  1098. * Typical usage is:
  1099. * <code>
  1100. * $youtubeService = new Google_Service_YouTube(...);
  1101. * $activities = $youtubeService->activities;
  1102. * </code>
  1103. */
  1104. class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource
  1105. {
  1106. /**
  1107. * Posts a bulletin for a specific channel. (The user submitting the request
  1108. * must be authorized to act on the channel's behalf.)
  1109. *
  1110. * Note: Even though an activity resource can contain information about actions
  1111. * like a user rating a video or marking a video as a favorite, you need to use
  1112. * other API methods to generate those activity resources. For example, you
  1113. * would use the API's videos.rate() method to rate a video and the
  1114. * playlistItems.insert() method to mark a video as a favorite.
  1115. * (activities.insert)
  1116. *
  1117. * @param string $part
  1118. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1119. * write operation will set as well as the properties that the API response will include.
  1120. The part
  1121. * names that you can include in the parameter value are snippet and contentDetails.
  1122. * @param Google_Activity $postBody
  1123. * @param array $optParams Optional parameters.
  1124. * @return Google_Service_YouTube_Activity
  1125. */
  1126. public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array())
  1127. {
  1128. $params = array('part' => $part, 'postBody' => $postBody);
  1129. $params = array_merge($params, $optParams);
  1130. return $this->call('insert', array($params), "Google_Service_YouTube_Activity");
  1131. }
  1132. /**
  1133. * Returns a list of channel activity events that match the request criteria.
  1134. * For example, you can retrieve events associated with a particular channel,
  1135. * events associated with the user's subscriptions and Google+ friends, or the
  1136. * YouTube home page feed, which is customized for each user.
  1137. * (activities.listActivities)
  1138. *
  1139. * @param string $part
  1140. * The part parameter specifies a comma-separated list of one or more activity resource properties
  1141. * that the API response will include. The part names that you can include in the parameter value
  1142. * are id, snippet, and contentDetails.
  1143. If the parameter identifies a property that contains child
  1144. * properties, the child properties will be included in the response. For example, in a activity
  1145. * resource, the snippet property contains other properties that identify the type of activity, a
  1146. * display title for the activity, and so forth. If you set part=snippet, the API response will
  1147. * also contain all of those nested properties.
  1148. * @param array $optParams Optional parameters.
  1149. *
  1150. * @opt_param string regionCode
  1151. * The regionCode parameter instructs the API to return results for the specified country. The
  1152. * parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the
  1153. * authorized user's previous activity on YouTube does not provide enough information to generate
  1154. * the activity feed.
  1155. * @opt_param string publishedBefore
  1156. * The publishedBefore parameter specifies the date and time before which an activity must have
  1157. * occurred for that activity to be included in the API response. If the parameter value specifies
  1158. * a day, but not a time, then any activities that occurred that day will be excluded from the
  1159. * result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
  1160. * @opt_param string channelId
  1161. * The channelId parameter specifies a unique YouTube channel ID. The API will then return a list
  1162. * of that channel's activities.
  1163. * @opt_param bool mine
  1164. * Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
  1165. * @opt_param string maxResults
  1166. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1167. * result set.
  1168. * @opt_param string pageToken
  1169. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1170. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1171. * be retrieved.
  1172. * @opt_param bool home
  1173. * Set this parameter's value to true to retrieve the activity feed that displays on the YouTube
  1174. * home page for the currently authenticated user.
  1175. * @opt_param string publishedAfter
  1176. * The publishedAfter parameter specifies the earliest date and time that an activity could have
  1177. * occurred for that activity to be included in the API response. If the parameter value specifies
  1178. * a day, but not a time, then any activities that occurred that day will be included in the result
  1179. * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
  1180. * @return Google_Service_YouTube_ActivityListResponse
  1181. */
  1182. public function listActivities($part, $optParams = array())
  1183. {
  1184. $params = array('part' => $part);
  1185. $params = array_merge($params, $optParams);
  1186. return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse");
  1187. }
  1188. }
  1189. /**
  1190. * The "channelBanners" collection of methods.
  1191. * Typical usage is:
  1192. * <code>
  1193. * $youtubeService = new Google_Service_YouTube(...);
  1194. * $channelBanners = $youtubeService->channelBanners;
  1195. * </code>
  1196. */
  1197. class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource
  1198. {
  1199. /**
  1200. * Uploads a channel banner image to YouTube. This method represents the first
  1201. * two steps in a three-step process to update the banner image for a channel:
  1202. *
  1203. * - Call the channelBanners.insert method to upload the binary image data to
  1204. * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192
  1205. * pixels. - Extract the url property's value from the response that the API
  1206. * returns for step 1. - Call the channels.update method to update the channel's
  1207. * branding settings. Set the brandingSettings.image.bannerExternalUrl
  1208. * property's value to the URL obtained in step 2. (channelBanners.insert)
  1209. *
  1210. * @param Google_ChannelBannerResource $postBody
  1211. * @param array $optParams Optional parameters.
  1212. *
  1213. * @opt_param string onBehalfOfContentOwner
  1214. * Note: This parameter is intended exclusively for YouTube content partners.
  1215. The
  1216. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1217. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1218. * value. This parameter is intended for YouTube content partners that own and manage many
  1219. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1220. * their video and channel data, without having to provide authentication credentials for each
  1221. * individual channel. The CMS account that the user authenticates with must be linked to the
  1222. * specified YouTube content owner.
  1223. * @return Google_Service_YouTube_ChannelBannerResource
  1224. */
  1225. public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array())
  1226. {
  1227. $params = array('postBody' => $postBody);
  1228. $params = array_merge($params, $optParams);
  1229. return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource");
  1230. }
  1231. }
  1232. /**
  1233. * The "channels" collection of methods.
  1234. * Typical usage is:
  1235. * <code>
  1236. * $youtubeService = new Google_Service_YouTube(...);
  1237. * $channels = $youtubeService->channels;
  1238. * </code>
  1239. */
  1240. class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource
  1241. {
  1242. /**
  1243. * Returns a collection of zero or more channel resources that match the request
  1244. * criteria. (channels.listChannels)
  1245. *
  1246. * @param string $part
  1247. * The part parameter specifies a comma-separated list of one or more channel resource properties
  1248. * that the API response will include. The part names that you can include in the parameter value
  1249. * are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion.
  1250. If the
  1251. * parameter identifies a property that contains child properties, the child properties will be
  1252. * included in the response. For example, in a channel resource, the contentDetails property
  1253. * contains other properties, such as the uploads properties. As such, if you set
  1254. * part=contentDetails, the API response will also contain all of those nested properties.
  1255. * @param array $optParams Optional parameters.
  1256. *
  1257. * @opt_param bool managedByMe
  1258. * Set this parameter's value to true to instruct the API to only return channels managed by the
  1259. * content owner that the onBehalfOfContentOwner parameter specifies. The user must be
  1260. * authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner
  1261. * must be provided.
  1262. * @opt_param string onBehalfOfContentOwner
  1263. * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
  1264. * of the content owner specified in the parameter value. This parameter is intended for YouTube
  1265. * content partners that own and manage many different YouTube channels. It allows content owners
  1266. * to authenticate once and get access to all their video and channel data, without having to
  1267. * provide authentication credentials for each individual channel. The actual CMS account that the
  1268. * user authenticates with needs to be linked to the specified YouTube content owner.
  1269. * @opt_param string forUsername
  1270. * The forUsername parameter specifies a YouTube username, thereby requesting the channel
  1271. * associated with that username.
  1272. * @opt_param bool mine
  1273. * Set this parameter's value to true to instruct the API to only return channels owned by the
  1274. * authenticated user.
  1275. * @opt_param string maxResults
  1276. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1277. * result set.
  1278. * @opt_param string id
  1279. * The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the
  1280. * resource(s) that are being retrieved. In a channel resource, the id property specifies the
  1281. * channel's YouTube channel ID.
  1282. * @opt_param string pageToken
  1283. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1284. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1285. * be retrieved.
  1286. * @opt_param bool mySubscribers
  1287. * Set this parameter's value to true to retrieve a list of channels that subscribed to the
  1288. * authenticated user's channel.
  1289. * @opt_param string categoryId
  1290. * The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels
  1291. * associated with that category.
  1292. * @return Google_Service_YouTube_ChannelListResponse
  1293. */
  1294. public function listChannels($part, $optParams = array())
  1295. {
  1296. $params = array('part' => $part);
  1297. $params = array_merge($params, $optParams);
  1298. return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse");
  1299. }
  1300. /**
  1301. * Updates a channel's metadata. (channels.update)
  1302. *
  1303. * @param string $part
  1304. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1305. * write operation will set as well as the properties that the API response will include.
  1306. The part
  1307. * names that you can include in the parameter value are id and invideoPromotion.
  1308. Note that this
  1309. * method will override the existing values for all of the mutable properties that are contained in
  1310. * any parts that the parameter value specifies.
  1311. * @param Google_Channel $postBody
  1312. * @param array $optParams Optional parameters.
  1313. *
  1314. * @opt_param string onBehalfOfContentOwner
  1315. * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
  1316. * of the content owner specified in the parameter value. This parameter is intended for YouTube
  1317. * content partners that own and manage many different YouTube channels. It allows content owners
  1318. * to authenticate once and get access to all their video and channel data, without having to
  1319. * provide authentication credentials for each individual channel. The actual CMS account that the
  1320. * user authenticates with needs to be linked to the specified YouTube content owner.
  1321. * @return Google_Service_YouTube_Channel
  1322. */
  1323. public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array())
  1324. {
  1325. $params = array('part' => $part, 'postBody' => $postBody);
  1326. $params = array_merge($params, $optParams);
  1327. return $this->call('update', array($params), "Google_Service_YouTube_Channel");
  1328. }
  1329. }
  1330. /**
  1331. * The "guideCategories" collection of methods.
  1332. * Typical usage is:
  1333. * <code>
  1334. * $youtubeService = new Google_Service_YouTube(...);
  1335. * $guideCategories = $youtubeService->guideCategories;
  1336. * </code>
  1337. */
  1338. class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource
  1339. {
  1340. /**
  1341. * Returns a list of categories that can be associated with YouTube channels.
  1342. * (guideCategories.listGuideCategories)
  1343. *
  1344. * @param string $part
  1345. * The part parameter specifies a comma-separated list of one or more guideCategory resource
  1346. * properties that the API response will include. The part names that you can include in the
  1347. * parameter value are id and snippet.
  1348. If the parameter identifies a property that contains child
  1349. * properties, the child properties will be included in the response. For example, in a
  1350. * guideCategory resource, the snippet property contains other properties, such as the category's
  1351. * title. If you set part=snippet, the API response will also contain all of those nested
  1352. * properties.
  1353. * @param array $optParams Optional parameters.
  1354. *
  1355. * @opt_param string regionCode
  1356. * The regionCode parameter instructs the API to return the list of guide categories available in
  1357. * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
  1358. * @opt_param string id
  1359. * The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the
  1360. * resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the
  1361. * YouTube channel category ID.
  1362. * @opt_param string hl
  1363. * The hl parameter specifies the language that will be used for text values in the API response.
  1364. * @return Google_Service_YouTube_GuideCategoryListResponse
  1365. */
  1366. public function listGuideCategories($part, $optParams = array())
  1367. {
  1368. $params = array('part' => $part);
  1369. $params = array_merge($params, $optParams);
  1370. return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");
  1371. }
  1372. }
  1373. /**
  1374. * The "liveBroadcasts" collection of methods.
  1375. * Typical usage is:
  1376. * <code>
  1377. * $youtubeService = new Google_Service_YouTube(...);
  1378. * $liveBroadcasts = $youtubeService->liveBroadcasts;
  1379. * </code>
  1380. */
  1381. class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Resource
  1382. {
  1383. /**
  1384. * Binds a YouTube broadcast to a stream or removes an existing binding between
  1385. * a broadcast and a stream. A broadcast can only be bound to one video stream.
  1386. * (liveBroadcasts.bind)
  1387. *
  1388. * @param string $id
  1389. * The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.
  1390. * @param string $part
  1391. * The part parameter specifies a comma-separated list of one or more liveBroadcast resource
  1392. * properties that the API response will include. The part names that you can include in the
  1393. * parameter value are id, snippet, contentDetails, and status.
  1394. * @param array $optParams Optional parameters.
  1395. *
  1396. * @opt_param string onBehalfOfContentOwner
  1397. * Note: This parameter is intended exclusively for YouTube content partners.
  1398. The
  1399. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1400. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1401. * value. This parameter is intended for YouTube content partners that own and manage many
  1402. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1403. * their video and channel data, without having to provide authentication credentials for each
  1404. * individual channel. The CMS account that the user authenticates with must be linked to the
  1405. * specified YouTube content owner.
  1406. * @opt_param string streamId
  1407. * The streamId parameter specifies the unique ID of the video stream that is being bound to a
  1408. * broadcast. If this parameter is omitted, the API will remove any existing binding between the
  1409. * broadcast and a video stream.
  1410. * @return Google_Service_YouTube_LiveBroadcast
  1411. */
  1412. public function bind($id, $part, $optParams = array())
  1413. {
  1414. $params = array('id' => $id, 'part' => $part);
  1415. $params = array_merge($params, $optParams);
  1416. return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast");
  1417. }
  1418. /**
  1419. * Controls the settings for a slate that can be displayed in the broadcast
  1420. * stream. (liveBroadcasts.control)
  1421. *
  1422. * @param string $id
  1423. * The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast
  1424. * in which the slate is being updated.
  1425. * @param string $part
  1426. * The part parameter specifies a comma-separated list of one or more liveBroadcast resource
  1427. * properties that the API response will include. The part names that you can include in the
  1428. * parameter value are id, snippet, contentDetails, and status.
  1429. * @param array $optParams Optional parameters.
  1430. *
  1431. * @opt_param string onBehalfOfContentOwner
  1432. * Note: This parameter is intended exclusively for YouTube content partners.
  1433. The
  1434. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1435. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1436. * value. This parameter is intended for YouTube content partners that own and manage many
  1437. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1438. * their video and channel data, without having to provide authentication credentials for each
  1439. * individual channel. The CMS account that the user authenticates with must be linked to the
  1440. * specified YouTube content owner.
  1441. * @opt_param bool displaySlate
  1442. * The displaySlate parameter specifies whether the slate is being enabled or disabled.
  1443. * @opt_param string offsetTimeMs
  1444. * The offsetTimeMs parameter specifies a positive time offset when the specified slate change will
  1445. * occur. The value is measured in milliseconds from the beginning of the broadcast's monitor
  1446. * stream, which is the time that the testing phase for the broadcast began. Even though it is
  1447. * specified in milliseconds, the value is actually an approximation, and YouTube completes the
  1448. * requested action as closely as possible to that time.
  1449. If you do not specify a value for this
  1450. * parameter, then YouTube performs the action as soon as possible. See the Getting started guide
  1451. * for more details.
  1452. Important: You should only specify a value for this parameter if your
  1453. * broadcast stream is delayed.
  1454. * @opt_param string walltime
  1455. * The walltime parameter specifies the wall clock time at which the specified slate change will
  1456. * occur.
  1457. * @return Google_Service_YouTube_LiveBroadcast
  1458. */
  1459. public function control($id, $part, $optParams = array())
  1460. {
  1461. $params = array('id' => $id, 'part' => $part);
  1462. $params = array_merge($params, $optParams);
  1463. return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast");
  1464. }
  1465. /**
  1466. * Deletes a broadcast. (liveBroadcasts.delete)
  1467. *
  1468. * @param string $id
  1469. * The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.
  1470. * @param array $optParams Optional parameters.
  1471. *
  1472. * @opt_param string onBehalfOfContentOwner
  1473. * Note: This parameter is intended exclusively for YouTube content partners.
  1474. The
  1475. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1476. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1477. * value. This parameter is intended for YouTube content partners that own and manage many
  1478. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1479. * their video and channel data, without having to provide authentication credentials for each
  1480. * individual channel. The CMS account that the user authenticates with must be linked to the
  1481. * specified YouTube content owner.
  1482. */
  1483. public function delete($id, $optParams = array())
  1484. {
  1485. $params = array('id' => $id);
  1486. $params = array_merge($params, $optParams);
  1487. return $this->call('delete', array($params));
  1488. }
  1489. /**
  1490. * Creates a broadcast. (liveBroadcasts.insert)
  1491. *
  1492. * @param string $part
  1493. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1494. * write operation will set as well as the properties that the API response will include.
  1495. The part
  1496. * properties that you can include in the parameter value are id, snippet, contentDetails, and
  1497. * status.
  1498. * @param Google_LiveBroadcast $postBody
  1499. * @param array $optParams Optional parameters.
  1500. *
  1501. * @opt_param string onBehalfOfContentOwner
  1502. * Note: This parameter is intended exclusively for YouTube content partners.
  1503. The
  1504. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1505. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1506. * value. This parameter is intended for YouTube content partners that own and manage many
  1507. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1508. * their video and channel data, without having to provide authentication credentials for each
  1509. * individual channel. The CMS account that the user authenticates with must be linked to the
  1510. * specified YouTube content owner.
  1511. * @return Google_Service_YouTube_LiveBroadcast
  1512. */
  1513. public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
  1514. {
  1515. $params = array('part' => $part, 'postBody' => $postBody);
  1516. $params = array_merge($params, $optParams);
  1517. return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast");
  1518. }
  1519. /**
  1520. * Returns a list of YouTube broadcasts that match the API request parameters.
  1521. * (liveBroadcasts.listLiveBroadcasts)
  1522. *
  1523. * @param string $part
  1524. * The part parameter specifies a comma-separated list of one or more liveBroadcast resource
  1525. * properties that the API response will include. The part names that you can include in the
  1526. * parameter value are id, snippet, contentDetails, and status.
  1527. * @param array $optParams Optional parameters.
  1528. *
  1529. * @opt_param string broadcastStatus
  1530. * The broadcastStatus parameter filters the API response to only include broadcasts with the
  1531. * specified status.
  1532. * @opt_param bool mine
  1533. * The mine parameter can be used to instruct the API to only return broadcasts owned by the
  1534. * authenticated user. Set the parameter value to true to only retrieve your own broadcasts.
  1535. * @opt_param string maxResults
  1536. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1537. * result set.
  1538. * @opt_param string pageToken
  1539. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1540. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1541. * be retrieved.
  1542. * @opt_param string id
  1543. * The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the
  1544. * broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the
  1545. * broadcast's ID.
  1546. * @return Google_Service_YouTube_LiveBroadcastListResponse
  1547. */
  1548. public function listLiveBroadcasts($part, $optParams = array())
  1549. {
  1550. $params = array('part' => $part);
  1551. $params = array_merge($params, $optParams);
  1552. return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse");
  1553. }
  1554. /**
  1555. * Changes the status of a YouTube live broadcast and initiates any processes
  1556. * associated with the new status. For example, when you transition a
  1557. * broadcast's status to testing, YouTube starts to transmit video to that
  1558. * broadcast's monitor stream. Before calling this method, you should confirm
  1559. * that the value of the status.streamStatus property for the stream bound to
  1560. * your broadcast is active. (liveBroadcasts.transition)
  1561. *
  1562. * @param string $broadcastStatus
  1563. * The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that
  1564. * to transition a broadcast to either the testing or live state, the status.streamStatus must be
  1565. * active for the stream that the broadcast is bound to.
  1566. * @param string $id
  1567. * The id parameter specifies the unique ID of the broadcast that is transitioning to another
  1568. * status.
  1569. * @param string $part
  1570. * The part parameter specifies a comma-separated list of one or more liveBroadcast resource
  1571. * properties that the API response will include. The part names that you can include in the
  1572. * parameter value are id, snippet, contentDetails, and status.
  1573. * @param array $optParams Optional parameters.
  1574. *
  1575. * @opt_param string onBehalfOfContentOwner
  1576. * Note: This parameter is intended exclusively for YouTube content partners.
  1577. The
  1578. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1579. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1580. * value. This parameter is intended for YouTube content partners that own and manage many
  1581. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1582. * their video and channel data, without having to provide authentication credentials for each
  1583. * individual channel. The CMS account that the user authenticates with must be linked to the
  1584. * specified YouTube content owner.
  1585. * @return Google_Service_YouTube_LiveBroadcast
  1586. */
  1587. public function transition($broadcastStatus, $id, $part, $optParams = array())
  1588. {
  1589. $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part);
  1590. $params = array_merge($params, $optParams);
  1591. return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast");
  1592. }
  1593. /**
  1594. * Updates a broadcast. For example, you could modify the broadcast settings
  1595. * defined in the liveBroadcast resource's contentDetails object.
  1596. * (liveBroadcasts.update)
  1597. *
  1598. * @param string $part
  1599. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1600. * write operation will set as well as the properties that the API response will include.
  1601. The part
  1602. * properties that you can include in the parameter value are id, snippet, contentDetails, and
  1603. * status.
  1604. Note that this method will override the existing values for all of the mutable
  1605. * properties that are contained in any parts that the parameter value specifies. For example, a
  1606. * broadcast's privacy status is defined in the status part. As such, if your request is updating a
  1607. * private or unlisted broadcast, and the request's part parameter value includes the status part,
  1608. * the broadcast's privacy setting will be updated to whatever value the request body specifies. If
  1609. * the request body does not specify a value, the existing privacy setting will be removed and the
  1610. * broadcast will revert to the default privacy setting.
  1611. * @param Google_LiveBroadcast $postBody
  1612. * @param array $optParams Optional parameters.
  1613. *
  1614. * @opt_param string onBehalfOfContentOwner
  1615. * Note: This parameter is intended exclusively for YouTube content partners.
  1616. The
  1617. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1618. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1619. * value. This parameter is intended for YouTube content partners that own and manage many
  1620. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1621. * their video and channel data, without having to provide authentication credentials for each
  1622. * individual channel. The CMS account that the user authenticates with must be linked to the
  1623. * specified YouTube content owner.
  1624. * @return Google_Service_YouTube_LiveBroadcast
  1625. */
  1626. public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
  1627. {
  1628. $params = array('part' => $part, 'postBody' => $postBody);
  1629. $params = array_merge($params, $optParams);
  1630. return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast");
  1631. }
  1632. }
  1633. /**
  1634. * The "liveStreams" collection of methods.
  1635. * Typical usage is:
  1636. * <code>
  1637. * $youtubeService = new Google_Service_YouTube(...);
  1638. * $liveStreams = $youtubeService->liveStreams;
  1639. * </code>
  1640. */
  1641. class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resource
  1642. {
  1643. /**
  1644. * Deletes a video stream. (liveStreams.delete)
  1645. *
  1646. * @param string $id
  1647. * The id parameter specifies the YouTube live stream ID for the resource that is being deleted.
  1648. * @param array $optParams Optional parameters.
  1649. */
  1650. public function delete($id, $optParams = array())
  1651. {
  1652. $params = array('id' => $id);
  1653. $params = array_merge($params, $optParams);
  1654. return $this->call('delete', array($params));
  1655. }
  1656. /**
  1657. * Creates a video stream. The stream enables you to send your video to YouTube,
  1658. * which can then broadcast the video to your audience. (liveStreams.insert)
  1659. *
  1660. * @param string $part
  1661. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1662. * write operation will set as well as the properties that the API response will include.
  1663. The part
  1664. * properties that you can include in the parameter value are id, snippet, cdn, and status.
  1665. * @param Google_LiveStream $postBody
  1666. * @param array $optParams Optional parameters.
  1667. * @return Google_Service_YouTube_LiveStream
  1668. */
  1669. public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
  1670. {
  1671. $params = array('part' => $part, 'postBody' => $postBody);
  1672. $params = array_merge($params, $optParams);
  1673. return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream");
  1674. }
  1675. /**
  1676. * Returns a list of video streams that match the API request parameters.
  1677. * (liveStreams.listLiveStreams)
  1678. *
  1679. * @param string $part
  1680. * The part parameter specifies a comma-separated list of one or more liveStream resource
  1681. * properties that the API response will include. The part names that you can include in the
  1682. * parameter value are id, snippet, cdn, and status.
  1683. * @param array $optParams Optional parameters.
  1684. *
  1685. * @opt_param string pageToken
  1686. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1687. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1688. * be retrieved.
  1689. * @opt_param string id
  1690. * The id parameter specifies a comma-separated list of YouTube stream IDs that identify the
  1691. * streams being retrieved. In a liveStream resource, the id property specifies the stream's ID.
  1692. * @opt_param string maxResults
  1693. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1694. * result set. Acceptable values are 0 to 50, inclusive. The default value is 5.
  1695. * @opt_param bool mine
  1696. * The mine parameter can be used to instruct the API to only return streams owned by the
  1697. * authenticated user. Set the parameter value to true to only retrieve your own streams.
  1698. * @return Google_Service_YouTube_LiveStreamListResponse
  1699. */
  1700. public function listLiveStreams($part, $optParams = array())
  1701. {
  1702. $params = array('part' => $part);
  1703. $params = array_merge($params, $optParams);
  1704. return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse");
  1705. }
  1706. /**
  1707. * Updates a video stream. If the properties that you want to change cannot be
  1708. * updated, then you need to create a new stream with the proper settings.
  1709. * (liveStreams.update)
  1710. *
  1711. * @param string $part
  1712. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1713. * write operation will set as well as the properties that the API response will include.
  1714. The part
  1715. * properties that you can include in the parameter value are id, snippet, cdn, and status.
  1716. Note
  1717. * that this method will override the existing values for all of the mutable properties that are
  1718. * contained in any parts that the parameter value specifies. If the request body does not specify
  1719. * a value for a mutable property, the existing value for that property will be removed.
  1720. * @param Google_LiveStream $postBody
  1721. * @param array $optParams Optional parameters.
  1722. * @return Google_Service_YouTube_LiveStream
  1723. */
  1724. public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
  1725. {
  1726. $params = array('part' => $part, 'postBody' => $postBody);
  1727. $params = array_merge($params, $optParams);
  1728. return $this->call('update', array($params), "Google_Service_YouTube_LiveStream");
  1729. }
  1730. }
  1731. /**
  1732. * The "playlistItems" collection of methods.
  1733. * Typical usage is:
  1734. * <code>
  1735. * $youtubeService = new Google_Service_YouTube(...);
  1736. * $playlistItems = $youtubeService->playlistItems;
  1737. * </code>
  1738. */
  1739. class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resource
  1740. {
  1741. /**
  1742. * Deletes a playlist item. (playlistItems.delete)
  1743. *
  1744. * @param string $id
  1745. * The id parameter specifies the YouTube playlist item ID for the playlist item that is being
  1746. * deleted. In a playlistItem resource, the id property specifies the playlist item's ID.
  1747. * @param array $optParams Optional parameters.
  1748. */
  1749. public function delete($id, $optParams = array())
  1750. {
  1751. $params = array('id' => $id);
  1752. $params = array_merge($params, $optParams);
  1753. return $this->call('delete', array($params));
  1754. }
  1755. /**
  1756. * Adds a resource to a playlist. (playlistItems.insert)
  1757. *
  1758. * @param string $part
  1759. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1760. * write operation will set as well as the properties that the API response will include.
  1761. The part
  1762. * names that you can include in the parameter value are snippet, contentDetails, and status.
  1763. * @param Google_PlaylistItem $postBody
  1764. * @param array $optParams Optional parameters.
  1765. *
  1766. * @opt_param string onBehalfOfContentOwner
  1767. * Note: This parameter is intended exclusively for YouTube content partners.
  1768. The
  1769. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1770. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1771. * value. This parameter is intended for YouTube content partners that own and manage many
  1772. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1773. * their video and channel data, without having to provide authentication credentials for each
  1774. * individual channel. The CMS account that the user authenticates with must be linked to the
  1775. * specified YouTube content owner.
  1776. * @return Google_Service_YouTube_PlaylistItem
  1777. */
  1778. public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
  1779. {
  1780. $params = array('part' => $part, 'postBody' => $postBody);
  1781. $params = array_merge($params, $optParams);
  1782. return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem");
  1783. }
  1784. /**
  1785. * Returns a collection of playlist items that match the API request parameters.
  1786. * You can retrieve all of the playlist items in a specified playlist or
  1787. * retrieve one or more playlist items by their unique IDs.
  1788. * (playlistItems.listPlaylistItems)
  1789. *
  1790. * @param string $part
  1791. * The part parameter specifies a comma-separated list of one or more playlistItem resource
  1792. * properties that the API response will include. The part names that you can include in the
  1793. * parameter value are id, snippet, contentDetails, and status.
  1794. If the parameter identifies a
  1795. * property that contains child properties, the child properties will be included in the response.
  1796. * For example, in a playlistItem resource, the snippet property contains numerous fields,
  1797. * including the title, description, position, and resourceId properties. As such, if you set
  1798. * part=snippet, the API response will contain all of those properties.
  1799. * @param array $optParams Optional parameters.
  1800. *
  1801. * @opt_param string onBehalfOfContentOwner
  1802. * Note: This parameter is intended exclusively for YouTube content partners.
  1803. The
  1804. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1805. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1806. * value. This parameter is intended for YouTube content partners that own and manage many
  1807. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1808. * their video and channel data, without having to provide authentication credentials for each
  1809. * individual channel. The CMS account that the user authenticates with must be linked to the
  1810. * specified YouTube content owner.
  1811. * @opt_param string playlistId
  1812. * The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve
  1813. * playlist items. Note that even though this is an optional parameter, every request to retrieve
  1814. * playlist items must specify a value for either the id parameter or the playlistId parameter.
  1815. * @opt_param string videoId
  1816. * The videoId parameter specifies that the request should return only the playlist items that
  1817. * contain the specified video.
  1818. * @opt_param string maxResults
  1819. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1820. * result set.
  1821. * @opt_param string pageToken
  1822. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1823. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1824. * be retrieved.
  1825. * @opt_param string id
  1826. * The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
  1827. * @return Google_Service_YouTube_PlaylistItemListResponse
  1828. */
  1829. public function listPlaylistItems($part, $optParams = array())
  1830. {
  1831. $params = array('part' => $part);
  1832. $params = array_merge($params, $optParams);
  1833. return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse");
  1834. }
  1835. /**
  1836. * Modifies a playlist item. For example, you could update the item's position
  1837. * in the playlist. (playlistItems.update)
  1838. *
  1839. * @param string $part
  1840. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1841. * write operation will set as well as the properties that the API response will include.
  1842. The part
  1843. * names that you can include in the parameter value are snippet, contentDetails, and status.
  1844. Note
  1845. * that this method will override the existing values for all of the mutable properties that are
  1846. * contained in any parts that the parameter value specifies. For example, a playlist item can
  1847. * specify a start time and end time, which identify the times portion of the video that should
  1848. * play when users watch the video in the playlist. If your request is updating a playlist item
  1849. * that sets these values, and the request's part parameter value includes the contentDetails part,
  1850. * the playlist item's start and end times will be updated to whatever value the request body
  1851. * specifies. If the request body does not specify values, the existing start and end times will be
  1852. * removed and replaced with the default settings.
  1853. * @param Google_PlaylistItem $postBody
  1854. * @param array $optParams Optional parameters.
  1855. * @return Google_Service_YouTube_PlaylistItem
  1856. */
  1857. public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
  1858. {
  1859. $params = array('part' => $part, 'postBody' => $postBody);
  1860. $params = array_merge($params, $optParams);
  1861. return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem");
  1862. }
  1863. }
  1864. /**
  1865. * The "playlists" collection of methods.
  1866. * Typical usage is:
  1867. * <code>
  1868. * $youtubeService = new Google_Service_YouTube(...);
  1869. * $playlists = $youtubeService->playlists;
  1870. * </code>
  1871. */
  1872. class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource
  1873. {
  1874. /**
  1875. * Deletes a playlist. (playlists.delete)
  1876. *
  1877. * @param string $id
  1878. * The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a
  1879. * playlist resource, the id property specifies the playlist's ID.
  1880. * @param array $optParams Optional parameters.
  1881. *
  1882. * @opt_param string onBehalfOfContentOwner
  1883. * Note: This parameter is intended exclusively for YouTube content partners.
  1884. The
  1885. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1886. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1887. * value. This parameter is intended for YouTube content partners that own and manage many
  1888. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1889. * their video and channel data, without having to provide authentication credentials for each
  1890. * individual channel. The CMS account that the user authenticates with must be linked to the
  1891. * specified YouTube content owner.
  1892. */
  1893. public function delete($id, $optParams = array())
  1894. {
  1895. $params = array('id' => $id);
  1896. $params = array_merge($params, $optParams);
  1897. return $this->call('delete', array($params));
  1898. }
  1899. /**
  1900. * Creates a playlist. (playlists.insert)
  1901. *
  1902. * @param string $part
  1903. * The part parameter serves two purposes in this operation. It identifies the properties that the
  1904. * write operation will set as well as the properties that the API response will include.
  1905. The part
  1906. * names that you can include in the parameter value are snippet and status.
  1907. * @param Google_Playlist $postBody
  1908. * @param array $optParams Optional parameters.
  1909. *
  1910. * @opt_param string onBehalfOfContentOwnerChannel
  1911. * This parameter can only be used in a properly authorized request. Note: This parameter is
  1912. * intended exclusively for YouTube content partners.
  1913. The onBehalfOfContentOwnerChannel parameter
  1914. * specifies the YouTube channel ID of the channel to which a video is being added. This parameter
  1915. * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it
  1916. * can only be used in conjunction with that parameter. In addition, the request must be authorized
  1917. * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner
  1918. * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value
  1919. * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter
  1920. * specifies.
  1921. This parameter is intended for YouTube content partners that own and manage many
  1922. * different YouTube channels. It allows content owners to authenticate once and perform actions on
  1923. * behalf of the channel specified in the parameter value, without having to provide authentication
  1924. * credentials for each separate channel.
  1925. * @opt_param string onBehalfOfContentOwner
  1926. * Note: This parameter is intended exclusively for YouTube content partners.
  1927. The
  1928. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1929. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1930. * value. This parameter is intended for YouTube content partners that own and manage many
  1931. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1932. * their video and channel data, without having to provide authentication credentials for each
  1933. * individual channel. The CMS account that the user authenticates with must be linked to the
  1934. * specified YouTube content owner.
  1935. * @return Google_Service_YouTube_Playlist
  1936. */
  1937. public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
  1938. {
  1939. $params = array('part' => $part, 'postBody' => $postBody);
  1940. $params = array_merge($params, $optParams);
  1941. return $this->call('insert', array($params), "Google_Service_YouTube_Playlist");
  1942. }
  1943. /**
  1944. * Returns a collection of playlists that match the API request parameters. For
  1945. * example, you can retrieve all playlists that the authenticated user owns, or
  1946. * you can retrieve one or more playlists by their unique IDs.
  1947. * (playlists.listPlaylists)
  1948. *
  1949. * @param string $part
  1950. * The part parameter specifies a comma-separated list of one or more playlist resource properties
  1951. * that the API response will include. The part names that you can include in the parameter value
  1952. * are id, snippet, and status.
  1953. If the parameter identifies a property that contains child
  1954. * properties, the child properties will be included in the response. For example, in a playlist
  1955. * resource, the snippet property contains properties like author, title, description, tags, and
  1956. * timeCreated. As such, if you set part=snippet, the API response will contain all of those
  1957. * properties.
  1958. * @param array $optParams Optional parameters.
  1959. *
  1960. * @opt_param string onBehalfOfContentOwner
  1961. * Note: This parameter is intended exclusively for YouTube content partners.
  1962. The
  1963. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  1964. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  1965. * value. This parameter is intended for YouTube content partners that own and manage many
  1966. * different YouTube channels. It allows content owners to authenticate once and get access to all
  1967. * their video and channel data, without having to provide authentication credentials for each
  1968. * individual channel. The CMS account that the user authenticates with must be linked to the
  1969. * specified YouTube content owner.
  1970. * @opt_param string onBehalfOfContentOwnerChannel
  1971. * This parameter can only be used in a properly authorized request. Note: This parameter is
  1972. * intended exclusively for YouTube content partners.
  1973. The onBehalfOfContentOwnerChannel parameter
  1974. * specifies the YouTube channel ID of the channel to which a video is being added. This parameter
  1975. * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it
  1976. * can only be used in conjunction with that parameter. In addition, the request must be authorized
  1977. * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner
  1978. * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value
  1979. * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter
  1980. * specifies.
  1981. This parameter is intended for YouTube content partners that own and manage many
  1982. * different YouTube channels. It allows content owners to authenticate once and perform actions on
  1983. * behalf of the channel specified in the parameter value, without having to provide authentication
  1984. * credentials for each separate channel.
  1985. * @opt_param string channelId
  1986. * This value indicates that the API should only return the specified channel's playlists.
  1987. * @opt_param bool mine
  1988. * Set this parameter's value to true to instruct the API to only return playlists owned by the
  1989. * authenticated user.
  1990. * @opt_param string maxResults
  1991. * The maxResults parameter specifies the maximum number of items that should be returned in the
  1992. * result set.
  1993. * @opt_param string pageToken
  1994. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  1995. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  1996. * be retrieved.
  1997. * @opt_param string id
  1998. * The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the
  1999. * resource(s) that are being retrieved. In a playlist resource, the id property specifies the
  2000. * playlist's YouTube playlist ID.
  2001. * @return Google_Service_YouTube_PlaylistListResponse
  2002. */
  2003. public function listPlaylists($part, $optParams = array())
  2004. {
  2005. $params = array('part' => $part);
  2006. $params = array_merge($params, $optParams);
  2007. return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse");
  2008. }
  2009. /**
  2010. * Modifies a playlist. For example, you could change a playlist's title,
  2011. * description, or privacy status. (playlists.update)
  2012. *
  2013. * @param string $part
  2014. * The part parameter serves two purposes in this operation. It identifies the properties that the
  2015. * write operation will set as well as the properties that the API response will include.
  2016. The part
  2017. * names that you can include in the parameter value are snippet and status.
  2018. Note that this method
  2019. * will override the existing values for all of the mutable properties that are contained in any
  2020. * parts that the parameter value specifies. For example, a playlist's privacy setting is contained
  2021. * in the status part. As such, if your request is updating a private playlist, and the request's
  2022. * part parameter value includes the status part, the playlist's privacy setting will be updated to
  2023. * whatever value the request body specifies. If the request body does not specify a value, the
  2024. * existing privacy setting will be removed and the playlist will revert to the default privacy
  2025. * setting.
  2026. * @param Google_Playlist $postBody
  2027. * @param array $optParams Optional parameters.
  2028. *
  2029. * @opt_param string onBehalfOfContentOwner
  2030. * Note: This parameter is intended exclusively for YouTube content partners.
  2031. The
  2032. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2033. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2034. * value. This parameter is intended for YouTube content partners that own and manage many
  2035. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2036. * their video and channel data, without having to provide authentication credentials for each
  2037. * individual channel. The CMS account that the user authenticates with must be linked to the
  2038. * specified YouTube content owner.
  2039. * @return Google_Service_YouTube_Playlist
  2040. */
  2041. public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
  2042. {
  2043. $params = array('part' => $part, 'postBody' => $postBody);
  2044. $params = array_merge($params, $optParams);
  2045. return $this->call('update', array($params), "Google_Service_YouTube_Playlist");
  2046. }
  2047. }
  2048. /**
  2049. * The "search" collection of methods.
  2050. * Typical usage is:
  2051. * <code>
  2052. * $youtubeService = new Google_Service_YouTube(...);
  2053. * $search = $youtubeService->search;
  2054. * </code>
  2055. */
  2056. class Google_Service_YouTube_Search_Resource extends Google_Service_Resource
  2057. {
  2058. /**
  2059. * Returns a collection of search results that match the query parameters
  2060. * specified in the API request. By default, a search result set identifies
  2061. * matching video, channel, and playlist resources, but you can also configure
  2062. * queries to only retrieve a specific type of resource. (search.listSearch)
  2063. *
  2064. * @param string $part
  2065. * The part parameter specifies a comma-separated list of one or more search resource properties
  2066. * that the API response will include. The part names that you can include in the parameter value
  2067. * are id and snippet.
  2068. If the parameter identifies a property that contains child properties, the
  2069. * child properties will be included in the response. For example, in a search result, the snippet
  2070. * property contains other properties that identify the result's title, description, and so forth.
  2071. * If you set part=snippet, the API response will also contain all of those nested properties.
  2072. * @param array $optParams Optional parameters.
  2073. *
  2074. * @opt_param string eventType
  2075. * The eventType parameter restricts a search to broadcast events.
  2076. * @opt_param string channelId
  2077. * The channelId parameter indicates that the API response should only contain resources created by
  2078. * the channel
  2079. * @opt_param string videoSyndicated
  2080. * The videoSyndicated parameter lets you to restrict a search to only videos that can be played
  2081. * outside youtube.com.
  2082. * @opt_param string channelType
  2083. * The channelType parameter lets you restrict a search to a particular type of channel.
  2084. * @opt_param string videoCaption
  2085. * The videoCaption parameter indicates whether the API should filter video search results based on
  2086. * whether they have captions.
  2087. * @opt_param string publishedAfter
  2088. * The publishedAfter parameter indicates that the API response should only contain resources
  2089. * created after the specified time. The value is an RFC 3339 formatted date-time value
  2090. * (1970-01-01T00:00:00Z).
  2091. * @opt_param string onBehalfOfContentOwner
  2092. * Note: This parameter is intended exclusively for YouTube content partners.
  2093. The
  2094. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2095. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2096. * value. This parameter is intended for YouTube content partners that own and manage many
  2097. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2098. * their video and channel data, without having to provide authentication credentials for each
  2099. * individual channel. The CMS account that the user authenticates with must be linked to the
  2100. * specified YouTube content owner.
  2101. * @opt_param string pageToken
  2102. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  2103. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  2104. * be retrieved.
  2105. * @opt_param bool forContentOwner
  2106. * Note: This parameter is intended exclusively for YouTube content partners.
  2107. The forContentOwner
  2108. * parameter restricts the search to only retrieve resources owned by the content owner specified
  2109. * by the onBehalfOfContentOwner parameter. The user must be authenticated using a CMS account
  2110. * linked to the specified content owner and onBehalfOfContentOwner must be provided.
  2111. * @opt_param string regionCode
  2112. * The regionCode parameter instructs the API to return search results for the specified country.
  2113. * The parameter value is an ISO 3166-1 alpha-2 country code.
  2114. * @opt_param string videoType
  2115. * The videoType parameter lets you restrict a search to a particular type of videos.
  2116. * @opt_param string type
  2117. * The type parameter restricts a search query to only retrieve a particular type of resource. The
  2118. * value is a comma-separated list of resource types.
  2119. * @opt_param string topicId
  2120. * The topicId parameter indicates that the API response should only contain resources associated
  2121. * with the specified topic. The value identifies a Freebase topic ID.
  2122. * @opt_param string publishedBefore
  2123. * The publishedBefore parameter indicates that the API response should only contain resources
  2124. * created before the specified time. The value is an RFC 3339 formatted date-time value
  2125. * (1970-01-01T00:00:00Z).
  2126. * @opt_param string videoDimension
  2127. * The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
  2128. * @opt_param string videoLicense
  2129. * The videoLicense parameter filters search results to only include videos with a particular
  2130. * license. YouTube lets video uploaders choose to attach either the Creative Commons license or
  2131. * the standard YouTube license to each of their videos.
  2132. * @opt_param string maxResults
  2133. * The maxResults parameter specifies the maximum number of items that should be returned in the
  2134. * result set.
  2135. * @opt_param string relatedToVideoId
  2136. * The relatedToVideoId parameter retrieves a list of videos that are related to the video that the
  2137. * parameter value identifies. The parameter value must be set to a YouTube video ID and, if you
  2138. * are using this parameter, the type parameter must be set to video.
  2139. * @opt_param string videoDefinition
  2140. * The videoDefinition parameter lets you restrict a search to only include either high definition
  2141. * (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p,
  2142. * though higher resolutions, like 1080p, might also be available.
  2143. * @opt_param string videoDuration
  2144. * The videoDuration parameter filters video search results based on their duration.
  2145. * @opt_param bool forMine
  2146. * The forMine parameter restricts the search to only retrieve videos owned by the authenticated
  2147. * user. If you set this parameter to true, then the type parameter's value must also be set to
  2148. * video.
  2149. * @opt_param string q
  2150. * The q parameter specifies the query term to search for.
  2151. * @opt_param string safeSearch
  2152. * The safeSearch parameter indicates whether the search results should include restricted content
  2153. * as well as standard content.
  2154. * @opt_param string videoEmbeddable
  2155. * The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded
  2156. * into a webpage.
  2157. * @opt_param string videoCategoryId
  2158. * The videoCategoryId parameter filters video search results based on their category.
  2159. * @opt_param string order
  2160. * The order parameter specifies the method that will be used to order resources in the API
  2161. * response.
  2162. * @return Google_Service_YouTube_SearchListResponse
  2163. */
  2164. public function listSearch($part, $optParams = array())
  2165. {
  2166. $params = array('part' => $part);
  2167. $params = array_merge($params, $optParams);
  2168. return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse");
  2169. }
  2170. }
  2171. /**
  2172. * The "subscriptions" collection of methods.
  2173. * Typical usage is:
  2174. * <code>
  2175. * $youtubeService = new Google_Service_YouTube(...);
  2176. * $subscriptions = $youtubeService->subscriptions;
  2177. * </code>
  2178. */
  2179. class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resource
  2180. {
  2181. /**
  2182. * Deletes a subscription. (subscriptions.delete)
  2183. *
  2184. * @param string $id
  2185. * The id parameter specifies the YouTube subscription ID for the resource that is being deleted.
  2186. * In a subscription resource, the id property specifies the YouTube subscription ID.
  2187. * @param array $optParams Optional parameters.
  2188. */
  2189. public function delete($id, $optParams = array())
  2190. {
  2191. $params = array('id' => $id);
  2192. $params = array_merge($params, $optParams);
  2193. return $this->call('delete', array($params));
  2194. }
  2195. /**
  2196. * Adds a subscription for the authenticated user's channel.
  2197. * (subscriptions.insert)
  2198. *
  2199. * @param string $part
  2200. * The part parameter serves two purposes in this operation. It identifies the properties that the
  2201. * write operation will set as well as the properties that the API response will include.
  2202. The part
  2203. * names that you can include in the parameter value are snippet and contentDetails.
  2204. * @param Google_Subscription $postBody
  2205. * @param array $optParams Optional parameters.
  2206. * @return Google_Service_YouTube_Subscription
  2207. */
  2208. public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array())
  2209. {
  2210. $params = array('part' => $part, 'postBody' => $postBody);
  2211. $params = array_merge($params, $optParams);
  2212. return $this->call('insert', array($params), "Google_Service_YouTube_Subscription");
  2213. }
  2214. /**
  2215. * Returns subscription resources that match the API request criteria.
  2216. * (subscriptions.listSubscriptions)
  2217. *
  2218. * @param string $part
  2219. * The part parameter specifies a comma-separated list of one or more subscription resource
  2220. * properties that the API response will include. The part names that you can include in the
  2221. * parameter value are id, snippet, and contentDetails.
  2222. If the parameter identifies a property
  2223. * that contains child properties, the child properties will be included in the response. For
  2224. * example, in a subscription resource, the snippet property contains other properties, such as a
  2225. * display title for the subscription. If you set part=snippet, the API response will also contain
  2226. * all of those nested properties.
  2227. * @param array $optParams Optional parameters.
  2228. *
  2229. * @opt_param string onBehalfOfContentOwner
  2230. * Note: This parameter is intended exclusively for YouTube content partners.
  2231. The
  2232. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2233. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2234. * value. This parameter is intended for YouTube content partners that own and manage many
  2235. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2236. * their video and channel data, without having to provide authentication credentials for each
  2237. * individual channel. The CMS account that the user authenticates with must be linked to the
  2238. * specified YouTube content owner.
  2239. * @opt_param string onBehalfOfContentOwnerChannel
  2240. * This parameter can only be used in a properly authorized request. Note: This parameter is
  2241. * intended exclusively for YouTube content partners.
  2242. The onBehalfOfContentOwnerChannel parameter
  2243. * specifies the YouTube channel ID of the channel to which a video is being added. This parameter
  2244. * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it
  2245. * can only be used in conjunction with that parameter. In addition, the request must be authorized
  2246. * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner
  2247. * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value
  2248. * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter
  2249. * specifies.
  2250. This parameter is intended for YouTube content partners that own and manage many
  2251. * different YouTube channels. It allows content owners to authenticate once and perform actions on
  2252. * behalf of the channel specified in the parameter value, without having to provide authentication
  2253. * credentials for each separate channel.
  2254. * @opt_param string channelId
  2255. * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's
  2256. * subscriptions.
  2257. * @opt_param bool mine
  2258. * Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
  2259. * @opt_param string maxResults
  2260. * The maxResults parameter specifies the maximum number of items that should be returned in the
  2261. * result set.
  2262. * @opt_param string forChannelId
  2263. * The forChannelId parameter specifies a comma-separated list of channel IDs. The API response
  2264. * will then only contain subscriptions matching those channels.
  2265. * @opt_param string pageToken
  2266. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  2267. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  2268. * be retrieved.
  2269. * @opt_param bool mySubscribers
  2270. * Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated
  2271. * user.
  2272. * @opt_param string order
  2273. * The order parameter specifies the method that will be used to sort resources in the API
  2274. * response.
  2275. * @opt_param string id
  2276. * The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the
  2277. * resource(s) that are being retrieved. In a subscription resource, the id property specifies the
  2278. * YouTube subscription ID.
  2279. * @return Google_Service_YouTube_SubscriptionListResponse
  2280. */
  2281. public function listSubscriptions($part, $optParams = array())
  2282. {
  2283. $params = array('part' => $part);
  2284. $params = array_merge($params, $optParams);
  2285. return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse");
  2286. }
  2287. }
  2288. /**
  2289. * The "thumbnails" collection of methods.
  2290. * Typical usage is:
  2291. * <code>
  2292. * $youtubeService = new Google_Service_YouTube(...);
  2293. * $thumbnails = $youtubeService->thumbnails;
  2294. * </code>
  2295. */
  2296. class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource
  2297. {
  2298. /**
  2299. * Uploads a custom video thumbnail to YouTube and sets it for a video.
  2300. * (thumbnails.set)
  2301. *
  2302. * @param string $videoId
  2303. * The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being
  2304. * provided.
  2305. * @param array $optParams Optional parameters.
  2306. *
  2307. * @opt_param string onBehalfOfContentOwner
  2308. * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
  2309. * of the content owner specified in the parameter value. This parameter is intended for YouTube
  2310. * content partners that own and manage many different YouTube channels. It allows content owners
  2311. * to authenticate once and get access to all their video and channel data, without having to
  2312. * provide authentication credentials for each individual channel. The actual CMS account that the
  2313. * user authenticates with needs to be linked to the specified YouTube content owner.
  2314. * @return Google_Service_YouTube_ThumbnailSetResponse
  2315. */
  2316. public function set($videoId, $optParams = array())
  2317. {
  2318. $params = array('videoId' => $videoId);
  2319. $params = array_merge($params, $optParams);
  2320. return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse");
  2321. }
  2322. }
  2323. /**
  2324. * The "videoCategories" collection of methods.
  2325. * Typical usage is:
  2326. * <code>
  2327. * $youtubeService = new Google_Service_YouTube(...);
  2328. * $videoCategories = $youtubeService->videoCategories;
  2329. * </code>
  2330. */
  2331. class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource
  2332. {
  2333. /**
  2334. * Returns a list of categories that can be associated with YouTube videos.
  2335. * (videoCategories.listVideoCategories)
  2336. *
  2337. * @param string $part
  2338. * The part parameter specifies the videoCategory resource parts that the API response will
  2339. * include. Supported values are id and snippet.
  2340. * @param array $optParams Optional parameters.
  2341. *
  2342. * @opt_param string regionCode
  2343. * The regionCode parameter instructs the API to return the list of video categories available in
  2344. * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
  2345. * @opt_param string id
  2346. * The id parameter specifies a comma-separated list of video category IDs for the resources that
  2347. * you are retrieving.
  2348. * @opt_param string hl
  2349. * The hl parameter specifies the language that should be used for text values in the API response.
  2350. * @return Google_Service_YouTube_VideoCategoryListResponse
  2351. */
  2352. public function listVideoCategories($part, $optParams = array())
  2353. {
  2354. $params = array('part' => $part);
  2355. $params = array_merge($params, $optParams);
  2356. return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse");
  2357. }
  2358. }
  2359. /**
  2360. * The "videos" collection of methods.
  2361. * Typical usage is:
  2362. * <code>
  2363. * $youtubeService = new Google_Service_YouTube(...);
  2364. * $videos = $youtubeService->videos;
  2365. * </code>
  2366. */
  2367. class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource
  2368. {
  2369. /**
  2370. * Deletes a YouTube video. (videos.delete)
  2371. *
  2372. * @param string $id
  2373. * The id parameter specifies the YouTube video ID for the resource that is being deleted. In a
  2374. * video resource, the id property specifies the video's ID.
  2375. * @param array $optParams Optional parameters.
  2376. *
  2377. * @opt_param string onBehalfOfContentOwner
  2378. * Note: This parameter is intended exclusively for YouTube content partners.
  2379. The
  2380. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2381. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2382. * value. This parameter is intended for YouTube content partners that own and manage many
  2383. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2384. * their video and channel data, without having to provide authentication credentials for each
  2385. * individual channel. The actual CMS account that the user authenticates with must be linked to
  2386. * the specified YouTube content owner.
  2387. */
  2388. public function delete($id, $optParams = array())
  2389. {
  2390. $params = array('id' => $id);
  2391. $params = array_merge($params, $optParams);
  2392. return $this->call('delete', array($params));
  2393. }
  2394. /**
  2395. * Retrieves the ratings that the authorized user gave to a list of specified
  2396. * videos. (videos.getRating)
  2397. *
  2398. * @param string $id
  2399. * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s)
  2400. * for which you are retrieving rating data. In a video resource, the id property specifies the
  2401. * video's ID.
  2402. * @param array $optParams Optional parameters.
  2403. *
  2404. * @opt_param string onBehalfOfContentOwner
  2405. * Note: This parameter is intended exclusively for YouTube content partners.
  2406. The
  2407. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2408. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2409. * value. This parameter is intended for YouTube content partners that own and manage many
  2410. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2411. * their video and channel data, without having to provide authentication credentials for each
  2412. * individual channel. The CMS account that the user authenticates with must be linked to the
  2413. * specified YouTube content owner.
  2414. * @return Google_Service_YouTube_VideoGetRatingResponse
  2415. */
  2416. public function getRating($id, $optParams = array())
  2417. {
  2418. $params = array('id' => $id);
  2419. $params = array_merge($params, $optParams);
  2420. return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse");
  2421. }
  2422. /**
  2423. * Uploads a video to YouTube and optionally sets the video's metadata.
  2424. * (videos.insert)
  2425. *
  2426. * @param string $part
  2427. * The part parameter serves two purposes in this operation. It identifies the properties that the
  2428. * write operation will set as well as the properties that the API response will include.
  2429. The part
  2430. * names that you can include in the parameter value are snippet, contentDetails, fileDetails,
  2431. * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status,
  2432. * suggestions, and topicDetails. However, not all of those parts contain properties that can be
  2433. * set when setting or updating a video's metadata. For example, the statistics object encapsulates
  2434. * statistics that YouTube calculates for a video and does not contain values that you can set or
  2435. * modify. If the parameter value specifies a part that does not contain mutable values, that part
  2436. * will still be included in the API response.
  2437. * @param Google_Video $postBody
  2438. * @param array $optParams Optional parameters.
  2439. *
  2440. * @opt_param string onBehalfOfContentOwner
  2441. * Note: This parameter is intended exclusively for YouTube content partners.
  2442. The
  2443. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2444. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2445. * value. This parameter is intended for YouTube content partners that own and manage many
  2446. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2447. * their video and channel data, without having to provide authentication credentials for each
  2448. * individual channel. The CMS account that the user authenticates with must be linked to the
  2449. * specified YouTube content owner.
  2450. * @opt_param bool stabilize
  2451. * The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera
  2452. * motions.
  2453. * @opt_param string onBehalfOfContentOwnerChannel
  2454. * This parameter can only be used in a properly authorized request. Note: This parameter is
  2455. * intended exclusively for YouTube content partners.
  2456. The onBehalfOfContentOwnerChannel parameter
  2457. * specifies the YouTube channel ID of the channel to which a video is being added. This parameter
  2458. * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it
  2459. * can only be used in conjunction with that parameter. In addition, the request must be authorized
  2460. * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner
  2461. * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value
  2462. * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter
  2463. * specifies.
  2464. This parameter is intended for YouTube content partners that own and manage many
  2465. * different YouTube channels. It allows content owners to authenticate once and perform actions on
  2466. * behalf of the channel specified in the parameter value, without having to provide authentication
  2467. * credentials for each separate channel.
  2468. * @opt_param bool notifySubscribers
  2469. * The notifySubscribers parameter indicates whether YouTube should send notification to
  2470. * subscribers about the inserted video.
  2471. * @opt_param bool autoLevels
  2472. * The autoLevels parameter indicates whether YouTube should automatically enhance the video's
  2473. * lighting and color.
  2474. * @return Google_Service_YouTube_Video
  2475. */
  2476. public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array())
  2477. {
  2478. $params = array('part' => $part, 'postBody' => $postBody);
  2479. $params = array_merge($params, $optParams);
  2480. return $this->call('insert', array($params), "Google_Service_YouTube_Video");
  2481. }
  2482. /**
  2483. * Returns a list of videos that match the API request parameters.
  2484. * (videos.listVideos)
  2485. *
  2486. * @param string $part
  2487. * The part parameter specifies a comma-separated list of one or more video resource properties
  2488. * that the API response will include. The part names that you can include in the parameter value
  2489. * are id, snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails,
  2490. * recordingDetails, statistics, status, suggestions, and topicDetails.
  2491. If the parameter
  2492. * identifies a property that contains child properties, the child properties will be included in
  2493. * the response. For example, in a video resource, the snippet property contains the channelId,
  2494. * title, description, tags, and categoryId properties. As such, if you set part=snippet, the API
  2495. * response will contain all of those properties.
  2496. * @param array $optParams Optional parameters.
  2497. *
  2498. * @opt_param string onBehalfOfContentOwner
  2499. * Note: This parameter is intended exclusively for YouTube content partners.
  2500. The
  2501. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2502. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2503. * value. This parameter is intended for YouTube content partners that own and manage many
  2504. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2505. * their video and channel data, without having to provide authentication credentials for each
  2506. * individual channel. The CMS account that the user authenticates with must be linked to the
  2507. * specified YouTube content owner.
  2508. * @opt_param string regionCode
  2509. * The regionCode parameter instructs the API to select a video chart available in the specified
  2510. * region. This parameter can only be used in conjunction with the chart parameter. The parameter
  2511. * value is an ISO 3166-1 alpha-2 country code.
  2512. * @opt_param string locale
  2513. * DEPRECATED
  2514. * @opt_param string videoCategoryId
  2515. * The videoCategoryId parameter identifies the video category for which the chart should be
  2516. * retrieved. This parameter can only be used in conjunction with the chart parameter. By default,
  2517. * charts are not restricted to a particular category.
  2518. * @opt_param string chart
  2519. * The chart parameter identifies the chart that you want to retrieve.
  2520. * @opt_param string maxResults
  2521. * The maxResults parameter specifies the maximum number of items that should be returned in the
  2522. * result set.
  2523. Note: This parameter is supported for use in conjunction with the myRating
  2524. * parameter, but it is not supported for use in conjunction with the id parameter.
  2525. * @opt_param string pageToken
  2526. * The pageToken parameter identifies a specific page in the result set that should be returned. In
  2527. * an API response, the nextPageToken and prevPageToken properties identify other pages that could
  2528. * be retrieved.
  2529. Note: This parameter is supported for use in conjunction with the myRating
  2530. * parameter, but it is not supported for use in conjunction with the id parameter.
  2531. * @opt_param string myRating
  2532. * Set this parameter's value to like or dislike to instruct the API to only return videos liked or
  2533. * disliked by the authenticated user.
  2534. * @opt_param string id
  2535. * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s)
  2536. * that are being retrieved. In a video resource, the id property specifies the video's ID.
  2537. * @return Google_Service_YouTube_VideoListResponse
  2538. */
  2539. public function listVideos($part, $optParams = array())
  2540. {
  2541. $params = array('part' => $part);
  2542. $params = array_merge($params, $optParams);
  2543. return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse");
  2544. }
  2545. /**
  2546. * Add a like or dislike rating to a video or remove a rating from a video.
  2547. * (videos.rate)
  2548. *
  2549. * @param string $id
  2550. * The id parameter specifies the YouTube video ID of the video that is being rated or having its
  2551. * rating removed.
  2552. * @param string $rating
  2553. * Specifies the rating to record.
  2554. * @param array $optParams Optional parameters.
  2555. *
  2556. * @opt_param string onBehalfOfContentOwner
  2557. * Note: This parameter is intended exclusively for YouTube content partners.
  2558. The
  2559. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2560. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2561. * value. This parameter is intended for YouTube content partners that own and manage many
  2562. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2563. * their video and channel data, without having to provide authentication credentials for each
  2564. * individual channel. The CMS account that the user authenticates with must be linked to the
  2565. * specified YouTube content owner.
  2566. */
  2567. public function rate($id, $rating, $optParams = array())
  2568. {
  2569. $params = array('id' => $id, 'rating' => $rating);
  2570. $params = array_merge($params, $optParams);
  2571. return $this->call('rate', array($params));
  2572. }
  2573. /**
  2574. * Updates a video's metadata. (videos.update)
  2575. *
  2576. * @param string $part
  2577. * The part parameter serves two purposes in this operation. It identifies the properties that the
  2578. * write operation will set as well as the properties that the API response will include.
  2579. The part
  2580. * names that you can include in the parameter value are snippet, contentDetails, fileDetails,
  2581. * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status,
  2582. * suggestions, and topicDetails.
  2583. Note that this method will override the existing values for all
  2584. * of the mutable properties that are contained in any parts that the parameter value specifies.
  2585. * For example, a video's privacy setting is contained in the status part. As such, if your request
  2586. * is updating a private video, and the request's part parameter value includes the status part,
  2587. * the video's privacy setting will be updated to whatever value the request body specifies. If the
  2588. * request body does not specify a value, the existing privacy setting will be removed and the
  2589. * video will revert to the default privacy setting.
  2590. In addition, not all of those parts contain
  2591. * properties that can be set when setting or updating a video's metadata. For example, the
  2592. * statistics object encapsulates statistics that YouTube calculates for a video and does not
  2593. * contain values that you can set or modify. If the parameter value specifies a part that does not
  2594. * contain mutable values, that part will still be included in the API response.
  2595. * @param Google_Video $postBody
  2596. * @param array $optParams Optional parameters.
  2597. *
  2598. * @opt_param string onBehalfOfContentOwner
  2599. * Note: This parameter is intended exclusively for YouTube content partners.
  2600. The
  2601. * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
  2602. * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
  2603. * value. This parameter is intended for YouTube content partners that own and manage many
  2604. * different YouTube channels. It allows content owners to authenticate once and get access to all
  2605. * their video and channel data, without having to provide authentication credentials for each
  2606. * individual channel. The actual CMS account that the user authenticates with must be linked to
  2607. * the specified YouTube content owner.
  2608. * @return Google_Service_YouTube_Video
  2609. */
  2610. public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array())
  2611. {
  2612. $params = array('part' => $part, 'postBody' => $postBody);
  2613. $params = array_merge($params, $optParams);
  2614. return $this->call('update', array($params), "Google_Service_YouTube_Video");
  2615. }
  2616. }
  2617. /**
  2618. * The "watermarks" collection of methods.
  2619. * Typical usage is:
  2620. * <code>
  2621. * $youtubeService = new Google_Service_YouTube(...);
  2622. * $watermarks = $youtubeService->watermarks;
  2623. * </code>
  2624. */
  2625. class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource
  2626. {
  2627. /**
  2628. * Uploads a watermark image to YouTube and sets it for a channel.
  2629. * (watermarks.set)
  2630. *
  2631. * @param string $channelId
  2632. * The channelId parameter specifies a YouTube channel ID for which the watermark is being
  2633. * provided.
  2634. * @param Google_InvideoBranding $postBody
  2635. * @param array $optParams Optional parameters.
  2636. *
  2637. * @opt_param string onBehalfOfContentOwner
  2638. * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
  2639. * of the content owner specified in the parameter value. This parameter is intended for YouTube
  2640. * content partners that own and manage many different YouTube channels. It allows content owners
  2641. * to authenticate once and get access to all their video and channel data, without having to
  2642. * provide authentication credentials for each individual channel. The actual CMS account that the
  2643. * user authenticates with needs to be linked to the specified YouTube content owner.
  2644. */
  2645. public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array())
  2646. {
  2647. $params = array('channelId' => $channelId, 'postBody' => $postBody);
  2648. $params = array_merge($params, $optParams);
  2649. return $this->call('set', array($params));
  2650. }
  2651. /**
  2652. * Deletes a watermark. (watermarks.unsetWatermarks)
  2653. *
  2654. * @param string $channelId
  2655. * The channelId parameter specifies a YouTube channel ID for which the watermark is being unset.
  2656. * @param array $optParams Optional parameters.
  2657. *
  2658. * @opt_param string onBehalfOfContentOwner
  2659. * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
  2660. * of the content owner specified in the parameter value. This parameter is intended for YouTube
  2661. * content partners that own and manage many different YouTube channels. It allows content owners
  2662. * to authenticate once and get access to all their video and channel data, without having to
  2663. * provide authentication credentials for each individual channel. The actual CMS account that the
  2664. * user authenticates with needs to be linked to the specified YouTube content owner.
  2665. */
  2666. public function unsetWatermarks($channelId, $optParams = array())
  2667. {
  2668. $params = array('channelId' => $channelId);
  2669. $params = array_merge($params, $optParams);
  2670. return $this->call('unset', array($params));
  2671. }
  2672. }
  2673. class Google_Service_YouTube_AccessPolicy extends Google_Collection
  2674. {
  2675. public $allowed;
  2676. public $exception;
  2677. public function setAllowed($allowed)
  2678. {
  2679. $this->allowed = $allowed;
  2680. }
  2681. public function getAllowed()
  2682. {
  2683. return $this->allowed;
  2684. }
  2685. public function setException($exception)
  2686. {
  2687. $this->exception = $exception;
  2688. }
  2689. public function getException()
  2690. {
  2691. return $this->exception;
  2692. }
  2693. }
  2694. class Google_Service_YouTube_Activity extends Google_Model
  2695. {
  2696. protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails';
  2697. protected $contentDetailsDataType = '';
  2698. public $etag;
  2699. public $id;
  2700. public $kind;
  2701. protected $snippetType = 'Google_Service_YouTube_ActivitySnippet';
  2702. protected $snippetDataType = '';
  2703. public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails)
  2704. {
  2705. $this->contentDetails = $contentDetails;
  2706. }
  2707. public function getContentDetails()
  2708. {
  2709. return $this->contentDetails;
  2710. }
  2711. public function setEtag($etag)
  2712. {
  2713. $this->etag = $etag;
  2714. }
  2715. public function getEtag()
  2716. {
  2717. return $this->etag;
  2718. }
  2719. public function setId($id)
  2720. {
  2721. $this->id = $id;
  2722. }
  2723. public function getId()
  2724. {
  2725. return $this->id;
  2726. }
  2727. public function setKind($kind)
  2728. {
  2729. $this->kind = $kind;
  2730. }
  2731. public function getKind()
  2732. {
  2733. return $this->kind;
  2734. }
  2735. public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet)
  2736. {
  2737. $this->snippet = $snippet;
  2738. }
  2739. public function getSnippet()
  2740. {
  2741. return $this->snippet;
  2742. }
  2743. }
  2744. class Google_Service_YouTube_ActivityContentDetails extends Google_Model
  2745. {
  2746. protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin';
  2747. protected $bulletinDataType = '';
  2748. protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem';
  2749. protected $channelItemDataType = '';
  2750. protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment';
  2751. protected $commentDataType = '';
  2752. protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite';
  2753. protected $favoriteDataType = '';
  2754. protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike';
  2755. protected $likeDataType = '';
  2756. protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem';
  2757. protected $playlistItemDataType = '';
  2758. protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem';
  2759. protected $promotedItemDataType = '';
  2760. protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation';
  2761. protected $recommendationDataType = '';
  2762. protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial';
  2763. protected $socialDataType = '';
  2764. protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription';
  2765. protected $subscriptionDataType = '';
  2766. protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload';
  2767. protected $uploadDataType = '';
  2768. public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin)
  2769. {
  2770. $this->bulletin = $bulletin;
  2771. }
  2772. public function getBulletin()
  2773. {
  2774. return $this->bulletin;
  2775. }
  2776. public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem)
  2777. {
  2778. $this->channelItem = $channelItem;
  2779. }
  2780. public function getChannelItem()
  2781. {
  2782. return $this->channelItem;
  2783. }
  2784. public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment)
  2785. {
  2786. $this->comment = $comment;
  2787. }
  2788. public function getComment()
  2789. {
  2790. return $this->comment;
  2791. }
  2792. public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite)
  2793. {
  2794. $this->favorite = $favorite;
  2795. }
  2796. public function getFavorite()
  2797. {
  2798. return $this->favorite;
  2799. }
  2800. public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like)
  2801. {
  2802. $this->like = $like;
  2803. }
  2804. public function getLike()
  2805. {
  2806. return $this->like;
  2807. }
  2808. public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem)
  2809. {
  2810. $this->playlistItem = $playlistItem;
  2811. }
  2812. public function getPlaylistItem()
  2813. {
  2814. return $this->playlistItem;
  2815. }
  2816. public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem)
  2817. {
  2818. $this->promotedItem = $promotedItem;
  2819. }
  2820. public function getPromotedItem()
  2821. {
  2822. return $this->promotedItem;
  2823. }
  2824. public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation)
  2825. {
  2826. $this->recommendation = $recommendation;
  2827. }
  2828. public function getRecommendation()
  2829. {
  2830. return $this->recommendation;
  2831. }
  2832. public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social)
  2833. {
  2834. $this->social = $social;
  2835. }
  2836. public function getSocial()
  2837. {
  2838. return $this->social;
  2839. }
  2840. public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription)
  2841. {
  2842. $this->subscription = $subscription;
  2843. }
  2844. public function getSubscription()
  2845. {
  2846. return $this->subscription;
  2847. }
  2848. public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload)
  2849. {
  2850. $this->upload = $upload;
  2851. }
  2852. public function getUpload()
  2853. {
  2854. return $this->upload;
  2855. }
  2856. }
  2857. class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model
  2858. {
  2859. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2860. protected $resourceIdDataType = '';
  2861. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2862. {
  2863. $this->resourceId = $resourceId;
  2864. }
  2865. public function getResourceId()
  2866. {
  2867. return $this->resourceId;
  2868. }
  2869. }
  2870. class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model
  2871. {
  2872. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2873. protected $resourceIdDataType = '';
  2874. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2875. {
  2876. $this->resourceId = $resourceId;
  2877. }
  2878. public function getResourceId()
  2879. {
  2880. return $this->resourceId;
  2881. }
  2882. }
  2883. class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model
  2884. {
  2885. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2886. protected $resourceIdDataType = '';
  2887. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2888. {
  2889. $this->resourceId = $resourceId;
  2890. }
  2891. public function getResourceId()
  2892. {
  2893. return $this->resourceId;
  2894. }
  2895. }
  2896. class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model
  2897. {
  2898. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2899. protected $resourceIdDataType = '';
  2900. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2901. {
  2902. $this->resourceId = $resourceId;
  2903. }
  2904. public function getResourceId()
  2905. {
  2906. return $this->resourceId;
  2907. }
  2908. }
  2909. class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model
  2910. {
  2911. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2912. protected $resourceIdDataType = '';
  2913. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2914. {
  2915. $this->resourceId = $resourceId;
  2916. }
  2917. public function getResourceId()
  2918. {
  2919. return $this->resourceId;
  2920. }
  2921. }
  2922. class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model
  2923. {
  2924. public $playlistId;
  2925. public $playlistItemId;
  2926. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  2927. protected $resourceIdDataType = '';
  2928. public function setPlaylistId($playlistId)
  2929. {
  2930. $this->playlistId = $playlistId;
  2931. }
  2932. public function getPlaylistId()
  2933. {
  2934. return $this->playlistId;
  2935. }
  2936. public function setPlaylistItemId($playlistItemId)
  2937. {
  2938. $this->playlistItemId = $playlistItemId;
  2939. }
  2940. public function getPlaylistItemId()
  2941. {
  2942. return $this->playlistItemId;
  2943. }
  2944. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  2945. {
  2946. $this->resourceId = $resourceId;
  2947. }
  2948. public function getResourceId()
  2949. {
  2950. return $this->resourceId;
  2951. }
  2952. }
  2953. class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection
  2954. {
  2955. public $adTag;
  2956. public $clickTrackingUrl;
  2957. public $creativeViewUrl;
  2958. public $ctaType;
  2959. public $customCtaButtonText;
  2960. public $descriptionText;
  2961. public $destinationUrl;
  2962. public $forecastingUrl;
  2963. public $impressionUrl;
  2964. public $videoId;
  2965. public function setAdTag($adTag)
  2966. {
  2967. $this->adTag = $adTag;
  2968. }
  2969. public function getAdTag()
  2970. {
  2971. return $this->adTag;
  2972. }
  2973. public function setClickTrackingUrl($clickTrackingUrl)
  2974. {
  2975. $this->clickTrackingUrl = $clickTrackingUrl;
  2976. }
  2977. public function getClickTrackingUrl()
  2978. {
  2979. return $this->clickTrackingUrl;
  2980. }
  2981. public function setCreativeViewUrl($creativeViewUrl)
  2982. {
  2983. $this->creativeViewUrl = $creativeViewUrl;
  2984. }
  2985. public function getCreativeViewUrl()
  2986. {
  2987. return $this->creativeViewUrl;
  2988. }
  2989. public function setCtaType($ctaType)
  2990. {
  2991. $this->ctaType = $ctaType;
  2992. }
  2993. public function getCtaType()
  2994. {
  2995. return $this->ctaType;
  2996. }
  2997. public function setCustomCtaButtonText($customCtaButtonText)
  2998. {
  2999. $this->customCtaButtonText = $customCtaButtonText;
  3000. }
  3001. public function getCustomCtaButtonText()
  3002. {
  3003. return $this->customCtaButtonText;
  3004. }
  3005. public function setDescriptionText($descriptionText)
  3006. {
  3007. $this->descriptionText = $descriptionText;
  3008. }
  3009. public function getDescriptionText()
  3010. {
  3011. return $this->descriptionText;
  3012. }
  3013. public function setDestinationUrl($destinationUrl)
  3014. {
  3015. $this->destinationUrl = $destinationUrl;
  3016. }
  3017. public function getDestinationUrl()
  3018. {
  3019. return $this->destinationUrl;
  3020. }
  3021. public function setForecastingUrl($forecastingUrl)
  3022. {
  3023. $this->forecastingUrl = $forecastingUrl;
  3024. }
  3025. public function getForecastingUrl()
  3026. {
  3027. return $this->forecastingUrl;
  3028. }
  3029. public function setImpressionUrl($impressionUrl)
  3030. {
  3031. $this->impressionUrl = $impressionUrl;
  3032. }
  3033. public function getImpressionUrl()
  3034. {
  3035. return $this->impressionUrl;
  3036. }
  3037. public function setVideoId($videoId)
  3038. {
  3039. $this->videoId = $videoId;
  3040. }
  3041. public function getVideoId()
  3042. {
  3043. return $this->videoId;
  3044. }
  3045. }
  3046. class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model
  3047. {
  3048. public $reason;
  3049. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  3050. protected $resourceIdDataType = '';
  3051. protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId';
  3052. protected $seedResourceIdDataType = '';
  3053. public function setReason($reason)
  3054. {
  3055. $this->reason = $reason;
  3056. }
  3057. public function getReason()
  3058. {
  3059. return $this->reason;
  3060. }
  3061. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  3062. {
  3063. $this->resourceId = $resourceId;
  3064. }
  3065. public function getResourceId()
  3066. {
  3067. return $this->resourceId;
  3068. }
  3069. public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId)
  3070. {
  3071. $this->seedResourceId = $seedResourceId;
  3072. }
  3073. public function getSeedResourceId()
  3074. {
  3075. return $this->seedResourceId;
  3076. }
  3077. }
  3078. class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model
  3079. {
  3080. public $author;
  3081. public $imageUrl;
  3082. public $referenceUrl;
  3083. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  3084. protected $resourceIdDataType = '';
  3085. public $type;
  3086. public function setAuthor($author)
  3087. {
  3088. $this->author = $author;
  3089. }
  3090. public function getAuthor()
  3091. {
  3092. return $this->author;
  3093. }
  3094. public function setImageUrl($imageUrl)
  3095. {
  3096. $this->imageUrl = $imageUrl;
  3097. }
  3098. public function getImageUrl()
  3099. {
  3100. return $this->imageUrl;
  3101. }
  3102. public function setReferenceUrl($referenceUrl)
  3103. {
  3104. $this->referenceUrl = $referenceUrl;
  3105. }
  3106. public function getReferenceUrl()
  3107. {
  3108. return $this->referenceUrl;
  3109. }
  3110. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  3111. {
  3112. $this->resourceId = $resourceId;
  3113. }
  3114. public function getResourceId()
  3115. {
  3116. return $this->resourceId;
  3117. }
  3118. public function setType($type)
  3119. {
  3120. $this->type = $type;
  3121. }
  3122. public function getType()
  3123. {
  3124. return $this->type;
  3125. }
  3126. }
  3127. class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model
  3128. {
  3129. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  3130. protected $resourceIdDataType = '';
  3131. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  3132. {
  3133. $this->resourceId = $resourceId;
  3134. }
  3135. public function getResourceId()
  3136. {
  3137. return $this->resourceId;
  3138. }
  3139. }
  3140. class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model
  3141. {
  3142. public $videoId;
  3143. public function setVideoId($videoId)
  3144. {
  3145. $this->videoId = $videoId;
  3146. }
  3147. public function getVideoId()
  3148. {
  3149. return $this->videoId;
  3150. }
  3151. }
  3152. class Google_Service_YouTube_ActivityListResponse extends Google_Collection
  3153. {
  3154. public $etag;
  3155. public $eventId;
  3156. protected $itemsType = 'Google_Service_YouTube_Activity';
  3157. protected $itemsDataType = 'array';
  3158. public $kind;
  3159. public $nextPageToken;
  3160. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  3161. protected $pageInfoDataType = '';
  3162. public $prevPageToken;
  3163. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  3164. protected $tokenPaginationDataType = '';
  3165. public $visitorId;
  3166. public function setEtag($etag)
  3167. {
  3168. $this->etag = $etag;
  3169. }
  3170. public function getEtag()
  3171. {
  3172. return $this->etag;
  3173. }
  3174. public function setEventId($eventId)
  3175. {
  3176. $this->eventId = $eventId;
  3177. }
  3178. public function getEventId()
  3179. {
  3180. return $this->eventId;
  3181. }
  3182. public function setItems($items)
  3183. {
  3184. $this->items = $items;
  3185. }
  3186. public function getItems()
  3187. {
  3188. return $this->items;
  3189. }
  3190. public function setKind($kind)
  3191. {
  3192. $this->kind = $kind;
  3193. }
  3194. public function getKind()
  3195. {
  3196. return $this->kind;
  3197. }
  3198. public function setNextPageToken($nextPageToken)
  3199. {
  3200. $this->nextPageToken = $nextPageToken;
  3201. }
  3202. public function getNextPageToken()
  3203. {
  3204. return $this->nextPageToken;
  3205. }
  3206. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  3207. {
  3208. $this->pageInfo = $pageInfo;
  3209. }
  3210. public function getPageInfo()
  3211. {
  3212. return $this->pageInfo;
  3213. }
  3214. public function setPrevPageToken($prevPageToken)
  3215. {
  3216. $this->prevPageToken = $prevPageToken;
  3217. }
  3218. public function getPrevPageToken()
  3219. {
  3220. return $this->prevPageToken;
  3221. }
  3222. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  3223. {
  3224. $this->tokenPagination = $tokenPagination;
  3225. }
  3226. public function getTokenPagination()
  3227. {
  3228. return $this->tokenPagination;
  3229. }
  3230. public function setVisitorId($visitorId)
  3231. {
  3232. $this->visitorId = $visitorId;
  3233. }
  3234. public function getVisitorId()
  3235. {
  3236. return $this->visitorId;
  3237. }
  3238. }
  3239. class Google_Service_YouTube_ActivitySnippet extends Google_Model
  3240. {
  3241. public $channelId;
  3242. public $channelTitle;
  3243. public $description;
  3244. public $groupId;
  3245. public $publishedAt;
  3246. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  3247. protected $thumbnailsDataType = '';
  3248. public $title;
  3249. public $type;
  3250. public function setChannelId($channelId)
  3251. {
  3252. $this->channelId = $channelId;
  3253. }
  3254. public function getChannelId()
  3255. {
  3256. return $this->channelId;
  3257. }
  3258. public function setChannelTitle($channelTitle)
  3259. {
  3260. $this->channelTitle = $channelTitle;
  3261. }
  3262. public function getChannelTitle()
  3263. {
  3264. return $this->channelTitle;
  3265. }
  3266. public function setDescription($description)
  3267. {
  3268. $this->description = $description;
  3269. }
  3270. public function getDescription()
  3271. {
  3272. return $this->description;
  3273. }
  3274. public function setGroupId($groupId)
  3275. {
  3276. $this->groupId = $groupId;
  3277. }
  3278. public function getGroupId()
  3279. {
  3280. return $this->groupId;
  3281. }
  3282. public function setPublishedAt($publishedAt)
  3283. {
  3284. $this->publishedAt = $publishedAt;
  3285. }
  3286. public function getPublishedAt()
  3287. {
  3288. return $this->publishedAt;
  3289. }
  3290. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  3291. {
  3292. $this->thumbnails = $thumbnails;
  3293. }
  3294. public function getThumbnails()
  3295. {
  3296. return $this->thumbnails;
  3297. }
  3298. public function setTitle($title)
  3299. {
  3300. $this->title = $title;
  3301. }
  3302. public function getTitle()
  3303. {
  3304. return $this->title;
  3305. }
  3306. public function setType($type)
  3307. {
  3308. $this->type = $type;
  3309. }
  3310. public function getType()
  3311. {
  3312. return $this->type;
  3313. }
  3314. }
  3315. class Google_Service_YouTube_CdnSettings extends Google_Model
  3316. {
  3317. public $format;
  3318. protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo';
  3319. protected $ingestionInfoDataType = '';
  3320. public $ingestionType;
  3321. public function setFormat($format)
  3322. {
  3323. $this->format = $format;
  3324. }
  3325. public function getFormat()
  3326. {
  3327. return $this->format;
  3328. }
  3329. public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo)
  3330. {
  3331. $this->ingestionInfo = $ingestionInfo;
  3332. }
  3333. public function getIngestionInfo()
  3334. {
  3335. return $this->ingestionInfo;
  3336. }
  3337. public function setIngestionType($ingestionType)
  3338. {
  3339. $this->ingestionType = $ingestionType;
  3340. }
  3341. public function getIngestionType()
  3342. {
  3343. return $this->ingestionType;
  3344. }
  3345. }
  3346. class Google_Service_YouTube_Channel extends Google_Model
  3347. {
  3348. protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails';
  3349. protected $auditDetailsDataType = '';
  3350. protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings';
  3351. protected $brandingSettingsDataType = '';
  3352. protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails';
  3353. protected $contentDetailsDataType = '';
  3354. protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails';
  3355. protected $contentOwnerDetailsDataType = '';
  3356. protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings';
  3357. protected $conversionPingsDataType = '';
  3358. public $etag;
  3359. public $id;
  3360. protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion';
  3361. protected $invideoPromotionDataType = '';
  3362. public $kind;
  3363. protected $snippetType = 'Google_Service_YouTube_ChannelSnippet';
  3364. protected $snippetDataType = '';
  3365. protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics';
  3366. protected $statisticsDataType = '';
  3367. protected $statusType = 'Google_Service_YouTube_ChannelStatus';
  3368. protected $statusDataType = '';
  3369. protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails';
  3370. protected $topicDetailsDataType = '';
  3371. public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails)
  3372. {
  3373. $this->auditDetails = $auditDetails;
  3374. }
  3375. public function getAuditDetails()
  3376. {
  3377. return $this->auditDetails;
  3378. }
  3379. public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings)
  3380. {
  3381. $this->brandingSettings = $brandingSettings;
  3382. }
  3383. public function getBrandingSettings()
  3384. {
  3385. return $this->brandingSettings;
  3386. }
  3387. public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails)
  3388. {
  3389. $this->contentDetails = $contentDetails;
  3390. }
  3391. public function getContentDetails()
  3392. {
  3393. return $this->contentDetails;
  3394. }
  3395. public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails)
  3396. {
  3397. $this->contentOwnerDetails = $contentOwnerDetails;
  3398. }
  3399. public function getContentOwnerDetails()
  3400. {
  3401. return $this->contentOwnerDetails;
  3402. }
  3403. public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings)
  3404. {
  3405. $this->conversionPings = $conversionPings;
  3406. }
  3407. public function getConversionPings()
  3408. {
  3409. return $this->conversionPings;
  3410. }
  3411. public function setEtag($etag)
  3412. {
  3413. $this->etag = $etag;
  3414. }
  3415. public function getEtag()
  3416. {
  3417. return $this->etag;
  3418. }
  3419. public function setId($id)
  3420. {
  3421. $this->id = $id;
  3422. }
  3423. public function getId()
  3424. {
  3425. return $this->id;
  3426. }
  3427. public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion)
  3428. {
  3429. $this->invideoPromotion = $invideoPromotion;
  3430. }
  3431. public function getInvideoPromotion()
  3432. {
  3433. return $this->invideoPromotion;
  3434. }
  3435. public function setKind($kind)
  3436. {
  3437. $this->kind = $kind;
  3438. }
  3439. public function getKind()
  3440. {
  3441. return $this->kind;
  3442. }
  3443. public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet)
  3444. {
  3445. $this->snippet = $snippet;
  3446. }
  3447. public function getSnippet()
  3448. {
  3449. return $this->snippet;
  3450. }
  3451. public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics)
  3452. {
  3453. $this->statistics = $statistics;
  3454. }
  3455. public function getStatistics()
  3456. {
  3457. return $this->statistics;
  3458. }
  3459. public function setStatus(Google_Service_YouTube_ChannelStatus $status)
  3460. {
  3461. $this->status = $status;
  3462. }
  3463. public function getStatus()
  3464. {
  3465. return $this->status;
  3466. }
  3467. public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails)
  3468. {
  3469. $this->topicDetails = $topicDetails;
  3470. }
  3471. public function getTopicDetails()
  3472. {
  3473. return $this->topicDetails;
  3474. }
  3475. }
  3476. class Google_Service_YouTube_ChannelAuditDetails extends Google_Model
  3477. {
  3478. public $communityGuidelinesGoodStanding;
  3479. public $contentIdClaimsGoodStanding;
  3480. public $copyrightStrikesGoodStanding;
  3481. public $overallGoodStanding;
  3482. public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding)
  3483. {
  3484. $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding;
  3485. }
  3486. public function getCommunityGuidelinesGoodStanding()
  3487. {
  3488. return $this->communityGuidelinesGoodStanding;
  3489. }
  3490. public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding)
  3491. {
  3492. $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding;
  3493. }
  3494. public function getContentIdClaimsGoodStanding()
  3495. {
  3496. return $this->contentIdClaimsGoodStanding;
  3497. }
  3498. public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding)
  3499. {
  3500. $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding;
  3501. }
  3502. public function getCopyrightStrikesGoodStanding()
  3503. {
  3504. return $this->copyrightStrikesGoodStanding;
  3505. }
  3506. public function setOverallGoodStanding($overallGoodStanding)
  3507. {
  3508. $this->overallGoodStanding = $overallGoodStanding;
  3509. }
  3510. public function getOverallGoodStanding()
  3511. {
  3512. return $this->overallGoodStanding;
  3513. }
  3514. }
  3515. class Google_Service_YouTube_ChannelBannerResource extends Google_Model
  3516. {
  3517. public $etag;
  3518. public $kind;
  3519. public $url;
  3520. public function setEtag($etag)
  3521. {
  3522. $this->etag = $etag;
  3523. }
  3524. public function getEtag()
  3525. {
  3526. return $this->etag;
  3527. }
  3528. public function setKind($kind)
  3529. {
  3530. $this->kind = $kind;
  3531. }
  3532. public function getKind()
  3533. {
  3534. return $this->kind;
  3535. }
  3536. public function setUrl($url)
  3537. {
  3538. $this->url = $url;
  3539. }
  3540. public function getUrl()
  3541. {
  3542. return $this->url;
  3543. }
  3544. }
  3545. class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection
  3546. {
  3547. protected $channelType = 'Google_Service_YouTube_ChannelSettings';
  3548. protected $channelDataType = '';
  3549. protected $hintsType = 'Google_Service_YouTube_PropertyValue';
  3550. protected $hintsDataType = 'array';
  3551. protected $imageType = 'Google_Service_YouTube_ImageSettings';
  3552. protected $imageDataType = '';
  3553. protected $watchType = 'Google_Service_YouTube_WatchSettings';
  3554. protected $watchDataType = '';
  3555. public function setChannel(Google_Service_YouTube_ChannelSettings $channel)
  3556. {
  3557. $this->channel = $channel;
  3558. }
  3559. public function getChannel()
  3560. {
  3561. return $this->channel;
  3562. }
  3563. public function setHints($hints)
  3564. {
  3565. $this->hints = $hints;
  3566. }
  3567. public function getHints()
  3568. {
  3569. return $this->hints;
  3570. }
  3571. public function setImage(Google_Service_YouTube_ImageSettings $image)
  3572. {
  3573. $this->image = $image;
  3574. }
  3575. public function getImage()
  3576. {
  3577. return $this->image;
  3578. }
  3579. public function setWatch(Google_Service_YouTube_WatchSettings $watch)
  3580. {
  3581. $this->watch = $watch;
  3582. }
  3583. public function getWatch()
  3584. {
  3585. return $this->watch;
  3586. }
  3587. }
  3588. class Google_Service_YouTube_ChannelContentDetails extends Google_Model
  3589. {
  3590. public $googlePlusUserId;
  3591. protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists';
  3592. protected $relatedPlaylistsDataType = '';
  3593. public function setGooglePlusUserId($googlePlusUserId)
  3594. {
  3595. $this->googlePlusUserId = $googlePlusUserId;
  3596. }
  3597. public function getGooglePlusUserId()
  3598. {
  3599. return $this->googlePlusUserId;
  3600. }
  3601. public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists)
  3602. {
  3603. $this->relatedPlaylists = $relatedPlaylists;
  3604. }
  3605. public function getRelatedPlaylists()
  3606. {
  3607. return $this->relatedPlaylists;
  3608. }
  3609. }
  3610. class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model
  3611. {
  3612. public $favorites;
  3613. public $likes;
  3614. public $uploads;
  3615. public $watchHistory;
  3616. public $watchLater;
  3617. public function setFavorites($favorites)
  3618. {
  3619. $this->favorites = $favorites;
  3620. }
  3621. public function getFavorites()
  3622. {
  3623. return $this->favorites;
  3624. }
  3625. public function setLikes($likes)
  3626. {
  3627. $this->likes = $likes;
  3628. }
  3629. public function getLikes()
  3630. {
  3631. return $this->likes;
  3632. }
  3633. public function setUploads($uploads)
  3634. {
  3635. $this->uploads = $uploads;
  3636. }
  3637. public function getUploads()
  3638. {
  3639. return $this->uploads;
  3640. }
  3641. public function setWatchHistory($watchHistory)
  3642. {
  3643. $this->watchHistory = $watchHistory;
  3644. }
  3645. public function getWatchHistory()
  3646. {
  3647. return $this->watchHistory;
  3648. }
  3649. public function setWatchLater($watchLater)
  3650. {
  3651. $this->watchLater = $watchLater;
  3652. }
  3653. public function getWatchLater()
  3654. {
  3655. return $this->watchLater;
  3656. }
  3657. }
  3658. class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model
  3659. {
  3660. public $contentOwner;
  3661. public $timeLinked;
  3662. public function setContentOwner($contentOwner)
  3663. {
  3664. $this->contentOwner = $contentOwner;
  3665. }
  3666. public function getContentOwner()
  3667. {
  3668. return $this->contentOwner;
  3669. }
  3670. public function setTimeLinked($timeLinked)
  3671. {
  3672. $this->timeLinked = $timeLinked;
  3673. }
  3674. public function getTimeLinked()
  3675. {
  3676. return $this->timeLinked;
  3677. }
  3678. }
  3679. class Google_Service_YouTube_ChannelConversionPing extends Google_Model
  3680. {
  3681. public $context;
  3682. public $conversionUrl;
  3683. public function setContext($context)
  3684. {
  3685. $this->context = $context;
  3686. }
  3687. public function getContext()
  3688. {
  3689. return $this->context;
  3690. }
  3691. public function setConversionUrl($conversionUrl)
  3692. {
  3693. $this->conversionUrl = $conversionUrl;
  3694. }
  3695. public function getConversionUrl()
  3696. {
  3697. return $this->conversionUrl;
  3698. }
  3699. }
  3700. class Google_Service_YouTube_ChannelConversionPings extends Google_Collection
  3701. {
  3702. protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing';
  3703. protected $pingsDataType = 'array';
  3704. public function setPings($pings)
  3705. {
  3706. $this->pings = $pings;
  3707. }
  3708. public function getPings()
  3709. {
  3710. return $this->pings;
  3711. }
  3712. }
  3713. class Google_Service_YouTube_ChannelListResponse extends Google_Collection
  3714. {
  3715. public $etag;
  3716. public $eventId;
  3717. protected $itemsType = 'Google_Service_YouTube_Channel';
  3718. protected $itemsDataType = 'array';
  3719. public $kind;
  3720. public $nextPageToken;
  3721. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  3722. protected $pageInfoDataType = '';
  3723. public $prevPageToken;
  3724. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  3725. protected $tokenPaginationDataType = '';
  3726. public $visitorId;
  3727. public function setEtag($etag)
  3728. {
  3729. $this->etag = $etag;
  3730. }
  3731. public function getEtag()
  3732. {
  3733. return $this->etag;
  3734. }
  3735. public function setEventId($eventId)
  3736. {
  3737. $this->eventId = $eventId;
  3738. }
  3739. public function getEventId()
  3740. {
  3741. return $this->eventId;
  3742. }
  3743. public function setItems($items)
  3744. {
  3745. $this->items = $items;
  3746. }
  3747. public function getItems()
  3748. {
  3749. return $this->items;
  3750. }
  3751. public function setKind($kind)
  3752. {
  3753. $this->kind = $kind;
  3754. }
  3755. public function getKind()
  3756. {
  3757. return $this->kind;
  3758. }
  3759. public function setNextPageToken($nextPageToken)
  3760. {
  3761. $this->nextPageToken = $nextPageToken;
  3762. }
  3763. public function getNextPageToken()
  3764. {
  3765. return $this->nextPageToken;
  3766. }
  3767. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  3768. {
  3769. $this->pageInfo = $pageInfo;
  3770. }
  3771. public function getPageInfo()
  3772. {
  3773. return $this->pageInfo;
  3774. }
  3775. public function setPrevPageToken($prevPageToken)
  3776. {
  3777. $this->prevPageToken = $prevPageToken;
  3778. }
  3779. public function getPrevPageToken()
  3780. {
  3781. return $this->prevPageToken;
  3782. }
  3783. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  3784. {
  3785. $this->tokenPagination = $tokenPagination;
  3786. }
  3787. public function getTokenPagination()
  3788. {
  3789. return $this->tokenPagination;
  3790. }
  3791. public function setVisitorId($visitorId)
  3792. {
  3793. $this->visitorId = $visitorId;
  3794. }
  3795. public function getVisitorId()
  3796. {
  3797. return $this->visitorId;
  3798. }
  3799. }
  3800. class Google_Service_YouTube_ChannelSettings extends Google_Collection
  3801. {
  3802. public $defaultTab;
  3803. public $description;
  3804. public $featuredChannelsTitle;
  3805. public $featuredChannelsUrls;
  3806. public $keywords;
  3807. public $moderateComments;
  3808. public $profileColor;
  3809. public $showBrowseView;
  3810. public $showRelatedChannels;
  3811. public $title;
  3812. public $trackingAnalyticsAccountId;
  3813. public $unsubscribedTrailer;
  3814. public function setDefaultTab($defaultTab)
  3815. {
  3816. $this->defaultTab = $defaultTab;
  3817. }
  3818. public function getDefaultTab()
  3819. {
  3820. return $this->defaultTab;
  3821. }
  3822. public function setDescription($description)
  3823. {
  3824. $this->description = $description;
  3825. }
  3826. public function getDescription()
  3827. {
  3828. return $this->description;
  3829. }
  3830. public function setFeaturedChannelsTitle($featuredChannelsTitle)
  3831. {
  3832. $this->featuredChannelsTitle = $featuredChannelsTitle;
  3833. }
  3834. public function getFeaturedChannelsTitle()
  3835. {
  3836. return $this->featuredChannelsTitle;
  3837. }
  3838. public function setFeaturedChannelsUrls($featuredChannelsUrls)
  3839. {
  3840. $this->featuredChannelsUrls = $featuredChannelsUrls;
  3841. }
  3842. public function getFeaturedChannelsUrls()
  3843. {
  3844. return $this->featuredChannelsUrls;
  3845. }
  3846. public function setKeywords($keywords)
  3847. {
  3848. $this->keywords = $keywords;
  3849. }
  3850. public function getKeywords()
  3851. {
  3852. return $this->keywords;
  3853. }
  3854. public function setModerateComments($moderateComments)
  3855. {
  3856. $this->moderateComments = $moderateComments;
  3857. }
  3858. public function getModerateComments()
  3859. {
  3860. return $this->moderateComments;
  3861. }
  3862. public function setProfileColor($profileColor)
  3863. {
  3864. $this->profileColor = $profileColor;
  3865. }
  3866. public function getProfileColor()
  3867. {
  3868. return $this->profileColor;
  3869. }
  3870. public function setShowBrowseView($showBrowseView)
  3871. {
  3872. $this->showBrowseView = $showBrowseView;
  3873. }
  3874. public function getShowBrowseView()
  3875. {
  3876. return $this->showBrowseView;
  3877. }
  3878. public function setShowRelatedChannels($showRelatedChannels)
  3879. {
  3880. $this->showRelatedChannels = $showRelatedChannels;
  3881. }
  3882. public function getShowRelatedChannels()
  3883. {
  3884. return $this->showRelatedChannels;
  3885. }
  3886. public function setTitle($title)
  3887. {
  3888. $this->title = $title;
  3889. }
  3890. public function getTitle()
  3891. {
  3892. return $this->title;
  3893. }
  3894. public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId)
  3895. {
  3896. $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId;
  3897. }
  3898. public function getTrackingAnalyticsAccountId()
  3899. {
  3900. return $this->trackingAnalyticsAccountId;
  3901. }
  3902. public function setUnsubscribedTrailer($unsubscribedTrailer)
  3903. {
  3904. $this->unsubscribedTrailer = $unsubscribedTrailer;
  3905. }
  3906. public function getUnsubscribedTrailer()
  3907. {
  3908. return $this->unsubscribedTrailer;
  3909. }
  3910. }
  3911. class Google_Service_YouTube_ChannelSnippet extends Google_Model
  3912. {
  3913. public $description;
  3914. public $publishedAt;
  3915. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  3916. protected $thumbnailsDataType = '';
  3917. public $title;
  3918. public function setDescription($description)
  3919. {
  3920. $this->description = $description;
  3921. }
  3922. public function getDescription()
  3923. {
  3924. return $this->description;
  3925. }
  3926. public function setPublishedAt($publishedAt)
  3927. {
  3928. $this->publishedAt = $publishedAt;
  3929. }
  3930. public function getPublishedAt()
  3931. {
  3932. return $this->publishedAt;
  3933. }
  3934. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  3935. {
  3936. $this->thumbnails = $thumbnails;
  3937. }
  3938. public function getThumbnails()
  3939. {
  3940. return $this->thumbnails;
  3941. }
  3942. public function setTitle($title)
  3943. {
  3944. $this->title = $title;
  3945. }
  3946. public function getTitle()
  3947. {
  3948. return $this->title;
  3949. }
  3950. }
  3951. class Google_Service_YouTube_ChannelStatistics extends Google_Model
  3952. {
  3953. public $commentCount;
  3954. public $hiddenSubscriberCount;
  3955. public $subscriberCount;
  3956. public $videoCount;
  3957. public $viewCount;
  3958. public function setCommentCount($commentCount)
  3959. {
  3960. $this->commentCount = $commentCount;
  3961. }
  3962. public function getCommentCount()
  3963. {
  3964. return $this->commentCount;
  3965. }
  3966. public function setHiddenSubscriberCount($hiddenSubscriberCount)
  3967. {
  3968. $this->hiddenSubscriberCount = $hiddenSubscriberCount;
  3969. }
  3970. public function getHiddenSubscriberCount()
  3971. {
  3972. return $this->hiddenSubscriberCount;
  3973. }
  3974. public function setSubscriberCount($subscriberCount)
  3975. {
  3976. $this->subscriberCount = $subscriberCount;
  3977. }
  3978. public function getSubscriberCount()
  3979. {
  3980. return $this->subscriberCount;
  3981. }
  3982. public function setVideoCount($videoCount)
  3983. {
  3984. $this->videoCount = $videoCount;
  3985. }
  3986. public function getVideoCount()
  3987. {
  3988. return $this->videoCount;
  3989. }
  3990. public function setViewCount($viewCount)
  3991. {
  3992. $this->viewCount = $viewCount;
  3993. }
  3994. public function getViewCount()
  3995. {
  3996. return $this->viewCount;
  3997. }
  3998. }
  3999. class Google_Service_YouTube_ChannelStatus extends Google_Model
  4000. {
  4001. public $isLinked;
  4002. public $privacyStatus;
  4003. public function setIsLinked($isLinked)
  4004. {
  4005. $this->isLinked = $isLinked;
  4006. }
  4007. public function getIsLinked()
  4008. {
  4009. return $this->isLinked;
  4010. }
  4011. public function setPrivacyStatus($privacyStatus)
  4012. {
  4013. $this->privacyStatus = $privacyStatus;
  4014. }
  4015. public function getPrivacyStatus()
  4016. {
  4017. return $this->privacyStatus;
  4018. }
  4019. }
  4020. class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection
  4021. {
  4022. public $topicIds;
  4023. public function setTopicIds($topicIds)
  4024. {
  4025. $this->topicIds = $topicIds;
  4026. }
  4027. public function getTopicIds()
  4028. {
  4029. return $this->topicIds;
  4030. }
  4031. }
  4032. class Google_Service_YouTube_ContentRating extends Google_Model
  4033. {
  4034. public $acbRating;
  4035. public $bbfcRating;
  4036. public $catvRating;
  4037. public $catvfrRating;
  4038. public $cbfcRating;
  4039. public $chvrsRating;
  4040. public $djctqRating;
  4041. public $eirinRating;
  4042. public $fmocRating;
  4043. public $fskRating;
  4044. public $icaaRating;
  4045. public $kmrbRating;
  4046. public $mibacRating;
  4047. public $mpaaRating;
  4048. public $oflcRating;
  4049. public $rtcRating;
  4050. public $russiaRating;
  4051. public $tvpgRating;
  4052. public $ytRating;
  4053. public function setAcbRating($acbRating)
  4054. {
  4055. $this->acbRating = $acbRating;
  4056. }
  4057. public function getAcbRating()
  4058. {
  4059. return $this->acbRating;
  4060. }
  4061. public function setBbfcRating($bbfcRating)
  4062. {
  4063. $this->bbfcRating = $bbfcRating;
  4064. }
  4065. public function getBbfcRating()
  4066. {
  4067. return $this->bbfcRating;
  4068. }
  4069. public function setCatvRating($catvRating)
  4070. {
  4071. $this->catvRating = $catvRating;
  4072. }
  4073. public function getCatvRating()
  4074. {
  4075. return $this->catvRating;
  4076. }
  4077. public function setCatvfrRating($catvfrRating)
  4078. {
  4079. $this->catvfrRating = $catvfrRating;
  4080. }
  4081. public function getCatvfrRating()
  4082. {
  4083. return $this->catvfrRating;
  4084. }
  4085. public function setCbfcRating($cbfcRating)
  4086. {
  4087. $this->cbfcRating = $cbfcRating;
  4088. }
  4089. public function getCbfcRating()
  4090. {
  4091. return $this->cbfcRating;
  4092. }
  4093. public function setChvrsRating($chvrsRating)
  4094. {
  4095. $this->chvrsRating = $chvrsRating;
  4096. }
  4097. public function getChvrsRating()
  4098. {
  4099. return $this->chvrsRating;
  4100. }
  4101. public function setDjctqRating($djctqRating)
  4102. {
  4103. $this->djctqRating = $djctqRating;
  4104. }
  4105. public function getDjctqRating()
  4106. {
  4107. return $this->djctqRating;
  4108. }
  4109. public function setEirinRating($eirinRating)
  4110. {
  4111. $this->eirinRating = $eirinRating;
  4112. }
  4113. public function getEirinRating()
  4114. {
  4115. return $this->eirinRating;
  4116. }
  4117. public function setFmocRating($fmocRating)
  4118. {
  4119. $this->fmocRating = $fmocRating;
  4120. }
  4121. public function getFmocRating()
  4122. {
  4123. return $this->fmocRating;
  4124. }
  4125. public function setFskRating($fskRating)
  4126. {
  4127. $this->fskRating = $fskRating;
  4128. }
  4129. public function getFskRating()
  4130. {
  4131. return $this->fskRating;
  4132. }
  4133. public function setIcaaRating($icaaRating)
  4134. {
  4135. $this->icaaRating = $icaaRating;
  4136. }
  4137. public function getIcaaRating()
  4138. {
  4139. return $this->icaaRating;
  4140. }
  4141. public function setKmrbRating($kmrbRating)
  4142. {
  4143. $this->kmrbRating = $kmrbRating;
  4144. }
  4145. public function getKmrbRating()
  4146. {
  4147. return $this->kmrbRating;
  4148. }
  4149. public function setMibacRating($mibacRating)
  4150. {
  4151. $this->mibacRating = $mibacRating;
  4152. }
  4153. public function getMibacRating()
  4154. {
  4155. return $this->mibacRating;
  4156. }
  4157. public function setMpaaRating($mpaaRating)
  4158. {
  4159. $this->mpaaRating = $mpaaRating;
  4160. }
  4161. public function getMpaaRating()
  4162. {
  4163. return $this->mpaaRating;
  4164. }
  4165. public function setOflcRating($oflcRating)
  4166. {
  4167. $this->oflcRating = $oflcRating;
  4168. }
  4169. public function getOflcRating()
  4170. {
  4171. return $this->oflcRating;
  4172. }
  4173. public function setRtcRating($rtcRating)
  4174. {
  4175. $this->rtcRating = $rtcRating;
  4176. }
  4177. public function getRtcRating()
  4178. {
  4179. return $this->rtcRating;
  4180. }
  4181. public function setRussiaRating($russiaRating)
  4182. {
  4183. $this->russiaRating = $russiaRating;
  4184. }
  4185. public function getRussiaRating()
  4186. {
  4187. return $this->russiaRating;
  4188. }
  4189. public function setTvpgRating($tvpgRating)
  4190. {
  4191. $this->tvpgRating = $tvpgRating;
  4192. }
  4193. public function getTvpgRating()
  4194. {
  4195. return $this->tvpgRating;
  4196. }
  4197. public function setYtRating($ytRating)
  4198. {
  4199. $this->ytRating = $ytRating;
  4200. }
  4201. public function getYtRating()
  4202. {
  4203. return $this->ytRating;
  4204. }
  4205. }
  4206. class Google_Service_YouTube_GeoPoint extends Google_Model
  4207. {
  4208. public $altitude;
  4209. public $latitude;
  4210. public $longitude;
  4211. public function setAltitude($altitude)
  4212. {
  4213. $this->altitude = $altitude;
  4214. }
  4215. public function getAltitude()
  4216. {
  4217. return $this->altitude;
  4218. }
  4219. public function setLatitude($latitude)
  4220. {
  4221. $this->latitude = $latitude;
  4222. }
  4223. public function getLatitude()
  4224. {
  4225. return $this->latitude;
  4226. }
  4227. public function setLongitude($longitude)
  4228. {
  4229. $this->longitude = $longitude;
  4230. }
  4231. public function getLongitude()
  4232. {
  4233. return $this->longitude;
  4234. }
  4235. }
  4236. class Google_Service_YouTube_GuideCategory extends Google_Model
  4237. {
  4238. public $etag;
  4239. public $id;
  4240. public $kind;
  4241. protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet';
  4242. protected $snippetDataType = '';
  4243. public function setEtag($etag)
  4244. {
  4245. $this->etag = $etag;
  4246. }
  4247. public function getEtag()
  4248. {
  4249. return $this->etag;
  4250. }
  4251. public function setId($id)
  4252. {
  4253. $this->id = $id;
  4254. }
  4255. public function getId()
  4256. {
  4257. return $this->id;
  4258. }
  4259. public function setKind($kind)
  4260. {
  4261. $this->kind = $kind;
  4262. }
  4263. public function getKind()
  4264. {
  4265. return $this->kind;
  4266. }
  4267. public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet)
  4268. {
  4269. $this->snippet = $snippet;
  4270. }
  4271. public function getSnippet()
  4272. {
  4273. return $this->snippet;
  4274. }
  4275. }
  4276. class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection
  4277. {
  4278. public $etag;
  4279. public $eventId;
  4280. protected $itemsType = 'Google_Service_YouTube_GuideCategory';
  4281. protected $itemsDataType = 'array';
  4282. public $kind;
  4283. public $nextPageToken;
  4284. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  4285. protected $pageInfoDataType = '';
  4286. public $prevPageToken;
  4287. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  4288. protected $tokenPaginationDataType = '';
  4289. public $visitorId;
  4290. public function setEtag($etag)
  4291. {
  4292. $this->etag = $etag;
  4293. }
  4294. public function getEtag()
  4295. {
  4296. return $this->etag;
  4297. }
  4298. public function setEventId($eventId)
  4299. {
  4300. $this->eventId = $eventId;
  4301. }
  4302. public function getEventId()
  4303. {
  4304. return $this->eventId;
  4305. }
  4306. public function setItems($items)
  4307. {
  4308. $this->items = $items;
  4309. }
  4310. public function getItems()
  4311. {
  4312. return $this->items;
  4313. }
  4314. public function setKind($kind)
  4315. {
  4316. $this->kind = $kind;
  4317. }
  4318. public function getKind()
  4319. {
  4320. return $this->kind;
  4321. }
  4322. public function setNextPageToken($nextPageToken)
  4323. {
  4324. $this->nextPageToken = $nextPageToken;
  4325. }
  4326. public function getNextPageToken()
  4327. {
  4328. return $this->nextPageToken;
  4329. }
  4330. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  4331. {
  4332. $this->pageInfo = $pageInfo;
  4333. }
  4334. public function getPageInfo()
  4335. {
  4336. return $this->pageInfo;
  4337. }
  4338. public function setPrevPageToken($prevPageToken)
  4339. {
  4340. $this->prevPageToken = $prevPageToken;
  4341. }
  4342. public function getPrevPageToken()
  4343. {
  4344. return $this->prevPageToken;
  4345. }
  4346. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  4347. {
  4348. $this->tokenPagination = $tokenPagination;
  4349. }
  4350. public function getTokenPagination()
  4351. {
  4352. return $this->tokenPagination;
  4353. }
  4354. public function setVisitorId($visitorId)
  4355. {
  4356. $this->visitorId = $visitorId;
  4357. }
  4358. public function getVisitorId()
  4359. {
  4360. return $this->visitorId;
  4361. }
  4362. }
  4363. class Google_Service_YouTube_GuideCategorySnippet extends Google_Model
  4364. {
  4365. public $channelId;
  4366. public $title;
  4367. public function setChannelId($channelId)
  4368. {
  4369. $this->channelId = $channelId;
  4370. }
  4371. public function getChannelId()
  4372. {
  4373. return $this->channelId;
  4374. }
  4375. public function setTitle($title)
  4376. {
  4377. $this->title = $title;
  4378. }
  4379. public function getTitle()
  4380. {
  4381. return $this->title;
  4382. }
  4383. }
  4384. class Google_Service_YouTube_ImageSettings extends Google_Model
  4385. {
  4386. protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
  4387. protected $backgroundImageUrlDataType = '';
  4388. public $bannerExternalUrl;
  4389. public $bannerImageUrl;
  4390. public $bannerMobileExtraHdImageUrl;
  4391. public $bannerMobileHdImageUrl;
  4392. public $bannerMobileImageUrl;
  4393. public $bannerMobileLowImageUrl;
  4394. public $bannerMobileMediumHdImageUrl;
  4395. public $bannerTabletExtraHdImageUrl;
  4396. public $bannerTabletHdImageUrl;
  4397. public $bannerTabletImageUrl;
  4398. public $bannerTabletLowImageUrl;
  4399. public $bannerTvHighImageUrl;
  4400. public $bannerTvImageUrl;
  4401. public $bannerTvLowImageUrl;
  4402. public $bannerTvMediumImageUrl;
  4403. protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
  4404. protected $largeBrandedBannerImageImapScriptDataType = '';
  4405. protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
  4406. protected $largeBrandedBannerImageUrlDataType = '';
  4407. protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
  4408. protected $smallBrandedBannerImageImapScriptDataType = '';
  4409. protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
  4410. protected $smallBrandedBannerImageUrlDataType = '';
  4411. public $trackingImageUrl;
  4412. public $watchIconImageUrl;
  4413. public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl)
  4414. {
  4415. $this->backgroundImageUrl = $backgroundImageUrl;
  4416. }
  4417. public function getBackgroundImageUrl()
  4418. {
  4419. return $this->backgroundImageUrl;
  4420. }
  4421. public function setBannerExternalUrl($bannerExternalUrl)
  4422. {
  4423. $this->bannerExternalUrl = $bannerExternalUrl;
  4424. }
  4425. public function getBannerExternalUrl()
  4426. {
  4427. return $this->bannerExternalUrl;
  4428. }
  4429. public function setBannerImageUrl($bannerImageUrl)
  4430. {
  4431. $this->bannerImageUrl = $bannerImageUrl;
  4432. }
  4433. public function getBannerImageUrl()
  4434. {
  4435. return $this->bannerImageUrl;
  4436. }
  4437. public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl)
  4438. {
  4439. $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl;
  4440. }
  4441. public function getBannerMobileExtraHdImageUrl()
  4442. {
  4443. return $this->bannerMobileExtraHdImageUrl;
  4444. }
  4445. public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl)
  4446. {
  4447. $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl;
  4448. }
  4449. public function getBannerMobileHdImageUrl()
  4450. {
  4451. return $this->bannerMobileHdImageUrl;
  4452. }
  4453. public function setBannerMobileImageUrl($bannerMobileImageUrl)
  4454. {
  4455. $this->bannerMobileImageUrl = $bannerMobileImageUrl;
  4456. }
  4457. public function getBannerMobileImageUrl()
  4458. {
  4459. return $this->bannerMobileImageUrl;
  4460. }
  4461. public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl)
  4462. {
  4463. $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl;
  4464. }
  4465. public function getBannerMobileLowImageUrl()
  4466. {
  4467. return $this->bannerMobileLowImageUrl;
  4468. }
  4469. public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl)
  4470. {
  4471. $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl;
  4472. }
  4473. public function getBannerMobileMediumHdImageUrl()
  4474. {
  4475. return $this->bannerMobileMediumHdImageUrl;
  4476. }
  4477. public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl)
  4478. {
  4479. $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl;
  4480. }
  4481. public function getBannerTabletExtraHdImageUrl()
  4482. {
  4483. return $this->bannerTabletExtraHdImageUrl;
  4484. }
  4485. public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl)
  4486. {
  4487. $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl;
  4488. }
  4489. public function getBannerTabletHdImageUrl()
  4490. {
  4491. return $this->bannerTabletHdImageUrl;
  4492. }
  4493. public function setBannerTabletImageUrl($bannerTabletImageUrl)
  4494. {
  4495. $this->bannerTabletImageUrl = $bannerTabletImageUrl;
  4496. }
  4497. public function getBannerTabletImageUrl()
  4498. {
  4499. return $this->bannerTabletImageUrl;
  4500. }
  4501. public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl)
  4502. {
  4503. $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl;
  4504. }
  4505. public function getBannerTabletLowImageUrl()
  4506. {
  4507. return $this->bannerTabletLowImageUrl;
  4508. }
  4509. public function setBannerTvHighImageUrl($bannerTvHighImageUrl)
  4510. {
  4511. $this->bannerTvHighImageUrl = $bannerTvHighImageUrl;
  4512. }
  4513. public function getBannerTvHighImageUrl()
  4514. {
  4515. return $this->bannerTvHighImageUrl;
  4516. }
  4517. public function setBannerTvImageUrl($bannerTvImageUrl)
  4518. {
  4519. $this->bannerTvImageUrl = $bannerTvImageUrl;
  4520. }
  4521. public function getBannerTvImageUrl()
  4522. {
  4523. return $this->bannerTvImageUrl;
  4524. }
  4525. public function setBannerTvLowImageUrl($bannerTvLowImageUrl)
  4526. {
  4527. $this->bannerTvLowImageUrl = $bannerTvLowImageUrl;
  4528. }
  4529. public function getBannerTvLowImageUrl()
  4530. {
  4531. return $this->bannerTvLowImageUrl;
  4532. }
  4533. public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl)
  4534. {
  4535. $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl;
  4536. }
  4537. public function getBannerTvMediumImageUrl()
  4538. {
  4539. return $this->bannerTvMediumImageUrl;
  4540. }
  4541. public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript)
  4542. {
  4543. $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript;
  4544. }
  4545. public function getLargeBrandedBannerImageImapScript()
  4546. {
  4547. return $this->largeBrandedBannerImageImapScript;
  4548. }
  4549. public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl)
  4550. {
  4551. $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl;
  4552. }
  4553. public function getLargeBrandedBannerImageUrl()
  4554. {
  4555. return $this->largeBrandedBannerImageUrl;
  4556. }
  4557. public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript)
  4558. {
  4559. $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript;
  4560. }
  4561. public function getSmallBrandedBannerImageImapScript()
  4562. {
  4563. return $this->smallBrandedBannerImageImapScript;
  4564. }
  4565. public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl)
  4566. {
  4567. $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl;
  4568. }
  4569. public function getSmallBrandedBannerImageUrl()
  4570. {
  4571. return $this->smallBrandedBannerImageUrl;
  4572. }
  4573. public function setTrackingImageUrl($trackingImageUrl)
  4574. {
  4575. $this->trackingImageUrl = $trackingImageUrl;
  4576. }
  4577. public function getTrackingImageUrl()
  4578. {
  4579. return $this->trackingImageUrl;
  4580. }
  4581. public function setWatchIconImageUrl($watchIconImageUrl)
  4582. {
  4583. $this->watchIconImageUrl = $watchIconImageUrl;
  4584. }
  4585. public function getWatchIconImageUrl()
  4586. {
  4587. return $this->watchIconImageUrl;
  4588. }
  4589. }
  4590. class Google_Service_YouTube_IngestionInfo extends Google_Model
  4591. {
  4592. public $backupIngestionAddress;
  4593. public $ingestionAddress;
  4594. public $streamName;
  4595. public function setBackupIngestionAddress($backupIngestionAddress)
  4596. {
  4597. $this->backupIngestionAddress = $backupIngestionAddress;
  4598. }
  4599. public function getBackupIngestionAddress()
  4600. {
  4601. return $this->backupIngestionAddress;
  4602. }
  4603. public function setIngestionAddress($ingestionAddress)
  4604. {
  4605. $this->ingestionAddress = $ingestionAddress;
  4606. }
  4607. public function getIngestionAddress()
  4608. {
  4609. return $this->ingestionAddress;
  4610. }
  4611. public function setStreamName($streamName)
  4612. {
  4613. $this->streamName = $streamName;
  4614. }
  4615. public function getStreamName()
  4616. {
  4617. return $this->streamName;
  4618. }
  4619. }
  4620. class Google_Service_YouTube_InvideoBranding extends Google_Model
  4621. {
  4622. public $imageBytes;
  4623. public $imageUrl;
  4624. protected $positionType = 'Google_Service_YouTube_InvideoPosition';
  4625. protected $positionDataType = '';
  4626. public $targetChannelId;
  4627. protected $timingType = 'Google_Service_YouTube_InvideoTiming';
  4628. protected $timingDataType = '';
  4629. public function setImageBytes($imageBytes)
  4630. {
  4631. $this->imageBytes = $imageBytes;
  4632. }
  4633. public function getImageBytes()
  4634. {
  4635. return $this->imageBytes;
  4636. }
  4637. public function setImageUrl($imageUrl)
  4638. {
  4639. $this->imageUrl = $imageUrl;
  4640. }
  4641. public function getImageUrl()
  4642. {
  4643. return $this->imageUrl;
  4644. }
  4645. public function setPosition(Google_Service_YouTube_InvideoPosition $position)
  4646. {
  4647. $this->position = $position;
  4648. }
  4649. public function getPosition()
  4650. {
  4651. return $this->position;
  4652. }
  4653. public function setTargetChannelId($targetChannelId)
  4654. {
  4655. $this->targetChannelId = $targetChannelId;
  4656. }
  4657. public function getTargetChannelId()
  4658. {
  4659. return $this->targetChannelId;
  4660. }
  4661. public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
  4662. {
  4663. $this->timing = $timing;
  4664. }
  4665. public function getTiming()
  4666. {
  4667. return $this->timing;
  4668. }
  4669. }
  4670. class Google_Service_YouTube_InvideoPosition extends Google_Model
  4671. {
  4672. public $cornerPosition;
  4673. public $type;
  4674. public function setCornerPosition($cornerPosition)
  4675. {
  4676. $this->cornerPosition = $cornerPosition;
  4677. }
  4678. public function getCornerPosition()
  4679. {
  4680. return $this->cornerPosition;
  4681. }
  4682. public function setType($type)
  4683. {
  4684. $this->type = $type;
  4685. }
  4686. public function getType()
  4687. {
  4688. return $this->type;
  4689. }
  4690. }
  4691. class Google_Service_YouTube_InvideoPromotion extends Google_Collection
  4692. {
  4693. protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming';
  4694. protected $defaultTimingDataType = '';
  4695. protected $itemsType = 'Google_Service_YouTube_PromotedItem';
  4696. protected $itemsDataType = 'array';
  4697. protected $positionType = 'Google_Service_YouTube_InvideoPosition';
  4698. protected $positionDataType = '';
  4699. public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming)
  4700. {
  4701. $this->defaultTiming = $defaultTiming;
  4702. }
  4703. public function getDefaultTiming()
  4704. {
  4705. return $this->defaultTiming;
  4706. }
  4707. public function setItems($items)
  4708. {
  4709. $this->items = $items;
  4710. }
  4711. public function getItems()
  4712. {
  4713. return $this->items;
  4714. }
  4715. public function setPosition(Google_Service_YouTube_InvideoPosition $position)
  4716. {
  4717. $this->position = $position;
  4718. }
  4719. public function getPosition()
  4720. {
  4721. return $this->position;
  4722. }
  4723. }
  4724. class Google_Service_YouTube_InvideoTiming extends Google_Model
  4725. {
  4726. public $durationMs;
  4727. public $offsetMs;
  4728. public $type;
  4729. public function setDurationMs($durationMs)
  4730. {
  4731. $this->durationMs = $durationMs;
  4732. }
  4733. public function getDurationMs()
  4734. {
  4735. return $this->durationMs;
  4736. }
  4737. public function setOffsetMs($offsetMs)
  4738. {
  4739. $this->offsetMs = $offsetMs;
  4740. }
  4741. public function getOffsetMs()
  4742. {
  4743. return $this->offsetMs;
  4744. }
  4745. public function setType($type)
  4746. {
  4747. $this->type = $type;
  4748. }
  4749. public function getType()
  4750. {
  4751. return $this->type;
  4752. }
  4753. }
  4754. class Google_Service_YouTube_LiveBroadcast extends Google_Model
  4755. {
  4756. protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails';
  4757. protected $contentDetailsDataType = '';
  4758. public $etag;
  4759. public $id;
  4760. public $kind;
  4761. protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet';
  4762. protected $snippetDataType = '';
  4763. protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus';
  4764. protected $statusDataType = '';
  4765. public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails)
  4766. {
  4767. $this->contentDetails = $contentDetails;
  4768. }
  4769. public function getContentDetails()
  4770. {
  4771. return $this->contentDetails;
  4772. }
  4773. public function setEtag($etag)
  4774. {
  4775. $this->etag = $etag;
  4776. }
  4777. public function getEtag()
  4778. {
  4779. return $this->etag;
  4780. }
  4781. public function setId($id)
  4782. {
  4783. $this->id = $id;
  4784. }
  4785. public function getId()
  4786. {
  4787. return $this->id;
  4788. }
  4789. public function setKind($kind)
  4790. {
  4791. $this->kind = $kind;
  4792. }
  4793. public function getKind()
  4794. {
  4795. return $this->kind;
  4796. }
  4797. public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet)
  4798. {
  4799. $this->snippet = $snippet;
  4800. }
  4801. public function getSnippet()
  4802. {
  4803. return $this->snippet;
  4804. }
  4805. public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status)
  4806. {
  4807. $this->status = $status;
  4808. }
  4809. public function getStatus()
  4810. {
  4811. return $this->status;
  4812. }
  4813. }
  4814. class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model
  4815. {
  4816. public $boundStreamId;
  4817. public $enableClosedCaptions;
  4818. public $enableContentEncryption;
  4819. public $enableDvr;
  4820. public $enableEmbed;
  4821. protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo';
  4822. protected $monitorStreamDataType = '';
  4823. public $recordFromStart;
  4824. public $startWithSlate;
  4825. public function setBoundStreamId($boundStreamId)
  4826. {
  4827. $this->boundStreamId = $boundStreamId;
  4828. }
  4829. public function getBoundStreamId()
  4830. {
  4831. return $this->boundStreamId;
  4832. }
  4833. public function setEnableClosedCaptions($enableClosedCaptions)
  4834. {
  4835. $this->enableClosedCaptions = $enableClosedCaptions;
  4836. }
  4837. public function getEnableClosedCaptions()
  4838. {
  4839. return $this->enableClosedCaptions;
  4840. }
  4841. public function setEnableContentEncryption($enableContentEncryption)
  4842. {
  4843. $this->enableContentEncryption = $enableContentEncryption;
  4844. }
  4845. public function getEnableContentEncryption()
  4846. {
  4847. return $this->enableContentEncryption;
  4848. }
  4849. public function setEnableDvr($enableDvr)
  4850. {
  4851. $this->enableDvr = $enableDvr;
  4852. }
  4853. public function getEnableDvr()
  4854. {
  4855. return $this->enableDvr;
  4856. }
  4857. public function setEnableEmbed($enableEmbed)
  4858. {
  4859. $this->enableEmbed = $enableEmbed;
  4860. }
  4861. public function getEnableEmbed()
  4862. {
  4863. return $this->enableEmbed;
  4864. }
  4865. public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream)
  4866. {
  4867. $this->monitorStream = $monitorStream;
  4868. }
  4869. public function getMonitorStream()
  4870. {
  4871. return $this->monitorStream;
  4872. }
  4873. public function setRecordFromStart($recordFromStart)
  4874. {
  4875. $this->recordFromStart = $recordFromStart;
  4876. }
  4877. public function getRecordFromStart()
  4878. {
  4879. return $this->recordFromStart;
  4880. }
  4881. public function setStartWithSlate($startWithSlate)
  4882. {
  4883. $this->startWithSlate = $startWithSlate;
  4884. }
  4885. public function getStartWithSlate()
  4886. {
  4887. return $this->startWithSlate;
  4888. }
  4889. }
  4890. class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection
  4891. {
  4892. public $etag;
  4893. public $eventId;
  4894. protected $itemsType = 'Google_Service_YouTube_LiveBroadcast';
  4895. protected $itemsDataType = 'array';
  4896. public $kind;
  4897. public $nextPageToken;
  4898. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  4899. protected $pageInfoDataType = '';
  4900. public $prevPageToken;
  4901. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  4902. protected $tokenPaginationDataType = '';
  4903. public $visitorId;
  4904. public function setEtag($etag)
  4905. {
  4906. $this->etag = $etag;
  4907. }
  4908. public function getEtag()
  4909. {
  4910. return $this->etag;
  4911. }
  4912. public function setEventId($eventId)
  4913. {
  4914. $this->eventId = $eventId;
  4915. }
  4916. public function getEventId()
  4917. {
  4918. return $this->eventId;
  4919. }
  4920. public function setItems($items)
  4921. {
  4922. $this->items = $items;
  4923. }
  4924. public function getItems()
  4925. {
  4926. return $this->items;
  4927. }
  4928. public function setKind($kind)
  4929. {
  4930. $this->kind = $kind;
  4931. }
  4932. public function getKind()
  4933. {
  4934. return $this->kind;
  4935. }
  4936. public function setNextPageToken($nextPageToken)
  4937. {
  4938. $this->nextPageToken = $nextPageToken;
  4939. }
  4940. public function getNextPageToken()
  4941. {
  4942. return $this->nextPageToken;
  4943. }
  4944. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  4945. {
  4946. $this->pageInfo = $pageInfo;
  4947. }
  4948. public function getPageInfo()
  4949. {
  4950. return $this->pageInfo;
  4951. }
  4952. public function setPrevPageToken($prevPageToken)
  4953. {
  4954. $this->prevPageToken = $prevPageToken;
  4955. }
  4956. public function getPrevPageToken()
  4957. {
  4958. return $this->prevPageToken;
  4959. }
  4960. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  4961. {
  4962. $this->tokenPagination = $tokenPagination;
  4963. }
  4964. public function getTokenPagination()
  4965. {
  4966. return $this->tokenPagination;
  4967. }
  4968. public function setVisitorId($visitorId)
  4969. {
  4970. $this->visitorId = $visitorId;
  4971. }
  4972. public function getVisitorId()
  4973. {
  4974. return $this->visitorId;
  4975. }
  4976. }
  4977. class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model
  4978. {
  4979. public $actualEndTime;
  4980. public $actualStartTime;
  4981. public $channelId;
  4982. public $description;
  4983. public $publishedAt;
  4984. public $scheduledEndTime;
  4985. public $scheduledStartTime;
  4986. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  4987. protected $thumbnailsDataType = '';
  4988. public $title;
  4989. public function setActualEndTime($actualEndTime)
  4990. {
  4991. $this->actualEndTime = $actualEndTime;
  4992. }
  4993. public function getActualEndTime()
  4994. {
  4995. return $this->actualEndTime;
  4996. }
  4997. public function setActualStartTime($actualStartTime)
  4998. {
  4999. $this->actualStartTime = $actualStartTime;
  5000. }
  5001. public function getActualStartTime()
  5002. {
  5003. return $this->actualStartTime;
  5004. }
  5005. public function setChannelId($channelId)
  5006. {
  5007. $this->channelId = $channelId;
  5008. }
  5009. public function getChannelId()
  5010. {
  5011. return $this->channelId;
  5012. }
  5013. public function setDescription($description)
  5014. {
  5015. $this->description = $description;
  5016. }
  5017. public function getDescription()
  5018. {
  5019. return $this->description;
  5020. }
  5021. public function setPublishedAt($publishedAt)
  5022. {
  5023. $this->publishedAt = $publishedAt;
  5024. }
  5025. public function getPublishedAt()
  5026. {
  5027. return $this->publishedAt;
  5028. }
  5029. public function setScheduledEndTime($scheduledEndTime)
  5030. {
  5031. $this->scheduledEndTime = $scheduledEndTime;
  5032. }
  5033. public function getScheduledEndTime()
  5034. {
  5035. return $this->scheduledEndTime;
  5036. }
  5037. public function setScheduledStartTime($scheduledStartTime)
  5038. {
  5039. $this->scheduledStartTime = $scheduledStartTime;
  5040. }
  5041. public function getScheduledStartTime()
  5042. {
  5043. return $this->scheduledStartTime;
  5044. }
  5045. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  5046. {
  5047. $this->thumbnails = $thumbnails;
  5048. }
  5049. public function getThumbnails()
  5050. {
  5051. return $this->thumbnails;
  5052. }
  5053. public function setTitle($title)
  5054. {
  5055. $this->title = $title;
  5056. }
  5057. public function getTitle()
  5058. {
  5059. return $this->title;
  5060. }
  5061. }
  5062. class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model
  5063. {
  5064. public $lifeCycleStatus;
  5065. public $privacyStatus;
  5066. public $recordingStatus;
  5067. public function setLifeCycleStatus($lifeCycleStatus)
  5068. {
  5069. $this->lifeCycleStatus = $lifeCycleStatus;
  5070. }
  5071. public function getLifeCycleStatus()
  5072. {
  5073. return $this->lifeCycleStatus;
  5074. }
  5075. public function setPrivacyStatus($privacyStatus)
  5076. {
  5077. $this->privacyStatus = $privacyStatus;
  5078. }
  5079. public function getPrivacyStatus()
  5080. {
  5081. return $this->privacyStatus;
  5082. }
  5083. public function setRecordingStatus($recordingStatus)
  5084. {
  5085. $this->recordingStatus = $recordingStatus;
  5086. }
  5087. public function getRecordingStatus()
  5088. {
  5089. return $this->recordingStatus;
  5090. }
  5091. }
  5092. class Google_Service_YouTube_LiveStream extends Google_Model
  5093. {
  5094. protected $cdnType = 'Google_Service_YouTube_CdnSettings';
  5095. protected $cdnDataType = '';
  5096. protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails';
  5097. protected $contentDetailsDataType = '';
  5098. public $etag;
  5099. public $id;
  5100. public $kind;
  5101. protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet';
  5102. protected $snippetDataType = '';
  5103. protected $statusType = 'Google_Service_YouTube_LiveStreamStatus';
  5104. protected $statusDataType = '';
  5105. public function setCdn(Google_Service_YouTube_CdnSettings $cdn)
  5106. {
  5107. $this->cdn = $cdn;
  5108. }
  5109. public function getCdn()
  5110. {
  5111. return $this->cdn;
  5112. }
  5113. public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails)
  5114. {
  5115. $this->contentDetails = $contentDetails;
  5116. }
  5117. public function getContentDetails()
  5118. {
  5119. return $this->contentDetails;
  5120. }
  5121. public function setEtag($etag)
  5122. {
  5123. $this->etag = $etag;
  5124. }
  5125. public function getEtag()
  5126. {
  5127. return $this->etag;
  5128. }
  5129. public function setId($id)
  5130. {
  5131. $this->id = $id;
  5132. }
  5133. public function getId()
  5134. {
  5135. return $this->id;
  5136. }
  5137. public function setKind($kind)
  5138. {
  5139. $this->kind = $kind;
  5140. }
  5141. public function getKind()
  5142. {
  5143. return $this->kind;
  5144. }
  5145. public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet)
  5146. {
  5147. $this->snippet = $snippet;
  5148. }
  5149. public function getSnippet()
  5150. {
  5151. return $this->snippet;
  5152. }
  5153. public function setStatus(Google_Service_YouTube_LiveStreamStatus $status)
  5154. {
  5155. $this->status = $status;
  5156. }
  5157. public function getStatus()
  5158. {
  5159. return $this->status;
  5160. }
  5161. }
  5162. class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model
  5163. {
  5164. public $closedCaptionsIngestionUrl;
  5165. public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl)
  5166. {
  5167. $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl;
  5168. }
  5169. public function getClosedCaptionsIngestionUrl()
  5170. {
  5171. return $this->closedCaptionsIngestionUrl;
  5172. }
  5173. }
  5174. class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection
  5175. {
  5176. public $etag;
  5177. public $eventId;
  5178. protected $itemsType = 'Google_Service_YouTube_LiveStream';
  5179. protected $itemsDataType = 'array';
  5180. public $kind;
  5181. public $nextPageToken;
  5182. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  5183. protected $pageInfoDataType = '';
  5184. public $prevPageToken;
  5185. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  5186. protected $tokenPaginationDataType = '';
  5187. public $visitorId;
  5188. public function setEtag($etag)
  5189. {
  5190. $this->etag = $etag;
  5191. }
  5192. public function getEtag()
  5193. {
  5194. return $this->etag;
  5195. }
  5196. public function setEventId($eventId)
  5197. {
  5198. $this->eventId = $eventId;
  5199. }
  5200. public function getEventId()
  5201. {
  5202. return $this->eventId;
  5203. }
  5204. public function setItems($items)
  5205. {
  5206. $this->items = $items;
  5207. }
  5208. public function getItems()
  5209. {
  5210. return $this->items;
  5211. }
  5212. public function setKind($kind)
  5213. {
  5214. $this->kind = $kind;
  5215. }
  5216. public function getKind()
  5217. {
  5218. return $this->kind;
  5219. }
  5220. public function setNextPageToken($nextPageToken)
  5221. {
  5222. $this->nextPageToken = $nextPageToken;
  5223. }
  5224. public function getNextPageToken()
  5225. {
  5226. return $this->nextPageToken;
  5227. }
  5228. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  5229. {
  5230. $this->pageInfo = $pageInfo;
  5231. }
  5232. public function getPageInfo()
  5233. {
  5234. return $this->pageInfo;
  5235. }
  5236. public function setPrevPageToken($prevPageToken)
  5237. {
  5238. $this->prevPageToken = $prevPageToken;
  5239. }
  5240. public function getPrevPageToken()
  5241. {
  5242. return $this->prevPageToken;
  5243. }
  5244. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  5245. {
  5246. $this->tokenPagination = $tokenPagination;
  5247. }
  5248. public function getTokenPagination()
  5249. {
  5250. return $this->tokenPagination;
  5251. }
  5252. public function setVisitorId($visitorId)
  5253. {
  5254. $this->visitorId = $visitorId;
  5255. }
  5256. public function getVisitorId()
  5257. {
  5258. return $this->visitorId;
  5259. }
  5260. }
  5261. class Google_Service_YouTube_LiveStreamSnippet extends Google_Model
  5262. {
  5263. public $channelId;
  5264. public $description;
  5265. public $publishedAt;
  5266. public $title;
  5267. public function setChannelId($channelId)
  5268. {
  5269. $this->channelId = $channelId;
  5270. }
  5271. public function getChannelId()
  5272. {
  5273. return $this->channelId;
  5274. }
  5275. public function setDescription($description)
  5276. {
  5277. $this->description = $description;
  5278. }
  5279. public function getDescription()
  5280. {
  5281. return $this->description;
  5282. }
  5283. public function setPublishedAt($publishedAt)
  5284. {
  5285. $this->publishedAt = $publishedAt;
  5286. }
  5287. public function getPublishedAt()
  5288. {
  5289. return $this->publishedAt;
  5290. }
  5291. public function setTitle($title)
  5292. {
  5293. $this->title = $title;
  5294. }
  5295. public function getTitle()
  5296. {
  5297. return $this->title;
  5298. }
  5299. }
  5300. class Google_Service_YouTube_LiveStreamStatus extends Google_Model
  5301. {
  5302. public $streamStatus;
  5303. public function setStreamStatus($streamStatus)
  5304. {
  5305. $this->streamStatus = $streamStatus;
  5306. }
  5307. public function getStreamStatus()
  5308. {
  5309. return $this->streamStatus;
  5310. }
  5311. }
  5312. class Google_Service_YouTube_LocalizedProperty extends Google_Collection
  5313. {
  5314. public $default;
  5315. protected $localizedType = 'Google_Service_YouTube_LocalizedString';
  5316. protected $localizedDataType = 'array';
  5317. public function setDefault($default)
  5318. {
  5319. $this->default = $default;
  5320. }
  5321. public function getDefault()
  5322. {
  5323. return $this->default;
  5324. }
  5325. public function setLocalized($localized)
  5326. {
  5327. $this->localized = $localized;
  5328. }
  5329. public function getLocalized()
  5330. {
  5331. return $this->localized;
  5332. }
  5333. }
  5334. class Google_Service_YouTube_LocalizedString extends Google_Model
  5335. {
  5336. public $language;
  5337. public $value;
  5338. public function setLanguage($language)
  5339. {
  5340. $this->language = $language;
  5341. }
  5342. public function getLanguage()
  5343. {
  5344. return $this->language;
  5345. }
  5346. public function setValue($value)
  5347. {
  5348. $this->value = $value;
  5349. }
  5350. public function getValue()
  5351. {
  5352. return $this->value;
  5353. }
  5354. }
  5355. class Google_Service_YouTube_MonitorStreamInfo extends Google_Model
  5356. {
  5357. public $broadcastStreamDelayMs;
  5358. public $embedHtml;
  5359. public $enableMonitorStream;
  5360. public function setBroadcastStreamDelayMs($broadcastStreamDelayMs)
  5361. {
  5362. $this->broadcastStreamDelayMs = $broadcastStreamDelayMs;
  5363. }
  5364. public function getBroadcastStreamDelayMs()
  5365. {
  5366. return $this->broadcastStreamDelayMs;
  5367. }
  5368. public function setEmbedHtml($embedHtml)
  5369. {
  5370. $this->embedHtml = $embedHtml;
  5371. }
  5372. public function getEmbedHtml()
  5373. {
  5374. return $this->embedHtml;
  5375. }
  5376. public function setEnableMonitorStream($enableMonitorStream)
  5377. {
  5378. $this->enableMonitorStream = $enableMonitorStream;
  5379. }
  5380. public function getEnableMonitorStream()
  5381. {
  5382. return $this->enableMonitorStream;
  5383. }
  5384. }
  5385. class Google_Service_YouTube_PageInfo extends Google_Model
  5386. {
  5387. public $resultsPerPage;
  5388. public $totalResults;
  5389. public function setResultsPerPage($resultsPerPage)
  5390. {
  5391. $this->resultsPerPage = $resultsPerPage;
  5392. }
  5393. public function getResultsPerPage()
  5394. {
  5395. return $this->resultsPerPage;
  5396. }
  5397. public function setTotalResults($totalResults)
  5398. {
  5399. $this->totalResults = $totalResults;
  5400. }
  5401. public function getTotalResults()
  5402. {
  5403. return $this->totalResults;
  5404. }
  5405. }
  5406. class Google_Service_YouTube_Playlist extends Google_Model
  5407. {
  5408. protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails';
  5409. protected $contentDetailsDataType = '';
  5410. public $etag;
  5411. public $id;
  5412. public $kind;
  5413. protected $playerType = 'Google_Service_YouTube_PlaylistPlayer';
  5414. protected $playerDataType = '';
  5415. protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet';
  5416. protected $snippetDataType = '';
  5417. protected $statusType = 'Google_Service_YouTube_PlaylistStatus';
  5418. protected $statusDataType = '';
  5419. public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails)
  5420. {
  5421. $this->contentDetails = $contentDetails;
  5422. }
  5423. public function getContentDetails()
  5424. {
  5425. return $this->contentDetails;
  5426. }
  5427. public function setEtag($etag)
  5428. {
  5429. $this->etag = $etag;
  5430. }
  5431. public function getEtag()
  5432. {
  5433. return $this->etag;
  5434. }
  5435. public function setId($id)
  5436. {
  5437. $this->id = $id;
  5438. }
  5439. public function getId()
  5440. {
  5441. return $this->id;
  5442. }
  5443. public function setKind($kind)
  5444. {
  5445. $this->kind = $kind;
  5446. }
  5447. public function getKind()
  5448. {
  5449. return $this->kind;
  5450. }
  5451. public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player)
  5452. {
  5453. $this->player = $player;
  5454. }
  5455. public function getPlayer()
  5456. {
  5457. return $this->player;
  5458. }
  5459. public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet)
  5460. {
  5461. $this->snippet = $snippet;
  5462. }
  5463. public function getSnippet()
  5464. {
  5465. return $this->snippet;
  5466. }
  5467. public function setStatus(Google_Service_YouTube_PlaylistStatus $status)
  5468. {
  5469. $this->status = $status;
  5470. }
  5471. public function getStatus()
  5472. {
  5473. return $this->status;
  5474. }
  5475. }
  5476. class Google_Service_YouTube_PlaylistContentDetails extends Google_Model
  5477. {
  5478. public $itemCount;
  5479. public function setItemCount($itemCount)
  5480. {
  5481. $this->itemCount = $itemCount;
  5482. }
  5483. public function getItemCount()
  5484. {
  5485. return $this->itemCount;
  5486. }
  5487. }
  5488. class Google_Service_YouTube_PlaylistItem extends Google_Model
  5489. {
  5490. protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails';
  5491. protected $contentDetailsDataType = '';
  5492. public $etag;
  5493. public $id;
  5494. public $kind;
  5495. protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet';
  5496. protected $snippetDataType = '';
  5497. protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus';
  5498. protected $statusDataType = '';
  5499. public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails)
  5500. {
  5501. $this->contentDetails = $contentDetails;
  5502. }
  5503. public function getContentDetails()
  5504. {
  5505. return $this->contentDetails;
  5506. }
  5507. public function setEtag($etag)
  5508. {
  5509. $this->etag = $etag;
  5510. }
  5511. public function getEtag()
  5512. {
  5513. return $this->etag;
  5514. }
  5515. public function setId($id)
  5516. {
  5517. $this->id = $id;
  5518. }
  5519. public function getId()
  5520. {
  5521. return $this->id;
  5522. }
  5523. public function setKind($kind)
  5524. {
  5525. $this->kind = $kind;
  5526. }
  5527. public function getKind()
  5528. {
  5529. return $this->kind;
  5530. }
  5531. public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet)
  5532. {
  5533. $this->snippet = $snippet;
  5534. }
  5535. public function getSnippet()
  5536. {
  5537. return $this->snippet;
  5538. }
  5539. public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status)
  5540. {
  5541. $this->status = $status;
  5542. }
  5543. public function getStatus()
  5544. {
  5545. return $this->status;
  5546. }
  5547. }
  5548. class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model
  5549. {
  5550. public $endAt;
  5551. public $note;
  5552. public $startAt;
  5553. public $videoId;
  5554. public function setEndAt($endAt)
  5555. {
  5556. $this->endAt = $endAt;
  5557. }
  5558. public function getEndAt()
  5559. {
  5560. return $this->endAt;
  5561. }
  5562. public function setNote($note)
  5563. {
  5564. $this->note = $note;
  5565. }
  5566. public function getNote()
  5567. {
  5568. return $this->note;
  5569. }
  5570. public function setStartAt($startAt)
  5571. {
  5572. $this->startAt = $startAt;
  5573. }
  5574. public function getStartAt()
  5575. {
  5576. return $this->startAt;
  5577. }
  5578. public function setVideoId($videoId)
  5579. {
  5580. $this->videoId = $videoId;
  5581. }
  5582. public function getVideoId()
  5583. {
  5584. return $this->videoId;
  5585. }
  5586. }
  5587. class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection
  5588. {
  5589. public $etag;
  5590. public $eventId;
  5591. protected $itemsType = 'Google_Service_YouTube_PlaylistItem';
  5592. protected $itemsDataType = 'array';
  5593. public $kind;
  5594. public $nextPageToken;
  5595. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  5596. protected $pageInfoDataType = '';
  5597. public $prevPageToken;
  5598. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  5599. protected $tokenPaginationDataType = '';
  5600. public $visitorId;
  5601. public function setEtag($etag)
  5602. {
  5603. $this->etag = $etag;
  5604. }
  5605. public function getEtag()
  5606. {
  5607. return $this->etag;
  5608. }
  5609. public function setEventId($eventId)
  5610. {
  5611. $this->eventId = $eventId;
  5612. }
  5613. public function getEventId()
  5614. {
  5615. return $this->eventId;
  5616. }
  5617. public function setItems($items)
  5618. {
  5619. $this->items = $items;
  5620. }
  5621. public function getItems()
  5622. {
  5623. return $this->items;
  5624. }
  5625. public function setKind($kind)
  5626. {
  5627. $this->kind = $kind;
  5628. }
  5629. public function getKind()
  5630. {
  5631. return $this->kind;
  5632. }
  5633. public function setNextPageToken($nextPageToken)
  5634. {
  5635. $this->nextPageToken = $nextPageToken;
  5636. }
  5637. public function getNextPageToken()
  5638. {
  5639. return $this->nextPageToken;
  5640. }
  5641. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  5642. {
  5643. $this->pageInfo = $pageInfo;
  5644. }
  5645. public function getPageInfo()
  5646. {
  5647. return $this->pageInfo;
  5648. }
  5649. public function setPrevPageToken($prevPageToken)
  5650. {
  5651. $this->prevPageToken = $prevPageToken;
  5652. }
  5653. public function getPrevPageToken()
  5654. {
  5655. return $this->prevPageToken;
  5656. }
  5657. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  5658. {
  5659. $this->tokenPagination = $tokenPagination;
  5660. }
  5661. public function getTokenPagination()
  5662. {
  5663. return $this->tokenPagination;
  5664. }
  5665. public function setVisitorId($visitorId)
  5666. {
  5667. $this->visitorId = $visitorId;
  5668. }
  5669. public function getVisitorId()
  5670. {
  5671. return $this->visitorId;
  5672. }
  5673. }
  5674. class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model
  5675. {
  5676. public $channelId;
  5677. public $channelTitle;
  5678. public $description;
  5679. public $playlistId;
  5680. public $position;
  5681. public $publishedAt;
  5682. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  5683. protected $resourceIdDataType = '';
  5684. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  5685. protected $thumbnailsDataType = '';
  5686. public $title;
  5687. public function setChannelId($channelId)
  5688. {
  5689. $this->channelId = $channelId;
  5690. }
  5691. public function getChannelId()
  5692. {
  5693. return $this->channelId;
  5694. }
  5695. public function setChannelTitle($channelTitle)
  5696. {
  5697. $this->channelTitle = $channelTitle;
  5698. }
  5699. public function getChannelTitle()
  5700. {
  5701. return $this->channelTitle;
  5702. }
  5703. public function setDescription($description)
  5704. {
  5705. $this->description = $description;
  5706. }
  5707. public function getDescription()
  5708. {
  5709. return $this->description;
  5710. }
  5711. public function setPlaylistId($playlistId)
  5712. {
  5713. $this->playlistId = $playlistId;
  5714. }
  5715. public function getPlaylistId()
  5716. {
  5717. return $this->playlistId;
  5718. }
  5719. public function setPosition($position)
  5720. {
  5721. $this->position = $position;
  5722. }
  5723. public function getPosition()
  5724. {
  5725. return $this->position;
  5726. }
  5727. public function setPublishedAt($publishedAt)
  5728. {
  5729. $this->publishedAt = $publishedAt;
  5730. }
  5731. public function getPublishedAt()
  5732. {
  5733. return $this->publishedAt;
  5734. }
  5735. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  5736. {
  5737. $this->resourceId = $resourceId;
  5738. }
  5739. public function getResourceId()
  5740. {
  5741. return $this->resourceId;
  5742. }
  5743. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  5744. {
  5745. $this->thumbnails = $thumbnails;
  5746. }
  5747. public function getThumbnails()
  5748. {
  5749. return $this->thumbnails;
  5750. }
  5751. public function setTitle($title)
  5752. {
  5753. $this->title = $title;
  5754. }
  5755. public function getTitle()
  5756. {
  5757. return $this->title;
  5758. }
  5759. }
  5760. class Google_Service_YouTube_PlaylistItemStatus extends Google_Model
  5761. {
  5762. public $privacyStatus;
  5763. public function setPrivacyStatus($privacyStatus)
  5764. {
  5765. $this->privacyStatus = $privacyStatus;
  5766. }
  5767. public function getPrivacyStatus()
  5768. {
  5769. return $this->privacyStatus;
  5770. }
  5771. }
  5772. class Google_Service_YouTube_PlaylistListResponse extends Google_Collection
  5773. {
  5774. public $etag;
  5775. public $eventId;
  5776. protected $itemsType = 'Google_Service_YouTube_Playlist';
  5777. protected $itemsDataType = 'array';
  5778. public $kind;
  5779. public $nextPageToken;
  5780. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  5781. protected $pageInfoDataType = '';
  5782. public $prevPageToken;
  5783. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  5784. protected $tokenPaginationDataType = '';
  5785. public $visitorId;
  5786. public function setEtag($etag)
  5787. {
  5788. $this->etag = $etag;
  5789. }
  5790. public function getEtag()
  5791. {
  5792. return $this->etag;
  5793. }
  5794. public function setEventId($eventId)
  5795. {
  5796. $this->eventId = $eventId;
  5797. }
  5798. public function getEventId()
  5799. {
  5800. return $this->eventId;
  5801. }
  5802. public function setItems($items)
  5803. {
  5804. $this->items = $items;
  5805. }
  5806. public function getItems()
  5807. {
  5808. return $this->items;
  5809. }
  5810. public function setKind($kind)
  5811. {
  5812. $this->kind = $kind;
  5813. }
  5814. public function getKind()
  5815. {
  5816. return $this->kind;
  5817. }
  5818. public function setNextPageToken($nextPageToken)
  5819. {
  5820. $this->nextPageToken = $nextPageToken;
  5821. }
  5822. public function getNextPageToken()
  5823. {
  5824. return $this->nextPageToken;
  5825. }
  5826. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  5827. {
  5828. $this->pageInfo = $pageInfo;
  5829. }
  5830. public function getPageInfo()
  5831. {
  5832. return $this->pageInfo;
  5833. }
  5834. public function setPrevPageToken($prevPageToken)
  5835. {
  5836. $this->prevPageToken = $prevPageToken;
  5837. }
  5838. public function getPrevPageToken()
  5839. {
  5840. return $this->prevPageToken;
  5841. }
  5842. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  5843. {
  5844. $this->tokenPagination = $tokenPagination;
  5845. }
  5846. public function getTokenPagination()
  5847. {
  5848. return $this->tokenPagination;
  5849. }
  5850. public function setVisitorId($visitorId)
  5851. {
  5852. $this->visitorId = $visitorId;
  5853. }
  5854. public function getVisitorId()
  5855. {
  5856. return $this->visitorId;
  5857. }
  5858. }
  5859. class Google_Service_YouTube_PlaylistPlayer extends Google_Model
  5860. {
  5861. public $embedHtml;
  5862. public function setEmbedHtml($embedHtml)
  5863. {
  5864. $this->embedHtml = $embedHtml;
  5865. }
  5866. public function getEmbedHtml()
  5867. {
  5868. return $this->embedHtml;
  5869. }
  5870. }
  5871. class Google_Service_YouTube_PlaylistSnippet extends Google_Collection
  5872. {
  5873. public $channelId;
  5874. public $channelTitle;
  5875. public $description;
  5876. public $publishedAt;
  5877. public $tags;
  5878. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  5879. protected $thumbnailsDataType = '';
  5880. public $title;
  5881. public function setChannelId($channelId)
  5882. {
  5883. $this->channelId = $channelId;
  5884. }
  5885. public function getChannelId()
  5886. {
  5887. return $this->channelId;
  5888. }
  5889. public function setChannelTitle($channelTitle)
  5890. {
  5891. $this->channelTitle = $channelTitle;
  5892. }
  5893. public function getChannelTitle()
  5894. {
  5895. return $this->channelTitle;
  5896. }
  5897. public function setDescription($description)
  5898. {
  5899. $this->description = $description;
  5900. }
  5901. public function getDescription()
  5902. {
  5903. return $this->description;
  5904. }
  5905. public function setPublishedAt($publishedAt)
  5906. {
  5907. $this->publishedAt = $publishedAt;
  5908. }
  5909. public function getPublishedAt()
  5910. {
  5911. return $this->publishedAt;
  5912. }
  5913. public function setTags($tags)
  5914. {
  5915. $this->tags = $tags;
  5916. }
  5917. public function getTags()
  5918. {
  5919. return $this->tags;
  5920. }
  5921. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  5922. {
  5923. $this->thumbnails = $thumbnails;
  5924. }
  5925. public function getThumbnails()
  5926. {
  5927. return $this->thumbnails;
  5928. }
  5929. public function setTitle($title)
  5930. {
  5931. $this->title = $title;
  5932. }
  5933. public function getTitle()
  5934. {
  5935. return $this->title;
  5936. }
  5937. }
  5938. class Google_Service_YouTube_PlaylistStatus extends Google_Model
  5939. {
  5940. public $privacyStatus;
  5941. public function setPrivacyStatus($privacyStatus)
  5942. {
  5943. $this->privacyStatus = $privacyStatus;
  5944. }
  5945. public function getPrivacyStatus()
  5946. {
  5947. return $this->privacyStatus;
  5948. }
  5949. }
  5950. class Google_Service_YouTube_PromotedItem extends Google_Model
  5951. {
  5952. public $customMessage;
  5953. protected $idType = 'Google_Service_YouTube_PromotedItemId';
  5954. protected $idDataType = '';
  5955. public $promotedByContentOwner;
  5956. protected $timingType = 'Google_Service_YouTube_InvideoTiming';
  5957. protected $timingDataType = '';
  5958. public function setCustomMessage($customMessage)
  5959. {
  5960. $this->customMessage = $customMessage;
  5961. }
  5962. public function getCustomMessage()
  5963. {
  5964. return $this->customMessage;
  5965. }
  5966. public function setId(Google_Service_YouTube_PromotedItemId $id)
  5967. {
  5968. $this->id = $id;
  5969. }
  5970. public function getId()
  5971. {
  5972. return $this->id;
  5973. }
  5974. public function setPromotedByContentOwner($promotedByContentOwner)
  5975. {
  5976. $this->promotedByContentOwner = $promotedByContentOwner;
  5977. }
  5978. public function getPromotedByContentOwner()
  5979. {
  5980. return $this->promotedByContentOwner;
  5981. }
  5982. public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
  5983. {
  5984. $this->timing = $timing;
  5985. }
  5986. public function getTiming()
  5987. {
  5988. return $this->timing;
  5989. }
  5990. }
  5991. class Google_Service_YouTube_PromotedItemId extends Google_Model
  5992. {
  5993. public $recentlyUploadedBy;
  5994. public $type;
  5995. public $videoId;
  5996. public $websiteUrl;
  5997. public function setRecentlyUploadedBy($recentlyUploadedBy)
  5998. {
  5999. $this->recentlyUploadedBy = $recentlyUploadedBy;
  6000. }
  6001. public function getRecentlyUploadedBy()
  6002. {
  6003. return $this->recentlyUploadedBy;
  6004. }
  6005. public function setType($type)
  6006. {
  6007. $this->type = $type;
  6008. }
  6009. public function getType()
  6010. {
  6011. return $this->type;
  6012. }
  6013. public function setVideoId($videoId)
  6014. {
  6015. $this->videoId = $videoId;
  6016. }
  6017. public function getVideoId()
  6018. {
  6019. return $this->videoId;
  6020. }
  6021. public function setWebsiteUrl($websiteUrl)
  6022. {
  6023. $this->websiteUrl = $websiteUrl;
  6024. }
  6025. public function getWebsiteUrl()
  6026. {
  6027. return $this->websiteUrl;
  6028. }
  6029. }
  6030. class Google_Service_YouTube_PropertyValue extends Google_Model
  6031. {
  6032. public $property;
  6033. public $value;
  6034. public function setProperty($property)
  6035. {
  6036. $this->property = $property;
  6037. }
  6038. public function getProperty()
  6039. {
  6040. return $this->property;
  6041. }
  6042. public function setValue($value)
  6043. {
  6044. $this->value = $value;
  6045. }
  6046. public function getValue()
  6047. {
  6048. return $this->value;
  6049. }
  6050. }
  6051. class Google_Service_YouTube_ResourceId extends Google_Model
  6052. {
  6053. public $channelId;
  6054. public $kind;
  6055. public $playlistId;
  6056. public $videoId;
  6057. public function setChannelId($channelId)
  6058. {
  6059. $this->channelId = $channelId;
  6060. }
  6061. public function getChannelId()
  6062. {
  6063. return $this->channelId;
  6064. }
  6065. public function setKind($kind)
  6066. {
  6067. $this->kind = $kind;
  6068. }
  6069. public function getKind()
  6070. {
  6071. return $this->kind;
  6072. }
  6073. public function setPlaylistId($playlistId)
  6074. {
  6075. $this->playlistId = $playlistId;
  6076. }
  6077. public function getPlaylistId()
  6078. {
  6079. return $this->playlistId;
  6080. }
  6081. public function setVideoId($videoId)
  6082. {
  6083. $this->videoId = $videoId;
  6084. }
  6085. public function getVideoId()
  6086. {
  6087. return $this->videoId;
  6088. }
  6089. }
  6090. class Google_Service_YouTube_SearchListResponse extends Google_Collection
  6091. {
  6092. public $etag;
  6093. public $eventId;
  6094. protected $itemsType = 'Google_Service_YouTube_SearchResult';
  6095. protected $itemsDataType = 'array';
  6096. public $kind;
  6097. public $nextPageToken;
  6098. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  6099. protected $pageInfoDataType = '';
  6100. public $prevPageToken;
  6101. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  6102. protected $tokenPaginationDataType = '';
  6103. public $visitorId;
  6104. public function setEtag($etag)
  6105. {
  6106. $this->etag = $etag;
  6107. }
  6108. public function getEtag()
  6109. {
  6110. return $this->etag;
  6111. }
  6112. public function setEventId($eventId)
  6113. {
  6114. $this->eventId = $eventId;
  6115. }
  6116. public function getEventId()
  6117. {
  6118. return $this->eventId;
  6119. }
  6120. public function setItems($items)
  6121. {
  6122. $this->items = $items;
  6123. }
  6124. public function getItems()
  6125. {
  6126. return $this->items;
  6127. }
  6128. public function setKind($kind)
  6129. {
  6130. $this->kind = $kind;
  6131. }
  6132. public function getKind()
  6133. {
  6134. return $this->kind;
  6135. }
  6136. public function setNextPageToken($nextPageToken)
  6137. {
  6138. $this->nextPageToken = $nextPageToken;
  6139. }
  6140. public function getNextPageToken()
  6141. {
  6142. return $this->nextPageToken;
  6143. }
  6144. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  6145. {
  6146. $this->pageInfo = $pageInfo;
  6147. }
  6148. public function getPageInfo()
  6149. {
  6150. return $this->pageInfo;
  6151. }
  6152. public function setPrevPageToken($prevPageToken)
  6153. {
  6154. $this->prevPageToken = $prevPageToken;
  6155. }
  6156. public function getPrevPageToken()
  6157. {
  6158. return $this->prevPageToken;
  6159. }
  6160. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  6161. {
  6162. $this->tokenPagination = $tokenPagination;
  6163. }
  6164. public function getTokenPagination()
  6165. {
  6166. return $this->tokenPagination;
  6167. }
  6168. public function setVisitorId($visitorId)
  6169. {
  6170. $this->visitorId = $visitorId;
  6171. }
  6172. public function getVisitorId()
  6173. {
  6174. return $this->visitorId;
  6175. }
  6176. }
  6177. class Google_Service_YouTube_SearchResult extends Google_Model
  6178. {
  6179. public $etag;
  6180. protected $idType = 'Google_Service_YouTube_ResourceId';
  6181. protected $idDataType = '';
  6182. public $kind;
  6183. protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet';
  6184. protected $snippetDataType = '';
  6185. public function setEtag($etag)
  6186. {
  6187. $this->etag = $etag;
  6188. }
  6189. public function getEtag()
  6190. {
  6191. return $this->etag;
  6192. }
  6193. public function setId(Google_Service_YouTube_ResourceId $id)
  6194. {
  6195. $this->id = $id;
  6196. }
  6197. public function getId()
  6198. {
  6199. return $this->id;
  6200. }
  6201. public function setKind($kind)
  6202. {
  6203. $this->kind = $kind;
  6204. }
  6205. public function getKind()
  6206. {
  6207. return $this->kind;
  6208. }
  6209. public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet)
  6210. {
  6211. $this->snippet = $snippet;
  6212. }
  6213. public function getSnippet()
  6214. {
  6215. return $this->snippet;
  6216. }
  6217. }
  6218. class Google_Service_YouTube_SearchResultSnippet extends Google_Model
  6219. {
  6220. public $channelId;
  6221. public $channelTitle;
  6222. public $description;
  6223. public $liveBroadcastContent;
  6224. public $publishedAt;
  6225. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  6226. protected $thumbnailsDataType = '';
  6227. public $title;
  6228. public function setChannelId($channelId)
  6229. {
  6230. $this->channelId = $channelId;
  6231. }
  6232. public function getChannelId()
  6233. {
  6234. return $this->channelId;
  6235. }
  6236. public function setChannelTitle($channelTitle)
  6237. {
  6238. $this->channelTitle = $channelTitle;
  6239. }
  6240. public function getChannelTitle()
  6241. {
  6242. return $this->channelTitle;
  6243. }
  6244. public function setDescription($description)
  6245. {
  6246. $this->description = $description;
  6247. }
  6248. public function getDescription()
  6249. {
  6250. return $this->description;
  6251. }
  6252. public function setLiveBroadcastContent($liveBroadcastContent)
  6253. {
  6254. $this->liveBroadcastContent = $liveBroadcastContent;
  6255. }
  6256. public function getLiveBroadcastContent()
  6257. {
  6258. return $this->liveBroadcastContent;
  6259. }
  6260. public function setPublishedAt($publishedAt)
  6261. {
  6262. $this->publishedAt = $publishedAt;
  6263. }
  6264. public function getPublishedAt()
  6265. {
  6266. return $this->publishedAt;
  6267. }
  6268. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  6269. {
  6270. $this->thumbnails = $thumbnails;
  6271. }
  6272. public function getThumbnails()
  6273. {
  6274. return $this->thumbnails;
  6275. }
  6276. public function setTitle($title)
  6277. {
  6278. $this->title = $title;
  6279. }
  6280. public function getTitle()
  6281. {
  6282. return $this->title;
  6283. }
  6284. }
  6285. class Google_Service_YouTube_Subscription extends Google_Model
  6286. {
  6287. protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails';
  6288. protected $contentDetailsDataType = '';
  6289. public $etag;
  6290. public $id;
  6291. public $kind;
  6292. protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet';
  6293. protected $snippetDataType = '';
  6294. protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet';
  6295. protected $subscriberSnippetDataType = '';
  6296. public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails)
  6297. {
  6298. $this->contentDetails = $contentDetails;
  6299. }
  6300. public function getContentDetails()
  6301. {
  6302. return $this->contentDetails;
  6303. }
  6304. public function setEtag($etag)
  6305. {
  6306. $this->etag = $etag;
  6307. }
  6308. public function getEtag()
  6309. {
  6310. return $this->etag;
  6311. }
  6312. public function setId($id)
  6313. {
  6314. $this->id = $id;
  6315. }
  6316. public function getId()
  6317. {
  6318. return $this->id;
  6319. }
  6320. public function setKind($kind)
  6321. {
  6322. $this->kind = $kind;
  6323. }
  6324. public function getKind()
  6325. {
  6326. return $this->kind;
  6327. }
  6328. public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet)
  6329. {
  6330. $this->snippet = $snippet;
  6331. }
  6332. public function getSnippet()
  6333. {
  6334. return $this->snippet;
  6335. }
  6336. public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet)
  6337. {
  6338. $this->subscriberSnippet = $subscriberSnippet;
  6339. }
  6340. public function getSubscriberSnippet()
  6341. {
  6342. return $this->subscriberSnippet;
  6343. }
  6344. }
  6345. class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model
  6346. {
  6347. public $activityType;
  6348. public $newItemCount;
  6349. public $totalItemCount;
  6350. public function setActivityType($activityType)
  6351. {
  6352. $this->activityType = $activityType;
  6353. }
  6354. public function getActivityType()
  6355. {
  6356. return $this->activityType;
  6357. }
  6358. public function setNewItemCount($newItemCount)
  6359. {
  6360. $this->newItemCount = $newItemCount;
  6361. }
  6362. public function getNewItemCount()
  6363. {
  6364. return $this->newItemCount;
  6365. }
  6366. public function setTotalItemCount($totalItemCount)
  6367. {
  6368. $this->totalItemCount = $totalItemCount;
  6369. }
  6370. public function getTotalItemCount()
  6371. {
  6372. return $this->totalItemCount;
  6373. }
  6374. }
  6375. class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection
  6376. {
  6377. public $etag;
  6378. public $eventId;
  6379. protected $itemsType = 'Google_Service_YouTube_Subscription';
  6380. protected $itemsDataType = 'array';
  6381. public $kind;
  6382. public $nextPageToken;
  6383. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  6384. protected $pageInfoDataType = '';
  6385. public $prevPageToken;
  6386. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  6387. protected $tokenPaginationDataType = '';
  6388. public $visitorId;
  6389. public function setEtag($etag)
  6390. {
  6391. $this->etag = $etag;
  6392. }
  6393. public function getEtag()
  6394. {
  6395. return $this->etag;
  6396. }
  6397. public function setEventId($eventId)
  6398. {
  6399. $this->eventId = $eventId;
  6400. }
  6401. public function getEventId()
  6402. {
  6403. return $this->eventId;
  6404. }
  6405. public function setItems($items)
  6406. {
  6407. $this->items = $items;
  6408. }
  6409. public function getItems()
  6410. {
  6411. return $this->items;
  6412. }
  6413. public function setKind($kind)
  6414. {
  6415. $this->kind = $kind;
  6416. }
  6417. public function getKind()
  6418. {
  6419. return $this->kind;
  6420. }
  6421. public function setNextPageToken($nextPageToken)
  6422. {
  6423. $this->nextPageToken = $nextPageToken;
  6424. }
  6425. public function getNextPageToken()
  6426. {
  6427. return $this->nextPageToken;
  6428. }
  6429. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  6430. {
  6431. $this->pageInfo = $pageInfo;
  6432. }
  6433. public function getPageInfo()
  6434. {
  6435. return $this->pageInfo;
  6436. }
  6437. public function setPrevPageToken($prevPageToken)
  6438. {
  6439. $this->prevPageToken = $prevPageToken;
  6440. }
  6441. public function getPrevPageToken()
  6442. {
  6443. return $this->prevPageToken;
  6444. }
  6445. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  6446. {
  6447. $this->tokenPagination = $tokenPagination;
  6448. }
  6449. public function getTokenPagination()
  6450. {
  6451. return $this->tokenPagination;
  6452. }
  6453. public function setVisitorId($visitorId)
  6454. {
  6455. $this->visitorId = $visitorId;
  6456. }
  6457. public function getVisitorId()
  6458. {
  6459. return $this->visitorId;
  6460. }
  6461. }
  6462. class Google_Service_YouTube_SubscriptionSnippet extends Google_Model
  6463. {
  6464. public $channelId;
  6465. public $channelTitle;
  6466. public $description;
  6467. public $publishedAt;
  6468. protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
  6469. protected $resourceIdDataType = '';
  6470. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  6471. protected $thumbnailsDataType = '';
  6472. public $title;
  6473. public function setChannelId($channelId)
  6474. {
  6475. $this->channelId = $channelId;
  6476. }
  6477. public function getChannelId()
  6478. {
  6479. return $this->channelId;
  6480. }
  6481. public function setChannelTitle($channelTitle)
  6482. {
  6483. $this->channelTitle = $channelTitle;
  6484. }
  6485. public function getChannelTitle()
  6486. {
  6487. return $this->channelTitle;
  6488. }
  6489. public function setDescription($description)
  6490. {
  6491. $this->description = $description;
  6492. }
  6493. public function getDescription()
  6494. {
  6495. return $this->description;
  6496. }
  6497. public function setPublishedAt($publishedAt)
  6498. {
  6499. $this->publishedAt = $publishedAt;
  6500. }
  6501. public function getPublishedAt()
  6502. {
  6503. return $this->publishedAt;
  6504. }
  6505. public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
  6506. {
  6507. $this->resourceId = $resourceId;
  6508. }
  6509. public function getResourceId()
  6510. {
  6511. return $this->resourceId;
  6512. }
  6513. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  6514. {
  6515. $this->thumbnails = $thumbnails;
  6516. }
  6517. public function getThumbnails()
  6518. {
  6519. return $this->thumbnails;
  6520. }
  6521. public function setTitle($title)
  6522. {
  6523. $this->title = $title;
  6524. }
  6525. public function getTitle()
  6526. {
  6527. return $this->title;
  6528. }
  6529. }
  6530. class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model
  6531. {
  6532. public $channelId;
  6533. public $description;
  6534. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  6535. protected $thumbnailsDataType = '';
  6536. public $title;
  6537. public function setChannelId($channelId)
  6538. {
  6539. $this->channelId = $channelId;
  6540. }
  6541. public function getChannelId()
  6542. {
  6543. return $this->channelId;
  6544. }
  6545. public function setDescription($description)
  6546. {
  6547. $this->description = $description;
  6548. }
  6549. public function getDescription()
  6550. {
  6551. return $this->description;
  6552. }
  6553. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  6554. {
  6555. $this->thumbnails = $thumbnails;
  6556. }
  6557. public function getThumbnails()
  6558. {
  6559. return $this->thumbnails;
  6560. }
  6561. public function setTitle($title)
  6562. {
  6563. $this->title = $title;
  6564. }
  6565. public function getTitle()
  6566. {
  6567. return $this->title;
  6568. }
  6569. }
  6570. class Google_Service_YouTube_Thumbnail extends Google_Model
  6571. {
  6572. public $height;
  6573. public $url;
  6574. public $width;
  6575. public function setHeight($height)
  6576. {
  6577. $this->height = $height;
  6578. }
  6579. public function getHeight()
  6580. {
  6581. return $this->height;
  6582. }
  6583. public function setUrl($url)
  6584. {
  6585. $this->url = $url;
  6586. }
  6587. public function getUrl()
  6588. {
  6589. return $this->url;
  6590. }
  6591. public function setWidth($width)
  6592. {
  6593. $this->width = $width;
  6594. }
  6595. public function getWidth()
  6596. {
  6597. return $this->width;
  6598. }
  6599. }
  6600. class Google_Service_YouTube_ThumbnailDetails extends Google_Model
  6601. {
  6602. protected $defaultType = 'Google_Service_YouTube_Thumbnail';
  6603. protected $defaultDataType = '';
  6604. protected $highType = 'Google_Service_YouTube_Thumbnail';
  6605. protected $highDataType = '';
  6606. protected $maxresType = 'Google_Service_YouTube_Thumbnail';
  6607. protected $maxresDataType = '';
  6608. protected $mediumType = 'Google_Service_YouTube_Thumbnail';
  6609. protected $mediumDataType = '';
  6610. protected $standardType = 'Google_Service_YouTube_Thumbnail';
  6611. protected $standardDataType = '';
  6612. public function setDefault(Google_Service_YouTube_Thumbnail $default)
  6613. {
  6614. $this->default = $default;
  6615. }
  6616. public function getDefault()
  6617. {
  6618. return $this->default;
  6619. }
  6620. public function setHigh(Google_Service_YouTube_Thumbnail $high)
  6621. {
  6622. $this->high = $high;
  6623. }
  6624. public function getHigh()
  6625. {
  6626. return $this->high;
  6627. }
  6628. public function setMaxres(Google_Service_YouTube_Thumbnail $maxres)
  6629. {
  6630. $this->maxres = $maxres;
  6631. }
  6632. public function getMaxres()
  6633. {
  6634. return $this->maxres;
  6635. }
  6636. public function setMedium(Google_Service_YouTube_Thumbnail $medium)
  6637. {
  6638. $this->medium = $medium;
  6639. }
  6640. public function getMedium()
  6641. {
  6642. return $this->medium;
  6643. }
  6644. public function setStandard(Google_Service_YouTube_Thumbnail $standard)
  6645. {
  6646. $this->standard = $standard;
  6647. }
  6648. public function getStandard()
  6649. {
  6650. return $this->standard;
  6651. }
  6652. }
  6653. class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection
  6654. {
  6655. public $etag;
  6656. public $eventId;
  6657. protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails';
  6658. protected $itemsDataType = 'array';
  6659. public $kind;
  6660. public $visitorId;
  6661. public function setEtag($etag)
  6662. {
  6663. $this->etag = $etag;
  6664. }
  6665. public function getEtag()
  6666. {
  6667. return $this->etag;
  6668. }
  6669. public function setEventId($eventId)
  6670. {
  6671. $this->eventId = $eventId;
  6672. }
  6673. public function getEventId()
  6674. {
  6675. return $this->eventId;
  6676. }
  6677. public function setItems($items)
  6678. {
  6679. $this->items = $items;
  6680. }
  6681. public function getItems()
  6682. {
  6683. return $this->items;
  6684. }
  6685. public function setKind($kind)
  6686. {
  6687. $this->kind = $kind;
  6688. }
  6689. public function getKind()
  6690. {
  6691. return $this->kind;
  6692. }
  6693. public function setVisitorId($visitorId)
  6694. {
  6695. $this->visitorId = $visitorId;
  6696. }
  6697. public function getVisitorId()
  6698. {
  6699. return $this->visitorId;
  6700. }
  6701. }
  6702. class Google_Service_YouTube_TokenPagination extends Google_Model
  6703. {
  6704. }
  6705. class Google_Service_YouTube_Video extends Google_Model
  6706. {
  6707. protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating';
  6708. protected $ageGatingDataType = '';
  6709. protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails';
  6710. protected $contentDetailsDataType = '';
  6711. protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings';
  6712. protected $conversionPingsDataType = '';
  6713. public $etag;
  6714. protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails';
  6715. protected $fileDetailsDataType = '';
  6716. public $id;
  6717. public $kind;
  6718. protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails';
  6719. protected $liveStreamingDetailsDataType = '';
  6720. protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails';
  6721. protected $monetizationDetailsDataType = '';
  6722. protected $playerType = 'Google_Service_YouTube_VideoPlayer';
  6723. protected $playerDataType = '';
  6724. protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails';
  6725. protected $processingDetailsDataType = '';
  6726. protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails';
  6727. protected $projectDetailsDataType = '';
  6728. protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails';
  6729. protected $recordingDetailsDataType = '';
  6730. protected $snippetType = 'Google_Service_YouTube_VideoSnippet';
  6731. protected $snippetDataType = '';
  6732. protected $statisticsType = 'Google_Service_YouTube_VideoStatistics';
  6733. protected $statisticsDataType = '';
  6734. protected $statusType = 'Google_Service_YouTube_VideoStatus';
  6735. protected $statusDataType = '';
  6736. protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions';
  6737. protected $suggestionsDataType = '';
  6738. protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails';
  6739. protected $topicDetailsDataType = '';
  6740. public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating)
  6741. {
  6742. $this->ageGating = $ageGating;
  6743. }
  6744. public function getAgeGating()
  6745. {
  6746. return $this->ageGating;
  6747. }
  6748. public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails)
  6749. {
  6750. $this->contentDetails = $contentDetails;
  6751. }
  6752. public function getContentDetails()
  6753. {
  6754. return $this->contentDetails;
  6755. }
  6756. public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings)
  6757. {
  6758. $this->conversionPings = $conversionPings;
  6759. }
  6760. public function getConversionPings()
  6761. {
  6762. return $this->conversionPings;
  6763. }
  6764. public function setEtag($etag)
  6765. {
  6766. $this->etag = $etag;
  6767. }
  6768. public function getEtag()
  6769. {
  6770. return $this->etag;
  6771. }
  6772. public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails)
  6773. {
  6774. $this->fileDetails = $fileDetails;
  6775. }
  6776. public function getFileDetails()
  6777. {
  6778. return $this->fileDetails;
  6779. }
  6780. public function setId($id)
  6781. {
  6782. $this->id = $id;
  6783. }
  6784. public function getId()
  6785. {
  6786. return $this->id;
  6787. }
  6788. public function setKind($kind)
  6789. {
  6790. $this->kind = $kind;
  6791. }
  6792. public function getKind()
  6793. {
  6794. return $this->kind;
  6795. }
  6796. public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails)
  6797. {
  6798. $this->liveStreamingDetails = $liveStreamingDetails;
  6799. }
  6800. public function getLiveStreamingDetails()
  6801. {
  6802. return $this->liveStreamingDetails;
  6803. }
  6804. public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails)
  6805. {
  6806. $this->monetizationDetails = $monetizationDetails;
  6807. }
  6808. public function getMonetizationDetails()
  6809. {
  6810. return $this->monetizationDetails;
  6811. }
  6812. public function setPlayer(Google_Service_YouTube_VideoPlayer $player)
  6813. {
  6814. $this->player = $player;
  6815. }
  6816. public function getPlayer()
  6817. {
  6818. return $this->player;
  6819. }
  6820. public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails)
  6821. {
  6822. $this->processingDetails = $processingDetails;
  6823. }
  6824. public function getProcessingDetails()
  6825. {
  6826. return $this->processingDetails;
  6827. }
  6828. public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails)
  6829. {
  6830. $this->projectDetails = $projectDetails;
  6831. }
  6832. public function getProjectDetails()
  6833. {
  6834. return $this->projectDetails;
  6835. }
  6836. public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails)
  6837. {
  6838. $this->recordingDetails = $recordingDetails;
  6839. }
  6840. public function getRecordingDetails()
  6841. {
  6842. return $this->recordingDetails;
  6843. }
  6844. public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet)
  6845. {
  6846. $this->snippet = $snippet;
  6847. }
  6848. public function getSnippet()
  6849. {
  6850. return $this->snippet;
  6851. }
  6852. public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics)
  6853. {
  6854. $this->statistics = $statistics;
  6855. }
  6856. public function getStatistics()
  6857. {
  6858. return $this->statistics;
  6859. }
  6860. public function setStatus(Google_Service_YouTube_VideoStatus $status)
  6861. {
  6862. $this->status = $status;
  6863. }
  6864. public function getStatus()
  6865. {
  6866. return $this->status;
  6867. }
  6868. public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions)
  6869. {
  6870. $this->suggestions = $suggestions;
  6871. }
  6872. public function getSuggestions()
  6873. {
  6874. return $this->suggestions;
  6875. }
  6876. public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails)
  6877. {
  6878. $this->topicDetails = $topicDetails;
  6879. }
  6880. public function getTopicDetails()
  6881. {
  6882. return $this->topicDetails;
  6883. }
  6884. }
  6885. class Google_Service_YouTube_VideoAgeGating extends Google_Model
  6886. {
  6887. public $alcoholContent;
  6888. public $restricted;
  6889. public $videoGameRating;
  6890. public function setAlcoholContent($alcoholContent)
  6891. {
  6892. $this->alcoholContent = $alcoholContent;
  6893. }
  6894. public function getAlcoholContent()
  6895. {
  6896. return $this->alcoholContent;
  6897. }
  6898. public function setRestricted($restricted)
  6899. {
  6900. $this->restricted = $restricted;
  6901. }
  6902. public function getRestricted()
  6903. {
  6904. return $this->restricted;
  6905. }
  6906. public function setVideoGameRating($videoGameRating)
  6907. {
  6908. $this->videoGameRating = $videoGameRating;
  6909. }
  6910. public function getVideoGameRating()
  6911. {
  6912. return $this->videoGameRating;
  6913. }
  6914. }
  6915. class Google_Service_YouTube_VideoCategory extends Google_Model
  6916. {
  6917. public $etag;
  6918. public $id;
  6919. public $kind;
  6920. protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet';
  6921. protected $snippetDataType = '';
  6922. public function setEtag($etag)
  6923. {
  6924. $this->etag = $etag;
  6925. }
  6926. public function getEtag()
  6927. {
  6928. return $this->etag;
  6929. }
  6930. public function setId($id)
  6931. {
  6932. $this->id = $id;
  6933. }
  6934. public function getId()
  6935. {
  6936. return $this->id;
  6937. }
  6938. public function setKind($kind)
  6939. {
  6940. $this->kind = $kind;
  6941. }
  6942. public function getKind()
  6943. {
  6944. return $this->kind;
  6945. }
  6946. public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet)
  6947. {
  6948. $this->snippet = $snippet;
  6949. }
  6950. public function getSnippet()
  6951. {
  6952. return $this->snippet;
  6953. }
  6954. }
  6955. class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection
  6956. {
  6957. public $etag;
  6958. public $eventId;
  6959. protected $itemsType = 'Google_Service_YouTube_VideoCategory';
  6960. protected $itemsDataType = 'array';
  6961. public $kind;
  6962. public $nextPageToken;
  6963. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  6964. protected $pageInfoDataType = '';
  6965. public $prevPageToken;
  6966. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  6967. protected $tokenPaginationDataType = '';
  6968. public $visitorId;
  6969. public function setEtag($etag)
  6970. {
  6971. $this->etag = $etag;
  6972. }
  6973. public function getEtag()
  6974. {
  6975. return $this->etag;
  6976. }
  6977. public function setEventId($eventId)
  6978. {
  6979. $this->eventId = $eventId;
  6980. }
  6981. public function getEventId()
  6982. {
  6983. return $this->eventId;
  6984. }
  6985. public function setItems($items)
  6986. {
  6987. $this->items = $items;
  6988. }
  6989. public function getItems()
  6990. {
  6991. return $this->items;
  6992. }
  6993. public function setKind($kind)
  6994. {
  6995. $this->kind = $kind;
  6996. }
  6997. public function getKind()
  6998. {
  6999. return $this->kind;
  7000. }
  7001. public function setNextPageToken($nextPageToken)
  7002. {
  7003. $this->nextPageToken = $nextPageToken;
  7004. }
  7005. public function getNextPageToken()
  7006. {
  7007. return $this->nextPageToken;
  7008. }
  7009. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  7010. {
  7011. $this->pageInfo = $pageInfo;
  7012. }
  7013. public function getPageInfo()
  7014. {
  7015. return $this->pageInfo;
  7016. }
  7017. public function setPrevPageToken($prevPageToken)
  7018. {
  7019. $this->prevPageToken = $prevPageToken;
  7020. }
  7021. public function getPrevPageToken()
  7022. {
  7023. return $this->prevPageToken;
  7024. }
  7025. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  7026. {
  7027. $this->tokenPagination = $tokenPagination;
  7028. }
  7029. public function getTokenPagination()
  7030. {
  7031. return $this->tokenPagination;
  7032. }
  7033. public function setVisitorId($visitorId)
  7034. {
  7035. $this->visitorId = $visitorId;
  7036. }
  7037. public function getVisitorId()
  7038. {
  7039. return $this->visitorId;
  7040. }
  7041. }
  7042. class Google_Service_YouTube_VideoCategorySnippet extends Google_Model
  7043. {
  7044. public $assignable;
  7045. public $channelId;
  7046. public $title;
  7047. public function setAssignable($assignable)
  7048. {
  7049. $this->assignable = $assignable;
  7050. }
  7051. public function getAssignable()
  7052. {
  7053. return $this->assignable;
  7054. }
  7055. public function setChannelId($channelId)
  7056. {
  7057. $this->channelId = $channelId;
  7058. }
  7059. public function getChannelId()
  7060. {
  7061. return $this->channelId;
  7062. }
  7063. public function setTitle($title)
  7064. {
  7065. $this->title = $title;
  7066. }
  7067. public function getTitle()
  7068. {
  7069. return $this->title;
  7070. }
  7071. }
  7072. class Google_Service_YouTube_VideoContentDetails extends Google_Model
  7073. {
  7074. public $caption;
  7075. protected $contentRatingType = 'Google_Service_YouTube_ContentRating';
  7076. protected $contentRatingDataType = '';
  7077. protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy';
  7078. protected $countryRestrictionDataType = '';
  7079. public $definition;
  7080. public $dimension;
  7081. public $duration;
  7082. public $licensedContent;
  7083. protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction';
  7084. protected $regionRestrictionDataType = '';
  7085. public function setCaption($caption)
  7086. {
  7087. $this->caption = $caption;
  7088. }
  7089. public function getCaption()
  7090. {
  7091. return $this->caption;
  7092. }
  7093. public function setContentRating(Google_Service_YouTube_ContentRating $contentRating)
  7094. {
  7095. $this->contentRating = $contentRating;
  7096. }
  7097. public function getContentRating()
  7098. {
  7099. return $this->contentRating;
  7100. }
  7101. public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction)
  7102. {
  7103. $this->countryRestriction = $countryRestriction;
  7104. }
  7105. public function getCountryRestriction()
  7106. {
  7107. return $this->countryRestriction;
  7108. }
  7109. public function setDefinition($definition)
  7110. {
  7111. $this->definition = $definition;
  7112. }
  7113. public function getDefinition()
  7114. {
  7115. return $this->definition;
  7116. }
  7117. public function setDimension($dimension)
  7118. {
  7119. $this->dimension = $dimension;
  7120. }
  7121. public function getDimension()
  7122. {
  7123. return $this->dimension;
  7124. }
  7125. public function setDuration($duration)
  7126. {
  7127. $this->duration = $duration;
  7128. }
  7129. public function getDuration()
  7130. {
  7131. return $this->duration;
  7132. }
  7133. public function setLicensedContent($licensedContent)
  7134. {
  7135. $this->licensedContent = $licensedContent;
  7136. }
  7137. public function getLicensedContent()
  7138. {
  7139. return $this->licensedContent;
  7140. }
  7141. public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction)
  7142. {
  7143. $this->regionRestriction = $regionRestriction;
  7144. }
  7145. public function getRegionRestriction()
  7146. {
  7147. return $this->regionRestriction;
  7148. }
  7149. }
  7150. class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection
  7151. {
  7152. public $allowed;
  7153. public $blocked;
  7154. public function setAllowed($allowed)
  7155. {
  7156. $this->allowed = $allowed;
  7157. }
  7158. public function getAllowed()
  7159. {
  7160. return $this->allowed;
  7161. }
  7162. public function setBlocked($blocked)
  7163. {
  7164. $this->blocked = $blocked;
  7165. }
  7166. public function getBlocked()
  7167. {
  7168. return $this->blocked;
  7169. }
  7170. }
  7171. class Google_Service_YouTube_VideoConversionPing extends Google_Model
  7172. {
  7173. public $context;
  7174. public $conversionUrl;
  7175. public function setContext($context)
  7176. {
  7177. $this->context = $context;
  7178. }
  7179. public function getContext()
  7180. {
  7181. return $this->context;
  7182. }
  7183. public function setConversionUrl($conversionUrl)
  7184. {
  7185. $this->conversionUrl = $conversionUrl;
  7186. }
  7187. public function getConversionUrl()
  7188. {
  7189. return $this->conversionUrl;
  7190. }
  7191. }
  7192. class Google_Service_YouTube_VideoConversionPings extends Google_Collection
  7193. {
  7194. protected $pingsType = 'Google_Service_YouTube_VideoConversionPing';
  7195. protected $pingsDataType = 'array';
  7196. public function setPings($pings)
  7197. {
  7198. $this->pings = $pings;
  7199. }
  7200. public function getPings()
  7201. {
  7202. return $this->pings;
  7203. }
  7204. }
  7205. class Google_Service_YouTube_VideoFileDetails extends Google_Collection
  7206. {
  7207. protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream';
  7208. protected $audioStreamsDataType = 'array';
  7209. public $bitrateBps;
  7210. public $container;
  7211. public $creationTime;
  7212. public $durationMs;
  7213. public $fileName;
  7214. public $fileSize;
  7215. public $fileType;
  7216. protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint';
  7217. protected $recordingLocationDataType = '';
  7218. protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream';
  7219. protected $videoStreamsDataType = 'array';
  7220. public function setAudioStreams($audioStreams)
  7221. {
  7222. $this->audioStreams = $audioStreams;
  7223. }
  7224. public function getAudioStreams()
  7225. {
  7226. return $this->audioStreams;
  7227. }
  7228. public function setBitrateBps($bitrateBps)
  7229. {
  7230. $this->bitrateBps = $bitrateBps;
  7231. }
  7232. public function getBitrateBps()
  7233. {
  7234. return $this->bitrateBps;
  7235. }
  7236. public function setContainer($container)
  7237. {
  7238. $this->container = $container;
  7239. }
  7240. public function getContainer()
  7241. {
  7242. return $this->container;
  7243. }
  7244. public function setCreationTime($creationTime)
  7245. {
  7246. $this->creationTime = $creationTime;
  7247. }
  7248. public function getCreationTime()
  7249. {
  7250. return $this->creationTime;
  7251. }
  7252. public function setDurationMs($durationMs)
  7253. {
  7254. $this->durationMs = $durationMs;
  7255. }
  7256. public function getDurationMs()
  7257. {
  7258. return $this->durationMs;
  7259. }
  7260. public function setFileName($fileName)
  7261. {
  7262. $this->fileName = $fileName;
  7263. }
  7264. public function getFileName()
  7265. {
  7266. return $this->fileName;
  7267. }
  7268. public function setFileSize($fileSize)
  7269. {
  7270. $this->fileSize = $fileSize;
  7271. }
  7272. public function getFileSize()
  7273. {
  7274. return $this->fileSize;
  7275. }
  7276. public function setFileType($fileType)
  7277. {
  7278. $this->fileType = $fileType;
  7279. }
  7280. public function getFileType()
  7281. {
  7282. return $this->fileType;
  7283. }
  7284. public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation)
  7285. {
  7286. $this->recordingLocation = $recordingLocation;
  7287. }
  7288. public function getRecordingLocation()
  7289. {
  7290. return $this->recordingLocation;
  7291. }
  7292. public function setVideoStreams($videoStreams)
  7293. {
  7294. $this->videoStreams = $videoStreams;
  7295. }
  7296. public function getVideoStreams()
  7297. {
  7298. return $this->videoStreams;
  7299. }
  7300. }
  7301. class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model
  7302. {
  7303. public $bitrateBps;
  7304. public $channelCount;
  7305. public $codec;
  7306. public $vendor;
  7307. public function setBitrateBps($bitrateBps)
  7308. {
  7309. $this->bitrateBps = $bitrateBps;
  7310. }
  7311. public function getBitrateBps()
  7312. {
  7313. return $this->bitrateBps;
  7314. }
  7315. public function setChannelCount($channelCount)
  7316. {
  7317. $this->channelCount = $channelCount;
  7318. }
  7319. public function getChannelCount()
  7320. {
  7321. return $this->channelCount;
  7322. }
  7323. public function setCodec($codec)
  7324. {
  7325. $this->codec = $codec;
  7326. }
  7327. public function getCodec()
  7328. {
  7329. return $this->codec;
  7330. }
  7331. public function setVendor($vendor)
  7332. {
  7333. $this->vendor = $vendor;
  7334. }
  7335. public function getVendor()
  7336. {
  7337. return $this->vendor;
  7338. }
  7339. }
  7340. class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model
  7341. {
  7342. public $aspectRatio;
  7343. public $bitrateBps;
  7344. public $codec;
  7345. public $frameRateFps;
  7346. public $heightPixels;
  7347. public $rotation;
  7348. public $vendor;
  7349. public $widthPixels;
  7350. public function setAspectRatio($aspectRatio)
  7351. {
  7352. $this->aspectRatio = $aspectRatio;
  7353. }
  7354. public function getAspectRatio()
  7355. {
  7356. return $this->aspectRatio;
  7357. }
  7358. public function setBitrateBps($bitrateBps)
  7359. {
  7360. $this->bitrateBps = $bitrateBps;
  7361. }
  7362. public function getBitrateBps()
  7363. {
  7364. return $this->bitrateBps;
  7365. }
  7366. public function setCodec($codec)
  7367. {
  7368. $this->codec = $codec;
  7369. }
  7370. public function getCodec()
  7371. {
  7372. return $this->codec;
  7373. }
  7374. public function setFrameRateFps($frameRateFps)
  7375. {
  7376. $this->frameRateFps = $frameRateFps;
  7377. }
  7378. public function getFrameRateFps()
  7379. {
  7380. return $this->frameRateFps;
  7381. }
  7382. public function setHeightPixels($heightPixels)
  7383. {
  7384. $this->heightPixels = $heightPixels;
  7385. }
  7386. public function getHeightPixels()
  7387. {
  7388. return $this->heightPixels;
  7389. }
  7390. public function setRotation($rotation)
  7391. {
  7392. $this->rotation = $rotation;
  7393. }
  7394. public function getRotation()
  7395. {
  7396. return $this->rotation;
  7397. }
  7398. public function setVendor($vendor)
  7399. {
  7400. $this->vendor = $vendor;
  7401. }
  7402. public function getVendor()
  7403. {
  7404. return $this->vendor;
  7405. }
  7406. public function setWidthPixels($widthPixels)
  7407. {
  7408. $this->widthPixels = $widthPixels;
  7409. }
  7410. public function getWidthPixels()
  7411. {
  7412. return $this->widthPixels;
  7413. }
  7414. }
  7415. class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection
  7416. {
  7417. public $etag;
  7418. protected $itemsType = 'Google_Service_YouTube_VideoRating';
  7419. protected $itemsDataType = 'array';
  7420. public $kind;
  7421. public function setEtag($etag)
  7422. {
  7423. $this->etag = $etag;
  7424. }
  7425. public function getEtag()
  7426. {
  7427. return $this->etag;
  7428. }
  7429. public function setItems($items)
  7430. {
  7431. $this->items = $items;
  7432. }
  7433. public function getItems()
  7434. {
  7435. return $this->items;
  7436. }
  7437. public function setKind($kind)
  7438. {
  7439. $this->kind = $kind;
  7440. }
  7441. public function getKind()
  7442. {
  7443. return $this->kind;
  7444. }
  7445. }
  7446. class Google_Service_YouTube_VideoListResponse extends Google_Collection
  7447. {
  7448. public $etag;
  7449. public $eventId;
  7450. protected $itemsType = 'Google_Service_YouTube_Video';
  7451. protected $itemsDataType = 'array';
  7452. public $kind;
  7453. public $nextPageToken;
  7454. protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
  7455. protected $pageInfoDataType = '';
  7456. public $prevPageToken;
  7457. protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
  7458. protected $tokenPaginationDataType = '';
  7459. public $visitorId;
  7460. public function setEtag($etag)
  7461. {
  7462. $this->etag = $etag;
  7463. }
  7464. public function getEtag()
  7465. {
  7466. return $this->etag;
  7467. }
  7468. public function setEventId($eventId)
  7469. {
  7470. $this->eventId = $eventId;
  7471. }
  7472. public function getEventId()
  7473. {
  7474. return $this->eventId;
  7475. }
  7476. public function setItems($items)
  7477. {
  7478. $this->items = $items;
  7479. }
  7480. public function getItems()
  7481. {
  7482. return $this->items;
  7483. }
  7484. public function setKind($kind)
  7485. {
  7486. $this->kind = $kind;
  7487. }
  7488. public function getKind()
  7489. {
  7490. return $this->kind;
  7491. }
  7492. public function setNextPageToken($nextPageToken)
  7493. {
  7494. $this->nextPageToken = $nextPageToken;
  7495. }
  7496. public function getNextPageToken()
  7497. {
  7498. return $this->nextPageToken;
  7499. }
  7500. public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
  7501. {
  7502. $this->pageInfo = $pageInfo;
  7503. }
  7504. public function getPageInfo()
  7505. {
  7506. return $this->pageInfo;
  7507. }
  7508. public function setPrevPageToken($prevPageToken)
  7509. {
  7510. $this->prevPageToken = $prevPageToken;
  7511. }
  7512. public function getPrevPageToken()
  7513. {
  7514. return $this->prevPageToken;
  7515. }
  7516. public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
  7517. {
  7518. $this->tokenPagination = $tokenPagination;
  7519. }
  7520. public function getTokenPagination()
  7521. {
  7522. return $this->tokenPagination;
  7523. }
  7524. public function setVisitorId($visitorId)
  7525. {
  7526. $this->visitorId = $visitorId;
  7527. }
  7528. public function getVisitorId()
  7529. {
  7530. return $this->visitorId;
  7531. }
  7532. }
  7533. class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model
  7534. {
  7535. public $actualEndTime;
  7536. public $actualStartTime;
  7537. public $concurrentViewers;
  7538. public $scheduledEndTime;
  7539. public $scheduledStartTime;
  7540. public function setActualEndTime($actualEndTime)
  7541. {
  7542. $this->actualEndTime = $actualEndTime;
  7543. }
  7544. public function getActualEndTime()
  7545. {
  7546. return $this->actualEndTime;
  7547. }
  7548. public function setActualStartTime($actualStartTime)
  7549. {
  7550. $this->actualStartTime = $actualStartTime;
  7551. }
  7552. public function getActualStartTime()
  7553. {
  7554. return $this->actualStartTime;
  7555. }
  7556. public function setConcurrentViewers($concurrentViewers)
  7557. {
  7558. $this->concurrentViewers = $concurrentViewers;
  7559. }
  7560. public function getConcurrentViewers()
  7561. {
  7562. return $this->concurrentViewers;
  7563. }
  7564. public function setScheduledEndTime($scheduledEndTime)
  7565. {
  7566. $this->scheduledEndTime = $scheduledEndTime;
  7567. }
  7568. public function getScheduledEndTime()
  7569. {
  7570. return $this->scheduledEndTime;
  7571. }
  7572. public function setScheduledStartTime($scheduledStartTime)
  7573. {
  7574. $this->scheduledStartTime = $scheduledStartTime;
  7575. }
  7576. public function getScheduledStartTime()
  7577. {
  7578. return $this->scheduledStartTime;
  7579. }
  7580. }
  7581. class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model
  7582. {
  7583. protected $accessType = 'Google_Service_YouTube_AccessPolicy';
  7584. protected $accessDataType = '';
  7585. public function setAccess(Google_Service_YouTube_AccessPolicy $access)
  7586. {
  7587. $this->access = $access;
  7588. }
  7589. public function getAccess()
  7590. {
  7591. return $this->access;
  7592. }
  7593. }
  7594. class Google_Service_YouTube_VideoPlayer extends Google_Model
  7595. {
  7596. public $embedHtml;
  7597. public function setEmbedHtml($embedHtml)
  7598. {
  7599. $this->embedHtml = $embedHtml;
  7600. }
  7601. public function getEmbedHtml()
  7602. {
  7603. return $this->embedHtml;
  7604. }
  7605. }
  7606. class Google_Service_YouTube_VideoProcessingDetails extends Google_Model
  7607. {
  7608. public $editorSuggestionsAvailability;
  7609. public $fileDetailsAvailability;
  7610. public $processingFailureReason;
  7611. public $processingIssuesAvailability;
  7612. protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress';
  7613. protected $processingProgressDataType = '';
  7614. public $processingStatus;
  7615. public $tagSuggestionsAvailability;
  7616. public $thumbnailsAvailability;
  7617. public function setEditorSuggestionsAvailability($editorSuggestionsAvailability)
  7618. {
  7619. $this->editorSuggestionsAvailability = $editorSuggestionsAvailability;
  7620. }
  7621. public function getEditorSuggestionsAvailability()
  7622. {
  7623. return $this->editorSuggestionsAvailability;
  7624. }
  7625. public function setFileDetailsAvailability($fileDetailsAvailability)
  7626. {
  7627. $this->fileDetailsAvailability = $fileDetailsAvailability;
  7628. }
  7629. public function getFileDetailsAvailability()
  7630. {
  7631. return $this->fileDetailsAvailability;
  7632. }
  7633. public function setProcessingFailureReason($processingFailureReason)
  7634. {
  7635. $this->processingFailureReason = $processingFailureReason;
  7636. }
  7637. public function getProcessingFailureReason()
  7638. {
  7639. return $this->processingFailureReason;
  7640. }
  7641. public function setProcessingIssuesAvailability($processingIssuesAvailability)
  7642. {
  7643. $this->processingIssuesAvailability = $processingIssuesAvailability;
  7644. }
  7645. public function getProcessingIssuesAvailability()
  7646. {
  7647. return $this->processingIssuesAvailability;
  7648. }
  7649. public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress)
  7650. {
  7651. $this->processingProgress = $processingProgress;
  7652. }
  7653. public function getProcessingProgress()
  7654. {
  7655. return $this->processingProgress;
  7656. }
  7657. public function setProcessingStatus($processingStatus)
  7658. {
  7659. $this->processingStatus = $processingStatus;
  7660. }
  7661. public function getProcessingStatus()
  7662. {
  7663. return $this->processingStatus;
  7664. }
  7665. public function setTagSuggestionsAvailability($tagSuggestionsAvailability)
  7666. {
  7667. $this->tagSuggestionsAvailability = $tagSuggestionsAvailability;
  7668. }
  7669. public function getTagSuggestionsAvailability()
  7670. {
  7671. return $this->tagSuggestionsAvailability;
  7672. }
  7673. public function setThumbnailsAvailability($thumbnailsAvailability)
  7674. {
  7675. $this->thumbnailsAvailability = $thumbnailsAvailability;
  7676. }
  7677. public function getThumbnailsAvailability()
  7678. {
  7679. return $this->thumbnailsAvailability;
  7680. }
  7681. }
  7682. class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model
  7683. {
  7684. public $partsProcessed;
  7685. public $partsTotal;
  7686. public $timeLeftMs;
  7687. public function setPartsProcessed($partsProcessed)
  7688. {
  7689. $this->partsProcessed = $partsProcessed;
  7690. }
  7691. public function getPartsProcessed()
  7692. {
  7693. return $this->partsProcessed;
  7694. }
  7695. public function setPartsTotal($partsTotal)
  7696. {
  7697. $this->partsTotal = $partsTotal;
  7698. }
  7699. public function getPartsTotal()
  7700. {
  7701. return $this->partsTotal;
  7702. }
  7703. public function setTimeLeftMs($timeLeftMs)
  7704. {
  7705. $this->timeLeftMs = $timeLeftMs;
  7706. }
  7707. public function getTimeLeftMs()
  7708. {
  7709. return $this->timeLeftMs;
  7710. }
  7711. }
  7712. class Google_Service_YouTube_VideoProjectDetails extends Google_Collection
  7713. {
  7714. public $tags;
  7715. public function setTags($tags)
  7716. {
  7717. $this->tags = $tags;
  7718. }
  7719. public function getTags()
  7720. {
  7721. return $this->tags;
  7722. }
  7723. }
  7724. class Google_Service_YouTube_VideoRating extends Google_Model
  7725. {
  7726. public $rating;
  7727. public $videoId;
  7728. public function setRating($rating)
  7729. {
  7730. $this->rating = $rating;
  7731. }
  7732. public function getRating()
  7733. {
  7734. return $this->rating;
  7735. }
  7736. public function setVideoId($videoId)
  7737. {
  7738. $this->videoId = $videoId;
  7739. }
  7740. public function getVideoId()
  7741. {
  7742. return $this->videoId;
  7743. }
  7744. }
  7745. class Google_Service_YouTube_VideoRecordingDetails extends Google_Model
  7746. {
  7747. protected $locationType = 'Google_Service_YouTube_GeoPoint';
  7748. protected $locationDataType = '';
  7749. public $locationDescription;
  7750. public $recordingDate;
  7751. public function setLocation(Google_Service_YouTube_GeoPoint $location)
  7752. {
  7753. $this->location = $location;
  7754. }
  7755. public function getLocation()
  7756. {
  7757. return $this->location;
  7758. }
  7759. public function setLocationDescription($locationDescription)
  7760. {
  7761. $this->locationDescription = $locationDescription;
  7762. }
  7763. public function getLocationDescription()
  7764. {
  7765. return $this->locationDescription;
  7766. }
  7767. public function setRecordingDate($recordingDate)
  7768. {
  7769. $this->recordingDate = $recordingDate;
  7770. }
  7771. public function getRecordingDate()
  7772. {
  7773. return $this->recordingDate;
  7774. }
  7775. }
  7776. class Google_Service_YouTube_VideoSnippet extends Google_Collection
  7777. {
  7778. public $categoryId;
  7779. public $channelId;
  7780. public $channelTitle;
  7781. public $description;
  7782. public $liveBroadcastContent;
  7783. public $publishedAt;
  7784. public $tags;
  7785. protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
  7786. protected $thumbnailsDataType = '';
  7787. public $title;
  7788. public function setCategoryId($categoryId)
  7789. {
  7790. $this->categoryId = $categoryId;
  7791. }
  7792. public function getCategoryId()
  7793. {
  7794. return $this->categoryId;
  7795. }
  7796. public function setChannelId($channelId)
  7797. {
  7798. $this->channelId = $channelId;
  7799. }
  7800. public function getChannelId()
  7801. {
  7802. return $this->channelId;
  7803. }
  7804. public function setChannelTitle($channelTitle)
  7805. {
  7806. $this->channelTitle = $channelTitle;
  7807. }
  7808. public function getChannelTitle()
  7809. {
  7810. return $this->channelTitle;
  7811. }
  7812. public function setDescription($description)
  7813. {
  7814. $this->description = $description;
  7815. }
  7816. public function getDescription()
  7817. {
  7818. return $this->description;
  7819. }
  7820. public function setLiveBroadcastContent($liveBroadcastContent)
  7821. {
  7822. $this->liveBroadcastContent = $liveBroadcastContent;
  7823. }
  7824. public function getLiveBroadcastContent()
  7825. {
  7826. return $this->liveBroadcastContent;
  7827. }
  7828. public function setPublishedAt($publishedAt)
  7829. {
  7830. $this->publishedAt = $publishedAt;
  7831. }
  7832. public function getPublishedAt()
  7833. {
  7834. return $this->publishedAt;
  7835. }
  7836. public function setTags($tags)
  7837. {
  7838. $this->tags = $tags;
  7839. }
  7840. public function getTags()
  7841. {
  7842. return $this->tags;
  7843. }
  7844. public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
  7845. {
  7846. $this->thumbnails = $thumbnails;
  7847. }
  7848. public function getThumbnails()
  7849. {
  7850. return $this->thumbnails;
  7851. }
  7852. public function setTitle($title)
  7853. {
  7854. $this->title = $title;
  7855. }
  7856. public function getTitle()
  7857. {
  7858. return $this->title;
  7859. }
  7860. }
  7861. class Google_Service_YouTube_VideoStatistics extends Google_Model
  7862. {
  7863. public $commentCount;
  7864. public $dislikeCount;
  7865. public $favoriteCount;
  7866. public $likeCount;
  7867. public $viewCount;
  7868. public function setCommentCount($commentCount)
  7869. {
  7870. $this->commentCount = $commentCount;
  7871. }
  7872. public function getCommentCount()
  7873. {
  7874. return $this->commentCount;
  7875. }
  7876. public function setDislikeCount($dislikeCount)
  7877. {
  7878. $this->dislikeCount = $dislikeCount;
  7879. }
  7880. public function getDislikeCount()
  7881. {
  7882. return $this->dislikeCount;
  7883. }
  7884. public function setFavoriteCount($favoriteCount)
  7885. {
  7886. $this->favoriteCount = $favoriteCount;
  7887. }
  7888. public function getFavoriteCount()
  7889. {
  7890. return $this->favoriteCount;
  7891. }
  7892. public function setLikeCount($likeCount)
  7893. {
  7894. $this->likeCount = $likeCount;
  7895. }
  7896. public function getLikeCount()
  7897. {
  7898. return $this->likeCount;
  7899. }
  7900. public function setViewCount($viewCount)
  7901. {
  7902. $this->viewCount = $viewCount;
  7903. }
  7904. public function getViewCount()
  7905. {
  7906. return $this->viewCount;
  7907. }
  7908. }
  7909. class Google_Service_YouTube_VideoStatus extends Google_Model
  7910. {
  7911. public $embeddable;
  7912. public $failureReason;
  7913. public $license;
  7914. public $privacyStatus;
  7915. public $publicStatsViewable;
  7916. public $rejectionReason;
  7917. public $uploadStatus;
  7918. public function setEmbeddable($embeddable)
  7919. {
  7920. $this->embeddable = $embeddable;
  7921. }
  7922. public function getEmbeddable()
  7923. {
  7924. return $this->embeddable;
  7925. }
  7926. public function setFailureReason($failureReason)
  7927. {
  7928. $this->failureReason = $failureReason;
  7929. }
  7930. public function getFailureReason()
  7931. {
  7932. return $this->failureReason;
  7933. }
  7934. public function setLicense($license)
  7935. {
  7936. $this->license = $license;
  7937. }
  7938. public function getLicense()
  7939. {
  7940. return $this->license;
  7941. }
  7942. public function setPrivacyStatus($privacyStatus)
  7943. {
  7944. $this->privacyStatus = $privacyStatus;
  7945. }
  7946. public function getPrivacyStatus()
  7947. {
  7948. return $this->privacyStatus;
  7949. }
  7950. public function setPublicStatsViewable($publicStatsViewable)
  7951. {
  7952. $this->publicStatsViewable = $publicStatsViewable;
  7953. }
  7954. public function getPublicStatsViewable()
  7955. {
  7956. return $this->publicStatsViewable;
  7957. }
  7958. public function setRejectionReason($rejectionReason)
  7959. {
  7960. $this->rejectionReason = $rejectionReason;
  7961. }
  7962. public function getRejectionReason()
  7963. {
  7964. return $this->rejectionReason;
  7965. }
  7966. public function setUploadStatus($uploadStatus)
  7967. {
  7968. $this->uploadStatus = $uploadStatus;
  7969. }
  7970. public function getUploadStatus()
  7971. {
  7972. return $this->uploadStatus;
  7973. }
  7974. }
  7975. class Google_Service_YouTube_VideoSuggestions extends Google_Collection
  7976. {
  7977. public $editorSuggestions;
  7978. public $processingErrors;
  7979. public $processingHints;
  7980. public $processingWarnings;
  7981. protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion';
  7982. protected $tagSuggestionsDataType = 'array';
  7983. public function setEditorSuggestions($editorSuggestions)
  7984. {
  7985. $this->editorSuggestions = $editorSuggestions;
  7986. }
  7987. public function getEditorSuggestions()
  7988. {
  7989. return $this->editorSuggestions;
  7990. }
  7991. public function setProcessingErrors($processingErrors)
  7992. {
  7993. $this->processingErrors = $processingErrors;
  7994. }
  7995. public function getProcessingErrors()
  7996. {
  7997. return $this->processingErrors;
  7998. }
  7999. public function setProcessingHints($processingHints)
  8000. {
  8001. $this->processingHints = $processingHints;
  8002. }
  8003. public function getProcessingHints()
  8004. {
  8005. return $this->processingHints;
  8006. }
  8007. public function setProcessingWarnings($processingWarnings)
  8008. {
  8009. $this->processingWarnings = $processingWarnings;
  8010. }
  8011. public function getProcessingWarnings()
  8012. {
  8013. return $this->processingWarnings;
  8014. }
  8015. public function setTagSuggestions($tagSuggestions)
  8016. {
  8017. $this->tagSuggestions = $tagSuggestions;
  8018. }
  8019. public function getTagSuggestions()
  8020. {
  8021. return $this->tagSuggestions;
  8022. }
  8023. }
  8024. class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection
  8025. {
  8026. public $categoryRestricts;
  8027. public $tag;
  8028. public function setCategoryRestricts($categoryRestricts)
  8029. {
  8030. $this->categoryRestricts = $categoryRestricts;
  8031. }
  8032. public function getCategoryRestricts()
  8033. {
  8034. return $this->categoryRestricts;
  8035. }
  8036. public function setTag($tag)
  8037. {
  8038. $this->tag = $tag;
  8039. }
  8040. public function getTag()
  8041. {
  8042. return $this->tag;
  8043. }
  8044. }
  8045. class Google_Service_YouTube_VideoTopicDetails extends Google_Collection
  8046. {
  8047. public $relevantTopicIds;
  8048. public $topicIds;
  8049. public function setRelevantTopicIds($relevantTopicIds)
  8050. {
  8051. $this->relevantTopicIds = $relevantTopicIds;
  8052. }
  8053. public function getRelevantTopicIds()
  8054. {
  8055. return $this->relevantTopicIds;
  8056. }
  8057. public function setTopicIds($topicIds)
  8058. {
  8059. $this->topicIds = $topicIds;
  8060. }
  8061. public function getTopicIds()
  8062. {
  8063. return $this->topicIds;
  8064. }
  8065. }
  8066. class Google_Service_YouTube_WatchSettings extends Google_Model
  8067. {
  8068. public $backgroundColor;
  8069. public $featuredPlaylistId;
  8070. public $textColor;
  8071. public function setBackgroundColor($backgroundColor)
  8072. {
  8073. $this->backgroundColor = $backgroundColor;
  8074. }
  8075. public function getBackgroundColor()
  8076. {
  8077. return $this->backgroundColor;
  8078. }
  8079. public function setFeaturedPlaylistId($featuredPlaylistId)
  8080. {
  8081. $this->featuredPlaylistId = $featuredPlaylistId;
  8082. }
  8083. public function getFeaturedPlaylistId()
  8084. {
  8085. return $this->featuredPlaylistId;
  8086. }
  8087. public function setTextColor($textColor)
  8088. {
  8089. $this->textColor = $textColor;
  8090. }
  8091. public function getTextColor()
  8092. {
  8093. return $this->textColor;
  8094. }
  8095. }