Package com.google.genai.types
Class ImportFileConfig
-
- All Implemented Interfaces:
public abstract class ImportFileConfig extends JsonSerializable
Optional parameters for importing a file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classImportFileConfig.BuilderBuilder for ImportFileConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ImportFileConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<HttpOptions>httpOptions()Used to override HTTP request options. 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 ImportFileConfig.Builderbuilder()Instantiates a builder for ImportFileConfig. abstract ImportFileConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static ImportFileConfigfromJson(String jsonString)Deserializes a JSON string to a ImportFileConfig 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.
-
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 ImportFileConfig.Builder builder()
Instantiates a builder for ImportFileConfig.
-
toBuilder
abstract ImportFileConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ImportFileConfig fromJson(String jsonString)
Deserializes a JSON string to a ImportFileConfig object.
-
-
-
-