Class ModelInfo.Builder (2.45.0)

public abstract static class ModelInfo.Builder

A builder for ModelInfo objects.

Inheritance

java.lang.Object > ModelInfo.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract ModelInfo build()

Creates a ModelInfo object.

Returns
Type Description
ModelInfo

setDescription(String description)

public abstract ModelInfo.Builder setDescription(String description)

Sets the user description for this model.

Parameter
Name Description
description String
Returns
Type Description
ModelInfo.Builder

setEncryptionConfiguration(EncryptionConfiguration configuration)

public abstract ModelInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
Parameter
Name Description
configuration EncryptionConfiguration
Returns
Type Description
ModelInfo.Builder

setExpirationTime(Long expirationTime)

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.

Parameter
Name Description
expirationTime Long
Returns
Type Description
ModelInfo.Builder

setFriendlyName(String friendlyName)

public abstract ModelInfo.Builder setFriendlyName(String friendlyName)

Sets the user-friendly name for this model.

Parameter
Name Description
friendlyName String
Returns
Type Description
ModelInfo.Builder

setLabels(Map<String,String> labels)

public abstract ModelInfo.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
ModelInfo.Builder

setModelId(ModelId modelId)

public abstract ModelInfo.Builder setModelId(ModelId modelId)
Parameter
Name Description
modelId ModelId
Returns
Type Description
ModelInfo.Builder