Send feedback
Class MediaInfo (0.51.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.51.0 keyboard_arrow_down
public final class MediaInfo extends GeneratedMessageV3 implements MediaInfoOrBuilder
Media-specific user event information.
Protobuf type google.cloud.discoveryengine.v1alpha.MediaInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int MEDIA_PROGRESS_DURATION_FIELD_NUMBER
Field Value
Type
Description
int
public static final int MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static MediaInfo getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static MediaInfo . Builder newBuilder ()
public static MediaInfo . Builder newBuilder ( MediaInfo prototype )
Parameter
Name
Description
prototype
MediaInfo
public static MediaInfo parseDelimitedFrom ( InputStream input )
public static MediaInfo parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MediaInfo parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static MediaInfo parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static MediaInfo parseFrom ( ByteString data )
public static MediaInfo parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MediaInfo parseFrom ( CodedInputStream input )
public static MediaInfo parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MediaInfo parseFrom ( InputStream input )
public static MediaInfo parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MediaInfo parseFrom ( ByteBuffer data )
public static MediaInfo parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<MediaInfo> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public MediaInfo getDefaultInstanceForType ()
public Duration getMediaProgressDuration ()
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.
.google.protobuf.Duration media_progress_duration = 1;
Returns
Type
Description
Duration
The mediaProgressDuration.
public DurationOrBuilder getMediaProgressDurationOrBuilder ()
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.
.google.protobuf.Duration media_progress_duration = 1;
public float getMediaProgressPercentage ()
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.
optional float media_progress_percentage = 2;
Returns
Type
Description
float
The mediaProgressPercentage.
public Parser<MediaInfo> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public boolean hasMediaProgressDuration ()
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.
.google.protobuf.Duration media_progress_duration = 1;
Returns
Type
Description
boolean
Whether the mediaProgressDuration field is set.
public boolean hasMediaProgressPercentage ()
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.
optional float media_progress_percentage = 2;
Returns
Type
Description
boolean
Whether the mediaProgressPercentage field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public MediaInfo . Builder newBuilderForType ()
protected MediaInfo . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public MediaInfo . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]