public final class SpeechWordInfo extends com.google.protobuf.GeneratedMessageV3 implements SpeechWordInfoOrBuilder
Information for a word recognized by the speech recognizer.Protobuf type
google.cloud.dialogflow.v2beta1.SpeechWordInfo| Modifier and Type | Class and Description |
|---|---|
static class |
SpeechWordInfo.Builder
Information for a word recognized by the speech recognizer.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
END_OFFSET_FIELD_NUMBER |
static int |
START_OFFSET_FIELD_NUMBER |
static int |
WORD_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getConfidence()
The Speech confidence between 0.0 and 1.0 for this word.
|
static SpeechWordInfo |
getDefaultInstance() |
SpeechWordInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getEndOffset()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
com.google.protobuf.Parser<SpeechWordInfo> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Duration |
getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getStartOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getWord()
The word this info is for.
|
com.google.protobuf.ByteString |
getWordBytes()
The word this info is for.
|
boolean |
hasEndOffset()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
int |
hashCode() |
boolean |
hasStartOffset()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SpeechWordInfo.Builder |
newBuilder() |
static SpeechWordInfo.Builder |
newBuilder(SpeechWordInfo prototype) |
SpeechWordInfo.Builder |
newBuilderForType() |
protected SpeechWordInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SpeechWordInfo |
parseDelimitedFrom(InputStream input) |
static SpeechWordInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechWordInfo |
parseFrom(byte[] data) |
static SpeechWordInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechWordInfo |
parseFrom(ByteBuffer data) |
static SpeechWordInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechWordInfo |
parseFrom(com.google.protobuf.ByteString data) |
static SpeechWordInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechWordInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SpeechWordInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SpeechWordInfo |
parseFrom(InputStream input) |
static SpeechWordInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SpeechWordInfo> |
parser() |
SpeechWordInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitpublic static final int WORD_FIELD_NUMBER
public static final int START_OFFSET_FIELD_NUMBER
public static final int END_OFFSET_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getWord()
The word this info is for.
string word = 3;getWord in interface SpeechWordInfoOrBuilderpublic com.google.protobuf.ByteString getWordBytes()
The word this info is for.
string word = 3;getWordBytes in interface SpeechWordInfoOrBuilderpublic boolean hasStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;hasStartOffset in interface SpeechWordInfoOrBuilderpublic com.google.protobuf.Duration getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;getStartOffset in interface SpeechWordInfoOrBuilderpublic com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;getStartOffsetOrBuilder in interface SpeechWordInfoOrBuilderpublic boolean hasEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;hasEndOffset in interface SpeechWordInfoOrBuilderpublic com.google.protobuf.Duration getEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;getEndOffset in interface SpeechWordInfoOrBuilderpublic com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;getEndOffsetOrBuilder in interface SpeechWordInfoOrBuilderpublic float getConfidence()
The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided.
float confidence = 4;getConfidence in interface SpeechWordInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SpeechWordInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SpeechWordInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static SpeechWordInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpeechWordInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SpeechWordInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SpeechWordInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SpeechWordInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SpeechWordInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SpeechWordInfo.Builder newBuilder()
public static SpeechWordInfo.Builder newBuilder(SpeechWordInfo prototype)
public SpeechWordInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SpeechWordInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SpeechWordInfo getDefaultInstance()
public static com.google.protobuf.Parser<SpeechWordInfo> parser()
public com.google.protobuf.Parser<SpeechWordInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SpeechWordInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.