public com.google.cloud.vertexai.api.GroundingMetadata getGroundingMetadata() {
      if (groundingMetadataBuilder_ == null) {
        return groundingMetadata_ == null
            ? com.google.cloud.vertexai.api.GroundingMetadata.getDefaultInstance()
            : groundingMetadata_;
      } else {
        return groundingMetadataBuilder_.getMessage();
      }
    }
<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>

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