Class LiveServerGoAway

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveServerGoAway

public abstract class LiveServerGoAway extends JsonSerializable
Server will not be able to service client soon.
  • Constructor Details

    • LiveServerGoAway

      public LiveServerGoAway()
  • Method Details

    • timeLeft

      public 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

      public static LiveServerGoAway.Builder builder()
      Instantiates a builder for LiveServerGoAway.
    • toBuilder

      public abstract LiveServerGoAway.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LiveServerGoAway fromJson(String jsonString)
      Deserializes a JSON string to a LiveServerGoAway object.