Class Model.Builder (2.35.0)

publicstaticclass Model.BuilderextendsModelInfo.Builder

Inheritance

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

Methods

build()

publicModelbuild()

Creates a ModelInfo object.

Returns
Type Description
Model
Overrides

setDescription(String description)

publicModel.BuildersetDescription(Stringdescription)

Sets the user description for this model.

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

setEncryptionConfiguration(EncryptionConfiguration configuration)

publicModel.BuildersetEncryptionConfiguration(EncryptionConfigurationconfiguration)
Parameter
Name Description
configuration EncryptionConfiguration
Returns
Type Description
Model.Builder
Overrides

setExpirationTime(Long expirationTime)

publicModel.BuildersetExpirationTime(LongexpirationTime)

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)

publicModel.BuildersetFriendlyName(StringfriendlyName)

Sets the user-friendly name for this model.

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

setLabels(Map<String,String> labels)

publicModel.BuildersetLabels(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)

publicModel.BuildersetModelId(ModelIdmodelId)
Parameter
Name Description
modelId ModelId
Returns
Type Description
Model.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.