Class SpeechWordInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
- com.google.cloud.dialogflow.v2beta1.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.GeneratedMessageV3.Builder<SpeechWordInfo.Builder> implements SpeechWordInfoOrBuilder
Information for a word recognized by the speech recognizer.
Protobuf typegoogle.cloud.dialogflow.v2beta1.SpeechWordInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeechWordInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SpeechWordInfo
build()
SpeechWordInfo
buildPartial()
SpeechWordInfo.Builder
clear()
SpeechWordInfo.Builder
clearConfidence()
The Speech confidence between 0.0 and 1.0 for this word.SpeechWordInfo.Builder
clearEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.SpeechWordInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SpeechWordInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SpeechWordInfo.Builder
clearStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.SpeechWordInfo.Builder
clearWord()
The word this info is for.SpeechWordInfo.Builder
clone()
float
getConfidence()
The Speech confidence between 0.0 and 1.0 for this word.SpeechWordInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.Duration.Builder
getEndOffsetBuilder()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.DurationOrBuilder
getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.Duration
getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.com.google.protobuf.Duration.Builder
getStartOffsetBuilder()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.com.google.protobuf.DurationOrBuilder
getStartOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.String
getWord()
The word this info is for.com.google.protobuf.ByteString
getWordBytes()
The word this info is for.boolean
hasEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.boolean
hasStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SpeechWordInfo.Builder
mergeEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.SpeechWordInfo.Builder
mergeFrom(SpeechWordInfo other)
SpeechWordInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SpeechWordInfo.Builder
mergeFrom(com.google.protobuf.Message other)
SpeechWordInfo.Builder
mergeStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.SpeechWordInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SpeechWordInfo.Builder
setConfidence(float value)
The Speech confidence between 0.0 and 1.0 for this word.SpeechWordInfo.Builder
setEndOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.SpeechWordInfo.Builder
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.SpeechWordInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SpeechWordInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SpeechWordInfo.Builder
setStartOffset(com.google.protobuf.Duration value)
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.SpeechWordInfo.Builder
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.SpeechWordInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SpeechWordInfo.Builder
setWord(String value)
The word this info is for.SpeechWordInfo.Builder
setWordBytes(com.google.protobuf.ByteString value)
The word this info is for.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
clear
public SpeechWordInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
getDefaultInstanceForType
public SpeechWordInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpeechWordInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpeechWordInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpeechWordInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
setField
public SpeechWordInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
clearField
public SpeechWordInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
clearOneof
public SpeechWordInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
setRepeatedField
public SpeechWordInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
addRepeatedField
public SpeechWordInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
mergeFrom
public SpeechWordInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpeechWordInfo.Builder>
-
mergeFrom
public SpeechWordInfo.Builder mergeFrom(SpeechWordInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
mergeFrom
public SpeechWordInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpeechWordInfo.Builder>
- Throws:
IOException
-
getWord
public String getWord()
The word this info is for.
string word = 3;
- Specified by:
getWord
in interfaceSpeechWordInfoOrBuilder
- Returns:
- The word.
-
getWordBytes
public com.google.protobuf.ByteString getWordBytes()
The word this info is for.
string word = 3;
- Specified by:
getWordBytes
in interfaceSpeechWordInfoOrBuilder
- Returns:
- The bytes for word.
-
setWord
public SpeechWordInfo.Builder setWord(String value)
The word this info is for.
string word = 3;
- Parameters:
value
- The word to set.- Returns:
- This builder for chaining.
-
clearWord
public SpeechWordInfo.Builder clearWord()
The word this info is for.
string word = 3;
- Returns:
- This builder for chaining.
-
setWordBytes
public SpeechWordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
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:
hasStartOffset
in 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:
getStartOffset
in interfaceSpeechWordInfoOrBuilder
- Returns:
- The startOffset.
-
setStartOffset
public SpeechWordInfo.Builder setStartOffset(com.google.protobuf.Duration value)
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
public SpeechWordInfo.Builder 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. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration start_offset = 1;
-
mergeStartOffset
public SpeechWordInfo.Builder mergeStartOffset(com.google.protobuf.Duration value)
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
public SpeechWordInfo.Builder 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:
getStartOffsetOrBuilder
in 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:
hasEndOffset
in 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:
getEndOffset
in interfaceSpeechWordInfoOrBuilder
- Returns:
- The endOffset.
-
setEndOffset
public SpeechWordInfo.Builder setEndOffset(com.google.protobuf.Duration value)
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
public SpeechWordInfo.Builder 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. This is an experimental feature and the accuracy of the time offset can vary.
.google.protobuf.Duration end_offset = 2;
-
mergeEndOffset
public SpeechWordInfo.Builder mergeEndOffset(com.google.protobuf.Duration value)
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
public SpeechWordInfo.Builder 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:
getEndOffsetOrBuilder
in 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:
getConfidence
in interfaceSpeechWordInfoOrBuilder
- Returns:
- The confidence.
-
setConfidence
public SpeechWordInfo.Builder setConfidence(float value)
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
public SpeechWordInfo.Builder 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.
-
setUnknownFields
public final SpeechWordInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
mergeUnknownFields
public final SpeechWordInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpeechWordInfo.Builder>
-
-