public Builder setNgramSpeculation(
        com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation.Builder
            builderForValue) {
      if (ngramSpeculationBuilder_ == null) {
        speculation_ = builderForValue.build();
        onChanged();
      } else {
        ngramSpeculationBuilder_.setMessage(builderForValue.build());
      }
      speculationCase_ = 3;
      return this;
    }
<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