public static final class SpeechToTextConfig.Builder extends GeneratedMessageV3.Builder<SpeechToTextConfig.Builder> implements SpeechToTextConfigOrBuilder
Configures speech transcription for
ConversationProfile.
Protobuf type google.cloud.dialogflow.v2beta1.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechToTextConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpeechToTextConfig build()
buildPartial()
public SpeechToTextConfig buildPartial()
clear()
public SpeechToTextConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeechToTextConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechToTextConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v2beta1.SpeechModelVariant speech_model_variant = 1;
clone()
public SpeechToTextConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public SpeechToTextConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
ByteString |
The bytes for model.
|
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.v2beta1.SpeechModelVariant speech_model_variant = 1;
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.v2beta1.SpeechModelVariant speech_model_variant = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for speechModelVariant.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpeechToTextConfig other)
public SpeechToTextConfig.Builder mergeFrom(SpeechToTextConfig other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechToTextConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpeechToTextConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechToTextConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechToTextConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechToTextConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v2beta1.SpeechModelVariant speech_model_variant = 1;
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.v2beta1.SpeechModelVariant speech_model_variant = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for speechModelVariant to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechToTextConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides