Class Model.Builder (2.40.1)

public static class Model.Builder extends ModelInfo.Builder

Inheritance

java.lang.Object > ModelInfo.Builder > Model.Builder

Methods

build()

public Model build()

Creates a ModelInfo object.

Returns
Type Description
Model
Overrides

setDescription(String description)

public Model.Builder setDescription(String description)

Sets the user description for this model.

Parameter
Name Description
description String
Returns
Type Description
Model.Builder
Overrides

setEncryptionConfiguration(EncryptionConfiguration configuration)

public Model.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
Parameter
Name Description
configuration EncryptionConfiguration
Returns
Type Description
Model.Builder
Overrides

setExpirationTime(Long expirationTime)

public Model.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.

Parameter
Name Description
expirationTime Long
Returns
Type Description
Model.Builder
Overrides

setFriendlyName(String friendlyName)

public Model.Builder setFriendlyName(String friendlyName)

Sets the user-friendly name for this model.

Parameter
Name Description
friendlyName String
Returns
Type Description
Model.Builder
Overrides

setLabels(Map<String,String> labels)

public Model.Builder setLabels(Map<String,String> labels)

Set the labels applied to this model.

When used with BigQuery#update(ModelInfo, ModelOption...), setting labels to null removes all labels; otherwise all keys that are mapped to null values are removed and other keys are updated to their respective values.

Parameter
Name Description
labels Map<String,String>
Returns
Type Description
Model.Builder
Overrides

setModelId(ModelId modelId)

public Model.Builder setModelId(ModelId modelId)
Parameter
Name Description
modelId ModelId
Returns
Type Description
Model.Builder
Overrides