Class ModelStatus

  • All Implemented Interfaces:

    
    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class ModelStatus.Builder

      Builder for ModelStatus.

    • Constructor Summary

      Constructors 
      Constructor Description
      ModelStatus()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> message() A message explaining the model status.
      abstract Optional<ModelStage> modelStage() The stage of the underlying model.
      abstract Optional<Instant> retirementTime() The time at which the model will be retired.
      static ModelStatus.Builder builder() Instantiates a builder for ModelStatus.
      abstract ModelStatus.Builder toBuilder() Creates a builder with the same values as this instance.
      static ModelStatus fromJson(String jsonString) Deserializes a JSON string to a ModelStatus 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