public static final class SpeechToTextConfig.GeminiAsrConfig.Builder extends GeneratedMessage.Builder<SpeechToTextConfig.GeminiAsrConfig.Builder> implements SpeechToTextConfig.GeminiAsrConfigOrBuilderConfiguration for using Gemini ASR models served via Vertex AI. This message is used to override the default Gemini ASR model or provide additional advanced parameters.
Protobuf type google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SpeechToTextConfig.GeminiAsrConfig.BuilderImplements
SpeechToTextConfig.GeminiAsrConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SpeechToTextConfig.GeminiAsrConfig build()| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig |
|
buildPartial()
public SpeechToTextConfig.GeminiAsrConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig |
|
clear()
public SpeechToTextConfig.GeminiAsrConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
|
clearEndOfSpeechSensitivity()
public SpeechToTextConfig.GeminiAsrConfig.Builder clearEndOfSpeechSensitivity()Optional. End of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
clearModelId()
public SpeechToTextConfig.GeminiAsrConfig.Builder clearModelId()Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"
string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
clearPrefixPaddingMs()
public SpeechToTextConfig.GeminiAsrConfig.Builder clearPrefixPaddingMs()Optional. The required duration of detected speech before start-of-speech is committed.
int32 prefix_padding_ms = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
clearSilenceDurationMs()
public SpeechToTextConfig.GeminiAsrConfig.Builder clearSilenceDurationMs()Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.
int32 silence_duration_ms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
clearStartOfSpeechSensitivity()
public SpeechToTextConfig.GeminiAsrConfig.Builder clearStartOfSpeechSensitivity()Optional. Start of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SpeechToTextConfig.GeminiAsrConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndOfSpeechSensitivity()
public SpeechToTextConfig.GeminiAsrConfig.EndSensitivity getEndOfSpeechSensitivity()Optional. End of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.EndSensitivity |
The endOfSpeechSensitivity. |
getEndOfSpeechSensitivityValue()
public int getEndOfSpeechSensitivityValue()Optional. End of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for endOfSpeechSensitivity. |
getModelId()
public String getModelId()Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"
string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The modelId. |
getModelIdBytes()
public ByteString getModelIdBytes()Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"
string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for modelId. |
getPrefixPaddingMs()
public int getPrefixPaddingMs()Optional. The required duration of detected speech before start-of-speech is committed.
int32 prefix_padding_ms = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The prefixPaddingMs. |
getSilenceDurationMs()
public int getSilenceDurationMs()Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.
int32 silence_duration_ms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The silenceDurationMs. |
getStartOfSpeechSensitivity()
public SpeechToTextConfig.GeminiAsrConfig.StartSensitivity getStartOfSpeechSensitivity()Optional. Start of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.StartSensitivity |
The startOfSpeechSensitivity. |
getStartOfSpeechSensitivityValue()
public int getStartOfSpeechSensitivityValue()Optional. Start of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for startOfSpeechSensitivity. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpeechToTextConfig.GeminiAsrConfig other)
public SpeechToTextConfig.GeminiAsrConfig.Builder mergeFrom(SpeechToTextConfig.GeminiAsrConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
SpeechToTextConfig.GeminiAsrConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechToTextConfig.GeminiAsrConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpeechToTextConfig.GeminiAsrConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
|
setEndOfSpeechSensitivity(SpeechToTextConfig.GeminiAsrConfig.EndSensitivity value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setEndOfSpeechSensitivity(SpeechToTextConfig.GeminiAsrConfig.EndSensitivity value)Optional. End of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SpeechToTextConfig.GeminiAsrConfig.EndSensitivityThe endOfSpeechSensitivity to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setEndOfSpeechSensitivityValue(int value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setEndOfSpeechSensitivityValue(int value)Optional. End of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for endOfSpeechSensitivity to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setModelId(String value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setModelId(String value)Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"
string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe modelId to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setModelIdBytes(ByteString value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setModelIdBytes(ByteString value)Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"
string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for modelId to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setPrefixPaddingMs(int value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setPrefixPaddingMs(int value)Optional. The required duration of detected speech before start-of-speech is committed.
int32 prefix_padding_ms = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe prefixPaddingMs to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setSilenceDurationMs(int value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setSilenceDurationMs(int value)Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.
int32 silence_duration_ms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe silenceDurationMs to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setStartOfSpeechSensitivity(SpeechToTextConfig.GeminiAsrConfig.StartSensitivity value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setStartOfSpeechSensitivity(SpeechToTextConfig.GeminiAsrConfig.StartSensitivity value)Optional. Start of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SpeechToTextConfig.GeminiAsrConfig.StartSensitivityThe startOfSpeechSensitivity to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |
setStartOfSpeechSensitivityValue(int value)
public SpeechToTextConfig.GeminiAsrConfig.Builder setStartOfSpeechSensitivityValue(int value)Optional. Start of speech sensitivity.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for startOfSpeechSensitivity to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
This builder for chaining. |