Package com.google.genai.types
Class UploadFileConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UploadFileConfig
Used to override the default configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for UploadFileConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadFileConfig.Builder
builder()
Instantiates a builder for UploadFileConfig.Optional display name of the file.static UploadFileConfig
Deserializes a JSON string to a UploadFileConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.mimeType()
mime_type: The MIME type of the file.name()
The name of the file in the destination (e.g., 'files/sample-image'.abstract UploadFileConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
UploadFileConfig
public UploadFileConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
name
The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated. -
mimeType
mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension. -
displayName
Optional display name of the file. -
builder
Instantiates a builder for UploadFileConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UploadFileConfig object.
-