Package com.google.genai.types
Class VertexRagStoreRagResource
-
- All Implemented Interfaces:
public abstract class VertexRagStoreRagResource extends JsonSerializable
The definition of the Rag resource. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classVertexRagStoreRagResource.BuilderBuilder for VertexRagStoreRagResource.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description VertexRagStoreRagResource()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>ragCorpus()Optional. abstract Optional<List<String>>ragFileIds()Optional. static VertexRagStoreRagResource.Builderbuilder()Instantiates a builder for VertexRagStoreRagResource. abstract VertexRagStoreRagResource.BuildertoBuilder()Creates a builder with the same values as this instance. static VertexRagStoreRagResourcefromJson(String jsonString)Deserializes a JSON string to a VertexRagStoreRagResource object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
ragCorpus
abstract Optional<String> ragCorpus()
Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
-
ragFileIds
abstract Optional<List<String>> ragFileIds()
Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
-
builder
static VertexRagStoreRagResource.Builder builder()
Instantiates a builder for VertexRagStoreRagResource.
-
toBuilder
abstract VertexRagStoreRagResource.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static VertexRagStoreRagResource fromJson(String jsonString)
Deserializes a JSON string to a VertexRagStoreRagResource object.
-
-
-
-