From 152bc416fba45590e8189160922e533349d86d03 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sat, 12 Oct 2024 19:30:24 -0700
Subject: [PATCH] chore: regenerate youtube client (#23634)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
---
.../v3/2.0.0/README.md | 4 +-
.../google/api/services/youtube/YouTube.java | 280 +++++++++++++++++-
.../v3/2.0.0/pom.xml | 4 +-
.../google-api-services-youtube/v3/README.md | 4 +-
4 files changed, 283 insertions(+), 9 deletions(-)
diff --git a/clients/google-api-services-youtube/v3/2.0.0/README.md b/clients/google-api-services-youtube/v3/2.0.0/README.md
index 7b72a408694..9c37a2657c3 100644
--- a/clients/google-api-services-youtube/v3/2.0.0/README.md
+++ b/clients/google-api-services-youtube/v3/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *+ * {@code YouTube youtube = new YouTube(...);} + * {@code YouTube.LiveChat.List request = youtube.liveChat().list(parameters ...)} + *+ * + * @return the resource collection + */ + public LiveChat liveChat() { + return new LiveChat(); + } + + /** + * The "liveChat" collection of methods. + */ + public class LiveChat { + + /** + * An accessor for creating requests from the Messages collection. + * + *
The typical use is:
+ *+ * {@code YouTube youtube = new YouTube(...);} + * {@code YouTube.Messages.List request = youtube.messages().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Messages messages() { + return new Messages(); + } + + /** + * The "messages" collection of methods. + */ + public class Messages { + + /** + * Allows a user to load live chat through a server-streamed RPC. + * + * Create a request for the method "messages.stream". + * + * This request holds the parameters needed by the youtube server. After setting any optional + * parameters, call the {@link Stream#execute()} method to invoke the remote operation. + * + * @return the request + */ + public Stream stream() throws java.io.IOException { + Stream result = new Stream(); + initialize(result); + return result; + } + + public class Stream extends YouTubeRequest
{@link + * Stream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @since 1.13 + */ + protected Stream() { + super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveChatMessageListResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } + + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } + + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } + + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } + + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) super.setFields(fields); + } + + @Override + public Stream setKey(java.lang.String key) { + return (Stream) super.setKey(key); + } + + @Override + public Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) super.setOauthToken(oauthToken); + } + + @Override + public Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) super.setQuotaUser(quotaUser); + } + + @Override + public Stream setUploadType(java.lang.String uploadType) { + return (Stream) super.setUploadType(uploadType); + } + + @Override + public Stream setUploadProtocol(java.lang.String uploadProtocol) { + return (Stream) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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 Stream setHl(java.lang.String hl) { + this.hl = hl; + return this; + } + + /** 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 Stream setLiveChatId(java.lang.String liveChatId) { + this.liveChatId = liveChatId; + return this; + } + + /** + * The *maxResults* parameter specifies the maximum number of items that should be + * returned in the result set. Not used in the streaming RPC. + */ + @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. Not used in the streaming RPC. [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. Not used in the streaming RPC. + */ + public Stream 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 Stream setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + 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