Package com.google.genai.types
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 classModelStatus.BuilderBuilder for ModelStatus.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ModelStatus()
-
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.Builderbuilder()Instantiates a builder for ModelStatus. abstract ModelStatus.BuildertoBuilder()Creates a builder with the same values as this instance. static ModelStatusfromJson(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
-
-
Method Detail
-
modelStage
abstract Optional<ModelStage> modelStage()
The stage of the underlying model.
-
retirementTime
abstract Optional<Instant> retirementTime()
The time at which the model will be retired.
-
builder
static ModelStatus.Builder builder()
Instantiates a builder for ModelStatus.
-
toBuilder
abstract ModelStatus.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ModelStatus fromJson(String jsonString)
Deserializes a JSON string to a ModelStatus object.
-
-
-
-