public static final class WordInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder> implements WordInfoOrBuilder
Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as `enable_word_time_offsets`.Protobuf type
google.cloud.videointelligence.v1p3beta1.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()
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 |
clearSpeakerTag()
Output only.
|
WordInfo.Builder |
clearStartTime()
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()
Output only.
|
WordInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getEndTime()
Time offset relative to the beginning of the audio, and
corresponding to the end of the spoken word.
|
com.google.protobuf.Duration.Builder |
getEndTimeBuilder()
Time offset relative to the beginning of the audio, and
corresponding to the end of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getEndTimeOrBuilder()
Time offset relative to the beginning of the audio, and
corresponding to the end of the spoken word.
|
int |
getSpeakerTag()
Output only.
|
com.google.protobuf.Duration |
getStartTime()
Time offset relative to the beginning of the audio, and
corresponding to the start of the spoken word.
|
com.google.protobuf.Duration.Builder |
getStartTimeBuilder()
Time offset relative to the beginning of the audio, and
corresponding to the start of the spoken word.
|
com.google.protobuf.DurationOrBuilder |
getStartTimeOrBuilder()
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 |
hasEndTime()
Time offset relative to the beginning of the audio, and
corresponding to the end of the spoken word.
|
boolean |
hasStartTime()
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 |
mergeEndTime(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 |
mergeStartTime(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)
Output only.
|
WordInfo.Builder |
setEndTime(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 |
setEndTime(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 |
setSpeakerTag(int value)
Output only.
|
WordInfo.Builder |
setStartTime(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 |
setStartTime(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, 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()
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()
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)
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)
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)
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()
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()
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()
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()
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()
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)
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)
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)
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()
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()
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()
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()
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;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;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. 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. 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. 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 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
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 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
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 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
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 © 2019 Google LLC. All rights reserved.