Class BargeInConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
- com.google.cloud.dialogflow.v2beta1.BargeInConfig.Builder
-
- All Implemented Interfaces:
BargeInConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BargeInConfig
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 typegoogle.cloud.dialogflow.v2beta1.BargeInConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BargeInConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BargeInConfigbuild()BargeInConfigbuildPartial()BargeInConfig.Builderclear()BargeInConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BargeInConfig.BuilderclearNoBargeInDuration()Duration that is not eligible for barge-in at the beginning of the input audio.BargeInConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BargeInConfig.BuilderclearTotalDuration()Total duration for the playback at the beginning of the input audio.BargeInConfig.Builderclone()BargeInConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetNoBargeInDuration()Duration that is not eligible for barge-in at the beginning of the input audio.com.google.protobuf.Duration.BuildergetNoBargeInDurationBuilder()Duration that is not eligible for barge-in at the beginning of the input audio.com.google.protobuf.DurationOrBuildergetNoBargeInDurationOrBuilder()Duration that is not eligible for barge-in at the beginning of the input audio.com.google.protobuf.DurationgetTotalDuration()Total duration for the playback at the beginning of the input audio.com.google.protobuf.Duration.BuildergetTotalDurationBuilder()Total duration for the playback at the beginning of the input audio.com.google.protobuf.DurationOrBuildergetTotalDurationOrBuilder()Total duration for the playback at the beginning of the input audio.booleanhasNoBargeInDuration()Duration that is not eligible for barge-in at the beginning of the input audio.booleanhasTotalDuration()Total duration for the playback at the beginning of the input audio.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BargeInConfig.BuildermergeFrom(BargeInConfig other)BargeInConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BargeInConfig.BuildermergeFrom(com.google.protobuf.Message other)BargeInConfig.BuildermergeNoBargeInDuration(com.google.protobuf.Duration value)Duration that is not eligible for barge-in at the beginning of the input audio.BargeInConfig.BuildermergeTotalDuration(com.google.protobuf.Duration value)Total duration for the playback at the beginning of the input audio.BargeInConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BargeInConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BargeInConfig.BuildersetNoBargeInDuration(com.google.protobuf.Duration value)Duration that is not eligible for barge-in at the beginning of the input audio.BargeInConfig.BuildersetNoBargeInDuration(com.google.protobuf.Duration.Builder builderForValue)Duration that is not eligible for barge-in at the beginning of the input audio.BargeInConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BargeInConfig.BuildersetTotalDuration(com.google.protobuf.Duration value)Total duration for the playback at the beginning of the input audio.BargeInConfig.BuildersetTotalDuration(com.google.protobuf.Duration.Builder builderForValue)Total duration for the playback at the beginning of the input audio.BargeInConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<BargeInConfig.Builder>
-
clear
public BargeInConfig.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<BargeInConfig.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<BargeInConfig.Builder>
-
getDefaultInstanceForType
public BargeInConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BargeInConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BargeInConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BargeInConfig.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<BargeInConfig.Builder>
-
setField
public BargeInConfig.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<BargeInConfig.Builder>
-
clearField
public BargeInConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
clearOneof
public BargeInConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
setRepeatedField
public BargeInConfig.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<BargeInConfig.Builder>
-
addRepeatedField
public BargeInConfig.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<BargeInConfig.Builder>
-
mergeFrom
public BargeInConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BargeInConfig.Builder>
-
mergeFrom
public BargeInConfig.Builder mergeFrom(BargeInConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
mergeFrom
public BargeInConfig.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<BargeInConfig.Builder>- Throws:
IOException
-
hasNoBargeInDuration
public 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;- Specified by:
hasNoBargeInDurationin interfaceBargeInConfigOrBuilder- Returns:
- Whether the noBargeInDuration field is set.
-
getNoBargeInDuration
public 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;- Specified by:
getNoBargeInDurationin interfaceBargeInConfigOrBuilder- Returns:
- The noBargeInDuration.
-
setNoBargeInDuration
public 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;
-
setNoBargeInDuration
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;
-
mergeNoBargeInDuration
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;
-
clearNoBargeInDuration
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;
-
getNoBargeInDurationBuilder
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;
-
getNoBargeInDurationOrBuilder
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;- Specified by:
getNoBargeInDurationOrBuilderin interfaceBargeInConfigOrBuilder
-
hasTotalDuration
public boolean hasTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;- Specified by:
hasTotalDurationin interfaceBargeInConfigOrBuilder- Returns:
- Whether the totalDuration field is set.
-
getTotalDuration
public com.google.protobuf.Duration getTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;- Specified by:
getTotalDurationin interfaceBargeInConfigOrBuilder- Returns:
- The totalDuration.
-
setTotalDuration
public 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;
-
setTotalDuration
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;
-
mergeTotalDuration
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;
-
clearTotalDuration
public BargeInConfig.Builder clearTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;
-
getTotalDurationBuilder
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;
-
getTotalDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;- Specified by:
getTotalDurationOrBuilderin interfaceBargeInConfigOrBuilder
-
setUnknownFields
public final BargeInConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
mergeUnknownFields
public final BargeInConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BargeInConfig.Builder>
-
-