@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)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.LogprobsResult other =
        (com.google.cloud.vertexai.api.LogprobsResult) obj;

    if (!getTopCandidatesList().equals(other.getTopCandidatesList())) return false;
    if (!getChosenCandidatesList().equals(other.getChosenCandidatesList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
</pre>

<code>repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/LogprobsResult.java