Package com.google.genai.types
Class UploadFileConfig.Builder
java.lang.Object
com.google.genai.types.UploadFileConfig.Builder
- Enclosing class:
- UploadFileConfig
Builder for UploadFileConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UploadFileConfigbuild()Clears the value of displayName field.Clears the value of httpOptions field.Clears the value of mimeType field.Clears the value of name field.abstract UploadFileConfig.BuilderdisplayName(String displayName) Setter for displayName.abstract UploadFileConfig.BuilderhttpOptions(HttpOptions httpOptions) Setter for httpOptions.httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract UploadFileConfig.BuilderSetter for mimeType.abstract UploadFileConfig.BuilderSetter for name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue public UploadFileConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
clearHttpOptions
Clears the value of httpOptions field. -
name
Setter for name.name: The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated.
-
clearName
Clears the value of name field. -
mimeType
Setter for mimeType.mimeType: mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension.
-
clearMimeType
Clears the value of mimeType field. -
displayName
Setter for displayName.displayName: Optional display name of the file.
-
clearDisplayName
Clears the value of displayName field. -
build
-