class Google::Apis::YoutubeV3::SearchResult

A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.

Attributes

etag[RW]

Etag of this resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

A resource id is a generic reference that points to another YouTube resource. Corresponds to the JSON property `id` @return [Google::Apis::YoutubeV3::ResourceId]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “youtube# searchResult”. Corresponds to the JSON property `kind` @return [String]

snippet[RW]

Basic details about a search result, including title, description and thumbnails of the item referenced by the search result. Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::SearchResultSnippet]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 6011
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 6016
def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @snippet = args[:snippet] if args.key?(:snippet)
end