public final class

VideoObjectBuilder

extends IndexableBuilder<VideoObjectBuilder>
java.lang.Object
   ↳ com.google.firebase.appindexing.builders.IndexableBuilder<com.google.firebase.appindexing.builders.VideoObjectBuilder>
     ↳ com.google.firebase.appindexing.builders.VideoObjectBuilder

Class Overview

Builder to construct an Indexable for a video object.

For reference, see: http://schema.org/VideoObject.

Summary

Public Methods
VideoObjectBuilder setAuthor(PersonBuilder author)
Sets the author of the video object.
VideoObjectBuilder setDuration(long durationInSeconds)
Sets the duration of the video object in seconds.
VideoObjectBuilder setDurationWatched(long durationWatchedInSeconds)
Sets the duration of the video object which the user has already watched in seconds.
VideoObjectBuilder setLocationCreated(PlaceBuilder place)
Sets the place where the video was taken.
VideoObjectBuilder setSeriesName(String seriesName)
Sets the series name this video object belongs to.
VideoObjectBuilder setUploadDate(Date uploadDate)
Sets the date when this video object was uploaded.
[Expand]
Inherited Methods
From class com.google.firebase.appindexing.builders.IndexableBuilder
From class java.lang.Object

Public Methods

public VideoObjectBuilder setAuthor (PersonBuilder author)

Sets the author of the video object.

Parameters
author PersonBuilder: The author of the video object.
Returns
VideoObjectBuilder

public VideoObjectBuilder setDuration (long durationInSeconds)

Sets the duration of the video object in seconds.

Parameters
durationInSeconds long: The duration of the video object in seconds.
Returns
VideoObjectBuilder

public VideoObjectBuilder setDurationWatched (long durationWatchedInSeconds)

Sets the duration of the video object which the user has already watched in seconds.

Parameters
durationWatchedInSeconds long: The duration of the video object which the user has already watched in seconds. The value must be less than or equal to the value used in setDuration(long).
Returns
VideoObjectBuilder

public VideoObjectBuilder setLocationCreated (PlaceBuilder place)

Sets the place where the video was taken.

Parameters
place PlaceBuilder
Returns
VideoObjectBuilder

public VideoObjectBuilder setSeriesName (String seriesName)

Sets the series name this video object belongs to. The name can represent a channel name, a subscription name or a playlist name.

Parameters
seriesName String: The series name this video object belongs to.
Returns
VideoObjectBuilder

public VideoObjectBuilder setUploadDate (Date uploadDate)

Sets the date when this video object was uploaded.

Parameters
uploadDate Date: The date when this video object was uploaded.
Returns
VideoObjectBuilder