Package org.mozilla.geckoview
Class TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder
Object
org.mozilla.geckoview.TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder
- Enclosing class:
- TranslationsController.RuntimeTranslation.ModelManagementOptions
@AnyThread
public static class TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder
extends Object
Builder for Model Management Options
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builder for Model Management Options.languageToManage
(String language) Language builder setter.Operation builder setter.operationLevel
(String operationLevel) Operation level builder setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
languageToManage
@NonNull public TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder languageToManage(@NonNull String language) Language builder setter.- Parameters:
language
- that should be managed. No need to set in the case of a global operation level.- Returns:
- the language parameter for the constructor
-
operation
@NonNull public TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder operation(@NonNull String operation) Operation builder setter.- Parameters:
operation
- that should be performed- Returns:
- the operation parameter for the constructor
-
operationLevel
@NonNull public TranslationsController.RuntimeTranslation.ModelManagementOptions.Builder operationLevel(@NonNull String operationLevel) Operation level builder setter.- Parameters:
operationLevel
- the level of the operation, e.g., language, all, or cache Default is to operate on all.- Returns:
- the operation level parameter for the constructor
-
build
Builder for Model Management Options.- Returns:
- a constructed ModelManagementOptions populated from builder options
-