Table of Contents

Struct VideoOrientation

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

The orientation of the video. Defaults to LANDSCAPE. This enum is not supported in Gemini API.

[JsonConverter(typeof(VideoOrientationConverter))]
public readonly record struct VideoOrientation : IEquatable<VideoOrientation>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<VideoOrientation> AllValues { get; }

Property Value

IReadOnlyList<VideoOrientation>

Landscape

Landscape orientation (e.g. 16:9, 1280x720).

public static VideoOrientation Landscape { get; }

Property Value

VideoOrientation

Portrait

Portrait orientation (e.g. 9:16, 720x1280).

public static VideoOrientation Portrait { get; }

Property Value

VideoOrientation

Value

public string Value { get; }

Property Value

string

VideoOrientationUnspecified

Unspecified video orientation. Defaults to landscape.

public static VideoOrientation VideoOrientationUnspecified { get; }

Property Value

VideoOrientation

Methods

Equals(VideoOrientation)

public bool Equals(VideoOrientation other)

Parameters

other VideoOrientation

Returns

bool

FromString(string)

public static VideoOrientation FromString(string value)

Parameters

value string

Returns

VideoOrientation

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator VideoOrientation(string)

public static implicit operator VideoOrientation(string value)

Parameters

value string

Returns

VideoOrientation