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
public static class Model.Builder extends ModelInfo.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model
build()
Creates aModelInfo
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)
-
-
-
Method Detail
-
setDescription
public Model.Builder setDescription(String description)
Description copied from class:ModelInfo.Builder
Sets the user description for this model.- Specified by:
setDescription
in classModelInfo.Builder
-
setExpirationTime
public Model.Builder setExpirationTime(Long expirationTime)
Description copied from class:ModelInfo.Builder
Set 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:
setExpirationTime
in classModelInfo.Builder
-
setFriendlyName
public Model.Builder setFriendlyName(String friendlyName)
Description copied from class:ModelInfo.Builder
Sets the user-friendly name for this model.- Specified by:
setFriendlyName
in classModelInfo.Builder
-
setModelId
public Model.Builder setModelId(ModelId modelId)
- Specified by:
setModelId
in classModelInfo.Builder
-
setLabels
public Model.Builder setLabels(Map<String,String> labels)
Description copied from class:ModelInfo.Builder
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.- Specified by:
setLabels
in classModelInfo.Builder
-
setEncryptionConfiguration
public Model.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
- Specified by:
setEncryptionConfiguration
in classModelInfo.Builder
-
build
public Model build()
Description copied from class:ModelInfo.Builder
Creates aModelInfo
object.- Specified by:
build
in classModelInfo.Builder
-
-