Class Model.Builder (2.33.2)

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
TypeDescription
Model
Overrides

setDescription(String description)

public Model.Builder setDescription(String description)

Sets the user description for this model.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
Model.Builder
Overrides

setEncryptionConfiguration(EncryptionConfiguration configuration)

public Model.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
Parameter
NameDescription
configurationEncryptionConfiguration
Returns
TypeDescription
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
NameDescription
expirationTimeLong
Returns
TypeDescription
Model.Builder
Overrides

setFriendlyName(String friendlyName)

public Model.Builder setFriendlyName(String friendlyName)

Sets the user-friendly name for this model.

Parameter
NameDescription
friendlyNameString
Returns
TypeDescription
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
NameDescription
labelsMap<String,String>
Returns
TypeDescription
Model.Builder
Overrides

setModelId(ModelId modelId)

public Model.Builder setModelId(ModelId modelId)
Parameter
NameDescription
modelIdModelId
Returns
TypeDescription
Model.Builder
Overrides