Table of Contents

Class UpdateModelConfig

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

Configuration for updating a tuned model.

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

Properties

DefaultCheckpointId

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

Property Value

string

Description

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

Property Value

string

DisplayName

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

Property Value

string

HttpOptions

Used to override HTTP request options.

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

Property Value

HttpOptions

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a UpdateModelConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UpdateModelConfig

The deserialized UpdateModelConfig object, or null if deserialization fails.