Package com.google.genai.types
Class GenerateVideosOperation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateVideosOperation
A video generation operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateVideosOperation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GenerateVideosOperation.done()
If the value is `false`, it means the operation is still in progress.error()
The error result of the operation in case of failure or cancellation.static GenerateVideosOperation
Deserializes a JSON string to a GenerateVideosOperation object.metadata()
Service-specific metadata associated with the operation.name()
The server-assigned name, which is only unique within the same service that originally returns it.abstract Optional<GenerateVideosResponse>
response()
The generated videos.abstract GenerateVideosOperation.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GenerateVideosOperation
public GenerateVideosOperation()
-
-
Method Details
-
name
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. -
metadata
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. -
done
If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. -
error
The error result of the operation in case of failure or cancellation. -
response
The generated videos. -
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.
-