Package com.google.genai.types
Class GenerateVideosOperation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Operation<GenerateVideosResponse,GenerateVideosOperation>
com.google.genai.types.GenerateVideosOperation
public abstract class GenerateVideosOperation
extends Operation<GenerateVideosResponse,GenerateVideosOperation>
A video generation operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GenerateVideosOperation. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for GenerateVideosOperation.fromApiResponse(com.fasterxml.jackson.databind.JsonNode apiResponse, boolean isVertexAi) Creates a new Operation object from an API response.static GenerateVideosOperationDeserializes a JSON string to a GenerateVideosOperation object.abstract Optional<GenerateVideosResponse>response()The generated videos.abstract GenerateVideosOperation.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
GenerateVideosOperation
public GenerateVideosOperation()
-
-
Method Details
-
response
The generated videos.- Specified by:
responsein classOperation<GenerateVideosResponse,GenerateVideosOperation>
-
fromApiResponse
public GenerateVideosOperation fromApiResponse(com.fasterxml.jackson.databind.JsonNode apiResponse, boolean isVertexAi) Description copied from class:OperationCreates a new Operation object from an API response.- Specified by:
fromApiResponsein classOperation<GenerateVideosResponse,GenerateVideosOperation> - Parameters:
apiResponse- The API response.isVertexAi- Whether the API response is from Vertex AI.- Returns:
- The new Operation object.
-
builder
Instantiates a builder for GenerateVideosOperation. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateVideosOperation object.
-