public Builder mergeFrom(
          com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation other) {
        if (other
            == com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation
                .getDefaultInstance()) return this;
        if (other.getNgramSize() != 0) {
          setNgramSize(other.getNgramSize());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }
<pre>
N-Gram speculation works by trying to find matching tokens in the
previous prompt sequence and use those as speculation for generating
new tokens.
</pre>

Protobuf type {@code google.cloud.vertexai.v1.SpeculativeDecodingSpec.NgramSpeculation}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java