Package com.google.cloud.bigquery
Class ModelInfo.Builder
java.lang.Object
com.google.cloud.bigquery.ModelInfo.Builder
- Direct Known Subclasses:
Model.Builder
- Enclosing class:
- ModelInfo
A builder for
ModelInfo objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ModelInfobuild()Creates aModelInfoobject.abstract ModelInfo.BuildersetDescription(String description) Sets the user description for this model.abstract ModelInfo.BuildersetEncryptionConfiguration(EncryptionConfiguration configuration) abstract ModelInfo.BuildersetExpirationTime(Long expirationTime) Set the time when this model expires, in milliseconds since the epoch.abstract ModelInfo.BuildersetFriendlyName(String friendlyName) Sets the user-friendly name for this model.abstract ModelInfo.BuilderSet the labels applied to this model.abstract ModelInfo.BuildersetModelId(ModelId modelId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setDescription
Sets the user description for this model. -
setFriendlyName
Sets the user-friendly name for this model. -
setExpirationTime
Set the time when this model expires, in milliseconds since the epoch. If not present, the model persists indefinitely. Expired models will be deleted. -
setLabels
Set 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. -
setModelId
-
setEncryptionConfiguration
-
build
Creates aModelInfoobject.
-