Class SpeechToTextSettings.Builder (0.14.1)

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

Settings related to speech recognition.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpeechToTextSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

build()

public SpeechToTextSettings build()
Returns
TypeDescription
SpeechToTextSettings

buildPartial()

public SpeechToTextSettings buildPartial()
Returns
TypeDescription
SpeechToTextSettings

clear()

public SpeechToTextSettings.Builder clear()
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

clearEnableSpeechAdaptation()

public SpeechToTextSettings.Builder clearEnableSpeechAdaptation()

Whether to use speech adaptation for speech recognition.

bool enable_speech_adaptation = 1;

Returns
TypeDescription
SpeechToTextSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SpeechToTextSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechToTextSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

clone()

public SpeechToTextSettings.Builder clone()
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

getDefaultInstanceForType()

public SpeechToTextSettings getDefaultInstanceForType()
Returns
TypeDescription
SpeechToTextSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableSpeechAdaptation()

public boolean getEnableSpeechAdaptation()

Whether to use speech adaptation for speech recognition.

bool enable_speech_adaptation = 1;

Returns
TypeDescription
boolean

The enableSpeechAdaptation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SpeechToTextSettings other)

public SpeechToTextSettings.Builder mergeFrom(SpeechToTextSettings other)
Parameter
NameDescription
otherSpeechToTextSettings
Returns
TypeDescription
SpeechToTextSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpeechToTextSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SpeechToTextSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechToTextSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enableSpeechAdaptation to set.

Returns
TypeDescription
SpeechToTextSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SpeechToTextSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

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

public SpeechToTextSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechToTextSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpeechToTextSettings.Builder
Overrides