Class PreTunedModel

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

public abstract class PreTunedModel extends JsonSerializable
A pre-tuned model for continuous tuning.
  • Constructor Details

    • PreTunedModel

      public PreTunedModel()
  • Method Details

    • baseModel

      public abstract Optional<String> baseModel()
      Output only. The name of the base model this PreTunedModel was tuned from.
    • checkpointId

      public abstract Optional<String> checkpointId()
      Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
    • tunedModelName

      public abstract Optional<String> tunedModelName()
      The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`
    • builder

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

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

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