Send feedback
Class SpeechToTextConfig.Builder (4.3.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.3.1 keyboard_arrow_down
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
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 ()
Optional. 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.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
clone()
public SpeechToTextConfig . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public SpeechToTextConfig getDefaultInstanceForType ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getSpeechModelVariant()
public SpeechModelVariant getSpeechModelVariant ()
Optional. 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.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSpeechModelVariantValue()
public int getSpeechModelVariantValue ()
Optional. 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.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1 [(.google.api.field_behavior) = OPTIONAL];
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 )
Optional. 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.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setSpeechModelVariantValue(int value)
public SpeechToTextConfig . Builder setSpeechModelVariantValue ( int value )
Optional. 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.
.google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1 [(.google.api.field_behavior) = OPTIONAL];
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]