1<?php
2/*
3 * Copyright 2014 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
18namespace Google\Service\YouTube;
19
20class VideoContentDetails extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $caption;
26  protected $contentRatingType = ContentRating::class;
27  protected $contentRatingDataType = '';
28  protected $countryRestrictionType = AccessPolicy::class;
29  protected $countryRestrictionDataType = '';
30  /**
31   * @var string
32   */
33  public $definition;
34  /**
35   * @var string
36   */
37  public $dimension;
38  /**
39   * @var string
40   */
41  public $duration;
42  /**
43   * @var bool
44   */
45  public $hasCustomThumbnail;
46  /**
47   * @var bool
48   */
49  public $licensedContent;
50  /**
51   * @var string
52   */
53  public $projection;
54  protected $regionRestrictionType = VideoContentDetailsRegionRestriction::class;
55  protected $regionRestrictionDataType = '';
56
57  /**
58   * @param string
59   */
60  public function setCaption($caption)
61  {
62    $this->caption = $caption;
63  }
64  /**
65   * @return string
66   */
67  public function getCaption()
68  {
69    return $this->caption;
70  }
71  /**
72   * @param ContentRating
73   */
74  public function setContentRating(ContentRating $contentRating)
75  {
76    $this->contentRating = $contentRating;
77  }
78  /**
79   * @return ContentRating
80   */
81  public function getContentRating()
82  {
83    return $this->contentRating;
84  }
85  /**
86   * @param AccessPolicy
87   */
88  public function setCountryRestriction(AccessPolicy $countryRestriction)
89  {
90    $this->countryRestriction = $countryRestriction;
91  }
92  /**
93   * @return AccessPolicy
94   */
95  public function getCountryRestriction()
96  {
97    return $this->countryRestriction;
98  }
99  /**
100   * @param string
101   */
102  public function setDefinition($definition)
103  {
104    $this->definition = $definition;
105  }
106  /**
107   * @return string
108   */
109  public function getDefinition()
110  {
111    return $this->definition;
112  }
113  /**
114   * @param string
115   */
116  public function setDimension($dimension)
117  {
118    $this->dimension = $dimension;
119  }
120  /**
121   * @return string
122   */
123  public function getDimension()
124  {
125    return $this->dimension;
126  }
127  /**
128   * @param string
129   */
130  public function setDuration($duration)
131  {
132    $this->duration = $duration;
133  }
134  /**
135   * @return string
136   */
137  public function getDuration()
138  {
139    return $this->duration;
140  }
141  /**
142   * @param bool
143   */
144  public function setHasCustomThumbnail($hasCustomThumbnail)
145  {
146    $this->hasCustomThumbnail = $hasCustomThumbnail;
147  }
148  /**
149   * @return bool
150   */
151  public function getHasCustomThumbnail()
152  {
153    return $this->hasCustomThumbnail;
154  }
155  /**
156   * @param bool
157   */
158  public function setLicensedContent($licensedContent)
159  {
160    $this->licensedContent = $licensedContent;
161  }
162  /**
163   * @return bool
164   */
165  public function getLicensedContent()
166  {
167    return $this->licensedContent;
168  }
169  /**
170   * @param string
171   */
172  public function setProjection($projection)
173  {
174    $this->projection = $projection;
175  }
176  /**
177   * @return string
178   */
179  public function getProjection()
180  {
181    return $this->projection;
182  }
183  /**
184   * @param VideoContentDetailsRegionRestriction
185   */
186  public function setRegionRestriction(VideoContentDetailsRegionRestriction $regionRestriction)
187  {
188    $this->regionRestriction = $regionRestriction;
189  }
190  /**
191   * @return VideoContentDetailsRegionRestriction
192   */
193  public function getRegionRestriction()
194  {
195    return $this->regionRestriction;
196  }
197}
198
199// Adding a class alias for backwards compatibility with the previous class name.
200class_alias(VideoContentDetails::class, 'Google_Service_YouTube_VideoContentDetails');
201