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

    if (getIndex() != other.getIndex()) return false;
    if (hasContent() != other.hasContent()) return false;
    if (hasContent()) {
      if (!getContent().equals(other.getContent())) return false;
    }
    if (java.lang.Double.doubleToLongBits(getScore())
        != java.lang.Double.doubleToLongBits(other.getScore())) return false;
    if (java.lang.Double.doubleToLongBits(getAvgLogprobs())
        != java.lang.Double.doubleToLongBits(other.getAvgLogprobs())) return false;
    if (hasLogprobsResult() != other.hasLogprobsResult()) return false;
    if (hasLogprobsResult()) {
      if (!getLogprobsResult().equals(other.getLogprobsResult())) return false;
    }
    if (finishReason_ != other.finishReason_) return false;
    if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false;
    if (hasFinishMessage() != other.hasFinishMessage()) return false;
    if (hasFinishMessage()) {
      if (!getFinishMessage().equals(other.getFinishMessage())) return false;
    }
    if (hasCitationMetadata() != other.hasCitationMetadata()) return false;
    if (hasCitationMetadata()) {
      if (!getCitationMetadata().equals(other.getCitationMetadata())) return false;
    }
    if (hasGroundingMetadata() != other.hasGroundingMetadata()) return false;
    if (hasGroundingMetadata()) {
      if (!getGroundingMetadata().equals(other.getGroundingMetadata())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Output only. Metadata specifies sources used to ground generated content.
</pre>

<code>
.google.cloud.vertexai.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java