@java.lang.Override
    public boolean hasNgramSpeculation() {
      return speculationCase_ == 3;
    }
<pre>
N-Gram speculation.
</pre>

<code>
.google.cloud.vertexai.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3;
</code>

@return Whether the ngramSpeculation field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java