@java.lang.Override
    public boolean hasFrequencyPenalty() {
      return ((bitField0_ & 0x00000200) != 0);
    }
<pre>
Optional. Frequency penalties.
</pre>

<code>optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];</code>

@return Whether the frequencyPenalty field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java