public final class DetectionsResourceItems
extends com.google.api.client.json.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 Google Cloud Translation API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
DetectionsResourceItems() |
Modifier and Type | Method and Description |
---|---|
DetectionsResourceItems |
clone() |
java.lang.Float |
getConfidence()
The confidence of the detection result of this language.
|
java.lang.Boolean |
getIsReliable()
A boolean to indicate is the language detection result reliable.
|
java.lang.String |
getLanguage()
The language we detected.
|
DetectionsResourceItems |
set(java.lang.String fieldName,
java.lang.Object value) |
DetectionsResourceItems |
setConfidence(java.lang.Float confidence)
The confidence of the detection result of this language.
|
DetectionsResourceItems |
setIsReliable(java.lang.Boolean isReliable)
A boolean to indicate is the language detection result reliable.
|
DetectionsResourceItems |
setLanguage(java.lang.String language)
The language we detected.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Float getConfidence()
null
for nonepublic DetectionsResourceItems setConfidence(java.lang.Float confidence)
confidence
- confidence or null
for nonepublic java.lang.Boolean getIsReliable()
null
for nonepublic DetectionsResourceItems setIsReliable(java.lang.Boolean isReliable)
isReliable
- isReliable or null
for nonepublic java.lang.String getLanguage()
null
for nonepublic DetectionsResourceItems setLanguage(java.lang.String language)
language
- language or null
for nonepublic DetectionsResourceItems set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public DetectionsResourceItems clone()
clone
in class com.google.api.client.json.GenericJson