public static class Model.Builder extends ModelInfo.Builder
Modifier and Type | Method and Description |
---|---|
Model |
build()
Creates a
ModelInfo object. |
Model.Builder |
setDescription(String description)
Sets the user description for this model.
|
Model.Builder |
setEncryptionConfiguration(EncryptionConfiguration configuration) |
Model.Builder |
setExpirationTime(Long expirationTime)
Set the time when this model expires, in milliseconds since the epoch.
|
Model.Builder |
setFriendlyName(String friendlyName)
Sets the user-friendly name for this model.
|
Model.Builder |
setLabels(Map<String,String> labels)
Set the labels applied to this model.
|
Model.Builder |
setModelId(ModelId modelId) |
public Model.Builder setDescription(String description)
ModelInfo.Builder
setDescription
in class ModelInfo.Builder
public Model.Builder setExpirationTime(Long expirationTime)
ModelInfo.Builder
setExpirationTime
in class ModelInfo.Builder
public Model.Builder setFriendlyName(String friendlyName)
ModelInfo.Builder
setFriendlyName
in class ModelInfo.Builder
public Model.Builder setModelId(ModelId modelId)
setModelId
in class ModelInfo.Builder
public Model.Builder setLabels(Map<String,String> labels)
ModelInfo.Builder
When used with BigQuery.update(ModelInfo, ModelOption...)
, setting labels
to null
removes all labels; otherwise all keys that are mapped to null
values
are removed and other keys are updated to their respective values.
setLabels
in class ModelInfo.Builder
public Model.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
setEncryptionConfiguration
in class ModelInfo.Builder
public Model build()
ModelInfo.Builder
ModelInfo
object.build
in class ModelInfo.Builder
Copyright © 2023 Google LLC. All rights reserved.