Package com.google.genai.types
Class LiveServerGoAway
-
- All Implemented Interfaces:
public abstract class LiveServerGoAway extends JsonSerializable
Server will not be able to service client soon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveServerGoAway.BuilderBuilder for LiveServerGoAway.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveServerGoAway()
-
Method Summary
Modifier and Type Method Description abstract Optional<Duration>timeLeft()The remaining time before the connection will be terminated as ABORTED. static LiveServerGoAway.Builderbuilder()Instantiates a builder for LiveServerGoAway. abstract LiveServerGoAway.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveServerGoAwayfromJson(String jsonString)Deserializes a JSON string to a LiveServerGoAway object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
timeLeft
abstract Optional<Duration> 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.
-
builder
static LiveServerGoAway.Builder builder()
Instantiates a builder for LiveServerGoAway.
-
toBuilder
abstract LiveServerGoAway.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveServerGoAway fromJson(String jsonString)
Deserializes a JSON string to a LiveServerGoAway object.
-
-
-
-