1.0.0-beta25 (latest) 1.0.0-beta24

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

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

Media-specific user event information.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> MediaInfo

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MediaInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MediaInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MediaInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### MediaInfo()

    public MediaInfo()

### MediaInfo(MediaInfo)

    public MediaInfo(MediaInfo other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo` |

## Properties

### HasMediaProgressPercentage

    public bool HasMediaProgressPercentage { get; }

Gets whether the "media_progress_percentage" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### 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** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### MediaProgressPercentage

    public float MediaProgressPercentage { get; set; }

Media progress should be computed using only the
\[media_progress_duration\]\[google.cloud.discoveryengine.v1beta.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** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |