public static final class MediaInfo.Builder extends GeneratedMessageV3.Builder<MediaInfo.Builder> implements MediaInfoOrBuilder
Media-specific user event information.
Protobuf type google.cloud.discoveryengine.v1beta.MediaInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public MediaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public MediaInfo buildPartial()
Returns
public MediaInfo.Builder clear()
Returns
Overrides
public MediaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public MediaInfo.Builder clearMediaProgressDuration()
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 MediaInfo.Builder clearMediaProgressPercentage()
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
public MediaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public MediaInfo.Builder clone()
Returns
Overrides
public MediaInfo getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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 Duration.Builder getMediaProgressDurationBuilder()
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 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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MediaInfo.Builder mergeFrom(MediaInfo other)
Parameter
Returns
public MediaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public MediaInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public MediaInfo.Builder mergeMediaProgressDuration(Duration value)
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;
Parameter
Returns
public final MediaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MediaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MediaInfo.Builder setMediaProgressDuration(Duration value)
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;
Parameter
Returns
public MediaInfo.Builder setMediaProgressDuration(Duration.Builder builderForValue)
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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public MediaInfo.Builder setMediaProgressPercentage(float value)
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;
Parameter
Name | Description |
value | float
The mediaProgressPercentage to set.
|
Returns
public MediaInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final MediaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides