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

      if (hasUri() != other.hasUri()) return false;
      if (hasUri()) {
        if (!getUri().equals(other.getUri())) return false;
      }
      if (hasTitle() != other.hasTitle()) return false;
      if (hasTitle()) {
        if (!getTitle().equals(other.getTitle())) return false;
      }
      if (hasText() != other.hasText()) return false;
      if (hasText()) {
        if (!getText().equals(other.getText())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Text of the attribution.
</pre>

<code>optional string text = 3;</code>

@return The bytes for text.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingChunk.java