Class ClaudeFile.Builder
- Enclosing class:
- ClaudeFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClaudeFilebuild()Clears the value of createdAt field.Clears the value of downloadable field.Clears the value of expiresAt field.Clears the value of filename field.clearId()Clears the value of id field.Clears the value of mimeType field.Clears the value of sizeBytes field.Clears the value of type field.abstract ClaudeFile.BuilderSetter for createdAt.abstract ClaudeFile.Builderdownloadable(boolean downloadable) Setter for downloadable.abstract ClaudeFile.BuilderSetter for expiresAt.abstract ClaudeFile.BuilderSetter for filename.abstract ClaudeFile.BuilderSetter for id.abstract ClaudeFile.BuilderSetter for mimeType.abstract ClaudeFile.BuilderSetter for sizeBytes.abstract ClaudeFile.BuilderSetter for type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createdAt
Setter for createdAt.createdAt: Output only. The time at which the file was created.
-
clearCreatedAt
Clears the value of createdAt field. -
downloadable
Setter for downloadable.downloadable: Output only. Whether the contents of this file can be retrieved with `DownloadFile`. False for user-uploaded files, true for tool-generated ones.
-
clearDownloadable
Clears the value of downloadable field. -
expiresAt
Setter for expiresAt.expiresAt: Output only. The time at which the file expires and is deleted, set from the `expires_in_seconds` upload form field. Unset for files that do not expire, which is serialised as `null`.
-
clearExpiresAt
Clears the value of expiresAt field. -
filename
Setter for filename.filename: Output only. The original name of the uploaded file, taken from the `Content-Disposition` header on upload. Between 1 and 255 characters. Control characters and the characters `<>:"|?*\/` are not accepted.
-
clearFilename
Clears the value of filename field. -
id
Setter for id.id: Output only. The server-assigned identifier of the file, for example `file_abc123`. This is the ID to pass in subsequent model requests.
-
clearId
Clears the value of id field. -
mimeType
Setter for mimeType.mimeType: Output only. The media type of the file, taken from the `Content-Type` header of the file part on upload.
-
clearMimeType
Clears the value of mimeType field. -
sizeBytes
Setter for sizeBytes.sizeBytes: Output only. The size of the file in bytes.
-
clearSizeBytes
Clears the value of sizeBytes field. -
type
Setter for type.type: Output only. The object type. Always `file`.
-
clearType
Clears the value of type field. -
build
-