Package com.google.cloud.bigquery
Class Model.Builder
java.lang.Object
com.google.cloud.bigquery.ModelInfo.Builder
com.google.cloud.bigquery.Model.Builder
- Enclosing class:
- Model
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aModelInfoobject.setDescription(String description) Sets the user description for this model.setEncryptionConfiguration(EncryptionConfiguration configuration) setExpirationTime(Long expirationTime) Set the time when this model expires, in milliseconds since the epoch.setFriendlyName(String friendlyName) Sets the user-friendly name for this model.Set the labels applied to this model.setModelId(ModelId modelId)
-
Method Details
-
setDescription
Description copied from class:ModelInfo.BuilderSets the user description for this model.- Specified by:
setDescriptionin classModelInfo.Builder
-
setExpirationTime
Description copied from class:ModelInfo.BuilderSet the time when this model expires, in milliseconds since the epoch. If not present, the model persists indefinitely. Expired models will be deleted.- Specified by:
setExpirationTimein classModelInfo.Builder
-
setFriendlyName
Description copied from class:ModelInfo.BuilderSets the user-friendly name for this model.- Specified by:
setFriendlyNamein classModelInfo.Builder
-
setModelId
- Specified by:
setModelIdin classModelInfo.Builder
-
setLabels
Description copied from class:ModelInfo.BuilderSet the labels applied to this model.When used with
BigQuery.update(ModelInfo, ModelOption...), settinglabelstonullremoves all labels; otherwise all keys that are mapped tonullvalues are removed and other keys are updated to their respective values.- Specified by:
setLabelsin classModelInfo.Builder
-
setEncryptionConfiguration
- Specified by:
setEncryptionConfigurationin classModelInfo.Builder
-
build
Description copied from class:ModelInfo.BuilderCreates aModelInfoobject.- Specified by:
buildin classModelInfo.Builder
-