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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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
clearModel()
public SpeechToTextConfig.Builder clearModel()
Which Speech model to select. Select the model best suited to your domain
to get best results. If a model is not explicitly specified, then a default
model is used.
Refer to
Cloud Speech API
documentation
for more details.
string model = 2;
Returns
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
getModel()
Which Speech model to select. Select the model best suited to your domain
to get best results. If a model is not explicitly specified, then a default
model is used.
Refer to
Cloud Speech API
documentation
for more details.
string model = 2;
Returns
Type |
Description |
String |
The model.
|
getModelBytes()
public ByteString getModelBytes()
Which Speech model to select. Select the model best suited to your domain
to get best results. If a model is not explicitly specified, then a default
model is used.
Refer to
Cloud Speech API
documentation
for more details.
string model = 2;
Returns
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
setModel(String value)
public SpeechToTextConfig.Builder setModel(String value)
Which Speech model to select. Select the model best suited to your domain
to get best results. If a model is not explicitly specified, then a default
model is used.
Refer to
Cloud Speech API
documentation
for more details.
string model = 2;
Parameter
Name |
Description |
value |
String
The model to set.
|
Returns
setModelBytes(ByteString value)
public SpeechToTextConfig.Builder setModelBytes(ByteString value)
Which Speech model to select. Select the model best suited to your domain
to get best results. If a model is not explicitly specified, then a default
model is used.
Refer to
Cloud Speech API
documentation
for more details.
string model = 2;
Parameter
Name |
Description |
value |
ByteString
The bytes for model to set.
|
Returns
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