Class VideoExtendParams.Body
-
- All Implemented Interfaces:
public final class VideoExtendParams.BodyMultipart parameters for extending an existing generated video.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVideoExtendParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringprompt()Updated text prompt that directs the extension generation. final VideoSecondsseconds()Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20). final VideoExtendParams.Videovideo()Reference to the completed video to extend. final MultipartField<String>_prompt()Returns the raw multipart value of prompt. final MultipartField<VideoSeconds>_seconds()Returns the raw multipart value of seconds. final MultipartField<VideoExtendParams.Video>_video()Returns the raw multipart value of video. final Map<String, JsonValue>_additionalProperties()final VideoExtendParams.Body.BuildertoBuilder()final VideoExtendParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static VideoExtendParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
seconds
final VideoSeconds seconds()
Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).
-
video
final VideoExtendParams.Video video()
Reference to the completed video to extend.
-
_prompt
final MultipartField<String> _prompt()
Returns the raw multipart value of prompt.
Unlike prompt, this method doesn't throw if the multipart field has an unexpected type.
-
_seconds
final MultipartField<VideoSeconds> _seconds()
Returns the raw multipart value of seconds.
Unlike seconds, this method doesn't throw if the multipart field has an unexpected type.
-
_video
final MultipartField<VideoExtendParams.Video> _video()
Returns the raw multipart value of video.
Unlike video, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final VideoExtendParams.Body.Builder toBuilder()
-
validate
final VideoExtendParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static VideoExtendParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.prompt() .seconds() .video()
-
-
-
-