/** * * * <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 clearWords() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { wordsBuilder_.clear(); } 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 value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(index, value); onChanged(); } else { wordsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Output only. Transcript text representing the words that the user spoke. * </pre> * * <code>string transcript = 1;</code> */ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; onChanged(); 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 value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(value); onChanged(); } else { wordsBuilder_.addMessage(value); } 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 setWords(int index, com.google.cloud.speech.v1.WordInfo value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.set(index, value); onChanged(); } else { wordsBuilder_.setMessage(index, value); } 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 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. The confidence estimate between 0.0 and 1.0. A higher number * indicates an estimated greater likelihood that the recognized words are * correct. This field is set only for the top alternative of a non-streaming * result or, of a streaming result where `is_final=true`. * This field is not guaranteed to be accurate and users should not rely on it * to be always provided. * The default of 0.0 is a sentinel value indicating `confidence` was not set. * </pre> * * <code>float confidence = 2;</code> */ public Builder setConfidence(float value) { confidence_ = value; onChanged(); 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; } /**
/** * * * <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. The confidence estimate between 0.0 and 1.0. A higher number * indicates an estimated greater likelihood that the recognized words are * correct. This field is set only for the top alternative of a non-streaming * result or, of a streaming result where `is_final=true`. * This field is not guaranteed to be accurate and users should not rely on it * to be always provided. * The default of 0.0 is a sentinel value indicating `confidence` was not set. * </pre> * * <code>float confidence = 2;</code> */ public Builder clearConfidence() { confidence_ = 0F; onChanged(); 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 addAllWords( java.lang.Iterable<? extends com.google.cloud.speech.v1.WordInfo> values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); } 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 removeWords(int index) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.remove(index); onChanged(); } else { wordsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * Output only. Transcript text representing the words that the user spoke. * </pre> * * <code>string transcript = 1;</code> */ public Builder setTranscript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } transcript_ = value; onChanged(); return this; } /**
/** * * * <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; } /**