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

      if (hasToken() != other.hasToken()) return false;
      if (hasToken()) {
        if (!getToken().equals(other.getToken())) return false;
      }
      if (hasTokenId() != other.hasTokenId()) return false;
      if (hasTokenId()) {
        if (getTokenId() != other.getTokenId()) return false;
      }
      if (hasLogProbability() != other.hasLogProbability()) return false;
      if (hasLogProbability()) {
        if (java.lang.Float.floatToIntBits(getLogProbability())
            != java.lang.Float.floatToIntBits(other.getLogProbability())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
The candidate's log probability.
</pre>

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

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