@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.SpeculativeDecodingSpec)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.SpeculativeDecodingSpec other =
        (com.google.cloud.vertexai.api.SpeculativeDecodingSpec) obj;

    if (getSpeculativeTokenCount() != other.getSpeculativeTokenCount()) return false;
    if (!getSpeculationCase().equals(other.getSpeculationCase())) return false;
    switch (speculationCase_) {
      case 2:
        if (!getDraftModelSpeculation().equals(other.getDraftModelSpeculation())) return false;
        break;
      case 3:
        if (!getNgramSpeculation().equals(other.getNgramSpeculation())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The number of speculative tokens to generate at each step.
</pre>

<code>int32 speculative_token_count = 1;</code>

@return The speculativeTokenCount.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java