/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder addSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) { if (speechContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeechContextsIsMutable(); speechContexts_.add(index, value); onChanged(); } else { speechContextsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder addSpeechContexts(com.google.cloud.speech.v1.SpeechContext value) { if (speechContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeechContextsIsMutable(); speechContexts_.add(value); onChanged(); } else { speechContextsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder setSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) { if (speechContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpeechContextsIsMutable(); speechContexts_.set(index, value); onChanged(); } else { speechContextsBuilder_.setMessage(index, value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSpeechContextsIsMutable(); speechContexts_.addAll(other.speechContexts_);
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder addSpeechContexts( com.google.cloud.speech.v1.SpeechContext.Builder builderForValue) { if (speechContextsBuilder_ == null) { ensureSpeechContextsIsMutable(); speechContexts_.add(builderForValue.build()); onChanged(); } else { speechContextsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder addSpeechContexts( int index, com.google.cloud.speech.v1.SpeechContext.Builder builderForValue) { if (speechContextsBuilder_ == null) { ensureSpeechContextsIsMutable(); speechContexts_.add(index, builderForValue.build()); onChanged(); } else { speechContextsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder setSpeechContexts( int index, com.google.cloud.speech.v1.SpeechContext.Builder builderForValue) { if (speechContextsBuilder_ == null) { ensureSpeechContextsIsMutable(); speechContexts_.set(index, builderForValue.build()); onChanged(); } else { speechContextsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder removeSpeechContexts(int index) { if (speechContextsBuilder_ == null) { ensureSpeechContextsIsMutable(); speechContexts_.remove(index); onChanged(); } else { speechContextsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * *Optional* array of [SpeechContext][google.cloud.speech.v1.SpeechContext]. * A means to provide context to assist the speech recognition. For more * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * </pre> * * <code>repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;</code> */ public Builder addAllSpeechContexts( java.lang.Iterable<? extends com.google.cloud.speech.v1.SpeechContext> values) { if (speechContextsBuilder_ == null) { ensureSpeechContextsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_); onChanged(); } else { speechContextsBuilder_.addAllMessages(values); } return this; } /**