Package com.openai.models.videos
Interface VideoCreateParams.InputReference.Visitor
-
- All Implemented Interfaces:
public interface VideoCreateParams.InputReference.Visitor<T extends Object>An interface that defines how to map each variant of InputReference to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitStream(InputStream stream)Optional reference asset upload or reference object that guides generation. abstract TvisitImageInputReferenceParam(ImageInputReferenceParam imageInputReferenceParam)Optional reference asset upload or reference object that guides generation. Tunknown(JsonValue json)Maps an unknown variant of InputReference to a value of type T. -
-
Method Detail
-
visitStream
abstract T visitStream(InputStream stream)
Optional reference asset upload or reference object that guides generation.
-
visitImageInputReferenceParam
abstract T visitImageInputReferenceParam(ImageInputReferenceParam imageInputReferenceParam)
Optional reference asset upload or reference object that guides generation. Provide exactly one of
image_urlorfile_idwhen using an object.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of InputReference to a value of type T.
An instance of InputReference can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-