Package com.google.genai.types
Class CreateFileParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CreateFileParameters
Generates the parameters for the private _create method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CreateFileParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateFileParameters.Builder
builder()
Instantiates a builder for CreateFileParameters.abstract Optional<CreateFileConfig>
config()
Used to override the default configuration.file()
The file to be uploaded.static CreateFileParameters
Deserializes a JSON string to a CreateFileParameters object.abstract CreateFileParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CreateFileParameters
public CreateFileParameters()
-
-
Method Details
-
file
The file to be uploaded. mime_type: (Required) The MIME type of the file. Must be provided. name: (Optional) The name of the file in the destination (e.g. 'files/sample-image'). display_name: (Optional) The display name of the file. -
config
Used to override the default configuration. -
builder
Instantiates a builder for CreateFileParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CreateFileParameters object.
-