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 forModelInfo
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ModelInfo
build()
Creates aModelInfo
object.abstract ModelInfo.Builder
setDescription(String description)
Sets the user description for this model.abstract ModelInfo.Builder
setEncryptionConfiguration(EncryptionConfiguration configuration)
abstract ModelInfo.Builder
setExpirationTime(Long expirationTime)
Set the time when this model expires, in milliseconds since the epoch.abstract ModelInfo.Builder
setFriendlyName(String friendlyName)
Sets the user-friendly name for this model.abstract ModelInfo.Builder
setLabels(Map<String,String> labels)
Set the labels applied to this model.abstract ModelInfo.Builder
setModelId(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...)
, settinglabels
tonull
removes all labels; otherwise all keys that are mapped tonull
values 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 aModelInfo
object.
-
-