public Builder setStopSequences(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureStopSequencesIsMutable();
      stopSequences_.set(index, value);
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
<pre>
Optional. Stop sequences.
</pre>

<code>repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];</code>

@param index The index to set the value at.
@param value The stopSequences to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java