@java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() { return com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance(); }
/** * * * <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()); } /**
/** * * * <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()); } /**
/** * * * <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()); } /**
/** * * * <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()); } /**
/** * * * <pre> * Output only. Transcript text representing the words that the user spoke. * </pre> * * <code>string transcript = 1;</code> */ public Builder clearTranscript() { transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) {