Interface GoogleVideoExtension
-
- All Superinterfaces:
Extension
@ProviderType public interface GoogleVideoExtension extends Extension
An extension to add video links and metadata to anUrl
.- See Also:
- Video sitemaps and alternatives
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GoogleVideoExtension.Access
static class
GoogleVideoExtension.Platform
static class
GoogleVideoExtension.PriceType
static class
GoogleVideoExtension.Resolution
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull GoogleVideoExtension
addPrice(float price, @NotNull java.lang.String currency, @Nullable GoogleVideoExtension.PriceType type, @Nullable GoogleVideoExtension.Resolution resolution)
@NotNull GoogleVideoExtension
setAccessRestriction(@Nullable GoogleVideoExtension.Access restriction, @Nullable java.util.Collection<java.lang.String> countryCodes)
restriction
@NotNull GoogleVideoExtension
setCategory(@Nullable java.lang.String category)
@NotNull GoogleVideoExtension
setDescription(@NotNull java.lang.String description)
@NotNull GoogleVideoExtension
setDuration(@Nullable java.lang.Integer duration)
@NotNull GoogleVideoExtension
setExpirationDate(@Nullable java.time.LocalDate date)
@NotNull GoogleVideoExtension
setExpirationDate(@Nullable java.time.OffsetDateTime date)
@NotNull GoogleVideoExtension
setFamilyFriendly(@Nullable java.lang.Boolean familyFriendly)
@NotNull GoogleVideoExtension
setLive(@Nullable java.lang.Boolean live)
@NotNull GoogleVideoExtension
setPlatformRestriction(@Nullable GoogleVideoExtension.Access restriction, @Nullable java.util.Collection<GoogleVideoExtension.Platform> platforms)
platform
@NotNull GoogleVideoExtension
setPlayerUrl(@Nullable java.lang.String playerLocation)
player_loc
@NotNull GoogleVideoExtension
setPublicationDate(@Nullable java.time.LocalDate date)
@NotNull GoogleVideoExtension
setPublicationDate(@Nullable java.time.OffsetDateTime date)
@NotNull GoogleVideoExtension
setRating(@Nullable java.lang.Float rating)
@NotNull GoogleVideoExtension
setRequiresSubscription(@Nullable java.lang.Boolean requiresSubscription)
@NotNull GoogleVideoExtension
setTags(@Nullable java.util.Collection<java.lang.String> tags)
@NotNull GoogleVideoExtension
setThumbnail(@NotNull java.lang.String thumbnailLocation)
thumbnail_loc
@NotNull GoogleVideoExtension
setTitle(@NotNull java.lang.String title)
@NotNull GoogleVideoExtension
setUploader(@Nullable java.lang.String uploader)
@NotNull GoogleVideoExtension
setUploaderUrl(@Nullable java.lang.String uploaderInfo)
@NotNull GoogleVideoExtension
setUrl(@Nullable java.lang.String contentLocation)
content_loc
@NotNull GoogleVideoExtension
setViewCount(@Nullable java.lang.Integer viewCount)
-
-
-
Method Detail
-
setThumbnail
@NotNull @NotNull GoogleVideoExtension setThumbnail(@NotNull @NotNull java.lang.String thumbnailLocation)
thumbnail_loc
- Parameters:
thumbnailLocation
-- Returns:
-
setTitle
@NotNull @NotNull GoogleVideoExtension setTitle(@NotNull @NotNull java.lang.String title)
-
setDescription
@NotNull @NotNull GoogleVideoExtension setDescription(@NotNull @NotNull java.lang.String description)
-
setUrl
@NotNull @NotNull GoogleVideoExtension setUrl(@Nullable @Nullable java.lang.String contentLocation)
content_loc
- Parameters:
contentLocation
-- Returns:
-
setPlayerUrl
@NotNull @NotNull GoogleVideoExtension setPlayerUrl(@Nullable @Nullable java.lang.String playerLocation)
player_loc
- Parameters:
playerLocation
-- Returns:
-
setDuration
@NotNull @NotNull GoogleVideoExtension setDuration(@Nullable @Nullable java.lang.Integer duration)
-
setExpirationDate
@NotNull @NotNull GoogleVideoExtension setExpirationDate(@Nullable @Nullable java.time.LocalDate date)
-
setExpirationDate
@NotNull @NotNull GoogleVideoExtension setExpirationDate(@Nullable @Nullable java.time.OffsetDateTime date)
-
setRating
@NotNull @NotNull GoogleVideoExtension setRating(@Nullable @Nullable java.lang.Float rating)
-
setViewCount
@NotNull @NotNull GoogleVideoExtension setViewCount(@Nullable @Nullable java.lang.Integer viewCount)
-
setPublicationDate
@NotNull @NotNull GoogleVideoExtension setPublicationDate(@Nullable @Nullable java.time.LocalDate date)
-
setPublicationDate
@NotNull @NotNull GoogleVideoExtension setPublicationDate(@Nullable @Nullable java.time.OffsetDateTime date)
-
setTags
@NotNull @NotNull GoogleVideoExtension setTags(@Nullable @Nullable java.util.Collection<java.lang.String> tags)
-
setCategory
@NotNull @NotNull GoogleVideoExtension setCategory(@Nullable @Nullable java.lang.String category)
-
setFamilyFriendly
@NotNull @NotNull GoogleVideoExtension setFamilyFriendly(@Nullable @Nullable java.lang.Boolean familyFriendly)
-
setAccessRestriction
@NotNull @NotNull GoogleVideoExtension setAccessRestriction(@Nullable @Nullable GoogleVideoExtension.Access restriction, @Nullable @Nullable java.util.Collection<java.lang.String> countryCodes)
restriction
- Parameters:
restriction
-countryCodes
-- Returns:
-
setPlatformRestriction
@NotNull @NotNull GoogleVideoExtension setPlatformRestriction(@Nullable @Nullable GoogleVideoExtension.Access restriction, @Nullable @Nullable java.util.Collection<GoogleVideoExtension.Platform> platforms)
platform
- Parameters:
restriction
-platforms
-- Returns:
-
addPrice
@NotNull @NotNull GoogleVideoExtension addPrice(float price, @NotNull @NotNull java.lang.String currency, @Nullable @Nullable GoogleVideoExtension.PriceType type, @Nullable @Nullable GoogleVideoExtension.Resolution resolution)
-
setRequiresSubscription
@NotNull @NotNull GoogleVideoExtension setRequiresSubscription(@Nullable @Nullable java.lang.Boolean requiresSubscription)
-
setUploader
@NotNull @NotNull GoogleVideoExtension setUploader(@Nullable @Nullable java.lang.String uploader)
-
setUploaderUrl
@NotNull @NotNull GoogleVideoExtension setUploaderUrl(@Nullable @Nullable java.lang.String uploaderInfo)
-
setLive
@NotNull @NotNull GoogleVideoExtension setLive(@Nullable @Nullable java.lang.Boolean live)
-
-