@java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other
            instanceof com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation) {
          return mergeFrom(
              (com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation) other);
        } else {
          super.mergeFrom(other);
          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