/** * * * <pre> * Output only. This repeated list contains zero or more results that * correspond to consecutive portions of the audio currently being processed. * It contains zero or one `is_final=true` result (the newly settled portion), * followed by zero or more `is_final=false` results (the interim results). * </pre> * * <code>repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;</code> */ public Builder setResults( int index, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. This repeated list contains zero or more results that * correspond to consecutive portions of the audio currently being processed. * It contains zero or one `is_final=true` result (the newly settled portion), * followed by zero or more `is_final=false` results (the interim results). * </pre> * * <code>repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;</code> */ public Builder addResults( int index, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. This repeated list contains zero or more results that * correspond to consecutive portions of the audio currently being processed. * It contains zero or one `is_final=true` result (the newly settled portion), * followed by zero or more `is_final=false` results (the interim results). * </pre> * * <code>repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;</code> */ public Builder addResults( com.google.cloud.speech.v1.StreamingRecognitionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /**