public final class RecognitionConfig extends GeneratedMessageV3 implements RecognitionConfigOrBuilder
Provides information to the Recognizer that specifies how to process the
recognition request.
Protobuf type google.cloud.speech.v2.RecognitionConfig
Static Fields
ADAPTATION_FIELD_NUMBER
public static final int ADAPTATION_FIELD_NUMBER
Field Value
AUTO_DECODING_CONFIG_FIELD_NUMBER
public static final int AUTO_DECODING_CONFIG_FIELD_NUMBER
Field Value
EXPLICIT_DECODING_CONFIG_FIELD_NUMBER
public static final int EXPLICIT_DECODING_CONFIG_FIELD_NUMBER
Field Value
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RecognitionConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RecognitionConfig.Builder newBuilder()
Returns
newBuilder(RecognitionConfig prototype)
public static RecognitionConfig.Builder newBuilder(RecognitionConfig prototype)
Parameter
Returns
public static RecognitionConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecognitionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RecognitionConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecognitionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RecognitionConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecognitionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RecognitionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecognitionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RecognitionConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecognitionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RecognitionConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
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
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
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
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
getFeaturesOrBuilder()
public RecognitionFeaturesOrBuilder getFeaturesOrBuilder()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
Returns
getParserForType()
public Parser<RecognitionConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RecognitionConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecognitionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RecognitionConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions