Skip to content

Commit cc9e924

Browse files
1 parent b8a9e2d commit cc9e924

9 files changed

Lines changed: 787 additions & 6 deletions

File tree

clients/google-api-services-youtube/v3/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-youtube</artifactId>
25-
<version>v3-rev20260602-2.0.0</version>
25+
<version>v3-rev20260604-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-youtube:v3-rev20260602-2.0.0'
38+
implementation 'com.google.apis:google-api-services-youtube:v3-rev20260604-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/YouTube.java

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.youtube.model;
18+
19+
/**
20+
* Response for the Videos.stats API. Returns VideoStat information about a batch of videos.
21+
* VideoStat contains a subset of the information in Video that is relevant to statistics and
22+
* content details. BatchGetStats is intentionally not atomic to provide a better user experience.
23+
* BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see:
27+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class BatchGetStatsResponse extends com.google.api.client.json.GenericJson {
34+
35+
/**
36+
* Etag of this resource.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String etag;
41+
42+
/**
43+
* The videos' stats information.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<VideoStat> items;
48+
49+
/**
50+
* Identifies what kind of resource this is. Value: the fixed string
51+
* "youtube#batchGetStatsResponse".
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.lang.String kind;
56+
57+
/**
58+
* Etag of this resource.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.String getEtag() {
62+
return etag;
63+
}
64+
65+
/**
66+
* Etag of this resource.
67+
* @param etag etag or {@code null} for none
68+
*/
69+
public BatchGetStatsResponse setEtag(java.lang.String etag) {
70+
this.etag = etag;
71+
return this;
72+
}
73+
74+
/**
75+
* The videos' stats information.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.util.List<VideoStat> getItems() {
79+
return items;
80+
}
81+
82+
/**
83+
* The videos' stats information.
84+
* @param items items or {@code null} for none
85+
*/
86+
public BatchGetStatsResponse setItems(java.util.List<VideoStat> items) {
87+
this.items = items;
88+
return this;
89+
}
90+
91+
/**
92+
* Identifies what kind of resource this is. Value: the fixed string
93+
* "youtube#batchGetStatsResponse".
94+
* @return value or {@code null} for none
95+
*/
96+
public java.lang.String getKind() {
97+
return kind;
98+
}
99+
100+
/**
101+
* Identifies what kind of resource this is. Value: the fixed string
102+
* "youtube#batchGetStatsResponse".
103+
* @param kind kind or {@code null} for none
104+
*/
105+
public BatchGetStatsResponse setKind(java.lang.String kind) {
106+
this.kind = kind;
107+
return this;
108+
}
109+
110+
@Override
111+
public BatchGetStatsResponse set(String fieldName, Object value) {
112+
return (BatchGetStatsResponse) super.set(fieldName, value);
113+
}
114+
115+
@Override
116+
public BatchGetStatsResponse clone() {
117+
return (BatchGetStatsResponse) super.clone();
118+
}
119+
120+
}

0 commit comments

Comments
 (0)