Class TunedModel
-
- All Implemented Interfaces:
public abstract class TunedModel extends JsonSerializable
TunedModel for the Tuned Model of a Tuning Job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classTunedModel.BuilderBuilder for TunedModel.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description TunedModel()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()Output only. abstract Optional<String>endpoint()Output only. abstract Optional<List<TunedModelCheckpoint>>checkpoints()The checkpoints associated with this TunedModel. static TunedModel.Builderbuilder()Instantiates a builder for TunedModel. abstract TunedModel.BuildertoBuilder()Creates a builder with the same values as this instance. static TunedModelfromJson(String jsonString)Deserializes a JSON string to a TunedModel 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
-
model
abstract Optional<String> 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
abstract Optional<String> endpoint()
Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
-
checkpoints
abstract Optional<List<TunedModelCheckpoint>> checkpoints()
The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.
-
builder
static TunedModel.Builder builder()
Instantiates a builder for TunedModel.
-
toBuilder
abstract TunedModel.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static TunedModel fromJson(String jsonString)
Deserializes a JSON string to a TunedModel object.
-
-
-
-