Package com.google.genai.types
Class ModelStatus
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ModelStatus
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 -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelStatus.Builderbuilder()Instantiates a builder for ModelStatus.static ModelStatusDeserializes a JSON string to a ModelStatus object.message()A message explaining the model status.abstract Optional<ModelStage>The stage of the underlying model.The time at which the model will be retired.abstract ModelStatus.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ModelStatus
public ModelStatus()
-
-
Method Details
-
message
A message explaining the model status. -
modelStage
The stage of the underlying model. -
retirementTime
The time at which the model will be retired. -
builder
Instantiates a builder for ModelStatus. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ModelStatus object.
-