Class CreateFileParameters

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CreateFileParameters

@InternalApi public abstract class CreateFileParameters extends JsonSerializable
Generates the parameters for the private _create method.
  • Constructor Details

    • CreateFileParameters

      public CreateFileParameters()
  • Method Details

    • file

      public abstract Optional<File> 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

      public abstract Optional<CreateFileConfig> config()
      Used to override the default configuration.
    • builder

      public static CreateFileParameters.Builder builder()
      Instantiates a builder for CreateFileParameters.
    • toBuilder

      public abstract CreateFileParameters.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static CreateFileParameters fromJson(String jsonString)
      Deserializes a JSON string to a CreateFileParameters object.