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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RecognitionConfig build()
Returns
buildPartial()
public RecognitionConfig buildPartial()
Returns
clear()
public RecognitionConfig.Builder clear()
Returns
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;
Returns
clearAutoDecodingConfig()
public RecognitionConfig.Builder clearAutoDecodingConfig()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
Returns
clearDecodingConfig()
public RecognitionConfig.Builder clearDecodingConfig()
Returns
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;
Returns
clearFeatures()
public RecognitionConfig.Builder clearFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public RecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public RecognitionConfig.Builder clone()
Returns
Overrides
getAdaptation()
public SpeechAdaptation getAdaptation()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
Returns
getAdaptationBuilder()
public SpeechAdaptation.Builder getAdaptationBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
Returns
getAdaptationOrBuilder()
public SpeechAdaptationOrBuilder getAdaptationOrBuilder()
Speech adaptation context that weights recognizer predictions for specific
words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
Returns
getAutoDecodingConfig()
public AutoDetectDecodingConfig getAutoDecodingConfig()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
Returns
getAutoDecodingConfigBuilder()
public AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
Returns
getAutoDecodingConfigOrBuilder()
public AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder()
Automatically detect decoding parameters.
Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
Returns
getDecodingConfigCase()
public RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
Returns
getDefaultInstanceForType()
public RecognitionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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;
Returns
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;
Returns
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;
Returns
getFeatures()
public RecognitionFeatures getFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns
getFeaturesBuilder()
public RecognitionFeatures.Builder getFeaturesBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns
getFeaturesOrBuilder()
public RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
mergeFeatures(RecognitionFeatures value)
public RecognitionConfig.Builder mergeFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Parameter
Returns
mergeFrom(RecognitionConfig other)
public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
Parameter
Returns
public RecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RecognitionConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setFeatures(RecognitionFeatures value)
public RecognitionConfig.Builder setFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Parameter
Returns
setFeatures(RecognitionFeatures.Builder builderForValue)
public RecognitionConfig.Builder setFeatures(RecognitionFeatures.Builder builderForValue)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides