/** * * * <pre> * Output only. May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). * These alternatives are ordered in terms of accuracy, with the top (first) * alternative being the most probable, as ranked by the recognizer. * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;</code> */ public java.util.List<com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder> getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); }
/** * * * <pre> * Output only. May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). * These alternatives are ordered in terms of accuracy, with the top (first) * alternative being the most probable, as ranked by the recognizer. * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;</code> */ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAlternativesBuilder( int index) { return getAlternativesFieldBuilder().getBuilder(index); } /**
/** * * * <pre> * Output only. May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). * These alternatives are ordered in terms of accuracy, with the top (first) * alternative being the most probable, as ranked by the recognizer. * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;</code> */ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder( int index) { return getAlternativesFieldBuilder() .addBuilder( index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()); } /**
alternativesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAlternativesFieldBuilder() : null; } else {
/** * * * <pre> * Output only. May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). * These alternatives are ordered in terms of accuracy, with the top (first) * alternative being the most probable, as ranked by the recognizer. * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;</code> */ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() { return getAlternativesFieldBuilder() .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()); } /**
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } }