Class AdvancedSettings.SpeechSettings (0.54.0)

public static final class AdvancedSettings.SpeechSettings extends GeneratedMessageV3 implements AdvancedSettings.SpeechSettingsOrBuilder

Define behaviors of speech to text detection.

Protobuf type google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AdvancedSettings.SpeechSettings

Static Fields

ENDPOINTER_SENSITIVITY_FIELD_NUMBER

public static final int ENDPOINTER_SENSITIVITY_FIELD_NUMBER
Field Value
Type Description
int

MODELS_FIELD_NUMBER

public static final int MODELS_FIELD_NUMBER
Field Value
Type Description
int

NO_SPEECH_TIMEOUT_FIELD_NUMBER

public static final int NO_SPEECH_TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER

public static final int USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdvancedSettings.SpeechSettings getDefaultInstance()
Returns
Type Description
AdvancedSettings.SpeechSettings

getDescriptor()

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

newBuilder()

public static AdvancedSettings.SpeechSettings.Builder newBuilder()
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

newBuilder(AdvancedSettings.SpeechSettings prototype)

public static AdvancedSettings.SpeechSettings.Builder newBuilder(AdvancedSettings.SpeechSettings prototype)
Parameter
Name Description
prototype AdvancedSettings.SpeechSettings
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder

parseDelimitedFrom(InputStream input)

public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdvancedSettings.SpeechSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdvancedSettings.SpeechSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdvancedSettings.SpeechSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdvancedSettings.SpeechSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedSettings.SpeechSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdvancedSettings.SpeechSettings> parser()
Returns
Type Description
Parser<SpeechSettings>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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

getNoSpeechTimeout()

public Duration getNoSpeechTimeout()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
Type Description
Duration

The noSpeechTimeout.

getNoSpeechTimeoutOrBuilder()

public DurationOrBuilder getNoSpeechTimeoutOrBuilder()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<AdvancedSettings.SpeechSettings> getParserForType()
Returns
Type Description
Parser<SpeechSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AdvancedSettings.SpeechSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdvancedSettings.SpeechSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException