- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.50.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.13
- 2.1.0
- 2.0.27
public static final class WordInfo.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WordInfo.BuilderImplements
WordInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WordInfo.Builder |
build()
public WordInfo build()
Type | Description |
WordInfo |
buildPartial()
public WordInfo buildPartial()
Type | Description |
WordInfo |
clear()
public WordInfo.Builder clear()
Type | Description |
WordInfo.Builder |
clearConfidence()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
WordInfo.Builder | This builder for chaining. |
clearEndTime()
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;
Type | Description |
WordInfo.Builder |
clearField(Descriptors.FieldDescriptor field)
public WordInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
WordInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WordInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
WordInfo.Builder |
clearSpeakerTag()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
WordInfo.Builder | This builder for chaining. |
clearStartTime()
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;
Type | Description |
WordInfo.Builder |
clearWord()
public WordInfo.Builder clearWord()
The word corresponding to this set of information.
string word = 3;
Type | Description |
WordInfo.Builder | This builder for chaining. |
clone()
public WordInfo.Builder clone()
Type | Description |
WordInfo.Builder |
getConfidence()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
float | The confidence. |
getDefaultInstanceForType()
public WordInfo getDefaultInstanceForType()
Type | Description |
WordInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndTime()
public 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;
Type | Description |
Duration | The endTime. |
getEndTimeBuilder()
public 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;
Type | Description |
Builder |
getEndTimeOrBuilder()
public 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;
Type | Description |
DurationOrBuilder |
getSpeakerTag()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The speakerTag. |
getStartTime()
public 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;
Type | Description |
Duration | The startTime. |
getStartTimeBuilder()
public 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;
Type | Description |
Builder |
getStartTimeOrBuilder()
public 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;
Type | Description |
DurationOrBuilder |
getWord()
public String getWord()
The word corresponding to this set of information.
string word = 3;
Type | Description |
String | The word. |
getWordBytes()
public ByteString getWordBytes()
The word corresponding to this set of information.
string word = 3;
Type | Description |
ByteString | The bytes for word. |
hasEndTime()
public 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;
Type | Description |
boolean | Whether the endTime field is set. |
hasStartTime()
public 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;
Type | Description |
boolean | Whether the startTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndTime(Duration value)
public WordInfo.Builder mergeEndTime(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;
Name | Description |
value | Duration |
Type | Description |
WordInfo.Builder |
mergeFrom(WordInfo other)
public WordInfo.Builder mergeFrom(WordInfo other)
Name | Description |
other | WordInfo |
Type | Description |
WordInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WordInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
WordInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public WordInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
WordInfo.Builder |
mergeStartTime(Duration value)
public WordInfo.Builder mergeStartTime(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;
Name | Description |
value | Duration |
Type | Description |
WordInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WordInfo.Builder |
setConfidence(float value)
public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | float The confidence to set. |
Type | Description |
WordInfo.Builder | This builder for chaining. |
setEndTime(Duration value)
public WordInfo.Builder setEndTime(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;
Name | Description |
value | Duration |
Type | Description |
WordInfo.Builder |
setEndTime(Duration.Builder builderForValue)
public WordInfo.Builder setEndTime(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;
Name | Description |
builderForValue | Builder |
Type | Description |
WordInfo.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WordInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WordInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
WordInfo.Builder |
setSpeakerTag(int value)
public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The speakerTag to set. |
Type | Description |
WordInfo.Builder | This builder for chaining. |
setStartTime(Duration value)
public WordInfo.Builder setStartTime(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;
Name | Description |
value | Duration |
Type | Description |
WordInfo.Builder |
setStartTime(Duration.Builder builderForValue)
public WordInfo.Builder setStartTime(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;
Name | Description |
builderForValue | Builder |
Type | Description |
WordInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WordInfo.Builder |
setWord(String value)
public WordInfo.Builder setWord(String value)
The word corresponding to this set of information.
string word = 3;
Name | Description |
value | String The word to set. |
Type | Description |
WordInfo.Builder | This builder for chaining. |
setWordBytes(ByteString value)
public WordInfo.Builder setWordBytes(ByteString value)
The word corresponding to this set of information.
string word = 3;
Name | Description |
value | ByteString The bytes for word to set. |
Type | Description |
WordInfo.Builder | This builder for chaining. |