Skip to content

Commit 8dfd681

Browse files
1 parent 686aaff commit 8dfd681

File tree

9 files changed

+831
-6
lines changed

9 files changed

+831
-6
lines changed

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-rev20250714-2.0.0</version>
25+
<version>v3-rev20251125-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-rev20250714-2.0.0'
38+
implementation 'com.google.apis:google-api-services-youtube:v3-rev20251125-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18428,6 +18428,227 @@ public Stream set(String parameterName, Object value) {
1842818428

1842918429
}
1843018430
}
18431+
/**
18432+
* An accessor for creating requests from the Videos collection.
18433+
*
18434+
* <p>The typical use is:</p>
18435+
* <pre>
18436+
* {@code YouTube youtube = new YouTube(...);}
18437+
* {@code YouTube.Videos.List request = youtube.videos().list(parameters ...)}
18438+
* </pre>
18439+
*
18440+
* @return the resource collection
18441+
*/
18442+
public Videos videos() {
18443+
return new Videos();
18444+
}
18445+
18446+
/**
18447+
* The "videos" collection of methods.
18448+
*/
18449+
public class Videos {
18450+
18451+
/**
18452+
* Retrieves a batch of VideoStat resources, possibly filtered.
18453+
*
18454+
* Create a request for the method "videos.batchGetStats".
18455+
*
18456+
* This request holds the parameters needed by the youtube server. After setting any optional
18457+
* parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation.
18458+
*
18459+
* @return the request
18460+
*/
18461+
public BatchGetStats batchGetStats() throws java.io.IOException {
18462+
BatchGetStats result = new BatchGetStats();
18463+
initialize(result);
18464+
return result;
18465+
}
18466+
18467+
public class BatchGetStats extends YouTubeRequest<com.google.api.services.youtube.model.BatchGetStatsResponse> {
18468+
18469+
private static final String REST_PATH = "youtube/v3/videos:batchGetStats";
18470+
18471+
/**
18472+
* Retrieves a batch of VideoStat resources, possibly filtered.
18473+
*
18474+
* Create a request for the method "videos.batchGetStats".
18475+
*
18476+
* This request holds the parameters needed by the the youtube server. After setting any optional
18477+
* parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation. <p>
18478+
* {@link BatchGetStats#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR
18479+
* equest)} must be called to initialize this instance immediately after invoking the constructor.
18480+
* </p>
18481+
*
18482+
* @since 1.13
18483+
*/
18484+
protected BatchGetStats() {
18485+
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.BatchGetStatsResponse.class);
18486+
}
18487+
18488+
@Override
18489+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
18490+
return super.executeUsingHead();
18491+
}
18492+
18493+
@Override
18494+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
18495+
return super.buildHttpRequestUsingHead();
18496+
}
18497+
18498+
@Override
18499+
public BatchGetStats set$Xgafv(java.lang.String $Xgafv) {
18500+
return (BatchGetStats) super.set$Xgafv($Xgafv);
18501+
}
18502+
18503+
@Override
18504+
public BatchGetStats setAccessToken(java.lang.String accessToken) {
18505+
return (BatchGetStats) super.setAccessToken(accessToken);
18506+
}
18507+
18508+
@Override
18509+
public BatchGetStats setAlt(java.lang.String alt) {
18510+
return (BatchGetStats) super.setAlt(alt);
18511+
}
18512+
18513+
@Override
18514+
public BatchGetStats setCallback(java.lang.String callback) {
18515+
return (BatchGetStats) super.setCallback(callback);
18516+
}
18517+
18518+
@Override
18519+
public BatchGetStats setFields(java.lang.String fields) {
18520+
return (BatchGetStats) super.setFields(fields);
18521+
}
18522+
18523+
@Override
18524+
public BatchGetStats setKey(java.lang.String key) {
18525+
return (BatchGetStats) super.setKey(key);
18526+
}
18527+
18528+
@Override
18529+
public BatchGetStats setOauthToken(java.lang.String oauthToken) {
18530+
return (BatchGetStats) super.setOauthToken(oauthToken);
18531+
}
18532+
18533+
@Override
18534+
public BatchGetStats setPrettyPrint(java.lang.Boolean prettyPrint) {
18535+
return (BatchGetStats) super.setPrettyPrint(prettyPrint);
18536+
}
18537+
18538+
@Override
18539+
public BatchGetStats setQuotaUser(java.lang.String quotaUser) {
18540+
return (BatchGetStats) super.setQuotaUser(quotaUser);
18541+
}
18542+
18543+
@Override
18544+
public BatchGetStats setUploadType(java.lang.String uploadType) {
18545+
return (BatchGetStats) super.setUploadType(uploadType);
18546+
}
18547+
18548+
@Override
18549+
public BatchGetStats setUploadProtocol(java.lang.String uploadProtocol) {
18550+
return (BatchGetStats) super.setUploadProtocol(uploadProtocol);
18551+
}
18552+
18553+
/**
18554+
* Optional. **Note:** This parameter is intended exclusively for YouTube content
18555+
* partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18556+
* authorization credentials identify a YouTube CMS user who is acting on behalf of the
18557+
* content owner specified in the parameter value. This parameter is intended for YouTube
18558+
* content partners that own and manage many different YouTube channels. It allows content
18559+
* owners to authenticate once and get access to all their video and channel data, without
18560+
* having to provide authentication credentials for each individual channel. The CMS
18561+
* account that the user authenticates with must be linked to the specified YouTube
18562+
* content owner.
18563+
*/
18564+
@com.google.api.client.util.Key
18565+
private java.lang.String onBehalfOfContentOwner;
18566+
18567+
/** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The
18568+
`onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify
18569+
a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value.
18570+
This parameter is intended for YouTube content partners that own and manage many different YouTube
18571+
channels. It allows content owners to authenticate once and get access to all their video and
18572+
channel data, without having to provide authentication credentials for each individual channel. The
18573+
CMS account that the user authenticates with must be linked to the specified YouTube content owner.
18574+
*/
18575+
public java.lang.String getOnBehalfOfContentOwner() {
18576+
return onBehalfOfContentOwner;
18577+
}
18578+
18579+
/**
18580+
* Optional. **Note:** This parameter is intended exclusively for YouTube content
18581+
* partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18582+
* authorization credentials identify a YouTube CMS user who is acting on behalf of the
18583+
* content owner specified in the parameter value. This parameter is intended for YouTube
18584+
* content partners that own and manage many different YouTube channels. It allows content
18585+
* owners to authenticate once and get access to all their video and channel data, without
18586+
* having to provide authentication credentials for each individual channel. The CMS
18587+
* account that the user authenticates with must be linked to the specified YouTube
18588+
* content owner.
18589+
*/
18590+
public BatchGetStats setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
18591+
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
18592+
return this;
18593+
}
18594+
18595+
/**
18596+
* Required. The `**part**` parameter specifies a comma-separated list of one or more
18597+
* `videoStat` resource properties that the API response will include. If the parameter
18598+
* identifies a property that contains child properties, the child properties will be
18599+
* included in the response. For example, in a `videoStat` resource, the `statistics`
18600+
* property contains `view_count` and `like_count`. As such, if you set
18601+
* `**part=snippet**`, the API response will contain all of those properties.
18602+
*/
18603+
@com.google.api.client.util.Key
18604+
private java.util.List<java.lang.String> part;
18605+
18606+
/** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat`
18607+
resource properties that the API response will include. If the parameter identifies a property that
18608+
contains child properties, the child properties will be included in the response. For example, in a
18609+
`videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if
18610+
you set `**part=snippet**`, the API response will contain all of those properties.
18611+
*/
18612+
public java.util.List<java.lang.String> getPart() {
18613+
return part;
18614+
}
18615+
18616+
/**
18617+
* Required. The `**part**` parameter specifies a comma-separated list of one or more
18618+
* `videoStat` resource properties that the API response will include. If the parameter
18619+
* identifies a property that contains child properties, the child properties will be
18620+
* included in the response. For example, in a `videoStat` resource, the `statistics`
18621+
* property contains `view_count` and `like_count`. As such, if you set
18622+
* `**part=snippet**`, the API response will contain all of those properties.
18623+
*/
18624+
public BatchGetStats setPart(java.util.List<java.lang.String> part) {
18625+
this.part = part;
18626+
return this;
18627+
}
18628+
18629+
/** Required. Return videos with the given ids. */
18630+
@com.google.api.client.util.Key
18631+
private java.util.List<java.lang.String> videoIds;
18632+
18633+
/** Required. Return videos with the given ids.
18634+
*/
18635+
public java.util.List<java.lang.String> getVideoIds() {
18636+
return videoIds;
18637+
}
18638+
18639+
/** Required. Return videos with the given ids. */
18640+
public BatchGetStats setVideoIds(java.util.List<java.lang.String> videoIds) {
18641+
this.videoIds = videoIds;
18642+
return this;
18643+
}
18644+
18645+
@Override
18646+
public BatchGetStats set(String parameterName, Object value) {
18647+
return (BatchGetStats) super.set(parameterName, value);
18648+
}
18649+
}
18650+
18651+
}
1843118652
}
1843218653
}
1843318654

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class BatchGetStatsResponse extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Output only. Etag of this resource.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String etag;
40+
41+
/**
42+
* Output only. The videos' stats information.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<VideoStat> items;
47+
48+
/**
49+
* Output only. Identifies what kind of resource this is. Value: the fixed string
50+
* "youtube#batchGetStatsResponse".
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String kind;
55+
56+
/**
57+
* Output only. Etag of this resource.
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.String getEtag() {
61+
return etag;
62+
}
63+
64+
/**
65+
* Output only. Etag of this resource.
66+
* @param etag etag or {@code null} for none
67+
*/
68+
public BatchGetStatsResponse setEtag(java.lang.String etag) {
69+
this.etag = etag;
70+
return this;
71+
}
72+
73+
/**
74+
* Output only. The videos' stats information.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.util.List<VideoStat> getItems() {
78+
return items;
79+
}
80+
81+
/**
82+
* Output only. The videos' stats information.
83+
* @param items items or {@code null} for none
84+
*/
85+
public BatchGetStatsResponse setItems(java.util.List<VideoStat> items) {
86+
this.items = items;
87+
return this;
88+
}
89+
90+
/**
91+
* Output only. Identifies what kind of resource this is. Value: the fixed string
92+
* "youtube#batchGetStatsResponse".
93+
* @return value or {@code null} for none
94+
*/
95+
public java.lang.String getKind() {
96+
return kind;
97+
}
98+
99+
/**
100+
* Output only. Identifies what kind of resource this is. Value: the fixed string
101+
* "youtube#batchGetStatsResponse".
102+
* @param kind kind or {@code null} for none
103+
*/
104+
public BatchGetStatsResponse setKind(java.lang.String kind) {
105+
this.kind = kind;
106+
return this;
107+
}
108+
109+
@Override
110+
public BatchGetStatsResponse set(String fieldName, Object value) {
111+
return (BatchGetStatsResponse) super.set(fieldName, value);
112+
}
113+
114+
@Override
115+
public BatchGetStatsResponse clone() {
116+
return (BatchGetStatsResponse) super.clone();
117+
}
118+
119+
}

0 commit comments

Comments
 (0)