public final class WordInfo
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 Cloud Speech-to-Text 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 |
---|
WordInfo() |
Modifier and Type | Method and Description |
---|---|
WordInfo |
clone() |
java.lang.Float |
getConfidence()
The confidence estimate between 0.0 and 1.0.
|
java.lang.String |
getEndTime()
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken
word.
|
java.lang.Integer |
getSpeakerTag()
Output only.
|
java.lang.String |
getStartTime()
Time offset relative to the beginning of the audio, and corresponding to the start of the
spoken word.
|
java.lang.String |
getWord()
The word corresponding to this set of information.
|
WordInfo |
set(java.lang.String fieldName,
java.lang.Object value) |
WordInfo |
setConfidence(java.lang.Float confidence)
The confidence estimate between 0.0 and 1.0.
|
WordInfo |
setEndTime(java.lang.String endTime)
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken
word.
|
WordInfo |
setSpeakerTag(java.lang.Integer speakerTag)
Output only.
|
WordInfo |
setStartTime(java.lang.String startTime)
Time offset relative to the beginning of the audio, and corresponding to the start of the
spoken word.
|
WordInfo |
setWord(java.lang.String word)
The word corresponding to this set of information.
|
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 WordInfo setConfidence(java.lang.Float confidence)
confidence
- confidence or null
for nonepublic java.lang.String getEndTime()
null
for nonepublic WordInfo setEndTime(java.lang.String endTime)
endTime
- endTime or null
for nonepublic java.lang.Integer getSpeakerTag()
null
for nonepublic WordInfo setSpeakerTag(java.lang.Integer speakerTag)
speakerTag
- speakerTag or null
for nonepublic java.lang.String getStartTime()
null
for nonepublic WordInfo setStartTime(java.lang.String startTime)
startTime
- startTime or null
for nonepublic java.lang.String getWord()
null
for nonepublic WordInfo setWord(java.lang.String word)
word
- word or null
for nonepublic WordInfo set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WordInfo clone()
clone
in class com.google.api.client.json.GenericJson