Class VertexRagStoreRagResource

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VertexRagStoreRagResource

public abstract class VertexRagStoreRagResource extends JsonSerializable
The definition of the Rag resource.
  • Constructor Details

    • VertexRagStoreRagResource

      public VertexRagStoreRagResource()
  • Method Details

    • ragCorpus

      public abstract Optional<String> ragCorpus()
      Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
    • ragFileIds

      public abstract Optional<List<String>> ragFileIds()
      Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
    • builder

      public static VertexRagStoreRagResource.Builder builder()
      Instantiates a builder for VertexRagStoreRagResource.
    • toBuilder

      public abstract VertexRagStoreRagResource.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static VertexRagStoreRagResource fromJson(String jsonString)
      Deserializes a JSON string to a VertexRagStoreRagResource object.