Class Checkpoint

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

public abstract class Checkpoint extends JsonSerializable
Describes the machine learning model version checkpoint.
  • Constructor Details

    • Checkpoint

      public Checkpoint()
  • Method Details

    • checkpointId

      public abstract Optional<String> checkpointId()
      The ID of the checkpoint.
    • epoch

      public abstract Optional<Long> epoch()
      The epoch of the checkpoint.
    • step

      public abstract Optional<Long> step()
      The step of the checkpoint.
    • builder

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

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

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