Class LiveServerGoAway
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Server notice that the connection will be closed soon. The client should reconnect (for example using a session resumption handle) before TimeLeft elapses.
public class LiveServerGoAway
- Inheritance
-
LiveServerGoAway
- Inherited Members
- Extension Methods
Properties
ErrorCode
Not sent by the Live API; always null. Use TimeLeft.
[Obsolete("The Live API GoAway message only contains timeLeft. Use TimeLeft or TimeLeftDuration.", false)]
[JsonPropertyName("errorCode")]
public int? ErrorCode { get; set; }
Property Value
- int?
ErrorMessage
Not sent by the Live API; always null. Use TimeLeft.
[Obsolete("The Live API GoAway message only contains timeLeft. Use TimeLeft or TimeLeftDuration.", false)]
[JsonPropertyName("errorMessage")]
public string? ErrorMessage { get; set; }
Property Value
Reconnect
Not sent by the Live API; always null. A GoAway always means the client should reconnect.
[Obsolete("The Live API GoAway message only contains timeLeft. A GoAway always means the client should reconnect.", false)]
[JsonPropertyName("reconnect")]
public bool? Reconnect { get; set; }
Property Value
- bool?
RetryAfterSeconds
Not sent by the Live API; always null. Use TimeLeft.
[Obsolete("The Live API GoAway message only contains timeLeft. Use TimeLeft or TimeLeftDuration.", false)]
[JsonPropertyName("retryAfterSeconds")]
public int? RetryAfterSeconds { get; set; }
Property Value
- int?
TimeLeft
The remaining time before the connection is terminated, as a protobuf duration string (for example "30s").
[JsonPropertyName("timeLeft")]
public string? TimeLeft { get; set; }
Property Value
TimeLeftDuration
[JsonIgnore]
public TimeSpan? TimeLeftDuration { get; }