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.v1p1beta1.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()
Output only.
|
WordInfo.Builder |
clearEndTime()
Output only.
|
WordInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WordInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WordInfo.Builder |
clearSpeakerTag()
Output only.
|
WordInfo.Builder |
clearStartTime()
Output only.
|
WordInfo.Builder |
clearWord()
Output only.
|
WordInfo.Builder |
clone() |
float |
getConfidence()
Output only.
|
WordInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getEndTime()
Output only.
|
com.google.protobuf.Duration.Builder |
getEndTimeBuilder()
Output only.
|
com.google.protobuf.DurationOrBuilder |
getEndTimeOrBuilder()
Output only.
|
int |
getSpeakerTag()
Output only.
|
com.google.protobuf.Duration |
getStartTime()
Output only.
|
com.google.protobuf.Duration.Builder |
getStartTimeBuilder()
Output only.
|
com.google.protobuf.DurationOrBuilder |
getStartTimeOrBuilder()
Output only.
|
String |
getWord()
Output only.
|
com.google.protobuf.ByteString |
getWordBytes()
Output only.
|
boolean |
hasEndTime()
Output only.
|
boolean |
hasStartTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WordInfo.Builder |
mergeEndTime(com.google.protobuf.Duration value)
Output only.
|
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 |
mergeStartTime(com.google.protobuf.Duration value)
Output only.
|
WordInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WordInfo.Builder |
setConfidence(float value)
Output only.
|
WordInfo.Builder |
setEndTime(com.google.protobuf.Duration.Builder builderForValue)
Output only.
|
WordInfo.Builder |
setEndTime(com.google.protobuf.Duration value)
Output only.
|
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 |
setSpeakerTag(int value)
Output only.
|
WordInfo.Builder |
setStartTime(com.google.protobuf.Duration.Builder builderForValue)
Output only.
|
WordInfo.Builder |
setStartTime(com.google.protobuf.Duration value)
Output only.
|
WordInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WordInfo.Builder |
setWord(String value)
Output only.
|
WordInfo.Builder |
setWordBytes(com.google.protobuf.ByteString value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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 hasStartTime()
Output only. 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=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_time = 1;hasStartTime in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getStartTime()
Output only. 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=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_time = 1;getStartTime in interface WordInfoOrBuilderpublic WordInfo.Builder setStartTime(com.google.protobuf.Duration value)
Output only. 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=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_time = 1;public WordInfo.Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue)
Output only. 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=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_time = 1;public WordInfo.Builder mergeStartTime(com.google.protobuf.Duration value)
Output only. 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=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_time = 1;public WordInfo.Builder clearStartTime()
Output only. 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=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_time = 1;public com.google.protobuf.Duration.Builder getStartTimeBuilder()
Output only. 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=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_time = 1;public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder()
Output only. 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=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_time = 1;getStartTimeOrBuilder in interface WordInfoOrBuilderpublic boolean hasEndTime()
Output only. 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=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_time = 2;hasEndTime in interface WordInfoOrBuilderpublic com.google.protobuf.Duration getEndTime()
Output only. 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=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_time = 2;getEndTime in interface WordInfoOrBuilderpublic WordInfo.Builder setEndTime(com.google.protobuf.Duration value)
Output only. 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=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_time = 2;public WordInfo.Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
Output only. 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=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_time = 2;public WordInfo.Builder mergeEndTime(com.google.protobuf.Duration value)
Output only. 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=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_time = 2;public WordInfo.Builder clearEndTime()
Output only. 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=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_time = 2;public com.google.protobuf.Duration.Builder getEndTimeBuilder()
Output only. 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=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_time = 2;public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder()
Output only. 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=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_time = 2;getEndTimeOrBuilder in interface WordInfoOrBuilderpublic String getWord()
Output only. The word corresponding to this set of information.
string word = 3;getWord in interface WordInfoOrBuilderpublic com.google.protobuf.ByteString getWordBytes()
Output only. The word corresponding to this set of information.
string word = 3;getWordBytes in interface WordInfoOrBuilderpublic WordInfo.Builder setWord(String value)
Output only. The word corresponding to this set of information.
string word = 3;public WordInfo.Builder clearWord()
Output only. The word corresponding to this set of information.
string word = 3;public WordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
Output only. The word corresponding to this set of information.
string word = 3;public float getConfidence()
Output only. 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=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)
Output only. 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=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 WordInfo.Builder clearConfidence()
Output only. 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=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 int getSpeakerTag()
Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
int32 speaker_tag = 5;getSpeakerTag in interface WordInfoOrBuilderpublic WordInfo.Builder setSpeakerTag(int value)
Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
int32 speaker_tag = 5;public WordInfo.Builder clearSpeakerTag()
Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
int32 speaker_tag = 5;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 © 2018 Google LLC. All rights reserved.