Class ModelInfo.Builder (2.37.2)

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
TypeDescription
ModelInfo

setDescription(String description)

public abstract ModelInfo.Builder setDescription(String description)

Sets the user description for this model.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
ModelInfo.Builder

setEncryptionConfiguration(EncryptionConfiguration configuration)

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

setFriendlyName(String friendlyName)

public abstract ModelInfo.Builder setFriendlyName(String friendlyName)

Sets the user-friendly name for this model.

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

setModelId(ModelId modelId)

public abstract ModelInfo.Builder setModelId(ModelId modelId)
Parameter
NameDescription
modelIdModelId
Returns
TypeDescription
ModelInfo.Builder