public static final class AdvancedSettings.SpeechSettings.Builder extends GeneratedMessageV3.Builder<AdvancedSettings.SpeechSettings.Builder> implements AdvancedSettings.SpeechSettingsOrBuilder
Define behaviors of speech to text detection.
Protobuf type google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdvancedSettings.SpeechSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AdvancedSettings.SpeechSettings build()
buildPartial()
public AdvancedSettings.SpeechSettings buildPartial()
clear()
public AdvancedSettings.SpeechSettings.Builder clear()
Overrides
clearEndpointerSensitivity()
public AdvancedSettings.SpeechSettings.Builder clearEndpointerSensitivity()
Sensitivity of the speech model that detects the end of speech.
Scale from 0 to 100.
int32 endpointer_sensitivity = 1;
clearField(Descriptors.FieldDescriptor field)
public AdvancedSettings.SpeechSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearModels()
public AdvancedSettings.SpeechSettings.Builder clearModels()
clearNoSpeechTimeout()
public AdvancedSettings.SpeechSettings.Builder clearNoSpeechTimeout()
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public AdvancedSettings.SpeechSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUseTimeoutBasedEndpointing()
public AdvancedSettings.SpeechSettings.Builder clearUseTimeoutBasedEndpointing()
Use timeout based endpointing, interpreting endpointer sensitivy as
seconds of timeout value.
bool use_timeout_based_endpointing = 3;
clone()
public AdvancedSettings.SpeechSettings.Builder clone()
Overrides
containsModels(String key)
public boolean containsModels(String key)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public AdvancedSettings.SpeechSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndpointerSensitivity()
public int getEndpointerSensitivity()
Sensitivity of the speech model that detects the end of speech.
Scale from 0 to 100.
int32 endpointer_sensitivity = 1;
Returns |
Type |
Description |
int |
The endpointerSensitivity.
|
getModels() (deprecated)
public Map<String,String> getModels()
getModelsCount()
public int getModelsCount()
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
Returns |
Type |
Description |
int |
|
getModelsMap()
public Map<String,String> getModelsMap()
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
getModelsOrDefault(String key, String defaultValue)
public String getModelsOrDefault(String key, String defaultValue)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
Returns |
Type |
Description |
String |
|
getModelsOrThrow(String key)
public String getModelsOrThrow(String key)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getMutableModels() (deprecated)
public Map<String,String> getMutableModels()
Use alternate mutation accessors instead.
getNoSpeechTimeout()
public Duration getNoSpeechTimeout()
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
Returns |
Type |
Description |
Duration |
The noSpeechTimeout.
|
getNoSpeechTimeoutBuilder()
public Duration.Builder getNoSpeechTimeoutBuilder()
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
getNoSpeechTimeoutOrBuilder()
public DurationOrBuilder getNoSpeechTimeoutOrBuilder()
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
getUseTimeoutBasedEndpointing()
public boolean getUseTimeoutBasedEndpointing()
Use timeout based endpointing, interpreting endpointer sensitivy as
seconds of timeout value.
bool use_timeout_based_endpointing = 3;
Returns |
Type |
Description |
boolean |
The useTimeoutBasedEndpointing.
|
hasNoSpeechTimeout()
public boolean hasNoSpeechTimeout()
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
Returns |
Type |
Description |
boolean |
Whether the noSpeechTimeout field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdvancedSettings.SpeechSettings other)
public AdvancedSettings.SpeechSettings.Builder mergeFrom(AdvancedSettings.SpeechSettings other)
public AdvancedSettings.SpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdvancedSettings.SpeechSettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeNoSpeechTimeout(Duration value)
public AdvancedSettings.SpeechSettings.Builder mergeNoSpeechTimeout(Duration value)
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
Parameter |
Name |
Description |
value |
Duration
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdvancedSettings.SpeechSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllModels(Map<String,String> values)
public AdvancedSettings.SpeechSettings.Builder putAllModels(Map<String,String> values)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
putModels(String key, String value)
public AdvancedSettings.SpeechSettings.Builder putModels(String key, String value)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
removeModels(String key)
public AdvancedSettings.SpeechSettings.Builder removeModels(String key)
Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
model will be selected for requests from its corresponding language.
For more information, see
Speech
models.
map<string, string> models = 5;
Parameter |
Name |
Description |
key |
String
|
setEndpointerSensitivity(int value)
public AdvancedSettings.SpeechSettings.Builder setEndpointerSensitivity(int value)
Sensitivity of the speech model that detects the end of speech.
Scale from 0 to 100.
int32 endpointer_sensitivity = 1;
Parameter |
Name |
Description |
value |
int
The endpointerSensitivity to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AdvancedSettings.SpeechSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNoSpeechTimeout(Duration value)
public AdvancedSettings.SpeechSettings.Builder setNoSpeechTimeout(Duration value)
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
Parameter |
Name |
Description |
value |
Duration
|
setNoSpeechTimeout(Duration.Builder builderForValue)
public AdvancedSettings.SpeechSettings.Builder setNoSpeechTimeout(Duration.Builder builderForValue)
Timeout before detecting no speech.
.google.protobuf.Duration no_speech_timeout = 2;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdvancedSettings.SpeechSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AdvancedSettings.SpeechSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUseTimeoutBasedEndpointing(boolean value)
public AdvancedSettings.SpeechSettings.Builder setUseTimeoutBasedEndpointing(boolean value)
Use timeout based endpointing, interpreting endpointer sensitivy as
seconds of timeout value.
bool use_timeout_based_endpointing = 3;
Parameter |
Name |
Description |
value |
boolean
The useTimeoutBasedEndpointing to set.
|