Package com.google.genai.types
Class UploadToFileSearchStoreConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UploadToFileSearchStoreConfig
Optional parameters for uploading a file to a FileSearchStore.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for UploadToFileSearchStoreConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for UploadToFileSearchStoreConfig.abstract Optional<ChunkingConfig>Config for telling the service how to chunk the file.abstract Optional<List<CustomMetadata>>User provided custom metadata stored as key-value pairs used for querying.Display name of the created document.Deserializes a JSON string to a UploadToFileSearchStoreConfig object.abstract Optional<HttpOptions>Used to override HTTP request options.mimeType()MIME type of the file to be uploaded.If true, the raw HTTP response will be returned in the 'sdk_http_response' field.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
UploadToFileSearchStoreConfig
public UploadToFileSearchStoreConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
shouldReturnHttpResponse
If true, the raw HTTP response will be returned in the 'sdk_http_response' field. -
mimeType
MIME type of the file to be uploaded. If not provided, it will be inferred from the file extension. -
displayName
Display name of the created document. -
customMetadata
User provided custom metadata stored as key-value pairs used for querying. -
chunkingConfig
Config for telling the service how to chunk the file. -
builder
Instantiates a builder for UploadToFileSearchStoreConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UploadToFileSearchStoreConfig object.
-