public static final class SpeechWordInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder> implements SpeechWordInfoOrBuilder
Information for a word recognized by the speech recognizer.Protobuf type
google.cloud.dialogflow.v2beta1.SpeechWordInfo| Modifier and Type | Method and Description |
|---|---|
SpeechWordInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpeechWordInfo |
build() |
SpeechWordInfo |
buildPartial() |
SpeechWordInfo.Builder |
clear() |
SpeechWordInfo.Builder |
clearConfidence()
The Speech confidence between 0.0 and 1.0 for this word.
|
SpeechWordInfo.Builder |
clearEndOffset()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpeechWordInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpeechWordInfo.Builder |
clearStartOffset()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
clearWord()
The word this info is for.
|
SpeechWordInfo.Builder |
clone() |
float |
getConfidence()
The Speech confidence between 0.0 and 1.0 for this word.
|
SpeechWordInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.Duration.Builder |
getEndOffsetBuilder()
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.Duration |
getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
com.google.protobuf.Duration.Builder |
getStartOffsetBuilder()
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.
|
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.
|
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() |
SpeechWordInfo.Builder |
mergeEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpeechWordInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpeechWordInfo.Builder |
mergeFrom(SpeechWordInfo other) |
SpeechWordInfo.Builder |
mergeStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpeechWordInfo.Builder |
setConfidence(float value)
The Speech confidence between 0.0 and 1.0 for this word.
|
SpeechWordInfo.Builder |
setEndOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
setEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpeechWordInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SpeechWordInfo.Builder |
setStartOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
setStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpeechWordInfo.Builder |
setWord(String value)
The word this info is for.
|
SpeechWordInfo.Builder |
setWordBytes(com.google.protobuf.ByteString value)
The word this info is for.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.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<SpeechWordInfo.Builder>public SpeechWordInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechWordInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechWordInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechWordInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder mergeFrom(SpeechWordInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public SpeechWordInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechWordInfo.Builder>IOExceptionpublic 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 SpeechWordInfo.Builder setWord(String value)
The word this info is for.
string word = 3;value - The word to set.public SpeechWordInfo.Builder clearWord()
The word this info is for.
string word = 3;public SpeechWordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
The word this info is for.
string word = 3;value - The bytes for word to set.public 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 SpeechWordInfo.Builder setStartOffset(com.google.protobuf.Duration value)
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;public SpeechWordInfo.Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue)
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;public SpeechWordInfo.Builder mergeStartOffset(com.google.protobuf.Duration value)
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;public SpeechWordInfo.Builder clearStartOffset()
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;public com.google.protobuf.Duration.Builder getStartOffsetBuilder()
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;public 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 SpeechWordInfo.Builder setEndOffset(com.google.protobuf.Duration value)
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;public SpeechWordInfo.Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue)
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;public SpeechWordInfo.Builder mergeEndOffset(com.google.protobuf.Duration value)
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;public SpeechWordInfo.Builder clearEndOffset()
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;public com.google.protobuf.Duration.Builder getEndOffsetBuilder()
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;public 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 SpeechWordInfo.Builder setConfidence(float value)
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;value - The confidence to set.public SpeechWordInfo.Builder clearConfidence()
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;public final SpeechWordInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>public final SpeechWordInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>Copyright © 2023 Google LLC. All rights reserved.