public static final class SpeechWordInfo.Builder extends 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(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(Descriptors.FieldDescriptor field) |
SpeechWordInfo.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Duration |
getEndOffset()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
Duration.Builder |
getEndOffsetBuilder()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
DurationOrBuilder |
getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
Duration |
getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
Duration.Builder |
getStartOffsetBuilder()
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpeechWordInfo.Builder |
mergeEndOffset(Duration value)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SpeechWordInfo.Builder |
mergeFrom(Message other) |
SpeechWordInfo.Builder |
mergeFrom(SpeechWordInfo other) |
SpeechWordInfo.Builder |
mergeStartOffset(Duration value)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
SpeechWordInfo.Builder |
setConfidence(float value)
The Speech confidence between 0.0 and 1.0 for this word.
|
SpeechWordInfo.Builder |
setEndOffset(Duration.Builder builderForValue)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
setEndOffset(Duration value)
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word.
|
SpeechWordInfo.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
SpeechWordInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
SpeechWordInfo.Builder |
setStartOffset(Duration.Builder builderForValue)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
setStartOffset(Duration value)
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word.
|
SpeechWordInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
SpeechWordInfo.Builder |
setWord(String value)
The word this info is for.
|
SpeechWordInfo.Builder |
setWordBytes(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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SpeechWordInfo build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SpeechWordInfo buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SpeechWordInfo.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder mergeFrom(SpeechWordInfo other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public SpeechWordInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SpeechWordInfo.Builder>
IOException
public String getWord()
The word this info is for.
string word = 3;
getWord
in interface SpeechWordInfoOrBuilder
public ByteString getWordBytes()
The word this info is for.
string word = 3;
getWordBytes
in interface SpeechWordInfoOrBuilder
public 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(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 SpeechWordInfoOrBuilder
public 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 SpeechWordInfoOrBuilder
public SpeechWordInfo.Builder setStartOffset(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(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(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 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 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 SpeechWordInfoOrBuilder
public 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 SpeechWordInfoOrBuilder
public 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 SpeechWordInfoOrBuilder
public SpeechWordInfo.Builder setEndOffset(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(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(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 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 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 SpeechWordInfoOrBuilder
public 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 SpeechWordInfoOrBuilder
public 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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
public final SpeechWordInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
Copyright © 2022 Google LLC. All rights reserved.