Class UploadToFileSearchStoreConfig

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

public abstract class UploadToFileSearchStoreConfig extends JsonSerializable
Optional parameters for uploading a file to a FileSearchStore.
  • Constructor Details

    • UploadToFileSearchStoreConfig

      public UploadToFileSearchStoreConfig()
  • Method Details

    • httpOptions

      public abstract Optional<HttpOptions> httpOptions()
      Used to override HTTP request options.
    • shouldReturnHttpResponse

      public abstract Optional<Boolean> shouldReturnHttpResponse()
      If true, the raw HTTP response will be returned in the 'sdk_http_response' field.
    • mimeType

      public abstract Optional<String> mimeType()
      MIME type of the file to be uploaded. If not provided, it will be inferred from the file extension.
    • displayName

      public abstract Optional<String> displayName()
      Display name of the created document.
    • customMetadata

      public abstract Optional<List<CustomMetadata>> customMetadata()
      User provided custom metadata stored as key-value pairs used for querying.
    • chunkingConfig

      public abstract Optional<ChunkingConfig> chunkingConfig()
      Config for telling the service how to chunk the file.
    • builder

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

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

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