public static final class SpeechContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder> implements SpeechContextOrBuilder
Provides "hints" to the speech recognizer to favor specific words and phrases in the results.Protobuf type
google.cloud.speech.v1beta1.SpeechContext| Modifier and Type | Method and Description |
|---|---|
SpeechContext.Builder |
addAllPhrases(java.lang.Iterable<java.lang.String> values)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
SpeechContext.Builder |
addPhrases(java.lang.String value)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
SpeechContext.Builder |
addPhrasesBytes(com.google.protobuf.ByteString value)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
SpeechContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SpeechContext |
build() |
SpeechContext |
buildPartial() |
SpeechContext.Builder |
clear() |
SpeechContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpeechContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpeechContext.Builder |
clearPhrases()
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
SpeechContext.Builder |
clone() |
SpeechContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getPhrases(int index)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
com.google.protobuf.ByteString |
getPhrasesBytes(int index)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
int |
getPhrasesCount()
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
com.google.protobuf.ProtocolStringList |
getPhrasesList()
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpeechContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpeechContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpeechContext.Builder |
mergeFrom(SpeechContext other) |
SpeechContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpeechContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SpeechContext.Builder |
setPhrases(int index,
java.lang.String value)
[Optional] A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
SpeechContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SpeechContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechContext.Builder>public SpeechContext.Builder mergeFrom(SpeechContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public SpeechContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechContext.Builder>java.io.IOExceptionpublic com.google.protobuf.ProtocolStringList getPhrasesList()
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;getPhrasesList in interface SpeechContextOrBuilderpublic int getPhrasesCount()
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;getPhrasesCount in interface SpeechContextOrBuilderpublic java.lang.String getPhrases(int index)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;getPhrases in interface SpeechContextOrBuilderpublic com.google.protobuf.ByteString getPhrasesBytes(int index)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;getPhrasesBytes in interface SpeechContextOrBuilderpublic SpeechContext.Builder setPhrases(int index, java.lang.String value)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;public SpeechContext.Builder addPhrases(java.lang.String value)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;public SpeechContext.Builder addAllPhrases(java.lang.Iterable<java.lang.String> values)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;public SpeechContext.Builder clearPhrases()
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;public SpeechContext.Builder addPhrasesBytes(com.google.protobuf.ByteString value)
[Optional] A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).
repeated string phrases = 1;public final SpeechContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>public final SpeechContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechContext.Builder>