public Builder setSpeculativeTokenCount(int value) {

      speculativeTokenCount_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
<pre>
The number of speculative tokens to generate at each step.
</pre>

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

@param value The speculativeTokenCount to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java