Table of Contents

Class GenerateVideosOperation

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

A video generation operation.

public record GenerateVideosOperation : Operation<GenerateVideosOperation>, IEquatable<Operation<GenerateVideosOperation>>, IEquatable<GenerateVideosOperation>
Inheritance
GenerateVideosOperation
Implements
Inherited Members

Properties

Response

The generated videos.

[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GenerateVideosResponse? Response { get; set; }

Property Value

GenerateVideosResponse

Methods

FromApiResponse(JsonNode, bool)

Creates a new GenerateVideosOperation object from an API response.

public override GenerateVideosOperation? FromApiResponse(JsonNode apiResponse, bool isVertexAI)

Parameters

apiResponse JsonNode
isVertexAI bool

Returns

GenerateVideosOperation

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GenerateVideosOperation object.

public static GenerateVideosOperation? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GenerateVideosOperation

The deserialized GenerateVideosOperation object, or null if deserialization fails.