public static final class BargeInConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder> implements BargeInConfigOrBuilder
Configuration of the barge-in behavior. Barge-in instructs the API to return
a detected utterance at a proper time while the client is playing back the
response audio from a previous request. When the client sees the
utterance, it should stop the playback and immediately get ready for
receiving the responses for the current request.
The barge-in handling requires the client to start streaming audio input
as soon as it starts playing back the audio from the previous response. The
playback is modeled into two phases:
* No barge-in phase: which goes first and during which speech detection
should not be carried out.
* Barge-in phase: which follows the no barge-in phase and during which
the API starts speech detection and may inform the client that an utterance
has been detected. Note that no-speech event is not expected in this
phase.
The client provides this configuration in terms of the durations of those
two phases. The durations are measured in terms of the audio length fromt the
the start of the input audio.
The flow goes like below:
--> Time
without speech detection | utterance only | utterance or no-speech event
| |
+-------------+ | +------------+ | +---------------+
----------+ no barge-in +-|-+ barge-in +-|-+ normal period +-----------
+-------------+ | +------------+ | +---------------+
No-speech event is a response with END_OF_UTTERANCE without any transcript
following up.
Protobuf type google.cloud.dialogflow.v2beta1.BargeInConfig| Modifier and Type | Method and Description |
|---|---|
BargeInConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BargeInConfig |
build() |
BargeInConfig |
buildPartial() |
BargeInConfig.Builder |
clear() |
BargeInConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BargeInConfig.Builder |
clearNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
BargeInConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BargeInConfig.Builder |
clearTotalDuration()
Total duration for the playback at the beginning of the input audio.
|
BargeInConfig.Builder |
clone() |
BargeInConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
com.google.protobuf.Duration.Builder |
getNoBargeInDurationBuilder()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
com.google.protobuf.DurationOrBuilder |
getNoBargeInDurationOrBuilder()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
com.google.protobuf.Duration |
getTotalDuration()
Total duration for the playback at the beginning of the input audio.
|
com.google.protobuf.Duration.Builder |
getTotalDurationBuilder()
Total duration for the playback at the beginning of the input audio.
|
com.google.protobuf.DurationOrBuilder |
getTotalDurationOrBuilder()
Total duration for the playback at the beginning of the input audio.
|
boolean |
hasNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
boolean |
hasTotalDuration()
Total duration for the playback at the beginning of the input audio.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BargeInConfig.Builder |
mergeFrom(BargeInConfig other) |
BargeInConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BargeInConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
BargeInConfig.Builder |
mergeNoBargeInDuration(com.google.protobuf.Duration value)
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
BargeInConfig.Builder |
mergeTotalDuration(com.google.protobuf.Duration value)
Total duration for the playback at the beginning of the input audio.
|
BargeInConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BargeInConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BargeInConfig.Builder |
setNoBargeInDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
BargeInConfig.Builder |
setNoBargeInDuration(com.google.protobuf.Duration value)
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
BargeInConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BargeInConfig.Builder |
setTotalDuration(com.google.protobuf.Duration.Builder builderForValue)
Total duration for the playback at the beginning of the input audio.
|
BargeInConfig.Builder |
setTotalDuration(com.google.protobuf.Duration value)
Total duration for the playback at the beginning of the input audio.
|
BargeInConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BargeInConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BargeInConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BargeInConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BargeInConfig.Builder>public BargeInConfig.Builder mergeFrom(BargeInConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public BargeInConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BargeInConfig.Builder>IOExceptionpublic boolean hasNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;hasNoBargeInDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.Duration getNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;getNoBargeInDuration in interface BargeInConfigOrBuilderpublic BargeInConfig.Builder setNoBargeInDuration(com.google.protobuf.Duration value)
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;public BargeInConfig.Builder setNoBargeInDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;public BargeInConfig.Builder mergeNoBargeInDuration(com.google.protobuf.Duration value)
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;public BargeInConfig.Builder clearNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;public com.google.protobuf.Duration.Builder getNoBargeInDurationBuilder()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;public com.google.protobuf.DurationOrBuilder getNoBargeInDurationOrBuilder()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;getNoBargeInDurationOrBuilder in interface BargeInConfigOrBuilderpublic boolean hasTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;hasTotalDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.Duration getTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;getTotalDuration in interface BargeInConfigOrBuilderpublic BargeInConfig.Builder setTotalDuration(com.google.protobuf.Duration value)
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;public BargeInConfig.Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue)
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;public BargeInConfig.Builder mergeTotalDuration(com.google.protobuf.Duration value)
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;public BargeInConfig.Builder clearTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;public com.google.protobuf.Duration.Builder getTotalDurationBuilder()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;getTotalDurationOrBuilder in interface BargeInConfigOrBuilderpublic final BargeInConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>public final BargeInConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.