public static class FirebaseLanguageIdentificationOptions.Builder extends Object
Builder to create a
FirebaseLanguageIdentificationOptions
instance.
Public Constructor Summary
Public Method Summary
FirebaseLanguageIdentificationOptions |
build()
Creates a new
FirebaseLanguageIdentificationOptions instance.
|
FirebaseLanguageIdentificationOptions.Builder |
setConfidenceThreshold(float confidenceThreshold)
Sets the minimum confidence for the
identifyLanguage(String) or
identifyPossibleLanguages(String) call.
|
Inherited Method Summary
Public Constructors
public FirebaseLanguageIdentificationOptions.Builder ()
Public Methods
public FirebaseLanguageIdentificationOptions build ()
Creates a new
FirebaseLanguageIdentificationOptions
instance.
public FirebaseLanguageIdentificationOptions.Builder setConfidenceThreshold (float confidenceThreshold)
Sets the minimum confidence for the
identifyLanguage(String)
or
identifyPossibleLanguages(String)
call.
If no value is set, a default value is used, depending on the method call.
Parameters
confidenceThreshold | The minimum confidence for the
identifyLanguage(String) or
identifyPossibleLanguages(String) call. |
---|
Returns
- This object, for chaining method calls.