@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeInt32(2, similarityTopK_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeDouble(3, vectorDistanceThreshold_);
    }
    for (int i = 0; i < ragResources_.size(); i++) {
      output.writeMessage(4, ragResources_.get(i));
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(6, getRagRetrievalConfig());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. The retrieval config for the Rag query.
</pre>

<code>
.google.cloud.vertexai.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/VertexRagStore.java