private void buildPartialOneofs(com.google.cloud.vertexai.api.SpeculativeDecodingSpec result) {
      result.speculationCase_ = speculationCase_;
      result.speculation_ = this.speculation_;
      if (speculationCase_ == 2 && draftModelSpeculationBuilder_ != null) {
        result.speculation_ = draftModelSpeculationBuilder_.build();
      }
      if (speculationCase_ == 3 && ngramSpeculationBuilder_ != null) {
        result.speculation_ = ngramSpeculationBuilder_.build();
      }
    }
<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