public static final class WordInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder> implements WordInfoOrBuilder
Word-specific information for recognized words.Protobuf type
google.cloud.speech.v2.WordInfo| Modifier and Type | Method and Description |
|---|---|
WordInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WordInfo |
build() |
WordInfo |
buildPartial() |
WordInfo.Builder |
clear() |
WordInfo.Builder |
clearConfidence()
The confidence estimate between 0.0 and 1.0.
|
WordInfo.Builder |
clearEndOffset()
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
WordInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WordInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WordInfo.Builder |
clearSpeakerLabel()
A distinct label is assigned for every speaker within the audio.
|
WordInfo.Builder |
clearStartOffset()
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
WordInfo.Builder |
clearWord()
The word corresponding to this set of information.
|
WordInfo.Builder |
clone() |
float |
getConfidence()
The confidence estimate between 0.0 and 1.0.
|
WordInfo |
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,
and corresponding to the end of the spoken word.
|
com.google.protobuf.Duration.Builder |
getEndOffsetBuilder()
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
String |
getSpeakerLabel()
A distinct label is assigned for every speaker within the audio.
|
com.google.protobuf.ByteString |
getSpeakerLabelBytes()
A distinct label is assigned for every speaker within the audio.
|
com.google.protobuf.Duration |
getStartOffset()
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
com.google.protobuf.Duration.Builder |
getStartOffsetBuilder()
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getStartOffsetOrBuilder()
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
String |
getWord()
The word corresponding to this set of information.
|
com.google.protobuf.ByteString |
getWordBytes()
The word corresponding to this set of information.
|
boolean |
hasEndOffset()
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
boolean |
hasStartOffset()
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WordInfo.Builder |
mergeEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
WordInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WordInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
WordInfo.Builder |
mergeFrom(WordInfo other) |
WordInfo.Builder |
mergeStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
WordInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WordInfo.Builder |
setConfidence(float value)
The confidence estimate between 0.0 and 1.0.
|
WordInfo.Builder |
setEndOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
WordInfo.Builder |
setEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
|
WordInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WordInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WordInfo.Builder |
setSpeakerLabel(String value)
A distinct label is assigned for every speaker within the audio.
|
WordInfo.Builder |
setSpeakerLabelBytes(com.google.protobuf.ByteString value)
A distinct label is assigned for every speaker within the audio.
|
WordInfo.Builder |
setStartOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
WordInfo.Builder |
setStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
|
WordInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WordInfo.Builder |
setWord(String value)
The word corresponding to this set of information.
|
WordInfo.Builder |
setWordBytes(com.google.protobuf.ByteString value)
The word corresponding to this set of information.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public WordInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.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<WordInfo.Builder>public WordInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WordInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WordInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WordInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public WordInfo.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<WordInfo.Builder>public WordInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public WordInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public WordInfo.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<WordInfo.Builder>public WordInfo.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<WordInfo.Builder>public WordInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WordInfo.Builder>public WordInfo.Builder mergeFrom(WordInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public WordInfo.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<WordInfo.Builder>IOExceptionpublic boolean hasStartOffset()
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;hasStartOffset in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getStartOffset()
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;getStartOffset in interface WordInfoOrBuilderpublic WordInfo.Builder setStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;public WordInfo.Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;public WordInfo.Builder mergeStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;public WordInfo.Builder clearStartOffset()
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. 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, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. 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, and corresponding to the start of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;getStartOffsetOrBuilder in interface WordInfoOrBuilderpublic boolean hasEndOffset()
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;hasEndOffset in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getEndOffset()
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;getEndOffset in interface WordInfoOrBuilderpublic WordInfo.Builder setEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;public WordInfo.Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue)
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;public WordInfo.Builder mergeEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;public WordInfo.Builder clearEndOffset()
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. 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, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. 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, and corresponding to the end of the spoken word. This field is only set if [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets] is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;getEndOffsetOrBuilder in interface WordInfoOrBuilderpublic String getWord()
The word corresponding to this set of information.
string word = 3;getWord in interface WordInfoOrBuilderpublic com.google.protobuf.ByteString getWordBytes()
The word corresponding to this set of information.
string word = 3;getWordBytes in interface WordInfoOrBuilderpublic WordInfo.Builder setWord(String value)
The word corresponding to this set of information.
string word = 3;value - The word to set.public WordInfo.Builder clearWord()
The word corresponding to this set of information.
string word = 3;public WordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
The word corresponding to this set of information.
string word = 3;value - The bytes for word to set.public float getConfidence()
The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is set to `true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 4;getConfidence in interface WordInfoOrBuilderpublic WordInfo.Builder setConfidence(float value)
The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is set to `true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 4;value - The confidence to set.public WordInfo.Builder clearConfidence()
The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is set to `true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 4;public String getSpeakerLabel()
A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig] is given and only in the top alternative.
string speaker_label = 6;getSpeakerLabel in interface WordInfoOrBuilderpublic com.google.protobuf.ByteString getSpeakerLabelBytes()
A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig] is given and only in the top alternative.
string speaker_label = 6;getSpeakerLabelBytes in interface WordInfoOrBuilderpublic WordInfo.Builder setSpeakerLabel(String value)
A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig] is given and only in the top alternative.
string speaker_label = 6;value - The speakerLabel to set.public WordInfo.Builder clearSpeakerLabel()
A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig] is given and only in the top alternative.
string speaker_label = 6;public WordInfo.Builder setSpeakerLabelBytes(com.google.protobuf.ByteString value)
A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig] is given and only in the top alternative.
string speaker_label = 6;value - The bytes for speakerLabel to set.public final WordInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>public final WordInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.