TranslateRemoteModel.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 Builder (String language)
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 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eTranslateRemoteModel.Builder\u003c/code\u003e is used to create instances of \u003ccode\u003eTranslateRemoteModel\u003c/code\u003e, which likely represents a remote translation model.\u003c/p\u003e\n"],["\u003cp\u003eThe builder requires a language code to be specified during instantiation using its constructor.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eTranslateRemoteModel\u003c/code\u003e instance is created by calling the \u003ccode\u003ebuild()\u003c/code\u003e method on the builder.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits methods from the \u003ccode\u003eObject\u003c/code\u003e class, offering standard functionalities like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `TranslateRemoteModel.Builder` class facilitates the creation of `TranslateRemoteModel` instances. It includes a constructor, `Builder(String language)`, which takes a language string as input. The `build()` method is the primary action, responsible for generating a new `TranslateRemoteModel` object. The class also inherits methods from the base Object class, like `clone()`, `equals()`, and `toString()`, to manage generic object behaviors.\n"],null,["# TranslateRemoteModel.Builder\n\npublic static class **TranslateRemoteModel.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nBuilder for a [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel). \n\n### Public Constructor Summary\n\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel.Builder#Builder(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) language) |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel) | [build](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel.Builder#build())() Creates a new [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel) instance. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public **Builder** ([String](//developer.android.com/reference/java/lang/String.html) language)\n\nPublic Methods\n--------------\n\n#### public [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel)\n**build** ()\n\nCreates a new [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel)\ninstance."]]