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.videointelligence.v1p1beta1.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, unknownFieldsmemoizedSizememoizedHashCode| 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PHRASES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SpeechContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SpeechContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SpeechContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SpeechContext.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SpeechContext.Builder newBuilder()
public static SpeechContext.Builder newBuilder(SpeechContext prototype)
public SpeechContext.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SpeechContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SpeechContext getDefaultInstance()
public static Parser<SpeechContext> parser()
public Parser<SpeechContext> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SpeechContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder