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.v1p1beta1.WordInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public WordInfo buildPartial()
clear()
public WordInfo.Builder clear()
Overrides
clearEndTime()
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;
clearField(Descriptors.FieldDescriptor field)
public WordInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public WordInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStartTime()
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;
clearWord()
public WordInfo.Builder clearWord()
Output only. The word corresponding to this set of information.
string word = 3;
clone()
public WordInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public WordInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndTime()
public 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;
Returns |
---|
Type | Description |
Duration | The endTime.
|
getEndTimeBuilder()
public 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;
getEndTimeOrBuilder()
public 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;
getStartTime()
public 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;
Returns |
---|
Type | Description |
Duration | The startTime.
|
getStartTimeBuilder()
public 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;
getStartTimeOrBuilder()
public 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;
getWord()
Output only. The word corresponding to this set of information.
string word = 3;
Returns |
---|
Type | Description |
String | The word.
|
getWordBytes()
public ByteString getWordBytes()
Output only. The word corresponding to this set of information.
string word = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for word.
|
hasEndTime()
public 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;
Returns |
---|
Type | Description |
boolean | Whether the endTime field is set.
|
hasStartTime()
public 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;
Returns |
---|
Type | Description |
boolean | Whether the startTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeEndTime(Duration value)
public WordInfo.Builder mergeEndTime(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;
mergeFrom(WordInfo other)
public WordInfo.Builder mergeFrom(WordInfo other)
public WordInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public WordInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeStartTime(Duration value)
public WordInfo.Builder mergeStartTime(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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setEndTime(Duration value)
public WordInfo.Builder setEndTime(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;
setEndTime(Duration.Builder builderForValue)
public WordInfo.Builder setEndTime(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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setField(Descriptors.FieldDescriptor field, Object value)
public WordInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WordInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStartTime(Duration value)
public WordInfo.Builder setStartTime(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;
setStartTime(Duration.Builder builderForValue)
public WordInfo.Builder setStartTime(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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setUnknownFields(UnknownFieldSet unknownFields)
public final WordInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setWord(String value)
public WordInfo.Builder setWord(String value)
Output only. The word corresponding to this set of information.
string word = 3;
Parameter |
---|
Name | Description |
value | String
The word to set.
|
setWordBytes(ByteString value)
public WordInfo.Builder setWordBytes(ByteString value)
Output only. The word corresponding to this set of information.
string word = 3;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for word to set.
|