From 340d03c4532fd0e75da170df0b52505025f0c4c2 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Thu, 23 Jan 2025 19:10:22 -0800
Subject: [PATCH] chore: regenerate youtube client (#25014)
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 | 145 ++++++++++++++++++
.../youtube/model/VideoTrainability.java | 141 +++++++++++++++++
.../v3/2.0.0/pom.xml | 4 +-
.../google-api-services-youtube/v3/README.md | 4 +-
5 files changed, 292 insertions(+), 6 deletions(-)
create mode 100644 clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoTrainability.java
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 695dddf602c..ce5ce36cf6f 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.VideoTrainability.List request = youtube.videoTrainability().list(parameters ...)} + *+ * + * @return the resource collection + */ + public VideoTrainability videoTrainability() { + return new VideoTrainability(); + } + + /** + * The "videoTrainability" collection of methods. + */ + public class VideoTrainability { + + /** + * Returns the trainability status of a video. + * + * Create a request for the method "videoTrainability.get". + * + * This request holds the parameters needed by the youtube server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @return the request + */ + public Get get() throws java.io.IOException { + Get result = new Get(); + initialize(result); + return result; + } + + public class Get extends YouTubeRequest
{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @since 1.13 + */ + protected Get() { + super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.VideoTrainability.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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The ID of the video to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** The ID of the video to retrieve. + */ + public java.lang.String getId() { + return id; + } + + /** The ID of the video to retrieve. */ + public Get setId(java.lang.String id) { + this.id = id; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Videos collection. * diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoTrainability.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoTrainability.java new file mode 100644 index 00000000000..d57b91c61db --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoTrainability.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.youtube.model; + +/** + * Specifies who is allowed to train on the video. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VideoTrainability extends com.google.api.client.json.GenericJson { + + /** + * Etag of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifies what kind of resource this is. Value: the fixed string "youtube#videoTrainability". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specifies who is allowed to train on the video. Valid values are: - a single string "all" - a + * single string "none" - a list of allowed parties + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List