Class UploadFileConfig

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

public abstract class UploadFileConfig extends JsonSerializable
Used to override the default configuration.
  • Constructor Details

    • UploadFileConfig

      public UploadFileConfig()
  • Method Details

    • httpOptions

      public abstract Optional<HttpOptions> httpOptions()
      Used to override HTTP request options.
    • name

      public abstract Optional<String> name()
      The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated.
    • mimeType

      public abstract Optional<String> mimeType()
      mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension.
    • displayName

      public abstract Optional<String> displayName()
      Optional display name of the file.
    • builder

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

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

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