Table of Contents

Class Video

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

A generated video.

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

Properties

MimeType

Video encoding, for example video/mp4.

[JsonPropertyName("mimeType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? MimeType { get; set; }

Property Value

string

Uri

Path to another storage.

[JsonPropertyName("uri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Uri { get; set; }

Property Value

string

VideoBytes

Video bytes.

[JsonPropertyName("videoBytes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public byte[]? VideoBytes { get; set; }

Property Value

byte[]

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a Video object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

Video

The deserialized Video object, or null if deserialization fails.