Package com.google.cloud.dialogflow.v2
Class SpeechWordInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpeechWordInfo.Builder>
com.google.cloud.dialogflow.v2.SpeechWordInfo.Builder
- All Implemented Interfaces:
SpeechWordInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpeechWordInfo
public static final class SpeechWordInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SpeechWordInfo.Builder>
implements SpeechWordInfoOrBuilder
Information for a word recognized by the speech recognizer.Protobuf type
google.cloud.dialogflow.v2.SpeechWordInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Speech confidence between 0.0 and 1.0 for this word.Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.The word this info is for.floatThe Speech confidence between 0.0 and 1.0 for this word.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationTime offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.Duration.BuilderTime offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.DurationOrBuilderTime offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.DurationTime offset relative to the beginning of the audio that corresponds to the start of the spoken word.com.google.protobuf.Duration.BuilderTime offset relative to the beginning of the audio that corresponds to the start of the spoken word.com.google.protobuf.DurationOrBuilderTime offset relative to the beginning of the audio that corresponds to the start of the spoken word.getWord()The word this info is for.com.google.protobuf.ByteStringThe word this info is for.booleanTime offset relative to the beginning of the audio that corresponds to the end of the spoken word.booleanTime offset relative to the beginning of the audio that corresponds to the start of the spoken word.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndOffset(com.google.protobuf.Duration value) Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.mergeFrom(SpeechWordInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartOffset(com.google.protobuf.Duration value) Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.setConfidence(float value) The Speech confidence between 0.0 and 1.0 for this word.setEndOffset(com.google.protobuf.Duration value) Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.setEndOffset(com.google.protobuf.Duration.Builder builderForValue) Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.setStartOffset(com.google.protobuf.Duration value) Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.setStartOffset(com.google.protobuf.Duration.Builder builderForValue) Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.The word this info is for.setWordBytes(com.google.protobuf.ByteString value) The word this info is for.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SpeechWordInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SpeechWordInfo.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.GeneratedMessage.Builder<SpeechWordInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechWordInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SpeechWordInfo.Builder>
-
mergeFrom
public SpeechWordInfo.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<SpeechWordInfo.Builder>- Throws:
IOException
-
getWord
The word this info is for.
string word = 3;- Specified by:
getWordin interfaceSpeechWordInfoOrBuilder- Returns:
- The word.
-
getWordBytes
public com.google.protobuf.ByteString getWordBytes()The word this info is for.
string word = 3;- Specified by:
getWordBytesin interfaceSpeechWordInfoOrBuilder- Returns:
- The bytes for word.
-
setWord
The word this info is for.
string word = 3;- Parameters:
value- The word to set.- Returns:
- This builder for chaining.
-
clearWord
The word this info is for.
string word = 3;- Returns:
- This builder for chaining.
-
setWordBytes
The word this info is for.
string word = 3;- Parameters:
value- The bytes for word to set.- Returns:
- This builder for chaining.
-
hasStartOffset
public boolean hasStartOffset()Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;- Specified by:
hasStartOffsetin interfaceSpeechWordInfoOrBuilder- Returns:
- Whether the startOffset field is set.
-
getStartOffset
public com.google.protobuf.Duration getStartOffset()Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;- Specified by:
getStartOffsetin interfaceSpeechWordInfoOrBuilder- Returns:
- The startOffset.
-
setStartOffset
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1; -
setStartOffset
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1; -
mergeStartOffset
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1; -
clearStartOffset
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1; -
getStartOffsetBuilder
public com.google.protobuf.Duration.Builder getStartOffsetBuilder()Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1; -
getStartOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder()Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;- Specified by:
getStartOffsetOrBuilderin interfaceSpeechWordInfoOrBuilder
-
hasEndOffset
public boolean hasEndOffset()Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;- Specified by:
hasEndOffsetin interfaceSpeechWordInfoOrBuilder- Returns:
- Whether the endOffset field is set.
-
getEndOffset
public com.google.protobuf.Duration getEndOffset()Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;- Specified by:
getEndOffsetin interfaceSpeechWordInfoOrBuilder- Returns:
- The endOffset.
-
setEndOffset
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2; -
setEndOffset
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2; -
mergeEndOffset
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2; -
clearEndOffset
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2; -
getEndOffsetBuilder
public com.google.protobuf.Duration.Builder getEndOffsetBuilder()Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2; -
getEndOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder()Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;- Specified by:
getEndOffsetOrBuilderin interfaceSpeechWordInfoOrBuilder
-
getConfidence
public float getConfidence()The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided.
float confidence = 4;- Specified by:
getConfidencein interfaceSpeechWordInfoOrBuilder- Returns:
- The confidence.
-
setConfidence
The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided.
float confidence = 4;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided.
float confidence = 4;- Returns:
- This builder for chaining.
-