Class UploadFileConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class UploadFileConfig.Builder

      Builder for UploadFileConfig.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<HttpOptions> httpOptions() Used to override HTTP request options.
      abstract Optional<String> name() The name of the file in the destination (e.g., 'files/sample-image'.
      abstract Optional<String> mimeType() mime_type: The MIME type of the file.
      abstract Optional<String> displayName() Optional display name of the file.
      static UploadFileConfig.Builder builder() Instantiates a builder for UploadFileConfig.
      abstract UploadFileConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static UploadFileConfig fromJson(String jsonString) Deserializes a JSON string to a UploadFileConfig 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