/** * * * <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 value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } 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 value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } 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 value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_);
/** * * * <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 removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } 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; } /**
/** * * * <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 addAllResults( java.lang.Iterable<? extends com.google.cloud.speech.v1.StreamingRecognitionResult> values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /**