Package com.google.genai.types
Class UploadToFileSearchStoreConfig
-
- All Implemented Interfaces:
public abstract class UploadToFileSearchStoreConfig extends JsonSerializable
Optional parameters for uploading a file to a FileSearchStore.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classUploadToFileSearchStoreConfig.BuilderBuilder for UploadToFileSearchStoreConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description UploadToFileSearchStoreConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<HttpOptions>httpOptions()Used to override HTTP request options. abstract Optional<Boolean>shouldReturnHttpResponse()If true, the raw HTTP response will be returned in the 'sdk_http_response' field. abstract Optional<String>mimeType()MIME type of the file to be uploaded. abstract Optional<String>displayName()Display name of the created document. abstract Optional<List<CustomMetadata>>customMetadata()User provided custom metadata stored as key-value pairs used for querying. abstract Optional<ChunkingConfig>chunkingConfig()Config for telling the service how to chunk the file. static UploadToFileSearchStoreConfig.Builderbuilder()Instantiates a builder for UploadToFileSearchStoreConfig. abstract UploadToFileSearchStoreConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static UploadToFileSearchStoreConfigfromJson(String jsonString)Deserializes a JSON string to a UploadToFileSearchStoreConfig 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
-
httpOptions
abstract Optional<HttpOptions> httpOptions()
Used to override HTTP request options.
-
shouldReturnHttpResponse
abstract Optional<Boolean> shouldReturnHttpResponse()
If true, the raw HTTP response will be returned in the 'sdk_http_response' field.
-
mimeType
abstract Optional<String> mimeType()
MIME type of the file to be uploaded. If not provided, it will be inferred from the file extension.
-
displayName
abstract Optional<String> displayName()
Display name of the created document.
-
customMetadata
abstract Optional<List<CustomMetadata>> customMetadata()
User provided custom metadata stored as key-value pairs used for querying.
-
chunkingConfig
abstract Optional<ChunkingConfig> chunkingConfig()
Config for telling the service how to chunk the file.
-
builder
static UploadToFileSearchStoreConfig.Builder builder()
Instantiates a builder for UploadToFileSearchStoreConfig.
-
toBuilder
abstract UploadToFileSearchStoreConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static UploadToFileSearchStoreConfig fromJson(String jsonString)
Deserializes a JSON string to a UploadToFileSearchStoreConfig object.
-
-
-
-