/** * * * <pre> * Output only. A list of word-specific information for each recognized word. * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * </pre> * * <code>repeated .google.cloud.speech.v1.WordInfo words = 3;</code> */ public Builder setWords( int index, com.google.cloud.speech.v1.WordInfo.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.set(index, builderForValue.build()); onChanged(); } else { wordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. A list of word-specific information for each recognized word. * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * </pre> * * <code>repeated .google.cloud.speech.v1.WordInfo words = 3;</code> */ public Builder addWords(com.google.cloud.speech.v1.WordInfo.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); onChanged(); } else { wordsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. A list of word-specific information for each recognized word. * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * </pre> * * <code>repeated .google.cloud.speech.v1.WordInfo words = 3;</code> */ public Builder addWords( int index, com.google.cloud.speech.v1.WordInfo.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(index, builderForValue.build()); onChanged(); } else { wordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**