Package video.api.client.api.models
Class VideoUpdatePayload
- java.lang.Object
-
- video.api.client.api.models.VideoUpdatePayload
-
- All Implemented Interfaces:
Serializable,DeepObject
public class VideoUpdatePayload extends Object implements Serializable, DeepObject
VideoUpdatePayload- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoUpdatePayload.LanguageEnumUse this parameter to set the language of the video.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_LANGUAGEstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_MP4_SUPPORTstatic StringSERIALIZED_NAME_PANORAMICstatic StringSERIALIZED_NAME_PLAYER_IDstatic StringSERIALIZED_NAME_PUBLICstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_TRANSCRIPTstatic StringSERIALIZED_NAME_TRANSCRIPT_SUMMARY
-
Constructor Summary
Constructors Constructor Description VideoUpdatePayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoUpdatePayload_public(Boolean _public)VideoUpdatePayloadaddMetadataItem(Metadata metadataItem)VideoUpdatePayloadaddTagsItem(String tagsItem)VideoUpdatePayloaddescription(String description)booleanequals(Object o)StringgetDescription()A brief description of the video.VideoUpdatePayload.LanguageEnumgetLanguage()Use this parameter to set the language of the video.List<Metadata>getMetadata()A list (array) of dictionaries where each dictionary contains a key value pair that describes the video.BooleangetMp4Support()Whether the player supports the mp4 format.BooleangetPanoramic()Whether the video is a 360 degree or immersive video.StringgetPlayerId()The unique ID for the player you want to associate with your video.BooleangetPublic()Whether the video is publicly available or not.List<String>getTags()A list of terms or words you want to tag the video with.StringgetTitle()The title you want to use for your video.BooleangetTranscript()Use this parameter to enable transcription.BooleangetTranscriptSummary()Use this parameter to enable summarization.inthashCode()VideoUpdatePayloadlanguage(VideoUpdatePayload.LanguageEnum language)VideoUpdatePayloadmetadata(List<Metadata> metadata)VideoUpdatePayloadmp4Support(Boolean mp4Support)VideoUpdatePayloadpanoramic(Boolean panoramic)VideoUpdatePayloadplayerId(String playerId)voidsetDescription(String description)voidsetLanguage(VideoUpdatePayload.LanguageEnum language)voidsetMetadata(List<Metadata> metadata)voidsetMp4Support(Boolean mp4Support)voidsetPanoramic(Boolean panoramic)voidsetPlayerId(String playerId)voidsetPublic(Boolean _public)voidsetTags(List<String> tags)voidsetTitle(String title)voidsetTranscript(Boolean transcript)voidsetTranscriptSummary(Boolean transcriptSummary)VideoUpdatePayloadtags(List<String> tags)VideoUpdatePayloadtitle(String title)StringtoString()VideoUpdatePayloadtranscript(Boolean transcript)VideoUpdatePayloadtranscriptSummary(Boolean transcriptSummary)VideoUpdatePayloadunsetPlayerId()
-
-
-
Field Detail
-
SERIALIZED_NAME_PLAYER_ID
public static final String SERIALIZED_NAME_PLAYER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC
public static final String SERIALIZED_NAME_PUBLIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PANORAMIC
public static final String SERIALIZED_NAME_PANORAMIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MP4_SUPPORT
public static final String SERIALIZED_NAME_MP4_SUPPORT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANGUAGE
public static final String SERIALIZED_NAME_LANGUAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSCRIPT
public static final String SERIALIZED_NAME_TRANSCRIPT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSCRIPT_SUMMARY
public static final String SERIALIZED_NAME_TRANSCRIPT_SUMMARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
playerId
public VideoUpdatePayload playerId(String playerId)
-
unsetPlayerId
public VideoUpdatePayload unsetPlayerId()
-
getPlayerId
@Nullable public String getPlayerId()
The unique ID for the player you want to associate with your video.- Returns:
- playerId
-
setPlayerId
public void setPlayerId(String playerId)
-
title
public VideoUpdatePayload title(String title)
-
getTitle
@Nullable public String getTitle()
The title you want to use for your video.- Returns:
- title
-
setTitle
public void setTitle(String title)
-
description
public VideoUpdatePayload description(String description)
-
getDescription
@Nullable public String getDescription()
A brief description of the video.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
_public
public VideoUpdatePayload _public(Boolean _public)
-
getPublic
@Nullable public Boolean getPublic()
Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/).- Returns:
- _public
-
setPublic
public void setPublic(Boolean _public)
-
panoramic
public VideoUpdatePayload panoramic(Boolean panoramic)
-
getPanoramic
@Nullable public Boolean getPanoramic()
Whether the video is a 360 degree or immersive video.- Returns:
- panoramic
-
setPanoramic
public void setPanoramic(Boolean panoramic)
-
mp4Support
public VideoUpdatePayload mp4Support(Boolean mp4Support)
-
getMp4Support
@Nullable public Boolean getMp4Support()
Whether the player supports the mp4 format.- Returns:
- mp4Support
-
setMp4Support
public void setMp4Support(Boolean mp4Support)
-
tags
public VideoUpdatePayload tags(List<String> tags)
-
addTagsItem
public VideoUpdatePayload addTagsItem(String tagsItem)
-
getTags
@Nullable public List<String> getTags()
A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video.- Returns:
- tags
-
metadata
public VideoUpdatePayload metadata(List<Metadata> metadata)
-
addMetadataItem
public VideoUpdatePayload addMetadataItem(Metadata metadataItem)
-
getMetadata
@Nullable public List<Metadata> getMetadata()
A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video.- Returns:
- metadata
-
language
public VideoUpdatePayload language(VideoUpdatePayload.LanguageEnum language)
-
getLanguage
@Nullable public VideoUpdatePayload.LanguageEnum getLanguage()
Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language.- Returns:
- language
-
setLanguage
public void setLanguage(VideoUpdatePayload.LanguageEnum language)
-
transcript
public VideoUpdatePayload transcript(Boolean transcript)
-
getTranscript
@Nullable public Boolean getTranscript()
Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video.- Returns:
- transcript
-
setTranscript
public void setTranscript(Boolean transcript)
-
transcriptSummary
public VideoUpdatePayload transcriptSummary(Boolean transcriptSummary)
-
getTranscriptSummary
@Nullable public Boolean getTranscriptSummary()
Use this parameter to enable summarization. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video.- Returns:
- transcriptSummary
-
setTranscriptSummary
public void setTranscriptSummary(Boolean transcriptSummary)
-
-