@java.lang.Override
    public boolean hasLogProbability() {
      return ((bitField0_ & 0x00000004) != 0);
    }
<pre>
The candidate's log probability.
</pre>

<code>optional float log_probability = 2;</code>

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