Table of Contents

Class LiveServerGoAway

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

Server will not be able to service client soon.

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

Properties

TimeLeft

The remaining time before the connection will be terminated as ABORTED. The minimal time returned here is specified differently together with the rate limits for a given model.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveServerGoAway object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveServerGoAway

The deserialized LiveServerGoAway object, or null if deserialization fails.