public static final class SpeechToTextConfig.Builder extends GeneratedMessageV3.Builder<SpeechToTextConfig.Builder> implements SpeechToTextConfigOrBuilder
Configures speech transcription for ConversationProfile.
Protobuf type google.cloud.dialogflow.v2.SpeechToTextConfig
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechToTextConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SpeechToTextConfig build()
Returns
buildPartial()
public SpeechToTextConfig buildPartial()
Returns
clear()
public SpeechToTextConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeechToTextConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechToTextConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSpeechModelVariant()
public SpeechToTextConfig.Builder clearSpeechModelVariant()
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED
, USE_BEST_AVAILABLE
will be treated as
USE_ENHANCED
. It can be overridden in AnalyzeContentRequest and
StreamingAnalyzeContentRequest request.
If enhanced model variant is specified and an enhanced
version of the specified model for the language does not exist, then it
would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
Returns
clone()
public SpeechToTextConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SpeechToTextConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSpeechModelVariant()
public SpeechModelVariant getSpeechModelVariant()
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED
, USE_BEST_AVAILABLE
will be treated as
USE_ENHANCED
. It can be overridden in AnalyzeContentRequest and
StreamingAnalyzeContentRequest request.
If enhanced model variant is specified and an enhanced
version of the specified model for the language does not exist, then it
would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
Returns
getSpeechModelVariantValue()
public int getSpeechModelVariantValue()
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED
, USE_BEST_AVAILABLE
will be treated as
USE_ENHANCED
. It can be overridden in AnalyzeContentRequest and
StreamingAnalyzeContentRequest request.
If enhanced model variant is specified and an enhanced
version of the specified model for the language does not exist, then it
would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
Returns
Type |
Description |
int |
The enum numeric value on the wire for speechModelVariant.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SpeechToTextConfig other)
public SpeechToTextConfig.Builder mergeFrom(SpeechToTextConfig other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechToTextConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SpeechToTextConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechToTextConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechToTextConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechToTextConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSpeechModelVariant(SpeechModelVariant value)
public SpeechToTextConfig.Builder setSpeechModelVariant(SpeechModelVariant value)
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED
, USE_BEST_AVAILABLE
will be treated as
USE_ENHANCED
. It can be overridden in AnalyzeContentRequest and
StreamingAnalyzeContentRequest request.
If enhanced model variant is specified and an enhanced
version of the specified model for the language does not exist, then it
would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
Parameter
Returns
setSpeechModelVariantValue(int value)
public SpeechToTextConfig.Builder setSpeechModelVariantValue(int value)
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED
, USE_BEST_AVAILABLE
will be treated as
USE_ENHANCED
. It can be overridden in AnalyzeContentRequest and
StreamingAnalyzeContentRequest request.
If enhanced model variant is specified and an enhanced
version of the specified model for the language does not exist, then it
would emit an error.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1;
Parameter
Name |
Description |
value |
int
The enum numeric value on the wire for speechModelVariant to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechToTextConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides