TranslateRemoteModel
Stay organized with collections
Save and categorize content based on your preferences.
Information about a downloaded or to-be-downloaded model for translation.
Please do not instantiate with English language given it is built-in. Otherwise such
instance cannot be downloaded or deleted.
Public Method Summary
boolean |
equals
( Object
o) Indicates whether some other object is "equal to" this one.
|
String
|
|
int |
hashCode
() Returns a hash code value for the object.
|
Inherited Method Summary
From class com.google.mlkit.common.model.RemoteModel
From class java.lang.Object
Public Methods
public boolean
equals
( Object
o)
Indicates whether some other object is "equal to" this one.
public int
hashCode
()
Returns a hash code value for the object.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eTranslateRemoteModel\u003c/code\u003e provides information about downloaded or to-be-downloaded translation models.\u003c/p\u003e\n"],["\u003cp\u003eIt's recommended to avoid instantiating this class with the English language as it's built-in and instances for English cannot be downloaded or deleted.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the language associated with the model using \u003ccode\u003egetLanguage()\u003c/code\u003e and use the \u003ccode\u003eTranslateRemoteModel.Builder\u003c/code\u003e nested class for object creation.\u003c/p\u003e\n"]]],[],null,["# TranslateRemoteModel\n\npublic class **TranslateRemoteModel** extends RemoteModel \nInformation about a downloaded or to-be-downloaded model for translation.\n\nPlease do not instantiate with English language given it is built-in. Otherwise such\ninstance cannot be downloaded or deleted. \n\n### Nested Class Summary\n\n|-------|---|---|--------------------------------------------------------------------------------------------------------------|\n| class | [TranslateRemoteModel.Builder](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel.Builder) || Builder for a [TranslateRemoteModel](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel). |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is \"equal to\" this one. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getLanguage](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel#getLanguage())() The [TranslateLanguage.Language](/android/reference/com/google/mlkit/nl/translate/TranslateLanguage.Language) associated with this model. |\n| int | [hashCode](/android/reference/com/google/mlkit/nl/translate/TranslateRemoteModel#hashCode())() Returns a hash code value for the object. |\n\n### Inherited Method Summary\n\nFrom class com.google.mlkit.common.model.RemoteModel \n\n|-------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| int | hashCode() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\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 Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\nIndicates whether some other object is \"equal to\" this one. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getLanguage** ()\n\nThe [TranslateLanguage.Language](/android/reference/com/google/mlkit/nl/translate/TranslateLanguage.Language)\nassociated with this model. \n\n#### public int **hashCode** ()\n\nReturns a hash code value for the object."]]