Package com.google.genai.types
Class ImportFileParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class ImportFileParameters extends JsonSerializable
Config for file_search_stores.import_file parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classImportFileParameters.BuilderBuilder for ImportFileParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ImportFileParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>fileSearchStoreName()The resource name of the FileSearchStore. abstract Optional<String>fileName()The name of the File API File to import. abstract Optional<ImportFileConfig>config()Optional parameters for the request. static ImportFileParameters.Builderbuilder()Instantiates a builder for ImportFileParameters. abstract ImportFileParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static ImportFileParametersfromJson(String jsonString)Deserializes a JSON string to a ImportFileParameters 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
-
fileSearchStoreName
abstract Optional<String> fileSearchStoreName()
The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123`
-
fileName
abstract Optional<String> fileName()
The name of the File API File to import. Example: `files/abc-123`
-
config
abstract Optional<ImportFileConfig> config()
Optional parameters for the request.
-
builder
static ImportFileParameters.Builder builder()
Instantiates a builder for ImportFileParameters.
-
toBuilder
abstract ImportFileParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ImportFileParameters fromJson(String jsonString)
Deserializes a JSON string to a ImportFileParameters object.
-
-
-
-