+ * {@link BatchGetStats#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *
+ * + * @since 1.13 + */ + protected BatchGetStats() { + super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.BatchGetStatsResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public BatchGetStats set$Xgafv(java.lang.String $Xgafv) { + return (BatchGetStats) super.set$Xgafv($Xgafv); + } + + @Override + public BatchGetStats setAccessToken(java.lang.String accessToken) { + return (BatchGetStats) super.setAccessToken(accessToken); + } + + @Override + public BatchGetStats setAlt(java.lang.String alt) { + return (BatchGetStats) super.setAlt(alt); + } + + @Override + public BatchGetStats setCallback(java.lang.String callback) { + return (BatchGetStats) super.setCallback(callback); + } + + @Override + public BatchGetStats setFields(java.lang.String fields) { + return (BatchGetStats) super.setFields(fields); + } + + @Override + public BatchGetStats setKey(java.lang.String key) { + return (BatchGetStats) super.setKey(key); + } + + @Override + public BatchGetStats setOauthToken(java.lang.String oauthToken) { + return (BatchGetStats) super.setOauthToken(oauthToken); + } + + @Override + public BatchGetStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGetStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchGetStats setQuotaUser(java.lang.String quotaUser) { + return (BatchGetStats) super.setQuotaUser(quotaUser); + } + + @Override + public BatchGetStats setUploadType(java.lang.String uploadType) { + return (BatchGetStats) super.setUploadType(uploadType); + } + + @Override + public BatchGetStats setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGetStats) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Return videos with the given ids. The number of IDs specified cannot exceed 50. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 BatchGetStatsResponse extends com.google.api.client.json.GenericJson { + + /** + * Etag of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The videos' stats information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 VideoStat extends com.google.api.client.json.GenericJson { + + /** + * Output only. The VideoStatsContentDetails object contains information about the video content, + * including the length of the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoStatsContentDetails contentDetails; + + /** + * Output only. Etag of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The ID that YouTube uses to uniquely identify the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. Identifies what kind of resource this is. Value: the fixed string + * "youtube#videoStats". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. The VideoStatsSnippet object contains basic details about the video, such publish + * time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoStatsSnippet snippet; + + /** + * Output only. The VideoStatsStatistics object contains statistics about the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoStatsStatistics statistics; + + /** + * Output only. The VideoStatsContentDetails object contains information about the video content, + * including the length of the video. + * @return value or {@code null} for none + */ + public VideoStatsContentDetails getContentDetails() { + return contentDetails; + } + + /** + * Output only. The VideoStatsContentDetails object contains information about the video content, + * including the length of the video. + * @param contentDetails contentDetails or {@code null} for none + */ + public VideoStat setContentDetails(VideoStatsContentDetails contentDetails) { + this.contentDetails = contentDetails; + return this; + } + + /** + * Output only. Etag of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag of this resource. + * @param etag etag or {@code null} for none + */ + public VideoStat setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. The ID that YouTube uses to uniquely identify the video. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Output only. The ID that YouTube uses to uniquely identify the video. + * @param id id or {@code null} for none + */ + public VideoStat setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. Identifies what kind of resource this is. Value: the fixed string + * "youtube#videoStats". + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Identifies what kind of resource this is. Value: the fixed string + * "youtube#videoStats". + * @param kind kind or {@code null} for none + */ + public VideoStat setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. The VideoStatsSnippet object contains basic details about the video, such publish + * time. + * @return value or {@code null} for none + */ + public VideoStatsSnippet getSnippet() { + return snippet; + } + + /** + * Output only. The VideoStatsSnippet object contains basic details about the video, such publish + * time. + * @param snippet snippet or {@code null} for none + */ + public VideoStat setSnippet(VideoStatsSnippet snippet) { + this.snippet = snippet; + return this; + } + + /** + * Output only. The VideoStatsStatistics object contains statistics about the video. + * @return value or {@code null} for none + */ + public VideoStatsStatistics getStatistics() { + return statistics; + } + + /** + * Output only. The VideoStatsStatistics object contains statistics about the video. + * @param statistics statistics or {@code null} for none + */ + public VideoStat setStatistics(VideoStatsStatistics statistics) { + this.statistics = statistics; + return this; + } + + @Override + public VideoStat set(String fieldName, Object value) { + return (VideoStat) super.set(fieldName, value); + } + + @Override + public VideoStat clone() { + return (VideoStat) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsContentDetails.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsContentDetails.java new file mode 100644 index 00000000000..ababfe45f2e --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsContentDetails.java @@ -0,0 +1,73 @@ +/* + * 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; + +/** + * Details about the content of a YouTube Video. This is a subset of the information in + * VideoContentDetails specifically for the Videos.stats API. + * + *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 VideoStatsContentDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. The length of the video. The property value is a + * [`google.protobuf.Duration`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#duration) object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Output only. The length of the video. The property value is a + * [`google.protobuf.Duration`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#duration) object. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * Output only. The length of the video. The property value is a + * [`google.protobuf.Duration`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#duration) object. + * @param duration duration or {@code null} for none + */ + public VideoStatsContentDetails setDuration(String duration) { + this.duration = duration; + return this; + } + + @Override + public VideoStatsContentDetails set(String fieldName, Object value) { + return (VideoStatsContentDetails) super.set(fieldName, value); + } + + @Override + public VideoStatsContentDetails clone() { + return (VideoStatsContentDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsSnippet.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsSnippet.java new file mode 100644 index 00000000000..b173e40bd03 --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsSnippet.java @@ -0,0 +1,73 @@ +/* + * 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; + +/** + * Basic details about a video. This is a subset of the information in VideoSnippet specifically for + * the Videos.stats API. + * + *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 VideoStatsSnippet extends com.google.api.client.json.GenericJson { + + /** + * Output only. The date and time that the video was uploaded. The property value is a + * [`google.protobuf.Timestamp`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#timestamp) object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String publishTime; + + /** + * Output only. The date and time that the video was uploaded. The property value is a + * [`google.protobuf.Timestamp`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#timestamp) object. + * @return value or {@code null} for none + */ + public String getPublishTime() { + return publishTime; + } + + /** + * Output only. The date and time that the video was uploaded. The property value is a + * [`google.protobuf.Timestamp`](https://developers.google.com/protocol- + * buffers/docs/reference/google.protobuf#timestamp) object. + * @param publishTime publishTime or {@code null} for none + */ + public VideoStatsSnippet setPublishTime(String publishTime) { + this.publishTime = publishTime; + return this; + } + + @Override + public VideoStatsSnippet set(String fieldName, Object value) { + return (VideoStatsSnippet) super.set(fieldName, value); + } + + @Override + public VideoStatsSnippet clone() { + return (VideoStatsSnippet) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsStatistics.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsStatistics.java new file mode 100644 index 00000000000..39329615638 --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/VideoStatsStatistics.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Statistics about the video, such as the number of times the video was viewed or liked. + * + *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 VideoStatsStatistics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of comments for the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long commentCount; + + /** + * Output only. The number of users who have indicated that they liked the video by giving it a + * positive rating. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long likeCount; + + /** + * Output only. The number of times the video has been viewed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long viewCount; + + /** + * Output only. The number of comments for the video. + * @return value or {@code null} for none + */ + public java.lang.Long getCommentCount() { + return commentCount; + } + + /** + * Output only. The number of comments for the video. + * @param commentCount commentCount or {@code null} for none + */ + public VideoStatsStatistics setCommentCount(java.lang.Long commentCount) { + this.commentCount = commentCount; + return this; + } + + /** + * Output only. The number of users who have indicated that they liked the video by giving it a + * positive rating. + * @return value or {@code null} for none + */ + public java.lang.Long getLikeCount() { + return likeCount; + } + + /** + * Output only. The number of users who have indicated that they liked the video by giving it a + * positive rating. + * @param likeCount likeCount or {@code null} for none + */ + public VideoStatsStatistics setLikeCount(java.lang.Long likeCount) { + this.likeCount = likeCount; + return this; + } + + /** + * Output only. The number of times the video has been viewed. + * @return value or {@code null} for none + */ + public java.lang.Long getViewCount() { + return viewCount; + } + + /** + * Output only. The number of times the video has been viewed. + * @param viewCount viewCount or {@code null} for none + */ + public VideoStatsStatistics setViewCount(java.lang.Long viewCount) { + this.viewCount = viewCount; + return this; + } + + @Override + public VideoStatsStatistics set(String fieldName, Object value) { + return (VideoStatsStatistics) super.set(fieldName, value); + } + + @Override + public VideoStatsStatistics clone() { + return (VideoStatsStatistics) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/pom.xml b/clients/google-api-services-youtube/v3/2.0.0/pom.xml index c5c64ba183f..3a6c56b982f 100644 --- a/clients/google-api-services-youtube/v3/2.0.0/pom.xml +++ b/clients/google-api-services-youtube/v3/2.0.0/pom.xml @@ -8,8 +8,8 @@