Table of Contents

Struct VideoGenerationMaskMode

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

Enum for the mask mode of a video generation mask.

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

Properties

AllValues

public static IReadOnlyList<VideoGenerationMaskMode> AllValues { get; }

Property Value

IReadOnlyList<VideoGenerationMaskMode>

Insert

The image mask contains a masked rectangular region which is applied on the first frame of the input video. The object described in the prompt is inserted into this region and will appear in subsequent frames.

public static VideoGenerationMaskMode Insert { get; }

Property Value

VideoGenerationMaskMode

Outpaint

The image mask contains a masked rectangular region where the input video will go. The remaining area will be generated. Video masks are not supported.

public static VideoGenerationMaskMode Outpaint { get; }

Property Value

VideoGenerationMaskMode

Remove

The image mask is used to determine an object in the first video frame to track. This object is removed from the video.

public static VideoGenerationMaskMode Remove { get; }

Property Value

VideoGenerationMaskMode

RemoveStatic

The image mask is used to determine a region in the video. Objects in this region will be removed.

public static VideoGenerationMaskMode RemoveStatic { get; }

Property Value

VideoGenerationMaskMode

Value

public string Value { get; }

Property Value

string

Methods

Equals(VideoGenerationMaskMode)

public bool Equals(VideoGenerationMaskMode other)

Parameters

other VideoGenerationMaskMode

Returns

bool

FromString(string)

public static VideoGenerationMaskMode FromString(string value)

Parameters

value string

Returns

VideoGenerationMaskMode

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator VideoGenerationMaskMode(string)

public static implicit operator VideoGenerationMaskMode(string value)

Parameters

value string

Returns

VideoGenerationMaskMode