Class ModelStatus

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

public abstract class ModelStatus extends JsonSerializable
The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. This data type is not supported in Vertex AI.
  • Constructor Details

    • ModelStatus

      public ModelStatus()
  • Method Details

    • message

      public abstract Optional<String> message()
      A message explaining the model status.
    • modelStage

      public abstract Optional<ModelStage> modelStage()
      The stage of the underlying model.
    • retirementTime

      public abstract Optional<Instant> retirementTime()
      The time at which the model will be retired.
    • builder

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

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

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