Package com.google.cloud.speech.v2
Class RecognitionConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
- com.google.cloud.speech.v2.RecognitionConfig.Builder
-
- All Implemented Interfaces:
RecognitionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RecognitionConfig
public static final class RecognitionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder> implements RecognitionConfigOrBuilder
Provides information to the Recognizer that specifies how to process the recognition request.
Protobuf typegoogle.cloud.speech.v2.RecognitionConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RecognitionConfig.BuilderaddAllLanguageCodes(Iterable<String> values)Optional.RecognitionConfig.BuilderaddLanguageCodes(String value)Optional.RecognitionConfig.BuilderaddLanguageCodesBytes(com.google.protobuf.ByteString value)Optional.RecognitionConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RecognitionConfigbuild()RecognitionConfigbuildPartial()RecognitionConfig.Builderclear()RecognitionConfig.BuilderclearAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.RecognitionConfig.BuilderclearAutoDecodingConfig()Automatically detect decoding parameters.RecognitionConfig.BuilderclearDecodingConfig()RecognitionConfig.BuilderclearExplicitDecodingConfig()Explicitly specified decoding parameters.RecognitionConfig.BuilderclearFeatures()Speech recognition features to enable.RecognitionConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RecognitionConfig.BuilderclearLanguageCodes()Optional.RecognitionConfig.BuilderclearModel()Optional.RecognitionConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RecognitionConfig.Builderclone()SpeechAdaptationgetAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.SpeechAdaptation.BuildergetAdaptationBuilder()Speech adaptation context that weights recognizer predictions for specific words and phrases.SpeechAdaptationOrBuildergetAdaptationOrBuilder()Speech adaptation context that weights recognizer predictions for specific words and phrases.AutoDetectDecodingConfiggetAutoDecodingConfig()Automatically detect decoding parameters.AutoDetectDecodingConfig.BuildergetAutoDecodingConfigBuilder()Automatically detect decoding parameters.AutoDetectDecodingConfigOrBuildergetAutoDecodingConfigOrBuilder()Automatically detect decoding parameters.RecognitionConfig.DecodingConfigCasegetDecodingConfigCase()RecognitionConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ExplicitDecodingConfiggetExplicitDecodingConfig()Explicitly specified decoding parameters.ExplicitDecodingConfig.BuildergetExplicitDecodingConfigBuilder()Explicitly specified decoding parameters.ExplicitDecodingConfigOrBuildergetExplicitDecodingConfigOrBuilder()Explicitly specified decoding parameters.RecognitionFeaturesgetFeatures()Speech recognition features to enable.RecognitionFeatures.BuildergetFeaturesBuilder()Speech recognition features to enable.RecognitionFeaturesOrBuildergetFeaturesOrBuilder()Speech recognition features to enable.StringgetLanguageCodes(int index)Optional.com.google.protobuf.ByteStringgetLanguageCodesBytes(int index)Optional.intgetLanguageCodesCount()Optional.com.google.protobuf.ProtocolStringListgetLanguageCodesList()Optional.StringgetModel()Optional.com.google.protobuf.ByteStringgetModelBytes()Optional.booleanhasAdaptation()Speech adaptation context that weights recognizer predictions for specific words and phrases.booleanhasAutoDecodingConfig()Automatically detect decoding parameters.booleanhasExplicitDecodingConfig()Explicitly specified decoding parameters.booleanhasFeatures()Speech recognition features to enable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RecognitionConfig.BuildermergeAdaptation(SpeechAdaptation value)Speech adaptation context that weights recognizer predictions for specific words and phrases.RecognitionConfig.BuildermergeAutoDecodingConfig(AutoDetectDecodingConfig value)Automatically detect decoding parameters.RecognitionConfig.BuildermergeExplicitDecodingConfig(ExplicitDecodingConfig value)Explicitly specified decoding parameters.RecognitionConfig.BuildermergeFeatures(RecognitionFeatures value)Speech recognition features to enable.RecognitionConfig.BuildermergeFrom(RecognitionConfig other)RecognitionConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RecognitionConfig.BuildermergeFrom(com.google.protobuf.Message other)RecognitionConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RecognitionConfig.BuildersetAdaptation(SpeechAdaptation value)Speech adaptation context that weights recognizer predictions for specific words and phrases.RecognitionConfig.BuildersetAdaptation(SpeechAdaptation.Builder builderForValue)Speech adaptation context that weights recognizer predictions for specific words and phrases.RecognitionConfig.BuildersetAutoDecodingConfig(AutoDetectDecodingConfig value)Automatically detect decoding parameters.RecognitionConfig.BuildersetAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)Automatically detect decoding parameters.RecognitionConfig.BuildersetExplicitDecodingConfig(ExplicitDecodingConfig value)Explicitly specified decoding parameters.RecognitionConfig.BuildersetExplicitDecodingConfig(ExplicitDecodingConfig.Builder builderForValue)Explicitly specified decoding parameters.RecognitionConfig.BuildersetFeatures(RecognitionFeatures value)Speech recognition features to enable.RecognitionConfig.BuildersetFeatures(RecognitionFeatures.Builder builderForValue)Speech recognition features to enable.RecognitionConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RecognitionConfig.BuildersetLanguageCodes(int index, String value)Optional.RecognitionConfig.BuildersetModel(String value)Optional.RecognitionConfig.BuildersetModelBytes(com.google.protobuf.ByteString value)Optional.RecognitionConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RecognitionConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
clear
public RecognitionConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
getDefaultInstanceForType
public RecognitionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RecognitionConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RecognitionConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RecognitionConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
setField
public RecognitionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
clearField
public RecognitionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
clearOneof
public RecognitionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
setRepeatedField
public RecognitionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
addRepeatedField
public RecognitionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
mergeFrom
public RecognitionConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>
-
mergeFrom
public RecognitionConfig.Builder mergeFrom(RecognitionConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
mergeFrom
public RecognitionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecognitionConfig.Builder>- Throws:
IOException
-
getDecodingConfigCase
public RecognitionConfig.DecodingConfigCase getDecodingConfigCase()
- Specified by:
getDecodingConfigCasein interfaceRecognitionConfigOrBuilder
-
clearDecodingConfig
public RecognitionConfig.Builder clearDecodingConfig()
-
hasAutoDecodingConfig
public boolean hasAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Specified by:
hasAutoDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the autoDecodingConfig field is set.
-
getAutoDecodingConfig
public AutoDetectDecodingConfig getAutoDecodingConfig()
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;- Specified by:
getAutoDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The autoDecodingConfig.
-
setAutoDecodingConfig
public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
-
setAutoDecodingConfig
public RecognitionConfig.Builder setAutoDecodingConfig(AutoDetectDecodingConfig.Builder builderForValue)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
-
mergeAutoDecodingConfig
public RecognitionConfig.Builder mergeAutoDecodingConfig(AutoDetectDecodingConfig value)
Automatically detect decoding parameters. Preferred for supported formats.
.google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
-
clearAutoDecodingConfig
public RecognitionConfig.Builder clearAutoDecodingConfig()
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;- Specified by:
getAutoDecodingConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-
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;- Specified by:
hasExplicitDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the explicitDecodingConfig field is set.
-
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;- Specified by:
getExplicitDecodingConfigin interfaceRecognitionConfigOrBuilder- Returns:
- The explicitDecodingConfig.
-
setExplicitDecodingConfig
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
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;
-
mergeExplicitDecodingConfig
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;
-
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;
-
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;- Specified by:
getExplicitDecodingConfigOrBuilderin interfaceRecognitionConfigOrBuilder
-
getModel
public String getModel()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelin interfaceRecognitionConfigOrBuilder- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.ByteString getModelBytes()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelBytesin interfaceRecognitionConfigOrBuilder- Returns:
- The bytes for model.
-
setModel
public RecognitionConfig.Builder setModel(String value)
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The model to set.- Returns:
- This builder for chaining.
-
clearModel
public RecognitionConfig.Builder clearModel()
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setModelBytes
public RecognitionConfig.Builder setModelBytes(com.google.protobuf.ByteString value)
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
string model = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for model to set.- Returns:
- This builder for chaining.
-
getLanguageCodesList
public com.google.protobuf.ProtocolStringList getLanguageCodesList()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodesListin interfaceRecognitionConfigOrBuilder- Returns:
- A list containing the languageCodes.
-
getLanguageCodesCount
public int getLanguageCodesCount()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodesCountin interfaceRecognitionConfigOrBuilder- Returns:
- The count of languageCodes.
-
getLanguageCodes
public String getLanguageCodes(int index)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodesin interfaceRecognitionConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The languageCodes at the given index.
-
getLanguageCodesBytes
public com.google.protobuf.ByteString getLanguageCodesBytes(int index)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodesBytesin interfaceRecognitionConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageCodes at the given index.
-
setLanguageCodes
public RecognitionConfig.Builder setLanguageCodes(int index, String value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The languageCodes to set.- Returns:
- This builder for chaining.
-
addLanguageCodes
public RecognitionConfig.Builder addLanguageCodes(String value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languageCodes to add.- Returns:
- This builder for chaining.
-
addAllLanguageCodes
public RecognitionConfig.Builder addAllLanguageCodes(Iterable<String> values)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The languageCodes to add.- Returns:
- This builder for chaining.
-
clearLanguageCodes
public RecognitionConfig.Builder clearLanguageCodes()
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addLanguageCodesBytes
public RecognitionConfig.Builder addLanguageCodesBytes(com.google.protobuf.ByteString value)
Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
repeated string language_codes = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the languageCodes to add.- Returns:
- This builder for chaining.
-
hasFeatures
public boolean hasFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Specified by:
hasFeaturesin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the features field is set.
-
getFeatures
public RecognitionFeatures getFeatures()
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;- Specified by:
getFeaturesin interfaceRecognitionConfigOrBuilder- Returns:
- The features.
-
setFeatures
public RecognitionConfig.Builder setFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
-
setFeatures
public RecognitionConfig.Builder setFeatures(RecognitionFeatures.Builder builderForValue)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
-
mergeFeatures
public RecognitionConfig.Builder mergeFeatures(RecognitionFeatures value)
Speech recognition features to enable.
.google.cloud.speech.v2.RecognitionFeatures features = 2;
-
clearFeatures
public RecognitionConfig.Builder clearFeatures()
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;- Specified by:
getFeaturesOrBuilderin interfaceRecognitionConfigOrBuilder
-
hasAdaptation
public boolean hasAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Specified by:
hasAdaptationin interfaceRecognitionConfigOrBuilder- Returns:
- Whether the adaptation field is set.
-
getAdaptation
public SpeechAdaptation getAdaptation()
Speech adaptation context that weights recognizer predictions for specific words and phrases.
.google.cloud.speech.v2.SpeechAdaptation adaptation = 6;- Specified by:
getAdaptationin interfaceRecognitionConfigOrBuilder- Returns:
- The adaptation.
-
setAdaptation
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
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;
-
mergeAdaptation
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;
-
clearAdaptation
public RecognitionConfig.Builder clearAdaptation()
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;- Specified by:
getAdaptationOrBuilderin interfaceRecognitionConfigOrBuilder
-
setUnknownFields
public final RecognitionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
mergeUnknownFields
public final RecognitionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RecognitionConfig.Builder>
-
-