/** * * * <pre> * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. * Example: "en-US". * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * </pre> * * <code>string language_code = 3;</code> */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /**
+ com.google.protobuf.Internal.hashBoolean(getEnableSeparateRecognitionPerChannel()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + MAX_ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getMaxAlternatives();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; boolean result = true; result = result && encoding_ == other.encoding_; result = result && (getSampleRateHertz() == other.getSampleRateHertz()); result = result && (getEnableSeparateRecognitionPerChannel() == other.getEnableSeparateRecognitionPerChannel()); result = result && getLanguageCode().equals(other.getLanguageCode()); result = result && (getMaxAlternatives() == other.getMaxAlternatives()); result = result && (getProfanityFilter() == other.getProfanityFilter()); result = result && getSpeechContextsList().equals(other.getSpeechContextsList()); result = result && (getEnableWordTimeOffsets() == other.getEnableWordTimeOffsets()); result = result && (getEnableAutomaticPunctuation() == other.getEnableAutomaticPunctuation()); result = result && getModel().equals(other.getModel()); result = result && (getUseEnhanced() == other.getUseEnhanced()); result = result && unknownFields.equals(other.unknownFields); return result; }
setEnableSeparateRecognitionPerChannel(other.getEnableSeparateRecognitionPerChannel()); if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged();
new ResponseApiStreamingObserver<StreamingRecognizeResponse>( this, config.getLanguageCode());