Class Model.Builder
-
- All Implemented Interfaces:
public abstract class Model.BuilderBuilder for Model.
-
-
Constructor Summary
Constructors Constructor Description Model.Builder()
-
Method Summary
Modifier and Type Method Description abstract Model.Buildername(String name)Setter for name. Model.BuilderclearName()Clears the value of name field. abstract Model.BuilderdisplayName(String displayName)Setter for displayName. Model.BuilderclearDisplayName()Clears the value of displayName field. abstract Model.Builderdescription(String description)Setter for description. Model.BuilderclearDescription()Clears the value of description field. abstract Model.Builderversion(String version)Setter for version. Model.BuilderclearVersion()Clears the value of version field. abstract Model.Builderendpoints(List<Endpoint> endpoints)Setter for endpoints. Model.Builderendpoints(Array<Endpoint> endpoints)Setter for endpoints. Model.Builderendpoints(Array<Endpoint.Builder> endpointsBuilders)Setter for endpoints builder. Model.BuilderclearEndpoints()Clears the value of endpoints field. abstract Model.Builderlabels(Map<String, String> labels)Setter for labels. Model.BuilderclearLabels()Clears the value of labels field. abstract Model.BuildertunedModelInfo(TunedModelInfo tunedModelInfo)Setter for tunedModelInfo. Model.BuildertunedModelInfo(TunedModelInfo.Builder tunedModelInfoBuilder)Setter for tunedModelInfo builder. Model.BuilderclearTunedModelInfo()Clears the value of tunedModelInfo field. abstract Model.BuilderinputTokenLimit(Integer inputTokenLimit)Setter for inputTokenLimit. Model.BuilderclearInputTokenLimit()Clears the value of inputTokenLimit field. abstract Model.BuilderoutputTokenLimit(Integer outputTokenLimit)Setter for outputTokenLimit. Model.BuilderclearOutputTokenLimit()Clears the value of outputTokenLimit field. abstract Model.BuildersupportedActions(List<String> supportedActions)Setter for supportedActions. Model.BuildersupportedActions(Array<String> supportedActions)Setter for supportedActions. Model.BuilderclearSupportedActions()Clears the value of supportedActions field. abstract Model.BuilderdefaultCheckpointId(String defaultCheckpointId)Setter for defaultCheckpointId. Model.BuilderclearDefaultCheckpointId()Clears the value of defaultCheckpointId field. abstract Model.Buildercheckpoints(List<Checkpoint> checkpoints)Setter for checkpoints. Model.Buildercheckpoints(Array<Checkpoint> checkpoints)Setter for checkpoints. Model.Buildercheckpoints(Array<Checkpoint.Builder> checkpointsBuilders)Setter for checkpoints builder. Model.BuilderclearCheckpoints()Clears the value of checkpoints field. abstract Model.Buildertemperature(Float temperature)Setter for temperature. Model.BuilderclearTemperature()Clears the value of temperature field. abstract Model.BuildermaxTemperature(Float maxTemperature)Setter for maxTemperature. Model.BuilderclearMaxTemperature()Clears the value of maxTemperature field. abstract Model.BuildertopP(Float topP)Setter for topP. Model.BuilderclearTopP()Clears the value of topP field. abstract Model.BuildertopK(Integer topK)Setter for topK. Model.BuilderclearTopK()Clears the value of topK field. abstract Model.Builderthinking(boolean thinking)Setter for thinking. Model.BuilderclearThinking()Clears the value of thinking field. abstract Modelbuild()-
-
Method Detail
-
name
abstract Model.Builder name(String name)
Setter for name.
name: Resource name of the model.
-
clearName
@CanIgnoreReturnValue() Model.Builder clearName()
Clears the value of name field.
-
displayName
abstract Model.Builder displayName(String displayName)
Setter for displayName.
displayName: Display name of the model.
-
clearDisplayName
@CanIgnoreReturnValue() Model.Builder clearDisplayName()
Clears the value of displayName field.
-
description
abstract Model.Builder description(String description)
Setter for description.
description: Description of the model.
-
clearDescription
@CanIgnoreReturnValue() Model.Builder clearDescription()
Clears the value of description field.
-
version
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.
-
clearVersion
@CanIgnoreReturnValue() Model.Builder clearVersion()
Clears the value of version field.
-
endpoints
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
@CanIgnoreReturnValue() Model.Builder endpoints(Array<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
@CanIgnoreReturnValue() Model.Builder endpoints(Array<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.
-
clearEndpoints
@CanIgnoreReturnValue() Model.Builder clearEndpoints()
Clears the value of endpoints field.
-
labels
abstract Model.Builder labels(Map<String, String> labels)
Setter for labels.
labels: Labels with user-defined metadata to organize your models.
-
clearLabels
@CanIgnoreReturnValue() Model.Builder clearLabels()
Clears the value of labels field.
-
tunedModelInfo
abstract Model.Builder tunedModelInfo(TunedModelInfo tunedModelInfo)
Setter for tunedModelInfo.
tunedModelInfo: Information about the tuned model from the base model.
-
tunedModelInfo
@CanIgnoreReturnValue() Model.Builder tunedModelInfo(TunedModelInfo.Builder tunedModelInfoBuilder)
Setter for tunedModelInfo builder.
tunedModelInfo: Information about the tuned model from the base model.
-
clearTunedModelInfo
@CanIgnoreReturnValue() Model.Builder clearTunedModelInfo()
Clears the value of tunedModelInfo field.
-
inputTokenLimit
abstract Model.Builder inputTokenLimit(Integer inputTokenLimit)
Setter for inputTokenLimit.
inputTokenLimit: The maximum number of input tokens that the model can handle.
-
clearInputTokenLimit
@CanIgnoreReturnValue() Model.Builder clearInputTokenLimit()
Clears the value of inputTokenLimit field.
-
outputTokenLimit
abstract Model.Builder outputTokenLimit(Integer outputTokenLimit)
Setter for outputTokenLimit.
outputTokenLimit: The maximum number of output tokens that the model can generate.
-
clearOutputTokenLimit
@CanIgnoreReturnValue() Model.Builder clearOutputTokenLimit()
Clears the value of outputTokenLimit field.
-
supportedActions
abstract Model.Builder supportedActions(List<String> supportedActions)
Setter for supportedActions.
supportedActions: List of actions that are supported by the model.
-
supportedActions
@CanIgnoreReturnValue() Model.Builder supportedActions(Array<String> supportedActions)
Setter for supportedActions.
supportedActions: List of actions that are supported by the model.
-
clearSupportedActions
@CanIgnoreReturnValue() Model.Builder clearSupportedActions()
Clears the value of supportedActions field.
-
defaultCheckpointId
abstract Model.Builder defaultCheckpointId(String defaultCheckpointId)
Setter for defaultCheckpointId.
defaultCheckpointId: The default checkpoint id of a model version.
-
clearDefaultCheckpointId
@CanIgnoreReturnValue() Model.Builder clearDefaultCheckpointId()
Clears the value of defaultCheckpointId field.
-
checkpoints
abstract Model.Builder checkpoints(List<Checkpoint> checkpoints)
Setter for checkpoints.
checkpoints: The checkpoints of the model.
-
checkpoints
@CanIgnoreReturnValue() Model.Builder checkpoints(Array<Checkpoint> checkpoints)
Setter for checkpoints.
checkpoints: The checkpoints of the model.
-
checkpoints
@CanIgnoreReturnValue() Model.Builder checkpoints(Array<Checkpoint.Builder> checkpointsBuilders)
Setter for checkpoints builder.
checkpoints: The checkpoints of the model.
-
clearCheckpoints
@CanIgnoreReturnValue() Model.Builder clearCheckpoints()
Clears the value of checkpoints field.
-
temperature
abstract Model.Builder temperature(Float temperature)
Setter for temperature.
temperature: Temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.
-
clearTemperature
@CanIgnoreReturnValue() Model.Builder clearTemperature()
Clears the value of temperature field.
-
maxTemperature
abstract Model.Builder maxTemperature(Float maxTemperature)
Setter for maxTemperature.
maxTemperature: The maximum temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.
-
clearMaxTemperature
@CanIgnoreReturnValue() Model.Builder clearMaxTemperature()
Clears the value of maxTemperature field.
-
topP
abstract Model.Builder topP(Float topP)
Setter for topP.
topP: Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It's recommended to adjust either temperature or `top_p`, but not both.
-
clearTopP
@CanIgnoreReturnValue() Model.Builder clearTopP()
Clears the value of topP field.
-
topK
abstract Model.Builder topK(Integer topK)
Setter for topK.
topK: Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
-
clearTopK
@CanIgnoreReturnValue() Model.Builder clearTopK()
Clears the value of topK field.
-
thinking
abstract Model.Builder thinking(boolean thinking)
Setter for thinking.
thinking: Whether the model supports thinking features. If true, thoughts are returned only if the model supports thought and thoughts are available.
-
clearThinking
@CanIgnoreReturnValue() Model.Builder clearThinking()
Clears the value of thinking field.
-
-
-
-