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>)
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)
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)
Overrides
public MediaInfo.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides