Class SpeechToTextSettings.Builder (0.56.0)

public static final class SpeechToTextSettings.Builder extends GeneratedMessageV3.Builder<SpeechToTextSettings.Builder> implements SpeechToTextSettingsOrBuilder

Settings related to speech recognition.

Protobuf type google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SpeechToTextSettings build()
Returns
Type Description
SpeechToTextSettings

buildPartial()

public SpeechToTextSettings buildPartial()
Returns
Type Description
SpeechToTextSettings

clear()

public SpeechToTextSettings.Builder clear()
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

clearEnableSpeechAdaptation()

public SpeechToTextSettings.Builder clearEnableSpeechAdaptation()

Whether to use speech adaptation for speech recognition.

bool enable_speech_adaptation = 1;

Returns
Type Description
SpeechToTextSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechToTextSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

clone()

public SpeechToTextSettings.Builder clone()
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

getDefaultInstanceForType()

public SpeechToTextSettings getDefaultInstanceForType()
Returns
Type Description
SpeechToTextSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableSpeechAdaptation()

public boolean getEnableSpeechAdaptation()

Whether to use speech adaptation for speech recognition.

bool enable_speech_adaptation = 1;

Returns
Type Description
boolean

The enableSpeechAdaptation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SpeechToTextSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SpeechToTextSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechToTextSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

setEnableSpeechAdaptation(boolean value)

public SpeechToTextSettings.Builder setEnableSpeechAdaptation(boolean value)

Whether to use speech adaptation for speech recognition.

bool enable_speech_adaptation = 1;

Parameter
Name Description
value boolean

The enableSpeechAdaptation to set.

Returns
Type Description
SpeechToTextSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SpeechToTextSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SpeechToTextSettings.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechToTextSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpeechToTextSettings.Builder
Overrides