public static class Model.Builder extends ModelInfo.Builder
| Modifier and Type | Method and Description |
|---|---|
Model |
build()
Creates a
ModelInfo object. |
Model.Builder |
setDescription(String description)
Sets the user description for this model.
|
Model.Builder |
setEncryptionConfiguration(EncryptionConfiguration configuration) |
Model.Builder |
setExpirationTime(Long expirationTime)
Set the time when this model expires, in milliseconds since the epoch.
|
Model.Builder |
setFriendlyName(String friendlyName)
Sets the user-friendly name for this model.
|
Model.Builder |
setLabels(Map<String,String> labels)
Set the labels applied to this model.
|
Model.Builder |
setModelId(ModelId modelId) |
public Model.Builder setDescription(String description)
ModelInfo.BuildersetDescription in class ModelInfo.Builderpublic Model.Builder setExpirationTime(Long expirationTime)
ModelInfo.BuildersetExpirationTime in class ModelInfo.Builderpublic Model.Builder setFriendlyName(String friendlyName)
ModelInfo.BuildersetFriendlyName in class ModelInfo.Builderpublic Model.Builder setModelId(ModelId modelId)
setModelId in class ModelInfo.Builderpublic Model.Builder setLabels(Map<String,String> labels)
ModelInfo.BuilderWhen 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.
setLabels in class ModelInfo.Builderpublic Model.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
setEncryptionConfiguration in class ModelInfo.Builderpublic Model build()
ModelInfo.BuilderModelInfo object.build in class ModelInfo.BuilderCopyright © 2019 Google LLC. All rights reserved.