public static final class DownloadModelOptions.DownloadModelOptionsBuilder extends Object
DownloadModelOptions.| Modifier and Type | Method and Description |
|---|---|
DownloadModelOptions |
build()
Creates properly initialized instance of the
DownloadModelOptions. |
DownloadModelOptions.DownloadModelOptionsBuilder |
withExpand(boolean expand)
Creates options with flag to indicate whether downloaded ZIP with model files should be expanded.
|
DownloadModelOptions.DownloadModelOptionsBuilder |
withStage(String stage)
Creates options with TAG associated with particular model's version.
|
DownloadModelOptions.DownloadModelOptionsBuilder |
withVersion(String version)
Creates options with specific model version.
|
public DownloadModelOptions.DownloadModelOptionsBuilder withVersion(String version)
version - the version of the model in the registry.DownloadModelOptions.DownloadModelOptionsBuilder.public DownloadModelOptions.DownloadModelOptionsBuilder withStage(String stage)
stage - the TAG associated with model version, such as: "production", "staging", etc.DownloadModelOptions.DownloadModelOptionsBuilder.public DownloadModelOptions.DownloadModelOptionsBuilder withExpand(boolean expand)
expand - if true the downloaded ZIP with model files will be unzipped.DownloadModelOptions.DownloadModelOptionsBuilder.public DownloadModelOptions build() throws IllegalArgumentException
DownloadModelOptions.DownloadModelOptions.IllegalArgumentException - if simultaneously provided version and stage of the model.Copyright © 2022. All rights reserved.