Package com.google.genai.types
Class Checkpoint
-
- All Implemented Interfaces:
public abstract class Checkpoint extends JsonSerializable
Describes the machine learning model version checkpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCheckpoint.BuilderBuilder for Checkpoint.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description Checkpoint()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>checkpointId()The ID of the checkpoint. abstract Optional<Long>epoch()The epoch of the checkpoint. abstract Optional<Long>step()The step of the checkpoint. static Checkpoint.Builderbuilder()Instantiates a builder for Checkpoint. abstract Checkpoint.BuildertoBuilder()Creates a builder with the same values as this instance. static CheckpointfromJson(String jsonString)Deserializes a JSON string to a Checkpoint 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
-
checkpointId
abstract Optional<String> checkpointId()
The ID of the checkpoint.
-
builder
static Checkpoint.Builder builder()
Instantiates a builder for Checkpoint.
-
toBuilder
abstract Checkpoint.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static Checkpoint fromJson(String jsonString)
Deserializes a JSON string to a Checkpoint object.
-
-
-
-