Class ImportFileConfig

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

public abstract class ImportFileConfig extends JsonSerializable
Optional parameters for importing a file.
  • Constructor Details

    • ImportFileConfig

      public ImportFileConfig()
  • Method Details

    • httpOptions

      public abstract Optional<HttpOptions> httpOptions()
      Used to override HTTP request options.
    • 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 ImportFileConfig.Builder builder()
      Instantiates a builder for ImportFileConfig.
    • toBuilder

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

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