com.google.api.services.youtube.YouTube Maven / Gradle / Ivy
/*
* 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;
/**
* Service definition for YouTube (v3).
*
*
* The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.
*
*
*
* For more information about this service, see the
* API Documentation
*
*
*
* This service uses {@link YouTubeRequestInitializer} to initialize global parameters via its
* {@link Builder}.
*
*
* @since 1.3
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public class YouTube extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient {
// Note: Leave this static initializer at the top of the file.
static {
com.google.api.client.util.Preconditions.checkState(
(com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 &&
(com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 ||
(com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 &&
com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) ||
com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2,
"You are currently running with version %s of google-api-client. " +
"You need at least version 1.31.1 of google-api-client to run version " +
"2.0.0 of the YouTube Data API v3 library.", com.google.api.client.googleapis.GoogleUtils.VERSION);
}
/**
* The default encoded root URL of the service. This is determined when the library is generated
* and normally should not be changed.
*
* @since 1.7
*/
public static final String DEFAULT_ROOT_URL = "https://youtube.googleapis.com/";
/**
* The default encoded mTLS root URL of the service. This is determined when the library is generated
* and normally should not be changed.
*
* @since 1.31
*/
public static final String DEFAULT_MTLS_ROOT_URL = "https://youtube.mtls.googleapis.com/";
/**
* The default encoded service path of the service. This is determined when the library is
* generated and normally should not be changed.
*
* @since 1.7
*/
public static final String DEFAULT_SERVICE_PATH = "";
/**
* The default encoded batch path of the service. This is determined when the library is
* generated and normally should not be changed.
*
* @since 1.23
*/
public static final String DEFAULT_BATCH_PATH = "batch";
/**
* The default encoded base URL of the service. This is determined when the library is generated
* and normally should not be changed.
*/
public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH;
/**
* Constructor.
*
*
* Use {@link Builder} if you need to specify any of the optional parameters.
*
*
* @param transport HTTP transport, which should normally be:
*
* - Google App Engine:
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
* - Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}
* - Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
*
*
* @param jsonFactory JSON factory, which may be:
*
* - Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
* - Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
* - Android Honeycomb or higher:
* {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
*
* @param httpRequestInitializer HTTP request initializer or {@code null} for none
* @since 1.7
*/
public YouTube(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
this(new Builder(transport, jsonFactory, httpRequestInitializer));
}
/**
* @param builder builder
*/
YouTube(Builder builder) {
super(builder);
}
@Override
protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest> httpClientRequest) throws java.io.IOException {
super.initialize(httpClientRequest);
}
/**
* An accessor for creating requests from the AbuseReports collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.AbuseReports.List request = youtube.abuseReports().list(parameters ...)}
*
*
* @return the resource collection
*/
public AbuseReports abuseReports() {
return new AbuseReports();
}
/**
* The "abuseReports" collection of methods.
*/
public class AbuseReports {
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "abuseReports.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include.
* @param content the {@link com.google.api.services.youtube.model.AbuseReport}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.AbuseReport content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/abuseReports";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "abuseReports.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include.
* @param content the {@link com.google.api.services.youtube.model.AbuseReport}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.AbuseReport content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.AbuseReport.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Activities collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.Activities.List request = youtube.activities().list(parameters ...)}
*
*
* @return the resource collection
*/
public Activities activities() {
return new Activities();
}
/**
* The "activities" collection of methods.
*/
public class Activities {
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "activities.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more activity 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
* an activity resource, the snippet property contains other properties that identify the
* type of activity, a display title for the activity, and so forth. If you set
* *part=snippet*, the API response will also contain all of those nested properties.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/activities";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "activities.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more activity 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
* an activity resource, the snippet property contains other properties that identify the
* type of activity, a display title for the activity, and so forth. If you set
* *part=snippet*, the API response will also contain all of those nested properties.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.ActivityListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more activity 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 an activity resource, the snippet property contains other properties that
* identify the type of activity, a display title for the activity, and so forth. If you set
* *part=snippet*, the API response will also contain all of those nested properties.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more activity 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 an activity
resource, the snippet property contains other properties that identify the type of activity, a
display title for the activity, and so forth. If you set *part=snippet*, the API response will also
contain all of those nested properties.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more activity 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 an activity resource, the snippet property contains other properties that
* identify the type of activity, a display title for the activity, and so forth. If you set
* *part=snippet*, the API response will also contain all of those nested properties.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
@com.google.api.client.util.Key
private java.lang.String channelId;
/**
*/
public java.lang.String getChannelId() {
return channelId;
}
public List setChannelId(java.lang.String channelId) {
this.channelId = channelId;
return this;
}
@com.google.api.client.util.Key
private java.lang.Boolean home;
/**
*/
public java.lang.Boolean getHome() {
return home;
}
public List setHome(java.lang.Boolean home) {
this.home = home;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 50]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
@com.google.api.client.util.Key
private java.lang.Boolean mine;
/**
*/
public java.lang.Boolean getMine() {
return mine;
}
public List setMine(java.lang.Boolean mine) {
this.mine = mine;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@com.google.api.client.util.Key
private String publishedAfter;
/**
*/
public String getPublishedAfter() {
return publishedAfter;
}
public List setPublishedAfter(String publishedAfter) {
this.publishedAfter = publishedAfter;
return this;
}
@com.google.api.client.util.Key
private String publishedBefore;
/**
*/
public String getPublishedBefore() {
return publishedBefore;
}
public List setPublishedBefore(String publishedBefore) {
this.publishedBefore = publishedBefore;
return this;
}
@com.google.api.client.util.Key
private java.lang.String regionCode;
/**
*/
public java.lang.String getRegionCode() {
return regionCode;
}
public List setRegionCode(java.lang.String regionCode) {
this.regionCode = regionCode;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Captions collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.Captions.List request = youtube.captions().list(parameters ...)}
*
*
* @return the resource collection
*/
public Captions captions() {
return new Captions();
}
/**
* The "captions" collection of methods.
*/
public class Captions {
/**
* Deletes a resource.
*
* Create a request for the method "captions.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/captions";
/**
* Deletes a resource.
*
* Create a request for the method "captions.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
@com.google.api.client.util.Key
private java.lang.String onBehalfOf;
/** ID of the Google+ Page for the channel that the request is be on behalf of
*/
public java.lang.String getOnBehalfOf() {
return onBehalfOf;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
public Delete setOnBehalfOf(java.lang.String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public Delete setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Downloads a caption track.
*
* Create a request for the method "captions.download".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Download#execute()} method to invoke the remote operation.
*
* @param id The ID of the caption track to download, required for One Platform.
* @return the request
*/
public Download download(java.lang.String id) throws java.io.IOException {
Download result = new Download(id);
initialize(result);
return result;
}
public class Download extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/captions/{id}";
/**
* Downloads a caption track.
*
* Create a request for the method "captions.download".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Download#execute()} method to invoke the remote operation.
* {@link
* Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param id The ID of the caption track to download, required for One Platform.
* @since 1.13
*/
protected Download(java.lang.String id) {
super(YouTube.this, "GET", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
initializeMediaDownload();
}
@Override
public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException {
super.executeMediaAndDownloadTo(outputStream);
}
@Override
public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException {
return super.executeMediaAsInputStream();
}
@Override
public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException {
return super.executeMedia();
}
@Override
public com.google.api.client.http.GenericUrl buildHttpRequestUrl() {
java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null)
? getRootUrl() + "download/" + getServicePath() : getBaseUrl();
return new com.google.api.client.http.GenericUrl(
com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true));
}
@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 Download set$Xgafv(java.lang.String $Xgafv) {
return (Download) super.set$Xgafv($Xgafv);
}
@Override
public Download setAccessToken(java.lang.String accessToken) {
return (Download) super.setAccessToken(accessToken);
}
@Override
public Download setAlt(java.lang.String alt) {
return (Download) super.setAlt(alt);
}
@Override
public Download setCallback(java.lang.String callback) {
return (Download) super.setCallback(callback);
}
@Override
public Download setFields(java.lang.String fields) {
return (Download) super.setFields(fields);
}
@Override
public Download setKey(java.lang.String key) {
return (Download) super.setKey(key);
}
@Override
public Download setOauthToken(java.lang.String oauthToken) {
return (Download) super.setOauthToken(oauthToken);
}
@Override
public Download setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Download) super.setPrettyPrint(prettyPrint);
}
@Override
public Download setQuotaUser(java.lang.String quotaUser) {
return (Download) super.setQuotaUser(quotaUser);
}
@Override
public Download setUploadType(java.lang.String uploadType) {
return (Download) super.setUploadType(uploadType);
}
@Override
public Download setUploadProtocol(java.lang.String uploadProtocol) {
return (Download) super.setUploadProtocol(uploadProtocol);
}
/** The ID of the caption track to download, required for One Platform. */
@com.google.api.client.util.Key
private java.lang.String id;
/** The ID of the caption track to download, required for One Platform.
*/
public java.lang.String getId() {
return id;
}
/** The ID of the caption track to download, required for One Platform. */
public Download setId(java.lang.String id) {
this.id = id;
return this;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
@com.google.api.client.util.Key
private java.lang.String onBehalfOf;
/** ID of the Google+ Page for the channel that the request is be on behalf of
*/
public java.lang.String getOnBehalfOf() {
return onBehalfOf;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
public Download setOnBehalfOf(java.lang.String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public Download setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/** Convert the captions into this format. Supported options are sbv, srt, and vtt. */
@com.google.api.client.util.Key
private java.lang.String tfmt;
/** Convert the captions into this format. Supported options are sbv, srt, and vtt.
*/
public java.lang.String getTfmt() {
return tfmt;
}
/** Convert the captions into this format. Supported options are sbv, srt, and vtt. */
public Download setTfmt(java.lang.String tfmt) {
this.tfmt = tfmt;
return this;
}
/** tlang is the language code; machine translate the captions into this language. */
@com.google.api.client.util.Key
private java.lang.String tlang;
/** tlang is the language code; machine translate the captions into this language.
*/
public java.lang.String getTlang() {
return tlang;
}
/** tlang is the language code; machine translate the captions into this language. */
public Download setTlang(java.lang.String tlang) {
this.tlang = tlang;
return this;
}
@Override
public Download set(String parameterName, Object value) {
return (Download) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "captions.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies the caption resource parts that the API response will include. Set
* the parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.Caption content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "captions.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
*
* This method should be used for uploading media content.
*
*
* @param part The *part* parameter specifies the caption resource parts that the API response will include. Set
* the parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @return the request
* @throws java.io.IOException if the initialization of the request fails
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException {
Insert result = new Insert(part, content, mediaContent);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/captions";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "captions.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies the caption resource parts that the API response will include. Set
* the parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.Caption content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.Caption.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "captions.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
*
* This constructor should be used for uploading media content.
*
*
* @param part The *part* parameter specifies the caption resource parts that the API response will include. Set
* the parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) {
super(YouTube.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.youtube.model.Caption.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified.");
initializeMediaUpload(mediaContent);
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies the caption resource parts that the API response will
* include. Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the caption resource parts that the API response will include. Set
the parameter value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the caption resource parts that the API response will
* include. Set the parameter value to snippet.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
@com.google.api.client.util.Key
private java.lang.String onBehalfOf;
/** ID of the Google+ Page for the channel that the request is be on behalf of
*/
public java.lang.String getOnBehalfOf() {
return onBehalfOf;
}
/** ID of the Google+ Page for the channel that the request is be on behalf of */
public Insert setOnBehalfOf(java.lang.String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* Extra parameter to allow automatically syncing the uploaded caption/transcript with the
* audio.
*/
@com.google.api.client.util.Key
private java.lang.Boolean sync;
/** Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
*/
public java.lang.Boolean getSync() {
return sync;
}
/**
* Extra parameter to allow automatically syncing the uploaded caption/transcript with the
* audio.
*/
public Insert setSync(java.lang.Boolean sync) {
this.sync = sync;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "captions.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param videoId Returns the captions for the specified video.
* @return the request
*/
public List list(java.util.List part, java.lang.String videoId) throws java.io.IOException {
List result = new List(part, videoId);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/captions";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "captions.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param videoId Returns the captions for the specified video.
* @since 1.13
*/
protected List(java.util.List part, java.lang.String videoId) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.CaptionListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
this.videoId = com.google.api.client.util.Preconditions.checkNotNull(videoId, "Required parameter videoId must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more caption resource parts
* that the API response will include. The part names that you can include in the parameter
* value are id and snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more caption resource parts that
the API response will include. The part names that you can include in the parameter value are id
and snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more caption resource parts
* that the API response will include. The part names that you can include in the parameter
* value are id and snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Returns the captions for the specified video. */
@com.google.api.client.util.Key
private java.lang.String videoId;
/** Returns the captions for the specified video.
*/
public java.lang.String getVideoId() {
return videoId;
}
/** Returns the captions for the specified video. */
public List setVideoId(java.lang.String videoId) {
this.videoId = videoId;
return this;
}
/** Returns the captions with the given IDs for Stubby or Apiary. */
@com.google.api.client.util.Key
private java.util.List id;
/** Returns the captions with the given IDs for Stubby or Apiary.
*/
public java.util.List getId() {
return id;
}
/** Returns the captions with the given IDs for Stubby or Apiary. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/** ID of the Google+ Page for the channel that the request is on behalf of. */
@com.google.api.client.util.Key
private java.lang.String onBehalfOf;
/** ID of the Google+ Page for the channel that the request is on behalf of.
*/
public java.lang.String getOnBehalfOf() {
return onBehalfOf;
}
/** ID of the Google+ Page for the channel that the request is on behalf of. */
public List setOnBehalfOf(java.lang.String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates an existing resource.
*
* Create a request for the method "captions.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.Caption content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
/**
* Updates an existing resource.
*
* Create a request for the method "captions.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
*
* This method should be used for uploading media content.
*
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @return the request
* @throws java.io.IOException if the initialization of the request fails
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException {
Update result = new Update(part, content, mediaContent);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/captions";
/**
* Updates an existing resource.
*
* Create a request for the method "captions.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.Caption content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.Caption.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
checkRequiredParameter(content, "content");
checkRequiredParameter(content.getId(), "Caption.getId()");
}
/**
* Updates an existing resource.
*
* Create a request for the method "captions.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
*
* This constructor should be used for uploading media content.
*
*
* @param part The *part* parameter specifies a comma-separated list of one or more caption resource parts that the
* API response will include. The part names that you can include in the parameter value are
* id and snippet.
* @param content the {@link com.google.api.services.youtube.model.Caption} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) {
super(YouTube.this, "PUT", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.youtube.model.Caption.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified.");
initializeMediaUpload(mediaContent);
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more caption resource parts
* that the API response will include. The part names that you can include in the parameter
* value are id and snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more caption resource parts that
the API response will include. The part names that you can include in the parameter value are id
and snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more caption resource parts
* that the API response will include. The part names that you can include in the parameter
* value are id and snippet.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
/** ID of the Google+ Page for the channel that the request is on behalf of. */
@com.google.api.client.util.Key
private java.lang.String onBehalfOf;
/** ID of the Google+ Page for the channel that the request is on behalf of.
*/
public java.lang.String getOnBehalfOf() {
return onBehalfOf;
}
/** ID of the Google+ Page for the channel that the request is on behalf of. */
public Update setOnBehalfOf(java.lang.String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* Extra parameter to allow automatically syncing the uploaded caption/transcript with the
* audio.
*/
@com.google.api.client.util.Key
private java.lang.Boolean sync;
/** Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
*/
public java.lang.Boolean getSync() {
return sync;
}
/**
* Extra parameter to allow automatically syncing the uploaded caption/transcript with the
* audio.
*/
public Update setSync(java.lang.Boolean sync) {
this.sync = sync;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the ChannelBanners collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.ChannelBanners.List request = youtube.channelBanners().list(parameters ...)}
*
*
* @return the resource collection
*/
public ChannelBanners channelBanners() {
return new ChannelBanners();
}
/**
* The "channelBanners" collection of methods.
*/
public class ChannelBanners {
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelBanners.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param content the {@link com.google.api.services.youtube.model.ChannelBannerResource}
* @return the request
*/
public Insert insert(com.google.api.services.youtube.model.ChannelBannerResource content) throws java.io.IOException {
Insert result = new Insert(content);
initialize(result);
return result;
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelBanners.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
*
* This method should be used for uploading media content.
*
*
*
* @param content the {@link com.google.api.services.youtube.model.ChannelBannerResource} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @return the request
* @throws java.io.IOException if the initialization of the request fails
*/
public Insert insert(com.google.api.services.youtube.model.ChannelBannerResource content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException {
Insert result = new Insert(content, mediaContent);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channelBanners/insert";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelBanners.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param content the {@link com.google.api.services.youtube.model.ChannelBannerResource}
* @since 1.13
*/
protected Insert(com.google.api.services.youtube.model.ChannelBannerResource content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.ChannelBannerResource.class);
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelBanners.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
*
* This constructor should be used for uploading media content.
*
*
*
* @param content the {@link com.google.api.services.youtube.model.ChannelBannerResource} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @since 1.13
*/
protected Insert(com.google.api.services.youtube.model.ChannelBannerResource content, com.google.api.client.http.AbstractInputStreamContent mediaContent) {
super(YouTube.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.youtube.model.ChannelBannerResource.class);
com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified.");
initializeMediaUpload(mediaContent);
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/** Unused, channel_id is currently derived from the security context of the requestor. */
@com.google.api.client.util.Key
private java.lang.String channelId;
/** Unused, channel_id is currently derived from the security context of the requestor.
*/
public java.lang.String getChannelId() {
return channelId;
}
/** Unused, channel_id is currently derived from the security context of the requestor. */
public Insert setChannelId(java.lang.String channelId) {
this.channelId = channelId;
return this;
}
/**
* *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 actual 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;
/*** 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 actual CMS account that the user authenticates with must be linked to the specified YouTube
* content owner.
*
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* *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 actual CMS account that the user authenticates
* with must be linked to the specified YouTube content owner.
*/
public Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Insert setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the ChannelSections collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.ChannelSections.List request = youtube.channelSections().list(parameters ...)}
*
*
* @return the resource collection
*/
public ChannelSections channelSections() {
return new ChannelSections();
}
/**
* The "channelSections" collection of methods.
*/
public class ChannelSections {
/**
* Deletes a resource.
*
* Create a request for the method "channelSections.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channelSections";
/**
* Deletes a resource.
*
* Create a request for the method "channelSections.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Delete setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelSections.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part names that you can include in the parameter value are snippet and contentDetails.
* @param content the {@link com.google.api.services.youtube.model.ChannelSection}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.ChannelSection content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channelSections";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "channelSections.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part names that you can include in the parameter value are snippet and contentDetails.
* @param content the {@link com.google.api.services.youtube.model.ChannelSection}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.ChannelSection content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.ChannelSection.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part names that you can include in the parameter value are snippet and
* contentDetails.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
names that you can include in the parameter value are snippet and contentDetails.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part names that you can include in the parameter value are snippet and
* contentDetails.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Insert setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "channelSections.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more channelSection resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, and contentDetails. If the parameter identifies a
* property that contains child properties, the child properties will be included in the
* response. For example, in a channelSection resource, the snippet property contains other
* properties, such as a display title for the channelSection. If you set *part=snippet*, the
* API response will also contain all of those nested properties.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channelSections";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "channelSections.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more channelSection resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, and contentDetails. If the parameter identifies a
* property that contains child properties, the child properties will be included in the
* response. For example, in a channelSection resource, the snippet property contains other
* properties, such as a display title for the channelSection. If you set *part=snippet*, the
* API response will also contain all of those nested properties.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.ChannelSectionListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more channelSection
* resource properties that the API response will include. The part names that you can include
* in the parameter value are id, snippet, and contentDetails. If the parameter identifies a
* property that contains child properties, the child properties will be included in the
* response. For example, in a channelSection resource, the snippet property contains other
* properties, such as a display title for the channelSection. If you set *part=snippet*, the
* API response will also contain all of those nested properties.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more channelSection resource
properties that the API response will include. The part names that you can include in the parameter
value are id, snippet, and contentDetails. If the parameter identifies a property that contains
child properties, the child properties will be included in the response. For example, in a
channelSection resource, the snippet property contains other properties, such as a display title
for the channelSection. If you set *part=snippet*, the API response will also contain all of those
nested properties.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more channelSection
* resource properties that the API response will include. The part names that you can include
* in the parameter value are id, snippet, and contentDetails. If the parameter identifies a
* property that contains child properties, the child properties will be included in the
* response. For example, in a channelSection resource, the snippet property contains other
* properties, such as a display title for the channelSection. If you set *part=snippet*, the
* API response will also contain all of those nested properties.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Return the ChannelSections owned by the specified channel ID. */
@com.google.api.client.util.Key
private java.lang.String channelId;
/** Return the ChannelSections owned by the specified channel ID.
*/
public java.lang.String getChannelId() {
return channelId;
}
/** Return the ChannelSections owned by the specified channel ID. */
public List setChannelId(java.lang.String channelId) {
this.channelId = channelId;
return this;
}
/** Return content in specified language */
@com.google.api.client.util.Key
private java.lang.String hl;
/** Return content in specified language
*/
public java.lang.String getHl() {
return hl;
}
/** Return content in specified language */
public List setHl(java.lang.String hl) {
this.hl = hl;
return this;
}
/** Return the ChannelSections with the given IDs for Stubby or Apiary. */
@com.google.api.client.util.Key
private java.util.List id;
/** Return the ChannelSections with the given IDs for Stubby or Apiary.
*/
public java.util.List getId() {
return id;
}
/** Return the ChannelSections with the given IDs for Stubby or Apiary. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/** Return the ChannelSections owned by the authenticated user. */
@com.google.api.client.util.Key
private java.lang.Boolean mine;
/** Return the ChannelSections owned by the authenticated user.
*/
public java.lang.Boolean getMine() {
return mine;
}
/** Return the ChannelSections owned by the authenticated user. */
public List setMine(java.lang.Boolean mine) {
this.mine = mine;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates an existing resource.
*
* Create a request for the method "channelSections.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part names that you can include in the parameter value are snippet and contentDetails.
* @param content the {@link com.google.api.services.youtube.model.ChannelSection}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.ChannelSection content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channelSections";
/**
* Updates an existing resource.
*
* Create a request for the method "channelSections.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part names that you can include in the parameter value are snippet and contentDetails.
* @param content the {@link com.google.api.services.youtube.model.ChannelSection}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.ChannelSection content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.ChannelSection.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part names that you can include in the parameter value are snippet and
* contentDetails.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
names that you can include in the parameter value are snippet and contentDetails.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part names that you can include in the parameter value are snippet and
* contentDetails.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Channels collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.Channels.List request = youtube.channels().list(parameters ...)}
*
*
* @return the resource collection
*/
public Channels channels() {
return new Channels();
}
/**
* The "channels" collection of methods.
*/
public class Channels {
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "channels.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more channel 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
* channel resource, the contentDetails property contains other properties, such as the
* uploads properties. As such, if you set *part=contentDetails*, the API response will also
* contain all of those nested properties.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channels";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "channels.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more channel 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
* channel resource, the contentDetails property contains other properties, such as the
* uploads properties. As such, if you set *part=contentDetails*, the API response will also
* contain all of those nested properties.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.ChannelListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more channel 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 channel resource, the contentDetails property contains other properties, such
* as the uploads properties. As such, if you set *part=contentDetails*, the API response will
* also contain all of those nested properties.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more channel 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 channel
resource, the contentDetails property contains other properties, such as the uploads properties. As
such, if you set *part=contentDetails*, the API response will also contain all of those nested
properties.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more channel 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 channel resource, the contentDetails property contains other properties, such
* as the uploads properties. As such, if you set *part=contentDetails*, the API response will
* also contain all of those nested properties.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Return the channels within the specified guide category ID. */
@com.google.api.client.util.Key
private java.lang.String categoryId;
/** Return the channels within the specified guide category ID.
*/
public java.lang.String getCategoryId() {
return categoryId;
}
/** Return the channels within the specified guide category ID. */
public List setCategoryId(java.lang.String categoryId) {
this.categoryId = categoryId;
return this;
}
/** Return the channel associated with a YouTube handle. */
@com.google.api.client.util.Key
private java.lang.String forHandle;
/** Return the channel associated with a YouTube handle.
*/
public java.lang.String getForHandle() {
return forHandle;
}
/** Return the channel associated with a YouTube handle. */
public List setForHandle(java.lang.String forHandle) {
this.forHandle = forHandle;
return this;
}
/** Return the channel associated with a YouTube username. */
@com.google.api.client.util.Key
private java.lang.String forUsername;
/** Return the channel associated with a YouTube username.
*/
public java.lang.String getForUsername() {
return forUsername;
}
/** Return the channel associated with a YouTube username. */
public List setForUsername(java.lang.String forUsername) {
this.forUsername = forUsername;
return this;
}
/**
* Stands for "host language". Specifies the localization language of the metadata to be
* filled into snippet.localized. The field is filled with the default metadata if there is no
* localization in the specified language. The parameter value must be a language code
* included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
*/
@com.google.api.client.util.Key
private java.lang.String hl;
/** Stands for "host language". Specifies the localization language of the metadata to be filled into
snippet.localized. The field is filled with the default metadata if there is no localization in the
specified language. The parameter value must be a language code included in the list returned by
the i18nLanguages.list method (e.g. en_US, es_MX).
*/
public java.lang.String getHl() {
return hl;
}
/**
* Stands for "host language". Specifies the localization language of the metadata to be
* filled into snippet.localized. The field is filled with the default metadata if there is no
* localization in the specified language. The parameter value must be a language code
* included in the list returned by the i18nLanguages.list method (e.g. en_US, es_MX).
*/
public List setHl(java.lang.String hl) {
this.hl = hl;
return this;
}
/** Return the channels with the specified IDs. */
@com.google.api.client.util.Key
private java.util.List id;
/** Return the channels with the specified IDs.
*/
public java.util.List getId() {
return id;
}
/** Return the channels with the specified IDs. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/** Return the channels managed by the authenticated user. */
@com.google.api.client.util.Key
private java.lang.Boolean managedByMe;
/** Return the channels managed by the authenticated user.
*/
public java.lang.Boolean getManagedByMe() {
return managedByMe;
}
/** Return the channels managed by the authenticated user. */
public List setManagedByMe(java.lang.Boolean managedByMe) {
this.managedByMe = managedByMe;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 50]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/** Return the ids of channels owned by the authenticated user. */
@com.google.api.client.util.Key
private java.lang.Boolean mine;
/** Return the ids of channels owned by the authenticated user.
*/
public java.lang.Boolean getMine() {
return mine;
}
/** Return the ids of channels owned by the authenticated user. */
public List setMine(java.lang.Boolean mine) {
this.mine = mine;
return this;
}
/** Return the channels subscribed to the authenticated user */
@com.google.api.client.util.Key
private java.lang.Boolean mySubscribers;
/** Return the channels subscribed to the authenticated user
*/
public java.lang.Boolean getMySubscribers() {
return mySubscribers;
}
/** Return the channels subscribed to the authenticated user */
public List setMySubscribers(java.lang.Boolean mySubscribers) {
this.mySubscribers = mySubscribers;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates an existing resource.
*
* Create a request for the method "channels.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* API currently only allows the parameter value to be set to either brandingSettings or
* invideoPromotion. (You cannot update both of those parts with a single request.) Note that
* this method overrides the existing values for all of the mutable properties that are
* contained in any parts that the parameter value specifies.
* @param content the {@link com.google.api.services.youtube.model.Channel}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.Channel content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/channels";
/**
* Updates an existing resource.
*
* Create a request for the method "channels.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* API currently only allows the parameter value to be set to either brandingSettings or
* invideoPromotion. (You cannot update both of those parts with a single request.) Note that
* this method overrides the existing values for all of the mutable properties that are
* contained in any parts that the parameter value specifies.
* @param content the {@link com.google.api.services.youtube.model.Channel}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.Channel content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.Channel.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The API currently only allows the parameter value to be set to either
* brandingSettings or invideoPromotion. (You cannot update both of those parts with a single
* request.) Note that this method overrides the existing values for all of the mutable
* properties that are contained in any parts that the parameter value specifies.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The API
currently only allows the parameter value to be set to either brandingSettings or invideoPromotion.
(You cannot update both of those parts with a single request.) Note that this method overrides the
existing values for all of the mutable properties that are contained in any parts that the
parameter value specifies.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The API currently only allows the parameter value to be set to either
* brandingSettings or invideoPromotion. (You cannot update both of those parts with a single
* request.) Note that this method overrides the existing values for all of the mutable
* properties that are contained in any parts that the parameter value specifies.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* The *onBehalfOfContentOwner* parameter indicates that the authenticated user 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
* actual CMS account that the user authenticates with needs to be linked to the specified
* YouTube content owner.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwner;
/** The *onBehalfOfContentOwner* parameter indicates that the authenticated user 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 actual CMS account that the user
authenticates with needs to be linked to the specified YouTube content owner.
*/
public java.lang.String getOnBehalfOfContentOwner() {
return onBehalfOfContentOwner;
}
/**
* The *onBehalfOfContentOwner* parameter indicates that the authenticated user 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
* actual CMS account that the user authenticates with needs to be linked to the specified
* YouTube content owner.
*/
public Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the CommentThreads collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.CommentThreads.List request = youtube.commentThreads().list(parameters ...)}
*
*
* @return the resource collection
*/
public CommentThreads commentThreads() {
return new CommentThreads();
}
/**
* The "commentThreads" collection of methods.
*/
public class CommentThreads {
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "commentThreads.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter identifies the properties that the API response will include. Set the parameter
* value to snippet. The snippet part has a quota cost of 2 units.
* @param content the {@link com.google.api.services.youtube.model.CommentThread}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.CommentThread content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/commentThreads";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "commentThreads.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter identifies the properties that the API response will include. Set the parameter
* value to snippet. The snippet part has a quota cost of 2 units.
* @param content the {@link com.google.api.services.youtube.model.CommentThread}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.CommentThread content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.CommentThread.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter identifies the properties that the API response will include. Set the
* parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter identifies the properties that the API response will include. Set the
parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter identifies the properties that the API response will include. Set the
* parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "commentThreads.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more commentThread resource
* properties that the API response will include.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/commentThreads";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "commentThreads.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more commentThread resource
* properties that the API response will include.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.CommentThreadListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more commentThread resource
* properties that the API response will include.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more commentThread resource
properties that the API response will include.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more commentThread resource
* properties that the API response will include.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* Returns the comment threads of all videos of the channel and the channel comments as well.
*/
@com.google.api.client.util.Key
private java.lang.String allThreadsRelatedToChannelId;
/** Returns the comment threads of all videos of the channel and the channel comments as well.
*/
public java.lang.String getAllThreadsRelatedToChannelId() {
return allThreadsRelatedToChannelId;
}
/**
* Returns the comment threads of all videos of the channel and the channel comments as well.
*/
public List setAllThreadsRelatedToChannelId(java.lang.String allThreadsRelatedToChannelId) {
this.allThreadsRelatedToChannelId = allThreadsRelatedToChannelId;
return this;
}
/**
* Returns the comment threads for all the channel comments (ie does not include comments left
* on videos).
*/
@com.google.api.client.util.Key
private java.lang.String channelId;
/** Returns the comment threads for all the channel comments (ie does not include comments left on
videos).
*/
public java.lang.String getChannelId() {
return channelId;
}
/**
* Returns the comment threads for all the channel comments (ie does not include comments left
* on videos).
*/
public List setChannelId(java.lang.String channelId) {
this.channelId = channelId;
return this;
}
/** Returns the comment threads with the given IDs for Stubby or Apiary. */
@com.google.api.client.util.Key
private java.util.List id;
/** Returns the comment threads with the given IDs for Stubby or Apiary.
*/
public java.util.List getId() {
return id;
}
/** Returns the comment threads with the given IDs for Stubby or Apiary. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 20] [minimum: 1] [maximum: 100]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* Limits the returned comment threads to those with the specified moderation status. Not
* compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
*/
@com.google.api.client.util.Key
private java.lang.String moderationStatus;
/** Limits the returned comment threads to those with the specified moderation status. Not compatible
with the 'id' filter. Valid values: published, heldForReview, likelySpam. [default: published]
*/
public java.lang.String getModerationStatus() {
return moderationStatus;
}
/**
* Limits the returned comment threads to those with the specified moderation status. Not
* compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam.
*/
public List setModerationStatus(java.lang.String moderationStatus) {
this.moderationStatus = moderationStatus;
return this;
}
@com.google.api.client.util.Key
private java.lang.String order;
/**
[ default: time]
[
*/
public java.lang.String getOrder() {
return order;
}
public List setOrder(java.lang.String order) {
this.order = order;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/**
* Limits the returned comment threads to those matching the specified key words. Not
* compatible with the 'id' filter.
*/
@com.google.api.client.util.Key
private java.lang.String searchTerms;
/** Limits the returned comment threads to those matching the specified key words. Not compatible with
the 'id' filter.
*/
public java.lang.String getSearchTerms() {
return searchTerms;
}
/**
* Limits the returned comment threads to those matching the specified key words. Not
* compatible with the 'id' filter.
*/
public List setSearchTerms(java.lang.String searchTerms) {
this.searchTerms = searchTerms;
return this;
}
/** The requested text format for the returned comments. */
@com.google.api.client.util.Key
private java.lang.String textFormat;
/** The requested text format for the returned comments. [default: html]
*/
public java.lang.String getTextFormat() {
return textFormat;
}
/** The requested text format for the returned comments. */
public List setTextFormat(java.lang.String textFormat) {
this.textFormat = textFormat;
return this;
}
/** Returns the comment threads of the specified video. */
@com.google.api.client.util.Key
private java.lang.String videoId;
/** Returns the comment threads of the specified video.
*/
public java.lang.String getVideoId() {
return videoId;
}
/** Returns the comment threads of the specified video. */
public List setVideoId(java.lang.String videoId) {
this.videoId = videoId;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Comments collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.Comments.List request = youtube.comments().list(parameters ...)}
*
*
* @return the resource collection
*/
public Comments comments() {
return new Comments();
}
/**
* The "comments" collection of methods.
*/
public class Comments {
/**
* Deletes a resource.
*
* Create a request for the method "comments.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments";
/**
* Deletes a resource.
*
* Create a request for the method "comments.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "comments.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter identifies the properties that the API response will include. Set the parameter
* value to snippet. The snippet part has a quota cost of 2 units.
* @param content the {@link com.google.api.services.youtube.model.Comment}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.Comment content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "comments.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter identifies the properties that the API response will include. Set the parameter
* value to snippet. The snippet part has a quota cost of 2 units.
* @param content the {@link com.google.api.services.youtube.model.Comment}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.Comment content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.Comment.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter identifies the properties that the API response will include. Set the
* parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter identifies the properties that the API response will include. Set the
parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter identifies the properties that the API response will include. Set the
* parameter value to snippet. The snippet part has a quota cost of 2 units.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "comments.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more comment resource properties
* that the API response will include.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "comments.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more comment resource properties
* that the API response will include.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.CommentListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more comment resource
* properties that the API response will include.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more comment resource properties
that the API response will include.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more comment resource
* properties that the API response will include.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Returns the comments with the given IDs for One Platform. */
@com.google.api.client.util.Key
private java.util.List id;
/** Returns the comments with the given IDs for One Platform.
*/
public java.util.List getId() {
return id;
}
/** Returns the comments with the given IDs for One Platform. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 20] [minimum: 1] [maximum: 100]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/**
* Returns replies to the specified comment. Note, currently YouTube features only one level
* of replies (ie replies to top level comments). However replies to replies may be supported
* in the future.
*/
@com.google.api.client.util.Key
private java.lang.String parentId;
/** Returns replies to the specified comment. Note, currently YouTube features only one level of
replies (ie replies to top level comments). However replies to replies may be supported in the
future.
*/
public java.lang.String getParentId() {
return parentId;
}
/**
* Returns replies to the specified comment. Note, currently YouTube features only one level
* of replies (ie replies to top level comments). However replies to replies may be supported
* in the future.
*/
public List setParentId(java.lang.String parentId) {
this.parentId = parentId;
return this;
}
/** The requested text format for the returned comments. */
@com.google.api.client.util.Key
private java.lang.String textFormat;
/** The requested text format for the returned comments. [default: html]
*/
public java.lang.String getTextFormat() {
return textFormat;
}
/** The requested text format for the returned comments. */
public List setTextFormat(java.lang.String textFormat) {
this.textFormat = textFormat;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Expresses the caller's opinion that one or more comments should be flagged as spam.
*
* Create a request for the method "comments.markAsSpam".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link MarkAsSpam#execute()} method to invoke the remote operation.
*
* @param id Flags the comments with the given IDs as spam in the caller's opinion.
* @return the request
*/
public MarkAsSpam markAsSpam(java.util.List id) throws java.io.IOException {
MarkAsSpam result = new MarkAsSpam(id);
initialize(result);
return result;
}
public class MarkAsSpam extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments/markAsSpam";
/**
* Expresses the caller's opinion that one or more comments should be flagged as spam.
*
* Create a request for the method "comments.markAsSpam".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link MarkAsSpam#execute()} method to invoke the remote operation.
* {@link
* MarkAsSpam#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param id Flags the comments with the given IDs as spam in the caller's opinion.
* @since 1.13
*/
protected MarkAsSpam(java.util.List id) {
super(YouTube.this, "POST", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public MarkAsSpam set$Xgafv(java.lang.String $Xgafv) {
return (MarkAsSpam) super.set$Xgafv($Xgafv);
}
@Override
public MarkAsSpam setAccessToken(java.lang.String accessToken) {
return (MarkAsSpam) super.setAccessToken(accessToken);
}
@Override
public MarkAsSpam setAlt(java.lang.String alt) {
return (MarkAsSpam) super.setAlt(alt);
}
@Override
public MarkAsSpam setCallback(java.lang.String callback) {
return (MarkAsSpam) super.setCallback(callback);
}
@Override
public MarkAsSpam setFields(java.lang.String fields) {
return (MarkAsSpam) super.setFields(fields);
}
@Override
public MarkAsSpam setKey(java.lang.String key) {
return (MarkAsSpam) super.setKey(key);
}
@Override
public MarkAsSpam setOauthToken(java.lang.String oauthToken) {
return (MarkAsSpam) super.setOauthToken(oauthToken);
}
@Override
public MarkAsSpam setPrettyPrint(java.lang.Boolean prettyPrint) {
return (MarkAsSpam) super.setPrettyPrint(prettyPrint);
}
@Override
public MarkAsSpam setQuotaUser(java.lang.String quotaUser) {
return (MarkAsSpam) super.setQuotaUser(quotaUser);
}
@Override
public MarkAsSpam setUploadType(java.lang.String uploadType) {
return (MarkAsSpam) super.setUploadType(uploadType);
}
@Override
public MarkAsSpam setUploadProtocol(java.lang.String uploadProtocol) {
return (MarkAsSpam) super.setUploadProtocol(uploadProtocol);
}
/** Flags the comments with the given IDs as spam in the caller's opinion. */
@com.google.api.client.util.Key
private java.util.List id;
/** Flags the comments with the given IDs as spam in the caller's opinion.
*/
public java.util.List getId() {
return id;
}
/** Flags the comments with the given IDs as spam in the caller's opinion. */
public MarkAsSpam setId(java.util.List id) {
this.id = id;
return this;
}
@Override
public MarkAsSpam set(String parameterName, Object value) {
return (MarkAsSpam) super.set(parameterName, value);
}
}
/**
* Sets the moderation status of one or more comments.
*
* Create a request for the method "comments.setModerationStatus".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link SetModerationStatus#execute()} method to invoke the remote operation.
*
* @param id Modifies the moderation status of the comments with the given IDs
* @param moderationStatus Specifies the requested moderation status. Note, comments can be in statuses, which are not
* available through this call. For example, this call does not allow to mark a comment as
* 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
* @return the request
*/
public SetModerationStatus setModerationStatus(java.util.List id, java.lang.String moderationStatus) throws java.io.IOException {
SetModerationStatus result = new SetModerationStatus(id, moderationStatus);
initialize(result);
return result;
}
public class SetModerationStatus extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments/setModerationStatus";
/**
* Sets the moderation status of one or more comments.
*
* Create a request for the method "comments.setModerationStatus".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link SetModerationStatus#execute()} method to invoke the remote
* operation. {@link SetModerationStatus#initialize(com.google.api.client.googleapis.services.
* AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor.
*
* @param id Modifies the moderation status of the comments with the given IDs
* @param moderationStatus Specifies the requested moderation status. Note, comments can be in statuses, which are not
* available through this call. For example, this call does not allow to mark a comment as
* 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
* @since 1.13
*/
protected SetModerationStatus(java.util.List id, java.lang.String moderationStatus) {
super(YouTube.this, "POST", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
this.moderationStatus = com.google.api.client.util.Preconditions.checkNotNull(moderationStatus, "Required parameter moderationStatus must be specified.");
}
@Override
public SetModerationStatus set$Xgafv(java.lang.String $Xgafv) {
return (SetModerationStatus) super.set$Xgafv($Xgafv);
}
@Override
public SetModerationStatus setAccessToken(java.lang.String accessToken) {
return (SetModerationStatus) super.setAccessToken(accessToken);
}
@Override
public SetModerationStatus setAlt(java.lang.String alt) {
return (SetModerationStatus) super.setAlt(alt);
}
@Override
public SetModerationStatus setCallback(java.lang.String callback) {
return (SetModerationStatus) super.setCallback(callback);
}
@Override
public SetModerationStatus setFields(java.lang.String fields) {
return (SetModerationStatus) super.setFields(fields);
}
@Override
public SetModerationStatus setKey(java.lang.String key) {
return (SetModerationStatus) super.setKey(key);
}
@Override
public SetModerationStatus setOauthToken(java.lang.String oauthToken) {
return (SetModerationStatus) super.setOauthToken(oauthToken);
}
@Override
public SetModerationStatus setPrettyPrint(java.lang.Boolean prettyPrint) {
return (SetModerationStatus) super.setPrettyPrint(prettyPrint);
}
@Override
public SetModerationStatus setQuotaUser(java.lang.String quotaUser) {
return (SetModerationStatus) super.setQuotaUser(quotaUser);
}
@Override
public SetModerationStatus setUploadType(java.lang.String uploadType) {
return (SetModerationStatus) super.setUploadType(uploadType);
}
@Override
public SetModerationStatus setUploadProtocol(java.lang.String uploadProtocol) {
return (SetModerationStatus) super.setUploadProtocol(uploadProtocol);
}
/** Modifies the moderation status of the comments with the given IDs */
@com.google.api.client.util.Key
private java.util.List id;
/** Modifies the moderation status of the comments with the given IDs
*/
public java.util.List getId() {
return id;
}
/** Modifies the moderation status of the comments with the given IDs */
public SetModerationStatus setId(java.util.List id) {
this.id = id;
return this;
}
/**
* Specifies the requested moderation status. Note, comments can be in statuses, which are not
* available through this call. For example, this call does not allow to mark a comment as
* 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
*/
@com.google.api.client.util.Key
private java.lang.String moderationStatus;
/** Specifies the requested moderation status. Note, comments can be in statuses, which are not
available through this call. For example, this call does not allow to mark a comment as 'likely
spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
*/
public java.lang.String getModerationStatus() {
return moderationStatus;
}
/**
* Specifies the requested moderation status. Note, comments can be in statuses, which are not
* available through this call. For example, this call does not allow to mark a comment as
* 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
*/
public SetModerationStatus setModerationStatus(java.lang.String moderationStatus) {
this.moderationStatus = moderationStatus;
return this;
}
/**
* If set to true the author of the comment gets added to the ban list. This means all future
* comments of the author will autmomatically be rejected. Only valid in combination with
* STATUS_REJECTED.
*/
@com.google.api.client.util.Key
private java.lang.Boolean banAuthor;
/** If set to true the author of the comment gets added to the ban list. This means all future comments
of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
[default: false]
*/
public java.lang.Boolean getBanAuthor() {
return banAuthor;
}
/**
* If set to true the author of the comment gets added to the ban list. This means all future
* comments of the author will autmomatically be rejected. Only valid in combination with
* STATUS_REJECTED.
*/
public SetModerationStatus setBanAuthor(java.lang.Boolean banAuthor) {
this.banAuthor = banAuthor;
return this;
}
/**
* Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}.
*
*
* Boolean properties can have four possible values:
* {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE}
* or {@link Boolean#FALSE}.
*
*
*
* This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE}
* and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}.
* {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and
* it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}.
*
*
*
* If set to true the author of the comment gets added to the ban list. This means all future comments
of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
*
*/
public boolean isBanAuthor() {
if (banAuthor == null || banAuthor == com.google.api.client.util.Data.NULL_BOOLEAN) {
return false;
}
return banAuthor;
}
@Override
public SetModerationStatus set(String parameterName, Object value) {
return (SetModerationStatus) super.set(parameterName, value);
}
}
/**
* Updates an existing resource.
*
* Create a request for the method "comments.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter identifies the properties that the API response will include. You must at least
* include the snippet part in the parameter value since that part contains all of the
* properties that the API request can update.
* @param content the {@link com.google.api.services.youtube.model.Comment}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.Comment content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/comments";
/**
* Updates an existing resource.
*
* Create a request for the method "comments.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter identifies the properties that the API response will include. You must at least
* include the snippet part in the parameter value since that part contains all of the
* properties that the API request can update.
* @param content the {@link com.google.api.services.youtube.model.Comment}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.Comment content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.Comment.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter identifies the properties that the API response will include. You must
* at least include the snippet part in the parameter value since that part contains all of
* the properties that the API request can update.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter identifies the properties that the API response will include. You must at
least include the snippet part in the parameter value since that part contains all of the
properties that the API request can update.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter identifies the properties that the API response will include. You must
* at least include the snippet part in the parameter value since that part contains all of
* the properties that the API request can update.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the I18nLanguages collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.I18nLanguages.List request = youtube.i18nLanguages().list(parameters ...)}
*
*
* @return the resource collection
*/
public I18nLanguages i18nLanguages() {
return new I18nLanguages();
}
/**
* The "i18nLanguages" collection of methods.
*/
public class I18nLanguages {
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "i18nLanguages.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies the i18nLanguage resource properties that the API response will
* include. Set the parameter value to snippet.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/i18nLanguages";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "i18nLanguages.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies the i18nLanguage resource properties that the API response will
* include. Set the parameter value to snippet.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.I18nLanguageListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies the i18nLanguage resource properties that the API response
* will include. Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the i18nLanguage resource properties that the API response will
include. Set the parameter value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the i18nLanguage resource properties that the API response
* will include. Set the parameter value to snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
@com.google.api.client.util.Key
private java.lang.String hl;
/**
[ default: en_US]
[
*/
public java.lang.String getHl() {
return hl;
}
public List setHl(java.lang.String hl) {
this.hl = hl;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the I18nRegions collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.I18nRegions.List request = youtube.i18nRegions().list(parameters ...)}
*
*
* @return the resource collection
*/
public I18nRegions i18nRegions() {
return new I18nRegions();
}
/**
* The "i18nRegions" collection of methods.
*/
public class I18nRegions {
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "i18nRegions.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies the i18nRegion resource properties that the API response will
* include. Set the parameter value to snippet.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/i18nRegions";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "i18nRegions.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies the i18nRegion resource properties that the API response will
* include. Set the parameter value to snippet.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.I18nRegionListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies the i18nRegion resource properties that the API response
* will include. Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the i18nRegion resource properties that the API response will
include. Set the parameter value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the i18nRegion resource properties that the API response
* will include. Set the parameter value to snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
@com.google.api.client.util.Key
private java.lang.String hl;
/**
[ default: en_US]
[
*/
public java.lang.String getHl() {
return hl;
}
public List setHl(java.lang.String hl) {
this.hl = hl;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the LiveBroadcasts collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.LiveBroadcasts.List request = youtube.liveBroadcasts().list(parameters ...)}
*
*
* @return the resource collection
*/
public LiveBroadcasts liveBroadcasts() {
return new LiveBroadcasts();
}
/**
* The "liveBroadcasts" collection of methods.
*/
public class LiveBroadcasts {
/**
* Bind a broadcast to a stream.
*
* Create a request for the method "liveBroadcasts.bind".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Bind#execute()} method to invoke the remote operation.
*
* @param id Broadcast to bind to the stream
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
* @return the request
*/
public Bind bind(java.lang.String id, java.util.List part) throws java.io.IOException {
Bind result = new Bind(id, part);
initialize(result);
return result;
}
public class Bind extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts/bind";
/**
* Bind a broadcast to a stream.
*
* Create a request for the method "liveBroadcasts.bind".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Bind#execute()} method to invoke the remote operation. {@link
* Bind#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param id Broadcast to bind to the stream
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
* @since 1.13
*/
protected Bind(java.lang.String id, java.util.List part) {
super(YouTube.this, "POST", REST_PATH, null, com.google.api.services.youtube.model.LiveBroadcast.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Bind set$Xgafv(java.lang.String $Xgafv) {
return (Bind) super.set$Xgafv($Xgafv);
}
@Override
public Bind setAccessToken(java.lang.String accessToken) {
return (Bind) super.setAccessToken(accessToken);
}
@Override
public Bind setAlt(java.lang.String alt) {
return (Bind) super.setAlt(alt);
}
@Override
public Bind setCallback(java.lang.String callback) {
return (Bind) super.setCallback(callback);
}
@Override
public Bind setFields(java.lang.String fields) {
return (Bind) super.setFields(fields);
}
@Override
public Bind setKey(java.lang.String key) {
return (Bind) super.setKey(key);
}
@Override
public Bind setOauthToken(java.lang.String oauthToken) {
return (Bind) super.setOauthToken(oauthToken);
}
@Override
public Bind setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Bind) super.setPrettyPrint(prettyPrint);
}
@Override
public Bind setQuotaUser(java.lang.String quotaUser) {
return (Bind) super.setQuotaUser(quotaUser);
}
@Override
public Bind setUploadType(java.lang.String uploadType) {
return (Bind) super.setUploadType(uploadType);
}
@Override
public Bind setUploadProtocol(java.lang.String uploadProtocol) {
return (Bind) super.setUploadProtocol(uploadProtocol);
}
/** Broadcast to bind to the stream */
@com.google.api.client.util.Key
private java.lang.String id;
/** Broadcast to bind to the stream
*/
public java.lang.String getId() {
return id;
}
/** Broadcast to bind to the stream */
public Bind setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
properties that the API response will include. The part names that you can include in the parameter
value are id, snippet, contentDetails, and status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
public Bind setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Bind setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Bind setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
/** Stream to bind, if not set unbind the current one. */
@com.google.api.client.util.Key
private java.lang.String streamId;
/** Stream to bind, if not set unbind the current one.
*/
public java.lang.String getStreamId() {
return streamId;
}
/** Stream to bind, if not set unbind the current one. */
public Bind setStreamId(java.lang.String streamId) {
this.streamId = streamId;
return this;
}
@Override
public Bind set(String parameterName, Object value) {
return (Bind) super.set(parameterName, value);
}
}
/**
* Delete a given broadcast.
*
* Create a request for the method "liveBroadcasts.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id Broadcast to delete.
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts";
/**
* Delete a given broadcast.
*
* Create a request for the method "liveBroadcasts.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id Broadcast to delete.
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Broadcast to delete. */
@com.google.api.client.util.Key
private java.lang.String id;
/** Broadcast to delete.
*/
public java.lang.String getId() {
return id;
}
/** Broadcast to delete. */
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Delete setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Delete setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new stream for the authenticated user.
*
* Create a request for the method "liveBroadcasts.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status.
* @param content the {@link com.google.api.services.youtube.model.LiveBroadcast}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.LiveBroadcast content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts";
/**
* Inserts a new stream for the authenticated user.
*
* Create a request for the method "liveBroadcasts.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status.
* @param content the {@link com.google.api.services.youtube.model.LiveBroadcast}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.LiveBroadcast content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.LiveBroadcast.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
properties that you can include in the parameter value are id, snippet, contentDetails, and status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Insert setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Insert cuepoints in a broadcast
*
* Create a request for the method "liveBroadcasts.insertCuepoint".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link InsertCuepoint#execute()} method to invoke the remote operation.
*
* @param content the {@link com.google.api.services.youtube.model.Cuepoint}
* @return the request
*/
public InsertCuepoint insertCuepoint(com.google.api.services.youtube.model.Cuepoint content) throws java.io.IOException {
InsertCuepoint result = new InsertCuepoint(content);
initialize(result);
return result;
}
public class InsertCuepoint extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts/cuepoint";
/**
* Insert cuepoints in a broadcast
*
* Create a request for the method "liveBroadcasts.insertCuepoint".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link InsertCuepoint#execute()} method to invoke the remote operation.
* {@link InsertCuepoint#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
* ientRequest)} must be called to initialize this instance immediately after invoking the
* constructor.
*
* @param content the {@link com.google.api.services.youtube.model.Cuepoint}
* @since 1.13
*/
protected InsertCuepoint(com.google.api.services.youtube.model.Cuepoint content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.Cuepoint.class);
}
@Override
public InsertCuepoint set$Xgafv(java.lang.String $Xgafv) {
return (InsertCuepoint) super.set$Xgafv($Xgafv);
}
@Override
public InsertCuepoint setAccessToken(java.lang.String accessToken) {
return (InsertCuepoint) super.setAccessToken(accessToken);
}
@Override
public InsertCuepoint setAlt(java.lang.String alt) {
return (InsertCuepoint) super.setAlt(alt);
}
@Override
public InsertCuepoint setCallback(java.lang.String callback) {
return (InsertCuepoint) super.setCallback(callback);
}
@Override
public InsertCuepoint setFields(java.lang.String fields) {
return (InsertCuepoint) super.setFields(fields);
}
@Override
public InsertCuepoint setKey(java.lang.String key) {
return (InsertCuepoint) super.setKey(key);
}
@Override
public InsertCuepoint setOauthToken(java.lang.String oauthToken) {
return (InsertCuepoint) super.setOauthToken(oauthToken);
}
@Override
public InsertCuepoint setPrettyPrint(java.lang.Boolean prettyPrint) {
return (InsertCuepoint) super.setPrettyPrint(prettyPrint);
}
@Override
public InsertCuepoint setQuotaUser(java.lang.String quotaUser) {
return (InsertCuepoint) super.setQuotaUser(quotaUser);
}
@Override
public InsertCuepoint setUploadType(java.lang.String uploadType) {
return (InsertCuepoint) super.setUploadType(uploadType);
}
@Override
public InsertCuepoint setUploadProtocol(java.lang.String uploadProtocol) {
return (InsertCuepoint) super.setUploadProtocol(uploadProtocol);
}
/** Broadcast to insert ads to, or equivalently `external_video_id` for internal use. */
@com.google.api.client.util.Key
private java.lang.String id;
/** Broadcast to insert ads to, or equivalently `external_video_id` for internal use.
*/
public java.lang.String getId() {
return id;
}
/** Broadcast to insert ads to, or equivalently `external_video_id` for internal use. */
public InsertCuepoint setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 InsertCuepoint setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public InsertCuepoint setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
properties that the API response will include. The part names that you can include in the parameter
value are id, snippet, contentDetails, and status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
public InsertCuepoint setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public InsertCuepoint set(String parameterName, Object value) {
return (InsertCuepoint) super.set(parameterName, value);
}
}
/**
* Retrieve the list of broadcasts associated with the given channel.
*
* Create a request for the method "liveBroadcasts.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, status and statistics.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts";
/**
* Retrieve the list of broadcasts associated with the given channel.
*
* Create a request for the method "liveBroadcasts.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, status and statistics.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveBroadcastListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, status and statistics.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
properties that the API response will include. The part names that you can include in the parameter
value are id, snippet, contentDetails, status and statistics.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, status and statistics.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Return broadcasts with a certain status, e.g. active broadcasts. */
@com.google.api.client.util.Key
private java.lang.String broadcastStatus;
/** Return broadcasts with a certain status, e.g. active broadcasts.
*/
public java.lang.String getBroadcastStatus() {
return broadcastStatus;
}
/** Return broadcasts with a certain status, e.g. active broadcasts. */
public List setBroadcastStatus(java.lang.String broadcastStatus) {
this.broadcastStatus = broadcastStatus;
return this;
}
/** Return only broadcasts with the selected type. */
@com.google.api.client.util.Key
private java.lang.String broadcastType;
/** Return only broadcasts with the selected type. [default: event]
*/
public java.lang.String getBroadcastType() {
return broadcastType;
}
/** Return only broadcasts with the selected type. */
public List setBroadcastType(java.lang.String broadcastType) {
this.broadcastType = broadcastType;
return this;
}
/** Return broadcasts with the given ids from Stubby or Apiary. */
@com.google.api.client.util.Key
private java.util.List id;
/** Return broadcasts with the given ids from Stubby or Apiary.
*/
public java.util.List getId() {
return id;
}
/** Return broadcasts with the given ids from Stubby or Apiary. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 50]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
@com.google.api.client.util.Key
private java.lang.Boolean mine;
/**
*/
public java.lang.Boolean getMine() {
return mine;
}
public List setMine(java.lang.Boolean mine) {
this.mine = mine;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public List setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Transition a broadcast to a given status.
*
* Create a request for the method "liveBroadcasts.transition".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Transition#execute()} method to invoke the remote operation.
*
* @param broadcastStatus The status to which the broadcast is going to transition.
* @param id Broadcast to transition.
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
* @return the request
*/
public Transition transition(java.lang.String broadcastStatus, java.lang.String id, java.util.List part) throws java.io.IOException {
Transition result = new Transition(broadcastStatus, id, part);
initialize(result);
return result;
}
public class Transition extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts/transition";
/**
* Transition a broadcast to a given status.
*
* Create a request for the method "liveBroadcasts.transition".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Transition#execute()} method to invoke the remote operation.
* {@link
* Transition#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @param broadcastStatus The status to which the broadcast is going to transition.
* @param id Broadcast to transition.
* @param part The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
* @since 1.13
*/
protected Transition(java.lang.String broadcastStatus, java.lang.String id, java.util.List part) {
super(YouTube.this, "POST", REST_PATH, null, com.google.api.services.youtube.model.LiveBroadcast.class);
this.broadcastStatus = com.google.api.client.util.Preconditions.checkNotNull(broadcastStatus, "Required parameter broadcastStatus must be specified.");
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Transition set$Xgafv(java.lang.String $Xgafv) {
return (Transition) super.set$Xgafv($Xgafv);
}
@Override
public Transition setAccessToken(java.lang.String accessToken) {
return (Transition) super.setAccessToken(accessToken);
}
@Override
public Transition setAlt(java.lang.String alt) {
return (Transition) super.setAlt(alt);
}
@Override
public Transition setCallback(java.lang.String callback) {
return (Transition) super.setCallback(callback);
}
@Override
public Transition setFields(java.lang.String fields) {
return (Transition) super.setFields(fields);
}
@Override
public Transition setKey(java.lang.String key) {
return (Transition) super.setKey(key);
}
@Override
public Transition setOauthToken(java.lang.String oauthToken) {
return (Transition) super.setOauthToken(oauthToken);
}
@Override
public Transition setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Transition) super.setPrettyPrint(prettyPrint);
}
@Override
public Transition setQuotaUser(java.lang.String quotaUser) {
return (Transition) super.setQuotaUser(quotaUser);
}
@Override
public Transition setUploadType(java.lang.String uploadType) {
return (Transition) super.setUploadType(uploadType);
}
@Override
public Transition setUploadProtocol(java.lang.String uploadProtocol) {
return (Transition) super.setUploadProtocol(uploadProtocol);
}
/** The status to which the broadcast is going to transition. */
@com.google.api.client.util.Key
private java.lang.String broadcastStatus;
/** The status to which the broadcast is going to transition.
*/
public java.lang.String getBroadcastStatus() {
return broadcastStatus;
}
/** The status to which the broadcast is going to transition. */
public Transition setBroadcastStatus(java.lang.String broadcastStatus) {
this.broadcastStatus = broadcastStatus;
return this;
}
/** Broadcast to transition. */
@com.google.api.client.util.Key
private java.lang.String id;
/** Broadcast to transition.
*/
public java.lang.String getId() {
return id;
}
/** Broadcast to transition. */
public Transition setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
properties that the API response will include. The part names that you can include in the parameter
value are id, snippet, contentDetails, and status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, contentDetails, and status.
*/
public Transition setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Transition setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Transition setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Transition set(String parameterName, Object value) {
return (Transition) super.set(parameterName, value);
}
}
/**
* Updates an existing broadcast for the authenticated user.
*
* Create a request for the method "liveBroadcasts.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status. Note that this method will override the existing values for
* all of the mutable properties that are contained in any parts that the parameter value
* specifies. For example, a broadcast's privacy status is defined in the status part. As
* such, if your request is updating a private or unlisted broadcast, and the request's part
* parameter value includes the status part, the broadcast's privacy setting will be updated
* to whatever value the request body specifies. If the request body does not specify a
* value, the existing privacy setting will be removed and the broadcast will revert to the
* default privacy setting.
* @param content the {@link com.google.api.services.youtube.model.LiveBroadcast}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.LiveBroadcast content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveBroadcasts";
/**
* Updates an existing broadcast for the authenticated user.
*
* Create a request for the method "liveBroadcasts.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status. Note that this method will override the existing values for
* all of the mutable properties that are contained in any parts that the parameter value
* specifies. For example, a broadcast's privacy status is defined in the status part. As
* such, if your request is updating a private or unlisted broadcast, and the request's part
* parameter value includes the status part, the broadcast's privacy setting will be updated
* to whatever value the request body specifies. If the request body does not specify a
* value, the existing privacy setting will be removed and the broadcast will revert to the
* default privacy setting.
* @param content the {@link com.google.api.services.youtube.model.LiveBroadcast}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.LiveBroadcast content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.LiveBroadcast.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
checkRequiredParameter(content, "content");
checkRequiredParameter(content.getId(), "LiveBroadcast.getId()");
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status. Note that this method will override the existing values for all
* of the mutable properties that are contained in any parts that the parameter value
* specifies. For example, a broadcast's privacy status is defined in the status part. As
* such, if your request is updating a private or unlisted broadcast, and the request's part
* parameter value includes the status part, the broadcast's privacy setting will be updated
* to whatever value the request body specifies. If the request body does not specify a value,
* the existing privacy setting will be removed and the broadcast will revert to the default
* privacy setting.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
properties that you can include in the parameter value are id, snippet, contentDetails, and status.
Note that this method will override the existing values for all of the mutable properties that are
contained in any parts that the parameter value specifies. For example, a broadcast's privacy
status is defined in the status part. As such, if your request is updating a private or unlisted
broadcast, and the request's part parameter value includes the status part, the broadcast's privacy
setting will be updated to whatever value the request body specifies. If the request body does not
specify a value, the existing privacy setting will be removed and the broadcast will revert to the
default privacy setting.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* contentDetails, and status. Note that this method will override the existing values for all
* of the mutable properties that are contained in any parts that the parameter value
* specifies. For example, a broadcast's privacy status is defined in the status part. As
* such, if your request is updating a private or unlisted broadcast, and the request's part
* parameter value includes the status part, the broadcast's privacy setting will be updated
* to whatever value the request body specifies. If the request body does not specify a value,
* the existing privacy setting will be removed and the broadcast will revert to the default
* privacy setting.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Update setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the LiveChatBans collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.LiveChatBans.List request = youtube.liveChatBans().list(parameters ...)}
*
*
* @return the resource collection
*/
public LiveChatBans liveChatBans() {
return new LiveChatBans();
}
/**
* The "liveChatBans" collection of methods.
*/
public class LiveChatBans {
/**
* Deletes a chat ban.
*
* Create a request for the method "liveChatBans.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/bans";
/**
* Deletes a chat ban.
*
* Create a request for the method "liveChatBans.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatBans.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response returns. Set the
* parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatBan}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.LiveChatBan content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/bans";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatBans.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response returns. Set the
* parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatBan}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.LiveChatBan content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.LiveChatBan.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response returns.
* Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response returns. Set the parameter
value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response returns.
* Set the parameter value to snippet.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the LiveChatMessages collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.LiveChatMessages.List request = youtube.liveChatMessages().list(parameters ...)}
*
*
* @return the resource collection
*/
public LiveChatMessages liveChatMessages() {
return new LiveChatMessages();
}
/**
* The "liveChatMessages" collection of methods.
*/
public class LiveChatMessages {
/**
* Deletes a chat message.
*
* Create a request for the method "liveChatMessages.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/messages";
/**
* Deletes a chat message.
*
* Create a request for the method "liveChatMessages.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatMessages.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes. It identifies the properties that the write operation will
* set as well as the properties that the API response will include. Set the parameter value
* to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatMessage}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.LiveChatMessage content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/messages";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatMessages.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes. It identifies the properties that the write operation will
* set as well as the properties that the API response will include. Set the parameter value
* to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatMessage}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.LiveChatMessage content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.LiveChatMessage.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes. It identifies the properties that the write
* operation will set as well as the properties that the API response will include. Set the
* parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes. It identifies the properties that the write operation
will set as well as the properties that the API response will include. Set the parameter value to
snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes. It identifies the properties that the write
* operation will set as well as the properties that the API response will include. Set the
* parameter value to snippet.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "liveChatMessages.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param liveChatId The id of the live chat for which comments should be returned.
* @param part The *part* parameter specifies the liveChatComment resource parts that the API response will
* include. Supported values are id, snippet, and authorDetails.
* @return the request
*/
public List list(java.lang.String liveChatId, java.util.List part) throws java.io.IOException {
List result = new List(liveChatId, part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/messages";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "liveChatMessages.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param liveChatId The id of the live chat for which comments should be returned.
* @param part The *part* parameter specifies the liveChatComment resource parts that the API response will
* include. Supported values are id, snippet, and authorDetails.
* @since 1.13
*/
protected List(java.lang.String liveChatId, java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveChatMessageListResponse.class);
this.liveChatId = com.google.api.client.util.Preconditions.checkNotNull(liveChatId, "Required parameter liveChatId must be specified.");
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** The id of the live chat for which comments should be returned. */
@com.google.api.client.util.Key
private java.lang.String liveChatId;
/** The id of the live chat for which comments should be returned.
*/
public java.lang.String getLiveChatId() {
return liveChatId;
}
/** The id of the live chat for which comments should be returned. */
public List setLiveChatId(java.lang.String liveChatId) {
this.liveChatId = liveChatId;
return this;
}
/**
* The *part* parameter specifies the liveChatComment resource parts that the API response
* will include. Supported values are id, snippet, and authorDetails.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the liveChatComment resource parts that the API response will
include. Supported values are id, snippet, and authorDetails.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the liveChatComment resource parts that the API response
* will include. Supported values are id, snippet, and authorDetails.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Specifies the localization language in which the system messages should be returned. */
@com.google.api.client.util.Key
private java.lang.String hl;
/** Specifies the localization language in which the system messages should be returned.
*/
public java.lang.String getHl() {
return hl;
}
/** Specifies the localization language in which the system messages should be returned. */
public List setHl(java.lang.String hl) {
this.hl = hl;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 500] [minimum: 200] [maximum: 2000]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken property identify other pages that could be
* retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken property identify other pages that could be retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken property identify other pages that could be
* retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
/** Specifies the size of the profile image that should be returned for each user. */
@com.google.api.client.util.Key
private java.lang.Long profileImageSize;
/** Specifies the size of the profile image that should be returned for each user.
[minimum: 16] [maximum: 720]
*/
public java.lang.Long getProfileImageSize() {
return profileImageSize;
}
/** Specifies the size of the profile image that should be returned for each user. */
public List setProfileImageSize(java.lang.Long profileImageSize) {
this.profileImageSize = profileImageSize;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Transition a durable chat event.
*
* Create a request for the method "liveChatMessages.transition".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Transition#execute()} method to invoke the remote operation.
*
* @return the request
*/
public Transition transition() throws java.io.IOException {
Transition result = new Transition();
initialize(result);
return result;
}
public class Transition extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/messages/transition";
/**
* Transition a durable chat event.
*
* Create a request for the method "liveChatMessages.transition".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Transition#execute()} method to invoke the remote operation.
* {@link
* Transition#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
*
* @since 1.13
*/
protected Transition() {
super(YouTube.this, "POST", REST_PATH, null, com.google.api.services.youtube.model.LiveChatMessage.class);
}
@Override
public Transition set$Xgafv(java.lang.String $Xgafv) {
return (Transition) super.set$Xgafv($Xgafv);
}
@Override
public Transition setAccessToken(java.lang.String accessToken) {
return (Transition) super.setAccessToken(accessToken);
}
@Override
public Transition setAlt(java.lang.String alt) {
return (Transition) super.setAlt(alt);
}
@Override
public Transition setCallback(java.lang.String callback) {
return (Transition) super.setCallback(callback);
}
@Override
public Transition setFields(java.lang.String fields) {
return (Transition) super.setFields(fields);
}
@Override
public Transition setKey(java.lang.String key) {
return (Transition) super.setKey(key);
}
@Override
public Transition setOauthToken(java.lang.String oauthToken) {
return (Transition) super.setOauthToken(oauthToken);
}
@Override
public Transition setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Transition) super.setPrettyPrint(prettyPrint);
}
@Override
public Transition setQuotaUser(java.lang.String quotaUser) {
return (Transition) super.setQuotaUser(quotaUser);
}
@Override
public Transition setUploadType(java.lang.String uploadType) {
return (Transition) super.setUploadType(uploadType);
}
@Override
public Transition setUploadProtocol(java.lang.String uploadProtocol) {
return (Transition) super.setUploadProtocol(uploadProtocol);
}
/** The ID that uniquely identify the chat message event to transition. */
@com.google.api.client.util.Key
private java.lang.String id;
/** The ID that uniquely identify the chat message event to transition.
*/
public java.lang.String getId() {
return id;
}
/** The ID that uniquely identify the chat message event to transition. */
public Transition setId(java.lang.String id) {
this.id = id;
return this;
}
/** The status to which the chat event is going to transition. */
@com.google.api.client.util.Key
private java.lang.String status;
/** The status to which the chat event is going to transition.
*/
public java.lang.String getStatus() {
return status;
}
/** The status to which the chat event is going to transition. */
public Transition setStatus(java.lang.String status) {
this.status = status;
return this;
}
@Override
public Transition set(String parameterName, Object value) {
return (Transition) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the LiveChatModerators collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.LiveChatModerators.List request = youtube.liveChatModerators().list(parameters ...)}
*
*
* @return the resource collection
*/
public LiveChatModerators liveChatModerators() {
return new LiveChatModerators();
}
/**
* The "liveChatModerators" collection of methods.
*/
public class LiveChatModerators {
/**
* Deletes a chat moderator.
*
* Create a request for the method "liveChatModerators.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/moderators";
/**
* Deletes a chat moderator.
*
* Create a request for the method "liveChatModerators.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatModerators.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response returns. Set the
* parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatModerator}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.LiveChatModerator content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/moderators";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "liveChatModerators.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response returns. Set the
* parameter value to snippet.
* @param content the {@link com.google.api.services.youtube.model.LiveChatModerator}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.LiveChatModerator content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.LiveChatModerator.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response returns.
* Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response returns. Set the parameter
value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response returns.
* Set the parameter value to snippet.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "liveChatModerators.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param liveChatId The id of the live chat for which moderators should be returned.
* @param part The *part* parameter specifies the liveChatModerator resource parts that the API response will
* include. Supported values are id and snippet.
* @return the request
*/
public List list(java.lang.String liveChatId, java.util.List part) throws java.io.IOException {
List result = new List(liveChatId, part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveChat/moderators";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "liveChatModerators.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param liveChatId The id of the live chat for which moderators should be returned.
* @param part The *part* parameter specifies the liveChatModerator resource parts that the API response will
* include. Supported values are id and snippet.
* @since 1.13
*/
protected List(java.lang.String liveChatId, java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveChatModeratorListResponse.class);
this.liveChatId = com.google.api.client.util.Preconditions.checkNotNull(liveChatId, "Required parameter liveChatId must be specified.");
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/** The id of the live chat for which moderators should be returned. */
@com.google.api.client.util.Key
private java.lang.String liveChatId;
/** The id of the live chat for which moderators should be returned.
*/
public java.lang.String getLiveChatId() {
return liveChatId;
}
/** The id of the live chat for which moderators should be returned. */
public List setLiveChatId(java.lang.String liveChatId) {
this.liveChatId = liveChatId;
return this;
}
/**
* The *part* parameter specifies the liveChatModerator resource parts that the API response
* will include. Supported values are id and snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the liveChatModerator resource parts that the API response will
include. Supported values are id and snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the liveChatModerator resource parts that the API response
* will include. Supported values are id and snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 50]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the LiveStreams collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.LiveStreams.List request = youtube.liveStreams().list(parameters ...)}
*
*
* @return the resource collection
*/
public LiveStreams liveStreams() {
return new LiveStreams();
}
/**
* The "liveStreams" collection of methods.
*/
public class LiveStreams {
/**
* Deletes an existing stream for the authenticated user.
*
* Create a request for the method "liveStreams.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param id
* @return the request
*/
public Delete delete(java.lang.String id) throws java.io.IOException {
Delete result = new Delete(id);
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveStreams";
/**
* Deletes an existing stream for the authenticated user.
*
* Create a request for the method "liveStreams.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param id
* @since 1.13
*/
protected Delete(java.lang.String id) {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
this.id = com.google.api.client.util.Preconditions.checkNotNull(id, "Required parameter id must be specified.");
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
@com.google.api.client.util.Key
private java.lang.String id;
/**
*/
public java.lang.String getId() {
return id;
}
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Delete setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Delete setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new stream for the authenticated user.
*
* Create a request for the method "liveStreams.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet, cdn,
* content_details, and status.
* @param content the {@link com.google.api.services.youtube.model.LiveStream}
* @return the request
*/
public Insert insert(java.util.List part, com.google.api.services.youtube.model.LiveStream content) throws java.io.IOException {
Insert result = new Insert(part, content);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveStreams";
/**
* Inserts a new stream for the authenticated user.
*
* Create a request for the method "liveStreams.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet, cdn,
* content_details, and status.
* @param content the {@link com.google.api.services.youtube.model.LiveStream}
* @since 1.13
*/
protected Insert(java.util.List part, com.google.api.services.youtube.model.LiveStream content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.LiveStream.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* cdn, content_details, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
properties that you can include in the parameter value are id, snippet, cdn, content_details, and
status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* cdn, content_details, and status.
*/
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Insert setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieve the list of streams associated with the given channel. --
*
* Create a request for the method "liveStreams.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies a comma-separated list of one or more liveStream resource properties
* that the API response will include. The part names that you can include in the parameter
* value are id, snippet, cdn, and status.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveStreams";
/**
* Retrieve the list of streams associated with the given channel. --
*
* Create a request for the method "liveStreams.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies a comma-separated list of one or more liveStream resource properties
* that the API response will include. The part names that you can include in the parameter
* value are id, snippet, cdn, and status.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveStreamListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveStream resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, cdn, and status.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies a comma-separated list of one or more liveStream resource properties
that the API response will include. The part names that you can include in the parameter value are
id, snippet, cdn, and status.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies a comma-separated list of one or more liveStream resource
* properties that the API response will include. The part names that you can include in the
* parameter value are id, snippet, cdn, and status.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/** Return LiveStreams with the given ids from Stubby or Apiary. */
@com.google.api.client.util.Key
private java.util.List id;
/** Return LiveStreams with the given ids from Stubby or Apiary.
*/
public java.util.List getId() {
return id;
}
/** Return LiveStreams with the given ids from Stubby or Apiary. */
public List setId(java.util.List id) {
this.id = id;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 50]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
@com.google.api.client.util.Key
private java.lang.Boolean mine;
/**
*/
public java.lang.Boolean getMine() {
return mine;
}
public List setMine(java.lang.Boolean mine) {
this.mine = mine;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public List setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates an existing stream for the authenticated user.
*
* Create a request for the method "liveStreams.update".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet, cdn, and
* status. Note that this method will override the existing values for all of the mutable
* properties that are contained in any parts that the parameter value specifies. If the
* request body does not specify a value for a mutable property, the existing value for that
* property will be removed.
* @param content the {@link com.google.api.services.youtube.model.LiveStream}
* @return the request
*/
public Update update(java.util.List part, com.google.api.services.youtube.model.LiveStream content) throws java.io.IOException {
Update result = new Update(part, content);
initialize(result);
return result;
}
public class Update extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/liveStreams";
/**
* Updates an existing stream for the authenticated user.
*
* Create a request for the method "liveStreams.update".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter serves two purposes in this operation. It identifies the properties that the
* write operation will set as well as the properties that the API response will include. The
* part properties that you can include in the parameter value are id, snippet, cdn, and
* status. Note that this method will override the existing values for all of the mutable
* properties that are contained in any parts that the parameter value specifies. If the
* request body does not specify a value for a mutable property, the existing value for that
* property will be removed.
* @param content the {@link com.google.api.services.youtube.model.LiveStream}
* @since 1.13
*/
protected Update(java.util.List part, com.google.api.services.youtube.model.LiveStream content) {
super(YouTube.this, "PUT", REST_PATH, content, com.google.api.services.youtube.model.LiveStream.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
checkRequiredParameter(content, "content");
checkRequiredParameter(content.getId(), "LiveStream.getId()");
}
@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}
@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}
@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}
@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}
@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}
@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}
@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}
@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}
@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}
@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}
@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* cdn, and status. Note that this method will override the existing values for all of the
* mutable properties that are contained in any parts that the parameter value specifies. If
* the request body does not specify a value for a mutable property, the existing value for
* that property will be removed.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. The part
properties that you can include in the parameter value are id, snippet, cdn, and status. Note that
this method will override the existing values for all of the mutable properties that are contained
in any parts that the parameter value specifies. If the request body does not specify a value for a
mutable property, the existing value for that property will be removed.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter serves two purposes in this operation. It identifies the properties
* that the write operation will set as well as the properties that the API response will
* include. The part properties that you can include in the parameter value are id, snippet,
* cdn, and status. Note that this method will override the existing values for all of the
* mutable properties that are contained in any parts that the parameter value specifies. If
* the request body does not specify a value for a mutable property, the existing value for
* that property will be removed.
*/
public Update setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Update setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
@Override
public Update set(String parameterName, Object value) {
return (Update) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the Members collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.Members.List request = youtube.members().list(parameters ...)}
*
*
* @return the resource collection
*/
public Members members() {
return new Members();
}
/**
* The "members" collection of methods.
*/
public class Members {
/**
* Retrieves a list of members that match the request criteria for a channel.
*
* Create a request for the method "members.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies the member resource parts that the API response will include. Set the
* parameter value to snippet.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/members";
/**
* Retrieves a list of members that match the request criteria for a channel.
*
* Create a request for the method "members.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies the member resource parts that the API response will include. Set the
* parameter value to snippet.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.MemberListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies the member resource parts that the API response will
* include. Set the parameter value to snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the member resource parts that the API response will include. Set
the parameter value to snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the member resource parts that the API response will
* include. Set the parameter value to snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
/**
* Comma separated list of channel IDs. Only data about members that are part of this list
* will be included in the response.
*/
@com.google.api.client.util.Key
private java.lang.String filterByMemberChannelId;
/** Comma separated list of channel IDs. Only data about members that are part of this list will be
included in the response.
*/
public java.lang.String getFilterByMemberChannelId() {
return filterByMemberChannelId;
}
/**
* Comma separated list of channel IDs. Only data about members that are part of this list
* will be included in the response.
*/
public List setFilterByMemberChannelId(java.lang.String filterByMemberChannelId) {
this.filterByMemberChannelId = filterByMemberChannelId;
return this;
}
/** Filter members in the results set to the ones that have access to a level. */
@com.google.api.client.util.Key
private java.lang.String hasAccessToLevel;
/** Filter members in the results set to the ones that have access to a level.
*/
public java.lang.String getHasAccessToLevel() {
return hasAccessToLevel;
}
/** Filter members in the results set to the ones that have access to a level. */
public List setHasAccessToLevel(java.lang.String hasAccessToLevel) {
this.hasAccessToLevel = hasAccessToLevel;
return this;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
@com.google.api.client.util.Key
private java.lang.Long maxResults;
/** The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set. [default: 5] [minimum: 0] [maximum: 1000]
*/
public java.lang.Long getMaxResults() {
return maxResults;
}
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in
* the result set.
*/
public List setMaxResults(java.lang.Long maxResults) {
this.maxResults = maxResults;
return this;
}
/** Parameter that specifies which channel members to return. */
@com.google.api.client.util.Key
private java.lang.String mode;
/** Parameter that specifies which channel members to return. [default: all_current]
*/
public java.lang.String getMode() {
return mode;
}
/** Parameter that specifies which channel members to return. */
public List setMode(java.lang.String mode) {
this.mode = mode;
return this;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;
/** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
an API response, the nextPageToken and prevPageToken properties identify other pages that could be
retrieved.
*/
public java.lang.String getPageToken() {
return pageToken;
}
/**
* The *pageToken* parameter identifies a specific page in the result set that should be
* returned. In an API response, the nextPageToken and prevPageToken properties identify other
* pages that could be retrieved.
*/
public List setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the MembershipsLevels collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.MembershipsLevels.List request = youtube.membershipsLevels().list(parameters ...)}
*
*
* @return the resource collection
*/
public MembershipsLevels membershipsLevels() {
return new MembershipsLevels();
}
/**
* The "membershipsLevels" collection of methods.
*/
public class MembershipsLevels {
/**
* Retrieves a list of all pricing levels offered by a creator to the fans.
*
* Create a request for the method "membershipsLevels.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param part The *part* parameter specifies the membershipsLevel resource parts that the API response will
* include. Supported values are id and snippet.
* @return the request
*/
public List list(java.util.List part) throws java.io.IOException {
List result = new List(part);
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/membershipsLevels";
/**
* Retrieves a list of all pricing levels offered by a creator to the fans.
*
* Create a request for the method "membershipsLevels.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor.
*
* @param part The *part* parameter specifies the membershipsLevel resource parts that the API response will
* include. Supported values are id and snippet.
* @since 1.13
*/
protected List(java.util.List part) {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.MembershipsLevelListResponse.class);
this.part = com.google.api.client.util.Preconditions.checkNotNull(part, "Required parameter part must be specified.");
}
@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 List set$Xgafv(java.lang.String $Xgafv) {
return (List) super.set$Xgafv($Xgafv);
}
@Override
public List setAccessToken(java.lang.String accessToken) {
return (List) super.setAccessToken(accessToken);
}
@Override
public List setAlt(java.lang.String alt) {
return (List) super.setAlt(alt);
}
@Override
public List setCallback(java.lang.String callback) {
return (List) super.setCallback(callback);
}
@Override
public List setFields(java.lang.String fields) {
return (List) super.setFields(fields);
}
@Override
public List setKey(java.lang.String key) {
return (List) super.setKey(key);
}
@Override
public List setOauthToken(java.lang.String oauthToken) {
return (List) super.setOauthToken(oauthToken);
}
@Override
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
return (List) super.setPrettyPrint(prettyPrint);
}
@Override
public List setQuotaUser(java.lang.String quotaUser) {
return (List) super.setQuotaUser(quotaUser);
}
@Override
public List setUploadType(java.lang.String uploadType) {
return (List) super.setUploadType(uploadType);
}
@Override
public List setUploadProtocol(java.lang.String uploadProtocol) {
return (List) super.setUploadProtocol(uploadProtocol);
}
/**
* The *part* parameter specifies the membershipsLevel resource parts that the API response
* will include. Supported values are id and snippet.
*/
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the membershipsLevel resource parts that the API response will
include. Supported values are id and snippet.
*/
public java.util.List getPart() {
return part;
}
/**
* The *part* parameter specifies the membershipsLevel resource parts that the API response
* will include. Supported values are id and snippet.
*/
public List setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
}
/**
* An accessor for creating requests from the PlaylistImages collection.
*
* The typical use is:
*
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.PlaylistImages.List request = youtube.playlistImages().list(parameters ...)}
*
*
* @return the resource collection
*/
public PlaylistImages playlistImages() {
return new PlaylistImages();
}
/**
* The "playlistImages" collection of methods.
*/
public class PlaylistImages {
/**
* Deletes a resource.
*
* Create a request for the method "playlistImages.delete".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @return the request
*/
public Delete delete() throws java.io.IOException {
Delete result = new Delete();
initialize(result);
return result;
}
public class Delete extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/playlistImages";
/**
* Deletes a resource.
*
* Create a request for the method "playlistImages.delete".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Delete#execute()} method to invoke the remote operation. {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @since 1.13
*/
protected Delete() {
super(YouTube.this, "DELETE", REST_PATH, null, Void.class);
}
@Override
public Delete set$Xgafv(java.lang.String $Xgafv) {
return (Delete) super.set$Xgafv($Xgafv);
}
@Override
public Delete setAccessToken(java.lang.String accessToken) {
return (Delete) super.setAccessToken(accessToken);
}
@Override
public Delete setAlt(java.lang.String alt) {
return (Delete) super.setAlt(alt);
}
@Override
public Delete setCallback(java.lang.String callback) {
return (Delete) super.setCallback(callback);
}
@Override
public Delete setFields(java.lang.String fields) {
return (Delete) super.setFields(fields);
}
@Override
public Delete setKey(java.lang.String key) {
return (Delete) super.setKey(key);
}
@Override
public Delete setOauthToken(java.lang.String oauthToken) {
return (Delete) super.setOauthToken(oauthToken);
}
@Override
public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Delete) super.setPrettyPrint(prettyPrint);
}
@Override
public Delete setQuotaUser(java.lang.String quotaUser) {
return (Delete) super.setQuotaUser(quotaUser);
}
@Override
public Delete setUploadType(java.lang.String uploadType) {
return (Delete) super.setUploadType(uploadType);
}
@Override
public Delete setUploadProtocol(java.lang.String uploadProtocol) {
return (Delete) super.setUploadProtocol(uploadProtocol);
}
/** Id to identify this image. This is returned from by the List method. */
@com.google.api.client.util.Key
private java.lang.String id;
/** Id to identify this image. This is returned from by the List method.
*/
public java.lang.String getId() {
return id;
}
/** Id to identify this image. This is returned from by the List method. */
public Delete setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* *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;
/*** 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;
}
/**
* *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 Delete setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
@Override
public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "playlistImages.insert".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
* @param content the {@link com.google.api.services.youtube.model.PlaylistImage}
* @return the request
*/
public Insert insert(com.google.api.services.youtube.model.PlaylistImage content) throws java.io.IOException {
Insert result = new Insert(content);
initialize(result);
return result;
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "playlistImages.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation.
*
*
* This method should be used for uploading media content.
*
*
*
* @param content the {@link com.google.api.services.youtube.model.PlaylistImage} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @return the request
* @throws java.io.IOException if the initialization of the request fails
*/
public Insert insert(com.google.api.services.youtube.model.PlaylistImage content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException {
Insert result = new Insert(content, mediaContent);
initialize(result);
return result;
}
public class Insert extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/playlistImages";
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "playlistImages.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
* @param content the {@link com.google.api.services.youtube.model.PlaylistImage}
* @since 1.13
*/
protected Insert(com.google.api.services.youtube.model.PlaylistImage content) {
super(YouTube.this, "POST", REST_PATH, content, com.google.api.services.youtube.model.PlaylistImage.class);
}
/**
* Inserts a new resource into this collection.
*
* Create a request for the method "playlistImages.insert".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Insert#execute()} method to invoke the remote operation. {@link
* Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
*
*
* This constructor should be used for uploading media content.
*
*
*
* @param content the {@link com.google.api.services.youtube.model.PlaylistImage} media metadata or {@code null} if none
* @param mediaContent The media HTTP content.
* @since 1.13
*/
protected Insert(com.google.api.services.youtube.model.PlaylistImage content, com.google.api.client.http.AbstractInputStreamContent mediaContent) {
super(YouTube.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.youtube.model.PlaylistImage.class);
com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified.");
initializeMediaUpload(mediaContent);
}
@Override
public Insert set$Xgafv(java.lang.String $Xgafv) {
return (Insert) super.set$Xgafv($Xgafv);
}
@Override
public Insert setAccessToken(java.lang.String accessToken) {
return (Insert) super.setAccessToken(accessToken);
}
@Override
public Insert setAlt(java.lang.String alt) {
return (Insert) super.setAlt(alt);
}
@Override
public Insert setCallback(java.lang.String callback) {
return (Insert) super.setCallback(callback);
}
@Override
public Insert setFields(java.lang.String fields) {
return (Insert) super.setFields(fields);
}
@Override
public Insert setKey(java.lang.String key) {
return (Insert) super.setKey(key);
}
@Override
public Insert setOauthToken(java.lang.String oauthToken) {
return (Insert) super.setOauthToken(oauthToken);
}
@Override
public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Insert) super.setPrettyPrint(prettyPrint);
}
@Override
public Insert setQuotaUser(java.lang.String quotaUser) {
return (Insert) super.setQuotaUser(quotaUser);
}
@Override
public Insert setUploadType(java.lang.String uploadType) {
return (Insert) super.setUploadType(uploadType);
}
@Override
public Insert setUploadProtocol(java.lang.String uploadProtocol) {
return (Insert) super.setUploadProtocol(uploadProtocol);
}
/**
* *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;
/*** 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;
}
/**
* *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 Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
this.onBehalfOfContentOwner = onBehalfOfContentOwner;
return this;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
@com.google.api.client.util.Key
private java.lang.String onBehalfOfContentOwnerChannel;
/** This parameter can only be used in a properly authorized request. *Note:* This parameter is
intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter
specifies the YouTube channel ID of the channel to which a video is being added. This parameter is
required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only
be used in conjunction with that parameter. In addition, the request must be authorized using a CMS
account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies.
Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be
linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is
intended for YouTube content partners that own and manage many different YouTube channels. It
allows content owners to authenticate once and perform actions on behalf of the channel specified
in the parameter value, without having to provide authentication credentials for each separate
channel.
*/
public java.lang.String getOnBehalfOfContentOwnerChannel() {
return onBehalfOfContentOwnerChannel;
}
/**
* This parameter can only be used in a properly authorized request. *Note:* This parameter is
* intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
* parameter specifies the YouTube channel ID of the channel to which a video is being added.
* This parameter is required when a request specifies a value for the onBehalfOfContentOwner
* parameter, and it can only be used in conjunction with that parameter. In addition, the
* request must be authorized using a CMS account that is linked to the content owner that the
* onBehalfOfContentOwner parameter specifies. Finally, the channel that the
* onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner
* that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube
* content partners that own and manage many different YouTube channels. It allows content
* owners to authenticate once and perform actions on behalf of the channel specified in the
* parameter value, without having to provide authentication credentials for each separate
* channel.
*/
public Insert setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel) {
this.onBehalfOfContentOwnerChannel = onBehalfOfContentOwnerChannel;
return this;
}
/** The *part* parameter specifies the properties that the API response will include. */
@com.google.api.client.util.Key
private java.util.List part;
/** The *part* parameter specifies the properties that the API response will include.
*/
public java.util.List getPart() {
return part;
}
/** The *part* parameter specifies the properties that the API response will include. */
public Insert setPart(java.util.List part) {
this.part = part;
return this;
}
@Override
public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "playlistImages.list".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @return the request
*/
public List list() throws java.io.IOException {
List result = new List();
initialize(result);
return result;
}
public class List extends YouTubeRequest {
private static final String REST_PATH = "youtube/v3/playlistImages";
/**
* Retrieves a list of resources, possibly filtered.
*
* Create a request for the method "playlistImages.list".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link List#execute()} method to invoke the remote operation.