Class WordInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
- com.google.cloud.videointelligence.v1p1beta1.WordInfo.Builder
-
- All Implemented Interfaces:
WordInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WordInfo
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 typegoogle.cloud.videointelligence.v1p1beta1.WordInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WordInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WordInfobuild()WordInfobuildPartial()WordInfo.Builderclear()WordInfo.BuilderclearEndTime()Output only.WordInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WordInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WordInfo.BuilderclearStartTime()Output only.WordInfo.BuilderclearWord()Output only.WordInfo.Builderclone()WordInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetEndTime()Output only.com.google.protobuf.Duration.BuildergetEndTimeBuilder()Output only.com.google.protobuf.DurationOrBuildergetEndTimeOrBuilder()Output only.com.google.protobuf.DurationgetStartTime()Output only.com.google.protobuf.Duration.BuildergetStartTimeBuilder()Output only.com.google.protobuf.DurationOrBuildergetStartTimeOrBuilder()Output only.StringgetWord()Output only.com.google.protobuf.ByteStringgetWordBytes()Output only.booleanhasEndTime()Output only.booleanhasStartTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WordInfo.BuildermergeEndTime(com.google.protobuf.Duration value)Output only.WordInfo.BuildermergeFrom(WordInfo other)WordInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WordInfo.BuildermergeFrom(com.google.protobuf.Message other)WordInfo.BuildermergeStartTime(com.google.protobuf.Duration value)Output only.WordInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WordInfo.BuildersetEndTime(com.google.protobuf.Duration value)Output only.WordInfo.BuildersetEndTime(com.google.protobuf.Duration.Builder builderForValue)Output only.WordInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WordInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)WordInfo.BuildersetStartTime(com.google.protobuf.Duration value)Output only.WordInfo.BuildersetStartTime(com.google.protobuf.Duration.Builder builderForValue)Output only.WordInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WordInfo.BuildersetWord(String value)Output only.WordInfo.BuildersetWordBytes(com.google.protobuf.ByteString value)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
clear
public WordInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
getDefaultInstanceForType
public WordInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WordInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WordInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WordInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
setField
public WordInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
clearField
public WordInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
clearOneof
public WordInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
setRepeatedField
public WordInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
addRepeatedField
public WordInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
mergeFrom
public WordInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WordInfo.Builder>
-
mergeFrom
public WordInfo.Builder mergeFrom(WordInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
mergeFrom
public WordInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WordInfo.Builder>- Throws:
IOException
-
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;- Specified by:
hasStartTimein interfaceWordInfoOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public 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;- Specified by:
getStartTimein interfaceWordInfoOrBuilder- Returns:
- The startTime.
-
setStartTime
public 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;
-
setStartTime
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;
-
mergeStartTime
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;
-
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;
-
getStartTimeBuilder
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;
-
getStartTimeOrBuilder
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;- Specified by:
getStartTimeOrBuilderin interfaceWordInfoOrBuilder
-
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;- Specified by:
hasEndTimein interfaceWordInfoOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public 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;- Specified by:
getEndTimein interfaceWordInfoOrBuilder- Returns:
- The endTime.
-
setEndTime
public 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;
-
setEndTime
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;
-
mergeEndTime
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;
-
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;
-
getEndTimeBuilder
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;
-
getEndTimeOrBuilder
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;- Specified by:
getEndTimeOrBuilderin interfaceWordInfoOrBuilder
-
getWord
public String getWord()
Output only. The word corresponding to this set of information.
string word = 3;- Specified by:
getWordin interfaceWordInfoOrBuilder- Returns:
- The word.
-
getWordBytes
public com.google.protobuf.ByteString getWordBytes()
Output only. The word corresponding to this set of information.
string word = 3;- Specified by:
getWordBytesin interfaceWordInfoOrBuilder- Returns:
- The bytes for word.
-
setWord
public WordInfo.Builder setWord(String value)
Output only. The word corresponding to this set of information.
string word = 3;- Parameters:
value- The word to set.- Returns:
- This builder for chaining.
-
clearWord
public WordInfo.Builder clearWord()
Output only. The word corresponding to this set of information.
string word = 3;- Returns:
- This builder for chaining.
-
setWordBytes
public WordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
Output only. The word corresponding to this set of information.
string word = 3;- Parameters:
value- The bytes for word to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final WordInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
mergeUnknownFields
public final WordInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
-
-