Table of Contents

Class GenerateVideosResponse

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

Response with generated videos.

public record GenerateVideosResponse : IEquatable<GenerateVideosResponse>
Inheritance
GenerateVideosResponse
Implements
Inherited Members

Properties

GeneratedVideos

List of the generated videos

[JsonPropertyName("generatedVideos")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GeneratedVideo>? GeneratedVideos { get; set; }

Property Value

List<GeneratedVideo>

RaiMediaFilteredCount

Returns if any videos were filtered due to RAI policies.

[JsonPropertyName("raiMediaFilteredCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? RaiMediaFilteredCount { get; set; }

Property Value

int?

RaiMediaFilteredReasons

Returns rai failure reasons if any.

[JsonPropertyName("raiMediaFilteredReasons")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? RaiMediaFilteredReasons { get; set; }

Property Value

List<string>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GenerateVideosResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GenerateVideosResponse

The deserialized GenerateVideosResponse object, or null if deserialization fails.