All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.youtube.model.VideoSnippet Maven / Gradle / Ivy

There is a newer version: v3-rev20240514-2.0.0
Show newest version
/*
 * 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, including title, description, uploader, thumbnails and category.
 *
 * 

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 VideoSnippet extends com.google.api.client.json.GenericJson { /** * The YouTube video category associated with the video. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String categoryId; /** * The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String channelId; /** * Channel title for the channel that the video belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String channelTitle; /** * The default_audio_language property specifies the language spoken in the video's default audio * track. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String defaultAudioLanguage; /** * The language of the videos's default snippet. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String defaultLanguage; /** * The video's description. @mutable youtube.videos.insert youtube.videos.update * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not * an upcoming/active live broadcast. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String liveBroadcastContent; /** * Localized snippet selected with the hl parameter. If no such localization exists, this field is * populated with the default snippet. (Read-only) * The value may be {@code null}. */ @com.google.api.client.util.Key private VideoLocalization localized; /** * The date and time when the video was uploaded. * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime publishedAt; /** * A list of keyword tags associated with the video. Tags may contain spaces. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List tags; /** * A map of thumbnail images associated with the video. For each object in the map, the key is the * name of the thumbnail image, and the value is an object that contains other information about * the thumbnail. * The value may be {@code null}. */ @com.google.api.client.util.Key private ThumbnailDetails thumbnails; /** * The video's title. @mutable youtube.videos.insert youtube.videos.update * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String title; /** * The YouTube video category associated with the video. * @return value or {@code null} for none */ public java.lang.String getCategoryId() { return categoryId; } /** * The YouTube video category associated with the video. * @param categoryId categoryId or {@code null} for none */ public VideoSnippet setCategoryId(java.lang.String categoryId) { this.categoryId = categoryId; return this; } /** * The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. * @return value or {@code null} for none */ public java.lang.String getChannelId() { return channelId; } /** * The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. * @param channelId channelId or {@code null} for none */ public VideoSnippet setChannelId(java.lang.String channelId) { this.channelId = channelId; return this; } /** * Channel title for the channel that the video belongs to. * @return value or {@code null} for none */ public java.lang.String getChannelTitle() { return channelTitle; } /** * Channel title for the channel that the video belongs to. * @param channelTitle channelTitle or {@code null} for none */ public VideoSnippet setChannelTitle(java.lang.String channelTitle) { this.channelTitle = channelTitle; return this; } /** * The default_audio_language property specifies the language spoken in the video's default audio * track. * @return value or {@code null} for none */ public java.lang.String getDefaultAudioLanguage() { return defaultAudioLanguage; } /** * The default_audio_language property specifies the language spoken in the video's default audio * track. * @param defaultAudioLanguage defaultAudioLanguage or {@code null} for none */ public VideoSnippet setDefaultAudioLanguage(java.lang.String defaultAudioLanguage) { this.defaultAudioLanguage = defaultAudioLanguage; return this; } /** * The language of the videos's default snippet. * @return value or {@code null} for none */ public java.lang.String getDefaultLanguage() { return defaultLanguage; } /** * The language of the videos's default snippet. * @param defaultLanguage defaultLanguage or {@code null} for none */ public VideoSnippet setDefaultLanguage(java.lang.String defaultLanguage) { this.defaultLanguage = defaultLanguage; return this; } /** * The video's description. @mutable youtube.videos.insert youtube.videos.update * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * The video's description. @mutable youtube.videos.insert youtube.videos.update * @param description description or {@code null} for none */ public VideoSnippet setDescription(java.lang.String description) { this.description = description; return this; } /** * Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not * an upcoming/active live broadcast. * @return value or {@code null} for none */ public java.lang.String getLiveBroadcastContent() { return liveBroadcastContent; } /** * Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not * an upcoming/active live broadcast. * @param liveBroadcastContent liveBroadcastContent or {@code null} for none */ public VideoSnippet setLiveBroadcastContent(java.lang.String liveBroadcastContent) { this.liveBroadcastContent = liveBroadcastContent; return this; } /** * Localized snippet selected with the hl parameter. If no such localization exists, this field is * populated with the default snippet. (Read-only) * @return value or {@code null} for none */ public VideoLocalization getLocalized() { return localized; } /** * Localized snippet selected with the hl parameter. If no such localization exists, this field is * populated with the default snippet. (Read-only) * @param localized localized or {@code null} for none */ public VideoSnippet setLocalized(VideoLocalization localized) { this.localized = localized; return this; } /** * The date and time when the video was uploaded. * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getPublishedAt() { return publishedAt; } /** * The date and time when the video was uploaded. * @param publishedAt publishedAt or {@code null} for none */ public VideoSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt) { this.publishedAt = publishedAt; return this; } /** * A list of keyword tags associated with the video. Tags may contain spaces. * @return value or {@code null} for none */ public java.util.List getTags() { return tags; } /** * A list of keyword tags associated with the video. Tags may contain spaces. * @param tags tags or {@code null} for none */ public VideoSnippet setTags(java.util.List tags) { this.tags = tags; return this; } /** * A map of thumbnail images associated with the video. For each object in the map, the key is the * name of the thumbnail image, and the value is an object that contains other information about * the thumbnail. * @return value or {@code null} for none */ public ThumbnailDetails getThumbnails() { return thumbnails; } /** * A map of thumbnail images associated with the video. For each object in the map, the key is the * name of the thumbnail image, and the value is an object that contains other information about * the thumbnail. * @param thumbnails thumbnails or {@code null} for none */ public VideoSnippet setThumbnails(ThumbnailDetails thumbnails) { this.thumbnails = thumbnails; return this; } /** * The video's title. @mutable youtube.videos.insert youtube.videos.update * @return value or {@code null} for none */ public java.lang.String getTitle() { return title; } /** * The video's title. @mutable youtube.videos.insert youtube.videos.update * @param title title or {@code null} for none */ public VideoSnippet setTitle(java.lang.String title) { this.title = title; return this; } @Override public VideoSnippet set(String fieldName, Object value) { return (VideoSnippet) super.set(fieldName, value); } @Override public VideoSnippet clone() { return (VideoSnippet) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy