Class TunedModel.Builder

java.lang.Object
com.google.genai.types.TunedModel.Builder
Enclosing class:
TunedModel

public abstract static class TunedModel.Builder extends Object
Builder for TunedModel.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • model

      public abstract TunedModel.Builder model(String model)
      Setter for model.

      model: Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}@{version_id}` When tuning from a base model, the version_id will be 1. For continuous tuning, the version id will be incremented by 1 from the last version id in the parent model. E.g., `projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}`

    • endpoint

      public abstract TunedModel.Builder endpoint(String endpoint)
      Setter for endpoint.

      endpoint: Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.

    • checkpoints

      public abstract TunedModel.Builder checkpoints(List<TunedModelCheckpoint> checkpoints)
      Setter for checkpoints.

      checkpoints: The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

    • checkpoints

      public TunedModel.Builder checkpoints(TunedModelCheckpoint... checkpoints)
      Setter for checkpoints.

      checkpoints: The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

    • checkpoints

      public TunedModel.Builder checkpoints(TunedModelCheckpoint.Builder... checkpointsBuilders)
      Setter for checkpoints builder.

      checkpoints: The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

    • build

      public abstract TunedModel build()