@java.lang.Override
  public com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculationOrBuilder
      getNgramSpeculationOrBuilder() {
    if (speculationCase_ == 3) {
      return (com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation) speculation_;
    }
    return com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation
        .getDefaultInstance();
  }
<pre>
N-Gram speculation.
</pre>

<code>.google.cloud.vertexai.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3;
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java