Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-youtube/v3/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-youtube</artifactId>
<version>v3-rev20260602-2.0.0</version>
<version>v3-rev20260604-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-youtube:v3-rev20260602-2.0.0'
implementation 'com.google.apis:google-api-services-youtube:v3-rev20260604-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15972,6 +15972,209 @@ public Videos videos() {
*/
public class Videos {

/**
* Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not
* atomic to provide a better user experience.
*
* Create a request for the method "videos.batchGetStats".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation.
*
* @return the request
*/
public BatchGetStats batchGetStats() throws java.io.IOException {
BatchGetStats result = new BatchGetStats();
initialize(result);
return result;
}

public class BatchGetStats extends YouTubeRequest<com.google.api.services.youtube.model.BatchGetStatsResponse> {

private static final String REST_PATH = "youtube/v3/videos:batchGetStats";

/**
* Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not
* atomic to provide a better user experience.
*
* Create a request for the method "videos.batchGetStats".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation. <p>
* {@link BatchGetStats#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR
* equest)} must be called to initialize this instance immediately after invoking the constructor.
* </p>
*
* @since 1.13
*/
protected BatchGetStats() {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.BatchGetStatsResponse.class);
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

@Override
public BatchGetStats set$Xgafv(java.lang.String $Xgafv) {
return (BatchGetStats) super.set$Xgafv($Xgafv);
}

@Override
public BatchGetStats setAccessToken(java.lang.String accessToken) {
return (BatchGetStats) super.setAccessToken(accessToken);
}

@Override
public BatchGetStats setAlt(java.lang.String alt) {
return (BatchGetStats) super.setAlt(alt);
}

@Override
public BatchGetStats setCallback(java.lang.String callback) {
return (BatchGetStats) super.setCallback(callback);
}

@Override
public BatchGetStats setFields(java.lang.String fields) {
return (BatchGetStats) super.setFields(fields);
}

@Override
public BatchGetStats setKey(java.lang.String key) {
return (BatchGetStats) super.setKey(key);
}

@Override
public BatchGetStats setOauthToken(java.lang.String oauthToken) {
return (BatchGetStats) super.setOauthToken(oauthToken);
}

@Override
public BatchGetStats setPrettyPrint(java.lang.Boolean prettyPrint) {
return (BatchGetStats) super.setPrettyPrint(prettyPrint);
}

@Override
public BatchGetStats setQuotaUser(java.lang.String quotaUser) {
return (BatchGetStats) super.setQuotaUser(quotaUser);
}

@Override
public BatchGetStats setUploadType(java.lang.String uploadType) {
return (BatchGetStats) super.setUploadType(uploadType);
}

@Override
public BatchGetStats setUploadProtocol(java.lang.String uploadProtocol) {
return (BatchGetStats) super.setUploadProtocol(uploadProtocol);
}

/**
* Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> id;

/** Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
*/
public java.util.List<java.lang.String> getId() {
return id;
}

/**
* Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
*/
public BatchGetStats setId(java.util.List<java.lang.String> id) {
this.id = id;
return this;
}

/**
* Optional. **Note:** This parameter is intended exclusively for YouTube content partners.
* The `onBehalfOfContentOwner` parameter indicates that the request's authorization
* credentials identify a YouTube CMS user who is acting on behalf of the content owner
* specified in the parameter value. This parameter is intended for YouTube content partners
* that own and manage many different YouTube channels. It allows content owners to
* authenticate once and get access to all their video and channel data, without having to
* provide authentication credentials for each individual channel. The CMS account that the
* user authenticates with must be linked to the specified YouTube content owner.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwner;

/** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The
`onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify
a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value.
This parameter is intended for YouTube content partners that own and manage many different YouTube
channels. It allows content owners to authenticate once and get access to all their video and
channel data, without having to provide authentication credentials for each individual channel. The
CMS account that the user authenticates with must be linked to the specified YouTube content owner.
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}

/**
* Optional. **Note:** This parameter is intended exclusively for YouTube content partners.
* The `onBehalfOfContentOwner` parameter indicates that the request's authorization
* credentials identify a YouTube CMS user who is acting on behalf of the content owner
* specified in the parameter value. This parameter is intended for YouTube content partners
* that own and manage many different YouTube channels. It allows content owners to
* authenticate once and get access to all their video and channel data, without having to
* provide authentication credentials for each individual channel. The CMS account that the
* user authenticates with must be linked to the specified YouTube content owner.
*/
public BatchGetStats setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}

/**
* Required. The `**part**` parameter specifies a comma-separated list of one or more
* `videoStat` resource properties that the API response will include. If the parameter
* identifies a property that contains child properties, the child properties will be included
* in the response. For example, in a `videoStat` resource, the `statistics` property contains
* `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response
* will contain all of those properties.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> part;

/** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat`
resource properties that the API response will include. If the parameter identifies a property that
contains child properties, the child properties will be included in the response. For example, in a
`videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if
you set `**part=snippet**`, the API response will contain all of those properties.
*/
public java.util.List<java.lang.String> getPart() {
return part;
}

/**
* Required. The `**part**` parameter specifies a comma-separated list of one or more
* `videoStat` resource properties that the API response will include. If the parameter
* identifies a property that contains child properties, the child properties will be included
* in the response. For example, in a `videoStat` resource, the `statistics` property contains
* `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response
* will contain all of those properties.
*/
public BatchGetStats setPart(java.util.List<java.lang.String> part) {
this.part = part;
return this;
}

@Override
public BatchGetStats set(String parameterName, Object value) {
return (BatchGetStats) super.set(parameterName, value);
}
}
/**
* Deletes a resource.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.youtube.model;

/**
* Response for the Videos.stats API. Returns VideoStat information about a batch of videos.
* VideoStat contains a subset of the information in Video that is relevant to statistics and
* content details. BatchGetStats is intentionally not atomic to provide a better user experience.
* BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BatchGetStatsResponse extends com.google.api.client.json.GenericJson {

/**
* Etag of this resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String etag;

/**
* The videos' stats information.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<VideoStat> items;

/**
* Identifies what kind of resource this is. Value: the fixed string
* "youtube#batchGetStatsResponse".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;

/**
* Etag of this resource.
* @return value or {@code null} for none
*/
public java.lang.String getEtag() {
return etag;
}

/**
* Etag of this resource.
* @param etag etag or {@code null} for none
*/
public BatchGetStatsResponse setEtag(java.lang.String etag) {
this.etag = etag;
return this;
}

/**
* The videos' stats information.
* @return value or {@code null} for none
*/
public java.util.List<VideoStat> getItems() {
return items;
}

/**
* The videos' stats information.
* @param items items or {@code null} for none
*/
public BatchGetStatsResponse setItems(java.util.List<VideoStat> items) {
this.items = items;
return this;
}

/**
* Identifies what kind of resource this is. Value: the fixed string
* "youtube#batchGetStatsResponse".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}

/**
* Identifies what kind of resource this is. Value: the fixed string
* "youtube#batchGetStatsResponse".
* @param kind kind or {@code null} for none
*/
public BatchGetStatsResponse setKind(java.lang.String kind) {
this.kind = kind;
return this;
}

@Override
public BatchGetStatsResponse set(String fieldName, Object value) {
return (BatchGetStatsResponse) super.set(fieldName, value);
}

@Override
public BatchGetStatsResponse clone() {
return (BatchGetStatsResponse) super.clone();
}

}
Loading