public final class SpeechContext extends GeneratedMessageV3 implements SpeechContextOrBuilder
Provides "hints" to the speech recognizer to favor specific words and phrases in the results.Protobuf type
google.cloud.speech.v1.SpeechContext
Modifier and Type | Class and Description |
---|---|
static class |
SpeechContext.Builder
Provides "hints" to the speech recognizer to favor specific words and phrases
in the results.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
PHRASES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static SpeechContext |
getDefaultInstance() |
SpeechContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<SpeechContext> |
getParserForType() |
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.
|
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.
|
ProtocolStringList |
getPhrasesList()
*Optional* A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SpeechContext.Builder |
newBuilder() |
static SpeechContext.Builder |
newBuilder(SpeechContext prototype) |
SpeechContext.Builder |
newBuilderForType() |
protected SpeechContext.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static SpeechContext |
parseDelimitedFrom(java.io.InputStream input) |
static SpeechContext |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static SpeechContext |
parseFrom(byte[] data) |
static SpeechContext |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static SpeechContext |
parseFrom(java.nio.ByteBuffer data) |
static SpeechContext |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static SpeechContext |
parseFrom(ByteString data) |
static SpeechContext |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static SpeechContext |
parseFrom(CodedInputStream input) |
static SpeechContext |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static SpeechContext |
parseFrom(java.io.InputStream input) |
static SpeechContext |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<SpeechContext> |
parser() |
SpeechContext.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PHRASES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 SpeechContextOrBuilder
public 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 SpeechContextOrBuilder
public 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 SpeechContextOrBuilder
public 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 SpeechContextOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SpeechContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SpeechContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SpeechContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SpeechContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SpeechContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static SpeechContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public SpeechContext.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SpeechContext.Builder newBuilder()
public static SpeechContext.Builder newBuilder(SpeechContext prototype)
public SpeechContext.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SpeechContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SpeechContext getDefaultInstance()
public static Parser<SpeechContext> parser()
public Parser<SpeechContext> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SpeechContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder