Class AdvancedSettings.SpeechSettings.Builder (0.52.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdvancedSettings.SpeechSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
Overrides

build()

public AdvancedSettings.SpeechSettings build()
Returns
Type Description
AdvancedSettings.SpeechSettings

buildPartial()

public AdvancedSettings.SpeechSettings buildPartial()
Returns
Type Description
AdvancedSettings.SpeechSettings

clear()

public AdvancedSettings.SpeechSettings.Builder clear()
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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;

Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AdvancedSettings.SpeechSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
Overrides

clearModels()

public AdvancedSettings.SpeechSettings.Builder clearModels()
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

clearNoSpeechTimeout()

public AdvancedSettings.SpeechSettings.Builder clearNoSpeechTimeout()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AdvancedSettings.SpeechSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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;

Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

This builder for chaining.

clone()

public AdvancedSettings.SpeechSettings.Builder clone()
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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
Returns
Type Description
boolean

getDefaultInstanceForType()

public AdvancedSettings.SpeechSettings getDefaultInstanceForType()
Returns
Type Description
AdvancedSettings.SpeechSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()

Use #getModelsMap() instead.

Returns
Type Description
Map<String,String>

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;

Returns
Type Description
Map<String,String>

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;

Parameters
Name Description
key String
defaultValue String
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.

Returns
Type Description
Map<String,String>

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;

Returns
Type Description
Builder

getNoSpeechTimeoutOrBuilder()

public DurationOrBuilder getNoSpeechTimeoutOrBuilder()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
Type Description
DurationOrBuilder

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()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(AdvancedSettings.SpeechSettings other)

public AdvancedSettings.SpeechSettings.Builder mergeFrom(AdvancedSettings.SpeechSettings other)
Parameter
Name Description
other AdvancedSettings.SpeechSettings
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdvancedSettings.SpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdvancedSettings.SpeechSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedSettings.SpeechSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

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;

Parameters
Name Description
key String
value String
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

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
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

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.

Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AdvancedSettings.SpeechSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

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
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AdvancedSettings.SpeechSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedSettings.SpeechSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
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.

Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

This builder for chaining.