Package com.google.genai.types
Class UploadFileConfig.Builder
-
- All Implemented Interfaces:
public abstract class UploadFileConfig.BuilderBuilder for UploadFileConfig.
-
-
Constructor Summary
Constructors Constructor Description UploadFileConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract UploadFileConfig.BuilderhttpOptions(HttpOptions httpOptions)Setter for httpOptions. UploadFileConfig.BuilderhttpOptions(HttpOptions.Builder httpOptionsBuilder)Setter for httpOptions builder. UploadFileConfig.BuilderclearHttpOptions()Clears the value of httpOptions field. abstract UploadFileConfig.Buildername(String name)Setter for name. UploadFileConfig.BuilderclearName()Clears the value of name field. abstract UploadFileConfig.BuildermimeType(String mimeType)Setter for mimeType. UploadFileConfig.BuilderclearMimeType()Clears the value of mimeType field. abstract UploadFileConfig.BuilderdisplayName(String displayName)Setter for displayName. UploadFileConfig.BuilderclearDisplayName()Clears the value of displayName field. abstract UploadFileConfigbuild()-
-
Method Detail
-
httpOptions
abstract UploadFileConfig.Builder httpOptions(HttpOptions httpOptions)
Setter for httpOptions.
httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue() UploadFileConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
Setter for httpOptions builder.
httpOptions: Used to override HTTP request options.
-
clearHttpOptions
@CanIgnoreReturnValue() UploadFileConfig.Builder clearHttpOptions()
Clears the value of httpOptions field.
-
name
abstract UploadFileConfig.Builder name(String 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
@CanIgnoreReturnValue() UploadFileConfig.Builder clearName()
Clears the value of name field.
-
mimeType
abstract UploadFileConfig.Builder mimeType(String 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
@CanIgnoreReturnValue() UploadFileConfig.Builder clearMimeType()
Clears the value of mimeType field.
-
displayName
abstract UploadFileConfig.Builder displayName(String displayName)
Setter for displayName.
displayName: Optional display name of the file.
-
clearDisplayName
@CanIgnoreReturnValue() UploadFileConfig.Builder clearDisplayName()
Clears the value of displayName field.
-
build
abstract UploadFileConfig build()
-
-
-
-