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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMediaInfo\u003c/code\u003e class is part of the Google Cloud Discovery Engine v1 API and provides media-specific user event information.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eMediaInfo\u003c/code\u003e is 1.6.0, but there are older versions available, ranging from 1.5.0 down to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMediaInfo\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties like \u003ccode\u003eMediaProgressDuration\u003c/code\u003e and \u003ccode\u003eMediaProgressPercentage\u003c/code\u003e, which track the user's progress in consuming media, either by time or by percentage of total length.\u003c/p\u003e\n"],["\u003cp\u003eThere are two public constructors available, one for an empty MediaInfo object and the other that takes another MediaInfo object as an argument.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class MediaInfo (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.MediaInfo)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.MediaInfo) \n\n public sealed class MediaInfo : IMessage\u003cMediaInfo\u003e, IEquatable\u003cMediaInfo\u003e, IDeepCloneable\u003cMediaInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class MediaInfo.\n\nMedia-specific user event information. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MediaInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.MediaInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.MediaInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### MediaInfo()\n\n public MediaInfo()\n\n### MediaInfo(MediaInfo)\n\n public MediaInfo(MediaInfo other)\n\nProperties\n----------\n\n### HasMediaProgressPercentage\n\n public bool HasMediaProgressPercentage { get; }\n\nGets whether the \"media_progress_percentage\" field is set\n\n### MediaProgressDuration\n\n public Duration MediaProgressDuration { get; set; }\n\nThe media progress time in seconds, if applicable.\nFor example, if the end user has finished 90 seconds of a playback video,\nthen\n\\[MediaInfo.media_progress_duration.seconds\\]\\[google.protobuf.Duration.seconds\\]\nshould be set to 90.\n\n### MediaProgressPercentage\n\n public float MediaProgressPercentage { get; set; }\n\nMedia progress should be computed using only the\n\\[media_progress_duration\\]\\[google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration\\]\nrelative to the media total length.\n\nThis value must be between `[0, 1.0]` inclusive.\n\nIf this is not a playback or the progress cannot be computed (e.g. ongoing\nlivestream), this field should be unset."]]