@@ -15972,6 +15972,209 @@ public Videos videos() {
1597215972 */
1597315973 public class Videos {
1597415974
15975+ /**
15976+ * Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not
15977+ * atomic to provide a better user experience.
15978+ *
15979+ * Create a request for the method "videos.batchGetStats".
15980+ *
15981+ * This request holds the parameters needed by the youtube server. After setting any optional
15982+ * parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation.
15983+ *
15984+ * @return the request
15985+ */
15986+ public BatchGetStats batchGetStats() throws java.io.IOException {
15987+ BatchGetStats result = new BatchGetStats();
15988+ initialize(result);
15989+ return result;
15990+ }
15991+
15992+ public class BatchGetStats extends YouTubeRequest<com.google.api.services.youtube.model.BatchGetStatsResponse> {
15993+
15994+ private static final String REST_PATH = "youtube/v3/videos:batchGetStats";
15995+
15996+ /**
15997+ * Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not
15998+ * atomic to provide a better user experience.
15999+ *
16000+ * Create a request for the method "videos.batchGetStats".
16001+ *
16002+ * This request holds the parameters needed by the the youtube server. After setting any optional
16003+ * parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation. <p>
16004+ * {@link BatchGetStats#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR
16005+ * equest)} must be called to initialize this instance immediately after invoking the constructor.
16006+ * </p>
16007+ *
16008+ * @since 1.13
16009+ */
16010+ protected BatchGetStats() {
16011+ super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.BatchGetStatsResponse.class);
16012+ }
16013+
16014+ @Override
16015+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
16016+ return super.executeUsingHead();
16017+ }
16018+
16019+ @Override
16020+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
16021+ return super.buildHttpRequestUsingHead();
16022+ }
16023+
16024+ @Override
16025+ public BatchGetStats set$Xgafv(java.lang.String $Xgafv) {
16026+ return (BatchGetStats) super.set$Xgafv($Xgafv);
16027+ }
16028+
16029+ @Override
16030+ public BatchGetStats setAccessToken(java.lang.String accessToken) {
16031+ return (BatchGetStats) super.setAccessToken(accessToken);
16032+ }
16033+
16034+ @Override
16035+ public BatchGetStats setAlt(java.lang.String alt) {
16036+ return (BatchGetStats) super.setAlt(alt);
16037+ }
16038+
16039+ @Override
16040+ public BatchGetStats setCallback(java.lang.String callback) {
16041+ return (BatchGetStats) super.setCallback(callback);
16042+ }
16043+
16044+ @Override
16045+ public BatchGetStats setFields(java.lang.String fields) {
16046+ return (BatchGetStats) super.setFields(fields);
16047+ }
16048+
16049+ @Override
16050+ public BatchGetStats setKey(java.lang.String key) {
16051+ return (BatchGetStats) super.setKey(key);
16052+ }
16053+
16054+ @Override
16055+ public BatchGetStats setOauthToken(java.lang.String oauthToken) {
16056+ return (BatchGetStats) super.setOauthToken(oauthToken);
16057+ }
16058+
16059+ @Override
16060+ public BatchGetStats setPrettyPrint(java.lang.Boolean prettyPrint) {
16061+ return (BatchGetStats) super.setPrettyPrint(prettyPrint);
16062+ }
16063+
16064+ @Override
16065+ public BatchGetStats setQuotaUser(java.lang.String quotaUser) {
16066+ return (BatchGetStats) super.setQuotaUser(quotaUser);
16067+ }
16068+
16069+ @Override
16070+ public BatchGetStats setUploadType(java.lang.String uploadType) {
16071+ return (BatchGetStats) super.setUploadType(uploadType);
16072+ }
16073+
16074+ @Override
16075+ public BatchGetStats setUploadProtocol(java.lang.String uploadProtocol) {
16076+ return (BatchGetStats) super.setUploadProtocol(uploadProtocol);
16077+ }
16078+
16079+ /**
16080+ * Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
16081+ */
16082+ @com.google.api.client.util.Key
16083+ private java.util.List<java.lang.String> id;
16084+
16085+ /** Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
16086+ */
16087+ public java.util.List<java.lang.String> getId() {
16088+ return id;
16089+ }
16090+
16091+ /**
16092+ * Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
16093+ */
16094+ public BatchGetStats setId(java.util.List<java.lang.String> id) {
16095+ this.id = id;
16096+ return this;
16097+ }
16098+
16099+ /**
16100+ * Optional. **Note:** This parameter is intended exclusively for YouTube content partners.
16101+ * The `onBehalfOfContentOwner` parameter indicates that the request's authorization
16102+ * credentials identify a YouTube CMS user who is acting on behalf of the content owner
16103+ * specified in the parameter value. This parameter is intended for YouTube content partners
16104+ * that own and manage many different YouTube channels. It allows content owners to
16105+ * authenticate once and get access to all their video and channel data, without having to
16106+ * provide authentication credentials for each individual channel. The CMS account that the
16107+ * user authenticates with must be linked to the specified YouTube content owner.
16108+ */
16109+ @com.google.api.client.util.Key
16110+ private java.lang.String onBehalfOfContentOwner;
16111+
16112+ /** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The
16113+ `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify
16114+ a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value.
16115+ This parameter is intended for YouTube content partners that own and manage many different YouTube
16116+ channels. It allows content owners to authenticate once and get access to all their video and
16117+ channel data, without having to provide authentication credentials for each individual channel. The
16118+ CMS account that the user authenticates with must be linked to the specified YouTube content owner.
16119+ */
16120+ public java.lang.String getOnBehalfOfContentOwner() {
16121+ return onBehalfOfContentOwner;
16122+ }
16123+
16124+ /**
16125+ * Optional. **Note:** This parameter is intended exclusively for YouTube content partners.
16126+ * The `onBehalfOfContentOwner` parameter indicates that the request's authorization
16127+ * credentials identify a YouTube CMS user who is acting on behalf of the content owner
16128+ * specified in the parameter value. This parameter is intended for YouTube content partners
16129+ * that own and manage many different YouTube channels. It allows content owners to
16130+ * authenticate once and get access to all their video and channel data, without having to
16131+ * provide authentication credentials for each individual channel. The CMS account that the
16132+ * user authenticates with must be linked to the specified YouTube content owner.
16133+ */
16134+ public BatchGetStats setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
16135+ this.onBehalfOfContentOwner = onBehalfOfContentOwner;
16136+ return this;
16137+ }
16138+
16139+ /**
16140+ * Required. The `**part**` parameter specifies a comma-separated list of one or more
16141+ * `videoStat` resource properties that the API response will include. If the parameter
16142+ * identifies a property that contains child properties, the child properties will be included
16143+ * in the response. For example, in a `videoStat` resource, the `statistics` property contains
16144+ * `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response
16145+ * will contain all of those properties.
16146+ */
16147+ @com.google.api.client.util.Key
16148+ private java.util.List<java.lang.String> part;
16149+
16150+ /** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat`
16151+ resource properties that the API response will include. If the parameter identifies a property that
16152+ contains child properties, the child properties will be included in the response. For example, in a
16153+ `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if
16154+ you set `**part=snippet**`, the API response will contain all of those properties.
16155+ */
16156+ public java.util.List<java.lang.String> getPart() {
16157+ return part;
16158+ }
16159+
16160+ /**
16161+ * Required. The `**part**` parameter specifies a comma-separated list of one or more
16162+ * `videoStat` resource properties that the API response will include. If the parameter
16163+ * identifies a property that contains child properties, the child properties will be included
16164+ * in the response. For example, in a `videoStat` resource, the `statistics` property contains
16165+ * `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response
16166+ * will contain all of those properties.
16167+ */
16168+ public BatchGetStats setPart(java.util.List<java.lang.String> part) {
16169+ this.part = part;
16170+ return this;
16171+ }
16172+
16173+ @Override
16174+ public BatchGetStats set(String parameterName, Object value) {
16175+ return (BatchGetStats) super.set(parameterName, value);
16176+ }
16177+ }
1597516178 /**
1597616179 * Deletes a resource.
1597716180 *
0 commit comments