FirebaseLocalModel.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
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 FirebaseLocalModel.Builder (String modelName)
Public Methods
Sets the asset subpath of the asset model file
Make sure your model asset file is not compressed by using aaptOptions. For more
details, refer to documentation.
Sets the absolute file path of the local model file.
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 2020-08-14 UTC.
[null,null,["Last updated 2020-08-14 UTC."],[],[],null,["public static class **FirebaseLocalModel.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nBuilder class of [FirebaseLocalModel](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel). \n\nPublic Constructor Summary\n\nPublic Method Summary\n\nInherited Method Summary \nFrom class java.lang.Object \n\nPublic Constructors \n\npublic **FirebaseLocalModel.Builder** ([String](//developer.android.com/reference/java/lang/String.html) modelName) \nCreates a new builder to build [FirebaseLocalModel](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel).\n\nPublic Methods \n\npublic [FirebaseLocalModel](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel) **build**\n() \n\nReturns\n\n- an instance of [FirebaseLocalModel](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel) with provided info. \n\npublic [FirebaseLocalModel.Builder](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel.Builder) **setAssetFilePath** ([String](//developer.android.com/reference/java/lang/String.html) assetFilePath) \nSets the asset subpath of the asset model file\n\nMake sure your model asset file is not compressed by using aaptOptions. For more\ndetails, refer to [documentation](//firebase.google.com/docs/ml/android/use-custom-models#local_model). \n\npublic [FirebaseLocalModel.Builder](/docs/reference/android/com/google/firebase/ml/common/modeldownload/FirebaseLocalModel.Builder) **setFilePath** ([String](//developer.android.com/reference/java/lang/String.html) filePath) \nSets the absolute file path of the local model file."]]