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 class PreTunedModel.Builder

      Builder for PreTunedModel.

    • Constructor Summary

      Constructors 
      Constructor Description
      PreTunedModel()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.Builder builder() Instantiates a builder for PreTunedModel.
      abstract PreTunedModel.Builder toBuilder() Creates a builder with the same values as this instance.
      static PreTunedModel fromJson(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
    • Constructor Detail

      • PreTunedModel

        PreTunedModel()
    • 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}`