View Source GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1MediaInfo (google_api_discovery_engine v0.27.0)

Media-specific user event information.

Attributes

  • mediaProgressDuration (type: String.t, default: nil) - The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be set to 90.
  • mediaProgressPercentage (type: number(), default: nil) - Media progress should be computed using only the media_progress_duration relative to the media total length. This value must be between [0, 1.0] inclusive. If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1MediaInfo{
    mediaProgressDuration: String.t() | nil,
    mediaProgressPercentage: number() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.