Class VideoGenerationReferenceImage

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VideoGenerationReferenceImage

public abstract class VideoGenerationReferenceImage extends JsonSerializable
A reference image for video generation.
  • Constructor Details

    • VideoGenerationReferenceImage

      public VideoGenerationReferenceImage()
  • Method Details

    • image

      public abstract Optional<Image> image()
      The reference image.
    • referenceType

      public abstract Optional<String> referenceType()
      The type of the reference image, which defines how the reference image will be used to generate the video. Supported values are 'asset' or 'style'.
    • builder

      public static VideoGenerationReferenceImage.Builder builder()
      Instantiates a builder for VideoGenerationReferenceImage.
    • toBuilder

      public abstract VideoGenerationReferenceImage.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static VideoGenerationReferenceImage fromJson(String jsonString)
      Deserializes a JSON string to a VideoGenerationReferenceImage object.