public static final class MediaInfo.Builder extends GeneratedMessageV3.Builder<MediaInfo.Builder> implements MediaInfoOrBuilder
Media-specific user event information.
Protobuf type google.cloud.discoveryengine.v1alpha.MediaInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public MediaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MediaInfo buildPartial()
public MediaInfo.Builder clear()
Overrides
public MediaInfo.Builder clearField(Descriptors.FieldDescriptor field)
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;
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;
public MediaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public MediaInfo.Builder clone()
Overrides
public MediaInfo getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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 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()
Overrides
public final boolean isInitialized()
Overrides
public MediaInfo.Builder mergeFrom(MediaInfo other)
public MediaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public MediaInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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 |
Name |
Description |
value |
Duration
|
public final MediaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public MediaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
Duration
|
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
|
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.
|
public MediaInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final MediaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides