public final class SpeechContext
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 |
---|
SpeechContext() |
Modifier and Type | Method and Description |
---|---|
SpeechContext |
clone() |
java.util.List<java.lang.String> |
getPhrases()
A list of strings containing words and phrases "hints" so that the speech recognition is more
likely to recognize them.
|
SpeechContext |
set(java.lang.String fieldName,
java.lang.Object value) |
SpeechContext |
setPhrases(java.util.List<java.lang.String> phrases)
A list of strings containing words and phrases "hints" so that the speech recognition is more
likely to recognize them.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<java.lang.String> getPhrases()
null
for nonepublic SpeechContext setPhrases(java.util.List<java.lang.String> phrases)
phrases
- phrases or null
for nonepublic SpeechContext set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SpeechContext clone()
clone
in class com.google.api.client.json.GenericJson