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

target.apidocs.com.google.api.services.youtube.model.SearchResultSnippet.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241105-2.0.0
Show newest version






SearchResultSnippet (YouTube Data API v3 v3-rev20240417-2.0.0)












com.google.api.services.youtube.model

Class SearchResultSnippet

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class SearchResultSnippet
    extends com.google.api.client.json.GenericJson
    Basic details about a search result, including title, description and thumbnails of the item referenced by the search result.

    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.
    • Constructor Detail

      • SearchResultSnippet

        public SearchResultSnippet()
    • Method Detail

      • getChannelId

        public String getChannelId()
        The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies.
        Returns:
        value or null for none
      • setChannelId

        public SearchResultSnippet setChannelId(String channelId)
        The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies.
        Parameters:
        channelId - channelId or null for none
      • getChannelTitle

        public String getChannelTitle()
        The title of the channel that published the resource that the search result identifies.
        Returns:
        value or null for none
      • setChannelTitle

        public SearchResultSnippet setChannelTitle(String channelTitle)
        The title of the channel that published the resource that the search result identifies.
        Parameters:
        channelTitle - channelTitle or null for none
      • getDescription

        public String getDescription()
        A description of the search result.
        Returns:
        value or null for none
      • setDescription

        public SearchResultSnippet setDescription(String description)
        A description of the search result.
        Parameters:
        description - description or null for none
      • getLiveBroadcastContent

        public String getLiveBroadcastContent()
        It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's "none" if there is not any upcoming/active live broadcasts.
        Returns:
        value or null for none
      • setLiveBroadcastContent

        public SearchResultSnippet setLiveBroadcastContent(String liveBroadcastContent)
        It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's "none" if there is not any upcoming/active live broadcasts.
        Parameters:
        liveBroadcastContent - liveBroadcastContent or null for none
      • getPublishedAt

        public com.google.api.client.util.DateTime getPublishedAt()
        The creation date and time of the resource that the search result identifies.
        Returns:
        value or null for none
      • setPublishedAt

        public SearchResultSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
        The creation date and time of the resource that the search result identifies.
        Parameters:
        publishedAt - publishedAt or null for none
      • getThumbnails

        public ThumbnailDetails getThumbnails()
        A map of thumbnail images associated with the search result. 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.
        Returns:
        value or null for none
      • setThumbnails

        public SearchResultSnippet setThumbnails(ThumbnailDetails thumbnails)
        A map of thumbnail images associated with the search result. 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.
        Parameters:
        thumbnails - thumbnails or null for none
      • getTitle

        public String getTitle()
        The title of the search result.
        Returns:
        value or null for none
      • setTitle

        public SearchResultSnippet setTitle(String title)
        The title of the search result.
        Parameters:
        title - title or null for none
      • clone

        public SearchResultSnippet clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy