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

    if (!getChunkTypeCase().equals(other.getChunkTypeCase())) return false;
    switch (chunkTypeCase_) {
      case 1:
        if (!getWeb().equals(other.getWeb())) return false;
        break;
      case 2:
        if (!getRetrievedContext().equals(other.getRetrievedContext())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Grounding chunk from context retrieved by the retrieval tools.
</pre>

<code>.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingChunk.java