/** * * * <pre> * *Optional* A list of strings containing words and phrases "hints" so that * the speech recognition is more likely to recognize them. This can be used * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See * [usage limits](/speech-to-text/quotas#content). * </pre> * * <code>repeated string phrases = 1;</code> */ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; }
/** * * * <pre> * *Optional* A list of strings containing words and phrases "hints" so that * the speech recognition is more likely to recognize them. This can be used * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See * [usage limits](/speech-to-text/quotas#content). * </pre> * * <code>repeated string phrases = 1;</code> */ public Builder addPhrases(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /**
/** * * * <pre> * *Optional* A list of strings containing words and phrases "hints" so that * the speech recognition is more likely to recognize them. This can be used * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See * [usage limits](/speech-to-text/quotas#content). * </pre> * * <code>repeated string phrases = 1;</code> */ public Builder setPhrases(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /**
/** * * * <pre> * *Optional* A list of strings containing words and phrases "hints" so that * the speech recognition is more likely to recognize them. This can be used * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See * [usage limits](/speech-to-text/quotas#content). * </pre> * * <code>repeated string phrases = 1;</code> */ public Builder addAllPhrases(java.lang.Iterable<java.lang.String> values) { ensurePhrasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.speech.v1.SpeechContext other) { if (other == com.google.cloud.speech.v1.SpeechContext.getDefaultInstance()) return this; if (!other.phrases_.isEmpty()) { if (phrases_.isEmpty()) { phrases_ = other.phrases_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePhrasesIsMutable(); phrases_.addAll(other.phrases_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }