public static final class RecognitionConfig.Builder extends GeneratedMessageV3.Builder<RecognitionConfig.Builder> implements RecognitionConfigOrBuilder
Provides information to the Recognizer that specifies how to process the
recognition request.
Protobuf type google.cloud.speech.v2.RecognitionConfig
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 RecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RecognitionConfig build()
buildPartial()
public RecognitionConfig buildPartial()
clear()
public RecognitionConfig.Builder clear()
Overrides
clearAdaptation()
public RecognitionConfig.Builder clearAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
clearAutoDecodingConfig()
public RecognitionConfig.Builder clearAutoDecodingConfig()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
clearDecodingConfig()
public RecognitionConfig.Builder clearDecodingConfig()
clearExplicitDecodingConfig()
public RecognitionConfig.Builder clearExplicitDecodingConfig()
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
clearFeatures()
public RecognitionConfig.Builder clearFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
clearField(Descriptors.FieldDescriptor field)
public RecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public RecognitionConfig.Builder clone()
Overrides
getAdaptation()
public SpeechAdaptation getAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
getAdaptationBuilder()
public SpeechAdaptation.Builder getAdaptationBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
getAdaptationOrBuilder()
public SpeechAdaptationOrBuilder getAdaptationOrBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
getAutoDecodingConfig()
public AutoDetectDecodingConfig getAutoDecodingConfig()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
getAutoDecodingConfigBuilder()
public AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
getAutoDecodingConfigOrBuilder()
public AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
getDecodingConfigCase()
public RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
getDefaultInstanceForType()
public RecognitionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExplicitDecodingConfig()
public ExplicitDecodingConfig getExplicitDecodingConfig()
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
getExplicitDecodingConfigBuilder()
public ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder()
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
getExplicitDecodingConfigOrBuilder()
public ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder()
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
getFeatures()
public RecognitionFeatures getFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
getFeaturesBuilder()
public RecognitionFeatures.Builder getFeaturesBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
getFeaturesOrBuilder()
public RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
hasAdaptation()
public boolean hasAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
Returns |
---|
Type | Description |
boolean | Whether the adaptation field is set.
|
hasAutoDecodingConfig()
public boolean hasAutoDecodingConfig()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
Returns |
---|
Type | Description |
boolean | Whether the autoDecodingConfig field is set.
|
hasExplicitDecodingConfig()
public boolean hasExplicitDecodingConfig()
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
Returns |
---|
Type | Description |
boolean | Whether the explicitDecodingConfig field is set.
|
hasFeatures()
public boolean hasFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns |
---|
Type | Description |
boolean | Whether the features field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAdaptation(SpeechAdaptation value)
public RecognitionConfig.Builder mergeAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
public RecognitionConfig.Builder mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
mergeExplicitDecodingConfig(ExplicitDecodingConfig value)
public RecognitionConfig.Builder mergeExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
mergeFeatures(RecognitionFeatures value)
public RecognitionConfig.Builder mergeFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
mergeFrom(RecognitionConfig other)
public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
public RecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RecognitionConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAdaptation(SpeechAdaptation value)
public RecognitionConfig.Builder setAdaptation(SpeechAdaptation value)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
setAdaptation(SpeechAdaptation.Builder builderForValue)
public RecognitionConfig.Builder setAdaptation(SpeechAdaptation.Builder builderForValue)
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
setAutoDecodingConfig(AutoDetectDecodingConfig value)
public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
setExplicitDecodingConfig(ExplicitDecodingConfig value)
public RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig value)
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)
public RecognitionConfig.Builder setExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)
Explicitly specified decoding parameters.
Required if using headerless PCM audio (linear16, mulaw, alaw).
.google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
setFeatures(RecognitionFeatures value)
public RecognitionConfig.Builder setFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
setFeatures(RecognitionFeatures.Builder builderForValue)
public RecognitionConfig.Builder setFeatures(RecognitionFeatures.Builder builderForValue)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public RecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides