/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public java.util.List<com.google.cloud.speech.v1.SpeechContext.Builder> getSpeechContextsBuilderList() { return getSpeechContextsFieldBuilder().getBuilderList(); }
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder(int index) { return getSpeechContextsFieldBuilder().getBuilder(index); } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder(int index) { return getSpeechContextsFieldBuilder() .addBuilder(index, com.google.cloud.speech.v1.SpeechContext.getDefaultInstance()); } /**
speechContextsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechContextsFieldBuilder() : null; } else {
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder() { return getSpeechContextsFieldBuilder() .addBuilder(com.google.cloud.speech.v1.SpeechContext.getDefaultInstance()); } /**
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSpeechContextsFieldBuilder(); } }