@java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + SPECULATIVE_TOKEN_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getSpeculativeTokenCount();
    switch (speculationCase_) {
      case 2:
        hash = (37 * hash) + DRAFT_MODEL_SPECULATION_FIELD_NUMBER;
        hash = (53 * hash) + getDraftModelSpeculation().hashCode();
        break;
      case 3:
        hash = (37 * hash) + NGRAM_SPECULATION_FIELD_NUMBER;
        hash = (53 * hash) + getNgramSpeculation().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }
<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