Class PreTunedModel
-
- All Implemented Interfaces:
public abstract class PreTunedModel extends JsonSerializable
A pre-tuned model for continuous tuning. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classPreTunedModel.BuilderBuilder for PreTunedModel.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description PreTunedModel()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>baseModel()Output only. abstract Optional<String>checkpointId()Optional. abstract Optional<String>tunedModelName()The resource name of the Model. static PreTunedModel.Builderbuilder()Instantiates a builder for PreTunedModel. abstract PreTunedModel.BuildertoBuilder()Creates a builder with the same values as this instance. static PreTunedModelfromJson(String jsonString)Deserializes a JSON string to a PreTunedModel 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
-
baseModel
abstract Optional<String> baseModel()
Output only. The name of the base model this PreTunedModel was tuned from.
-
checkpointId
abstract Optional<String> checkpointId()
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
-
tunedModelName
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
static PreTunedModel.Builder builder()
Instantiates a builder for PreTunedModel.
-
toBuilder
abstract PreTunedModel.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static PreTunedModel fromJson(String jsonString)
Deserializes a JSON string to a PreTunedModel object.
-
-
-
-