Discovery Engine v1 API - Class MediaInfo (1.0.0-beta06)

public sealed class MediaInfo : IMessage<MediaInfo>, IEquatable<MediaInfo>, IDeepCloneable<MediaInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class MediaInfo.

Media-specific user event information.

Inheritance

object > MediaInfo

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

MediaInfo()

public MediaInfo()

MediaInfo(MediaInfo)

public MediaInfo(MediaInfo other)
Parameter
Name Description
other MediaInfo

Properties

HasMediaProgressPercentage

public bool HasMediaProgressPercentage { get; }

Gets whether the "media_progress_percentage" field is set

Property Value
Type Description
bool

MediaProgressDuration

public Duration MediaProgressDuration { get; set; }

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][google.protobuf.Duration.seconds] should be set to 90.

Property Value
Type Description
Duration

MediaProgressPercentage

public float MediaProgressPercentage { get; set; }

Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.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.

Property Value
Type Description
float