FirebaseModelOptions.Builder

public static class FirebaseModelOptions.Builder extends Object

Builder class of FirebaseModelOptions.

Public Constructor Summary

FirebaseModelOptions.Builder()
Creates a new builder to build FirebaseModelOptions.

Public Method Summary

FirebaseModelOptions
build()
Builds a FirebaseModelOptions.
FirebaseModelOptions.Builder
setLocalModelName(String localModelName)
Sets a local model name to FirebaseModelOptions.
FirebaseModelOptions.Builder
setRemoteModelName(String remoteModelName)
Sets a cloud model name to FirebaseModelOptions.

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public FirebaseModelOptions.Builder ()

Creates a new builder to build FirebaseModelOptions.

Public Methods

public FirebaseModelOptions build ()

Builds a FirebaseModelOptions.

public FirebaseModelOptions.Builder setLocalModelName (String localModelName)

Sets a local model name to FirebaseModelOptions. Note local model has a lower priority than the cloud model, if specified. It will only be used if there is no FirebaseRemoteModel or the download of FirebaseRemoteModel fails.

public FirebaseModelOptions.Builder setRemoteModelName (String remoteModelName)

Sets a cloud model name to FirebaseModelOptions. Once set, it has higher priority than the local model. If you would like to use local model, do not assign cloud model source.

It would trigger a model downloading if there is no previous downloaded model under the given model name, or the model in cloud is different from the latest downloaded model on device.

Create custom image classification models from your own training data with AutoML Vision Edge.

Updated Feb 27, 2025

Firebase ML lets you add powerful machine learning features to your app with ready-to-use APIs and support for custom model deployment.

Updated Feb 28, 2025

Firebase ML lets you add powerful machine learning features to your app with ready-to-use APIs and support for custom model deployment.

Updated Feb 28, 2025