View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaAudio (google_api_content_warehouse v0.4.0)

Represents a music recording (usually a song). Each populated field can be thought of as additional constraint about the song's identity. For instance, if no fields are set, then this represents "some song." If only the music_artist is set, then it represents "some song by the specified music_artist." Inspired (but not strictly adhered to) http://schema.org/MusicRecording Next ID: 22

Attributes

  • album (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaAlbumTitle.t, default: nil) -
  • artist (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicArtist.t, default: nil) -
  • book (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaBook.t, default: nil) - Like an audio book. "Listen to (moby dick) audiobook"
  • dateTime (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t, default: nil) - A date time constraint for audio entity, for example, "jazz station 1980".
  • episodeConstraint (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaEpisodeConstraint.t), default: nil) - Constraining the query to some detail about the episode. Example: "listen to episode (13) of this american life with (mike birbiglia)" would have the 2 constraints in parens.
  • game (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaGame.t, default: nil) - Soundtrack or theme song (see score_type param that indicates whether the user refers to a soundtrack or a theme song) of the game. "Play soundtrack from (Deus Ex Human Revolution)".
  • genericMusic (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaGenericMusic.t, default: nil) -
  • genre (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicGenre.t, default: nil) -
  • movie (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMovie.t, default: nil) - Soundtrack or theme song (see score_type param that indicates whether the user refers to a soundtrack or a theme song) of the movie. E.g. "Play (Let It Go) from (Disney's Frozen)"
  • newsTopic (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaNewsTopic.t, default: nil) - News topic. "Listen to news about (Ukraine)"
  • noExplicitAudio (type: boolean(), default: nil) - True when the query does not contains an explict audio name. E.g. When user says "play" or "listen to".
  • playlist (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicPlaylist.t, default: nil) -
  • podcast (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaPodcast.t, default: nil) - Podcast feeds. "Listen to (This American Life)"
  • radio (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaRadio.t, default: nil) -
  • radioNetwork (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaRadioNetwork.t, default: nil) - E.g. "play NPR radio", "Play BBC radio".
  • rawText (type: String.t, default: nil) - The query for backends to use in search. e.g. for an user query of "play kids song video on tv" from assistant, this field would be "kids song". Note: there is no guarantee this field is populated; when it is not, backends should fall back to "raw_text" fields in song, artist, album etc.
  • scoreType (type: String.t, default: nil) - If any of movie, game or tv show fields is populated this field indicates specific score type requested in the query. E.g. for [play soundtrack from frozen] this field is SOUNDTRACK, for [play frozen song] this field is THEME_SONG.
  • seasonConstraint (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaSeasonConstraint.t, default: nil) - Constraining the query to some detail about the season. Example: "listen to season 2 of serial"
  • song (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaSong.t, default: nil) -
  • tag (type: list(String.t), default: nil) - Optional tags associated with how the media entity should be played. For example, this can be set to SEED_RADIO to signify that the user wants to play a radio station seeded by the entity.
  • tvShow (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaTVShow.t, default: nil) - Soundtrack or theme song (see score_type param that indicates whether the user refers to a soundtrack or a theme song) of the tv show. E.g. "Play soundtrack from (Friends)".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaAudio{
  album:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaAlbumTitle.t()
    | nil,
  artist:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicArtist.t()
    | nil,
  book:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaBook.t()
    | nil,
  dateTime:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t()
    | nil,
  episodeConstraint:
    [
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaEpisodeConstraint.t()
    ]
    | nil,
  game:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaGame.t()
    | nil,
  genericMusic:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaGenericMusic.t()
    | nil,
  genre:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicGenre.t()
    | nil,
  movie:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMovie.t()
    | nil,
  newsTopic:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaNewsTopic.t()
    | nil,
  noExplicitAudio: boolean() | nil,
  playlist:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaMusicPlaylist.t()
    | nil,
  podcast:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaPodcast.t()
    | nil,
  radio:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaRadio.t()
    | nil,
  radioNetwork:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaRadioNetwork.t()
    | nil,
  rawText: String.t() | nil,
  scoreType: String.t() | nil,
  seasonConstraint:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaSeasonConstraint.t()
    | nil,
  song:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaSong.t()
    | nil,
  tag: [String.t()] | nil,
  tvShow:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsMediaTVShow.t()
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.