Class AdvancedSettings.SpeechSettings (0.52.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
TypeDescription
int

MODELS_FIELD_NUMBER

public static final int MODELS_FIELD_NUMBER
Field Value
TypeDescription
int

NO_SPEECH_TIMEOUT_FIELD_NUMBER

public static final int NO_SPEECH_TIMEOUT_FIELD_NUMBER
Field Value
TypeDescription
int

USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER

public static final int USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AdvancedSettings.SpeechSettings getDefaultInstance()
Returns
TypeDescription
AdvancedSettings.SpeechSettings

getDescriptor()

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

newBuilder()

public static AdvancedSettings.SpeechSettings.Builder newBuilder()
Returns
TypeDescription
AdvancedSettings.SpeechSettings.Builder

newBuilder(AdvancedSettings.SpeechSettings prototype)

public static AdvancedSettings.SpeechSettings.Builder newBuilder(AdvancedSettings.SpeechSettings prototype)
Parameter
NameDescription
prototypeAdvancedSettings.SpeechSettings
Returns
TypeDescription
AdvancedSettings.SpeechSettings.Builder

parseDelimitedFrom(InputStream input)

public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AdvancedSettings.SpeechSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdvancedSettings.SpeechSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdvancedSettings.SpeechSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AdvancedSettings.SpeechSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdvancedSettings.SpeechSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdvancedSettings.SpeechSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AdvancedSettings.SpeechSettings> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AdvancedSettings.SpeechSettings getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
int

The endpointerSensitivity.

getModels() (deprecated)

public Map<String,String> getModels()

Use #getModelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getNoSpeechTimeout()

public Duration getNoSpeechTimeout()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
TypeDescription
Duration

The noSpeechTimeout.

getNoSpeechTimeoutOrBuilder()

public DurationOrBuilder getNoSpeechTimeoutOrBuilder()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
TypeDescription
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

The useTimeoutBasedEndpointing.

hasNoSpeechTimeout()

public boolean hasNoSpeechTimeout()

Timeout before detecting no speech.

.google.protobuf.Duration no_speech_timeout = 2;

Returns
TypeDescription
boolean

Whether the noSpeechTimeout field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AdvancedSettings.SpeechSettings.Builder newBuilderForType()
Returns
TypeDescription
AdvancedSettings.SpeechSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AdvancedSettings.SpeechSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AdvancedSettings.SpeechSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AdvancedSettings.SpeechSettings.Builder toBuilder()
Returns
TypeDescription
AdvancedSettings.SpeechSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException