Class MediaInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder
- All Implemented Interfaces:
MediaInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MediaInfo
public static final class MediaInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
implements MediaInfoOrBuilder
Media-specific user event information.Protobuf type
google.cloud.discoveryengine.v1beta.MediaInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The media progress time in seconds, if applicable.Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration] relative to the media total length.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe media progress time in seconds, if applicable.com.google.protobuf.Duration.BuilderThe media progress time in seconds, if applicable.com.google.protobuf.DurationOrBuilderThe media progress time in seconds, if applicable.floatMedia progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration] relative to the media total length.booleanThe media progress time in seconds, if applicable.booleanMedia progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration] relative to the media total length.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMediaProgressDuration(com.google.protobuf.Duration value) The media progress time in seconds, if applicable.setMediaProgressDuration(com.google.protobuf.Duration value) The media progress time in seconds, if applicable.setMediaProgressDuration(com.google.protobuf.Duration.Builder builderForValue) The media progress time in seconds, if applicable.setMediaProgressPercentage(float value) Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration] relative to the media total length.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MediaInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
-
mergeFrom
public MediaInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MediaInfo.Builder>- Throws:
IOException
-
hasMediaProgressDuration
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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1;- Specified by:
hasMediaProgressDurationin interfaceMediaInfoOrBuilder- Returns:
- Whether the mediaProgressDuration field is set.
-
getMediaProgressDuration
public com.google.protobuf.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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1;- Specified by:
getMediaProgressDurationin interfaceMediaInfoOrBuilder- Returns:
- The mediaProgressDuration.
-
setMediaProgressDuration
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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1; -
setMediaProgressDuration
public MediaInfo.Builder setMediaProgressDuration(com.google.protobuf.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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1; -
mergeMediaProgressDuration
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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1; -
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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1; -
getMediaProgressDurationBuilder
public com.google.protobuf.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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1; -
getMediaProgressDurationOrBuilder
public com.google.protobuf.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][google.protobuf.Duration.seconds] should be set to 90.
.google.protobuf.Duration media_progress_duration = 1;- Specified by:
getMediaProgressDurationOrBuilderin interfaceMediaInfoOrBuilder
-
hasMediaProgressPercentage
public boolean hasMediaProgressPercentage()Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.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;- Specified by:
hasMediaProgressPercentagein interfaceMediaInfoOrBuilder- Returns:
- Whether the mediaProgressPercentage field is set.
-
getMediaProgressPercentage
public float getMediaProgressPercentage()Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.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;- Specified by:
getMediaProgressPercentagein interfaceMediaInfoOrBuilder- Returns:
- The mediaProgressPercentage.
-
setMediaProgressPercentage
Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.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;- Parameters:
value- The mediaProgressPercentage to set.- Returns:
- This builder for chaining.
-
clearMediaProgressPercentage
Media progress should be computed using only the [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.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:
- This builder for chaining.
-