Package com.google.genai.types
Class GenerateVideosResponse
-
- All Implemented Interfaces:
public abstract class GenerateVideosResponse extends JsonSerializable
Response with generated videos.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGenerateVideosResponse.BuilderBuilder for GenerateVideosResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GenerateVideosResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<GeneratedVideo>>generatedVideos()List of the generated videos abstract Optional<Integer>raiMediaFilteredCount()Returns if any videos were filtered due to RAI policies. abstract Optional<List<String>>raiMediaFilteredReasons()Returns rai failure reasons if any. static GenerateVideosResponse.Builderbuilder()Instantiates a builder for GenerateVideosResponse. abstract GenerateVideosResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static GenerateVideosResponsefromJson(String jsonString)Deserializes a JSON string to a GenerateVideosResponse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
generatedVideos
abstract Optional<List<GeneratedVideo>> generatedVideos()
List of the generated videos
-
raiMediaFilteredCount
abstract Optional<Integer> raiMediaFilteredCount()
Returns if any videos were filtered due to RAI policies.
-
raiMediaFilteredReasons
abstract Optional<List<String>> raiMediaFilteredReasons()
Returns rai failure reasons if any.
-
builder
static GenerateVideosResponse.Builder builder()
Instantiates a builder for GenerateVideosResponse.
-
toBuilder
abstract GenerateVideosResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GenerateVideosResponse fromJson(String jsonString)
Deserializes a JSON string to a GenerateVideosResponse object.
-
-
-
-