@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < webSearchQueries_.size(); i++) {
        dataSize += computeStringSizeNoTag(webSearchQueries_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getWebSearchQueriesList().size();
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint());
    }
    for (int i = 0; i < groundingChunks_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, groundingChunks_.get(i));
    }
    for (int i = 0; i < groundingSupports_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(6, groundingSupports_.get(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRetrievalMetadata());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Optional. Output only. Retrieval metadata.
</pre>

<code>
optional .google.cloud.vertexai.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java