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
public abstract static class ModelInfo.Builder extends Object
A builder forModelInfoobjects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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.BuildersetLabels(Map<String,String> labels)Set the labels applied to this model.abstract ModelInfo.BuildersetModelId(ModelId modelId)
-
-
-
Method Detail
-
setDescription
public abstract ModelInfo.Builder setDescription(String description)
Sets the user description for this model.
-
setFriendlyName
public abstract ModelInfo.Builder setFriendlyName(String friendlyName)
Sets the user-friendly name for this model.
-
setExpirationTime
public abstract ModelInfo.Builder setExpirationTime(Long expirationTime)
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
public abstract ModelInfo.Builder setLabels(Map<String,String> labels)
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
public abstract ModelInfo.Builder setModelId(ModelId modelId)
-
setEncryptionConfiguration
public abstract ModelInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
-
build
public abstract ModelInfo build()
Creates aModelInfoobject.
-
-