public final class SupportedLanguage extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Translation API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SupportedLanguage() |
| Modifier and Type | Method and Description |
|---|---|
SupportedLanguage |
clone() |
String |
getDisplayName()
Human readable name of the language localized in the display language specified in the request.
|
String |
getLanguageCode()
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en',
'ja'.
|
Boolean |
getSupportSource()
Can be used as source language.
|
Boolean |
getSupportTarget()
Can be used as target language.
|
SupportedLanguage |
set(String fieldName,
Object value) |
SupportedLanguage |
setDisplayName(String displayName)
Human readable name of the language localized in the display language specified in the request.
|
SupportedLanguage |
setLanguageCode(String languageCode)
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en',
'ja'.
|
SupportedLanguage |
setSupportSource(Boolean supportSource)
Can be used as source language.
|
SupportedLanguage |
setSupportTarget(Boolean supportTarget)
Can be used as target language.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getDisplayName()
null for nonepublic SupportedLanguage setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getLanguageCode()
null for nonepublic SupportedLanguage setLanguageCode(String languageCode)
languageCode - languageCode or null for nonepublic Boolean getSupportSource()
null for nonepublic SupportedLanguage setSupportSource(Boolean supportSource)
supportSource - supportSource or null for nonepublic Boolean getSupportTarget()
null for nonepublic SupportedLanguage setSupportTarget(Boolean supportTarget)
supportTarget - supportTarget or null for nonepublic SupportedLanguage set(String fieldName, Object value)
set in class GenericJsonpublic SupportedLanguage clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.