@java.lang.Override
    public com.google.cloud.vertexai.api.GroundingChunk.RetrievedContext getRetrievedContext() {
      if (retrievedContextBuilder_ == null) {
        if (chunkTypeCase_ == 2) {
          return (com.google.cloud.vertexai.api.GroundingChunk.RetrievedContext) chunkType_;
        }
        return com.google.cloud.vertexai.api.GroundingChunk.RetrievedContext.getDefaultInstance();
      } else {
        if (chunkTypeCase_ == 2) {
          return retrievedContextBuilder_.getMessage();
        }
        return com.google.cloud.vertexai.api.GroundingChunk.RetrievedContext.getDefaultInstance();
      }
    }
<pre>
Grounding chunk from context retrieved by the retrieval tools.
</pre>

<code>.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;</code>

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