Class Model.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      public abstract Model.Builder name(String name)
      Setter for name.

      name: Resource name of the model.

    • displayName

      public abstract Model.Builder displayName(String displayName)
      Setter for displayName.

      displayName: Display name of the model.

    • description

      public abstract Model.Builder description(String description)
      Setter for description.

      description: Description of the model.

    • version

      public abstract Model.Builder version(String version)
      Setter for version.

      version: Version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model ID. The version ID is an auto-incrementing decimal number in string representation.

    • endpoints

      public abstract Model.Builder endpoints(List<Endpoint> endpoints)
      Setter for endpoints.

      endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.

    • endpoints

      public Model.Builder endpoints(Endpoint... endpoints)
      Setter for endpoints.

      endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.

    • endpoints

      public Model.Builder endpoints(Endpoint.Builder... endpointsBuilders)
      Setter for endpoints builder.

      endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.

    • labels

      public abstract Model.Builder labels(Map<String,String> labels)
      Setter for labels.

      labels: Labels with user-defined metadata to organize your models.

    • tunedModelInfo

      public abstract Model.Builder tunedModelInfo(TunedModelInfo tunedModelInfo)
      Setter for tunedModelInfo.

      tunedModelInfo: Information about the tuned model from the base model.

    • tunedModelInfo

      public Model.Builder tunedModelInfo(TunedModelInfo.Builder tunedModelInfoBuilder)
      Setter for tunedModelInfo builder.

      tunedModelInfo: Information about the tuned model from the base model.

    • inputTokenLimit

      public abstract Model.Builder inputTokenLimit(Integer inputTokenLimit)
      Setter for inputTokenLimit.

      inputTokenLimit: The maximum number of input tokens that the model can handle.

    • outputTokenLimit

      public abstract Model.Builder outputTokenLimit(Integer outputTokenLimit)
      Setter for outputTokenLimit.

      outputTokenLimit: The maximum number of output tokens that the model can generate.

    • supportedActions

      public abstract Model.Builder supportedActions(List<String> supportedActions)
      Setter for supportedActions.

      supportedActions: List of actions that are supported by the model.

    • supportedActions

      public Model.Builder supportedActions(String... supportedActions)
      Setter for supportedActions.

      supportedActions: List of actions that are supported by the model.

    • defaultCheckpointId

      public abstract Model.Builder defaultCheckpointId(String defaultCheckpointId)
      Setter for defaultCheckpointId.

      defaultCheckpointId: The default checkpoint id of a model version.

    • checkpoints

      public abstract Model.Builder checkpoints(List<Checkpoint> checkpoints)
      Setter for checkpoints.

      checkpoints: The checkpoints of the model.

    • checkpoints

      public Model.Builder checkpoints(Checkpoint... checkpoints)
      Setter for checkpoints.

      checkpoints: The checkpoints of the model.

    • checkpoints

      public Model.Builder checkpoints(Checkpoint.Builder... checkpointsBuilders)
      Setter for checkpoints builder.

      checkpoints: The checkpoints of the model.

    • build

      public abstract Model build()