Table of Contents

Class VeoLoraTuningSpec

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

Tuning Spec for Veo LoRA Model Tuning. This data type is not supported in Gemini API.

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

Properties

HyperParameters

Optional. Hyperparameters for Veo LoRA.

[JsonPropertyName("hyperParameters")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VeoHyperParameters? HyperParameters { get; set; }

Property Value

VeoHyperParameters

TrainingDatasetUri

Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.

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

Property Value

string

ValidationDatasetUri

Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.

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

Property Value

string

VideoOrientation

Optional. The orientation of the video. Defaults to LANDSCAPE.

[JsonPropertyName("videoOrientation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VideoOrientation? VideoOrientation { get; set; }

Property Value

VideoOrientation?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a VeoLoraTuningSpec object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

VeoLoraTuningSpec

The deserialized VeoLoraTuningSpec object, or null if deserialization fails.