public Builder mergeFrom(com.google.cloud.vertexai.api.SpeculativeDecodingSpec other) {
      if (other == com.google.cloud.vertexai.api.SpeculativeDecodingSpec.getDefaultInstance())
        return this;
      if (other.getSpeculativeTokenCount() != 0) {
        setSpeculativeTokenCount(other.getSpeculativeTokenCount());
      }
      switch (other.getSpeculationCase()) {
        case DRAFT_MODEL_SPECULATION:
          {
            mergeDraftModelSpeculation(other.getDraftModelSpeculation());
            break;
          }
        case NGRAM_SPECULATION:
          {
            mergeNgramSpeculation(other.getNgramSpeculation());
            break;
          }
        case SPECULATION_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Configuration for Speculative Decoding.
</pre>

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