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 Type
    Method
    Description
     
     
     
    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.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    The media progress time in seconds, if applicable.
    com.google.protobuf.Duration.Builder
    The media progress time in seconds, if applicable.
    com.google.protobuf.DurationOrBuilder
    The media progress time in seconds, if applicable.
    float
    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.
    boolean
    The media progress time in seconds, if applicable.
    boolean
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(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.
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
    • clear

      public MediaInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MediaInfo.Builder>
    • getDefaultInstanceForType

      public MediaInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MediaInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MediaInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MediaInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MediaInfo.Builder>
    • mergeFrom

      public MediaInfo.Builder mergeFrom(MediaInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasMediaProgressDuration in interface MediaInfoOrBuilder
      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:
      getMediaProgressDuration in interface MediaInfoOrBuilder
      Returns:
      The mediaProgressDuration.
    • setMediaProgressDuration

      public MediaInfo.Builder setMediaProgressDuration(com.google.protobuf.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][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

      public MediaInfo.Builder mergeMediaProgressDuration(com.google.protobuf.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][google.protobuf.Duration.seconds]
       should be set to 90.
       
      .google.protobuf.Duration media_progress_duration = 1;
    • clearMediaProgressDuration

      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][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:
      getMediaProgressDurationOrBuilder in interface MediaInfoOrBuilder
    • 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:
      hasMediaProgressPercentage in interface MediaInfoOrBuilder
      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:
      getMediaProgressPercentage in interface MediaInfoOrBuilder
      Returns:
      The mediaProgressPercentage.
    • setMediaProgressPercentage

      public MediaInfo.Builder 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.
      
       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

      public MediaInfo.Builder 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.