Class ImportFileConfig.Builder

java.lang.Object
com.google.genai.types.ImportFileConfig.Builder
Enclosing class:
ImportFileConfig

public abstract static class ImportFileConfig.Builder extends Object
Builder for ImportFileConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • httpOptions

      public abstract ImportFileConfig.Builder httpOptions(HttpOptions httpOptions)
      Setter for httpOptions.

      httpOptions: Used to override HTTP request options.

    • httpOptions

      @CanIgnoreReturnValue public ImportFileConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
      Setter for httpOptions builder.

      httpOptions: Used to override HTTP request options.

    • clearHttpOptions

      @CanIgnoreReturnValue public ImportFileConfig.Builder clearHttpOptions()
      Clears the value of httpOptions field.
    • customMetadata

      public abstract ImportFileConfig.Builder customMetadata(List<CustomMetadata> customMetadata)
      Setter for customMetadata.

      customMetadata: User provided custom metadata stored as key-value pairs used for querying.

    • customMetadata

      @CanIgnoreReturnValue public ImportFileConfig.Builder customMetadata(CustomMetadata... customMetadata)
      Setter for customMetadata.

      customMetadata: User provided custom metadata stored as key-value pairs used for querying.

    • customMetadata

      @CanIgnoreReturnValue public ImportFileConfig.Builder customMetadata(CustomMetadata.Builder... customMetadataBuilders)
      Setter for customMetadata builder.

      customMetadata: User provided custom metadata stored as key-value pairs used for querying.

    • clearCustomMetadata

      @CanIgnoreReturnValue public ImportFileConfig.Builder clearCustomMetadata()
      Clears the value of customMetadata field.
    • chunkingConfig

      public abstract ImportFileConfig.Builder chunkingConfig(ChunkingConfig chunkingConfig)
      Setter for chunkingConfig.

      chunkingConfig: Config for telling the service how to chunk the file.

    • chunkingConfig

      @CanIgnoreReturnValue public ImportFileConfig.Builder chunkingConfig(ChunkingConfig.Builder chunkingConfigBuilder)
      Setter for chunkingConfig builder.

      chunkingConfig: Config for telling the service how to chunk the file.

    • clearChunkingConfig

      @CanIgnoreReturnValue public ImportFileConfig.Builder clearChunkingConfig()
      Clears the value of chunkingConfig field.
    • build

      public abstract ImportFileConfig build()