public final class MediaInfo extends GeneratedMessageV3 implements MediaInfoOrBuilder
Media-specific user event information.
Protobuf type google.cloud.discoveryengine.v1beta.MediaInfo
Static Fields
public static final int MEDIA_PROGRESS_DURATION_FIELD_NUMBER
Field Value
public static final int MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER
Field Value
Static Methods
public static MediaInfo getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static MediaInfo.Builder newBuilder()
Returns
public static MediaInfo.Builder newBuilder(MediaInfo prototype)
Parameter
Returns
public static MediaInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MediaInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MediaInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static MediaInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MediaInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static MediaInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MediaInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MediaInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MediaInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MediaInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MediaInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static MediaInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<MediaInfo> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public MediaInfo getDefaultInstanceForType()
Returns
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;
Returns
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()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
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
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MediaInfo.Builder newBuilderForType()
Returns
protected MediaInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public MediaInfo.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions