Class File.Builder
- Enclosing class:
- File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract File
build()
abstract File.Builder
createTime
(Instant createTime) Setter for createTime.abstract File.Builder
displayName
(String displayName) Setter for displayName.abstract File.Builder
downloadUri
(String downloadUri) Setter for downloadUri.abstract File.Builder
error
(FileStatus error) Setter for error.error
(FileStatus.Builder errorBuilder) Setter for error builder.abstract File.Builder
expirationTime
(Instant expirationTime) Setter for expirationTime.abstract File.Builder
Setter for mimeType.abstract File.Builder
Setter for name.abstract File.Builder
sha256Hash
(String sha256Hash) Setter for sha256Hash.abstract File.Builder
Setter for sizeBytes.abstract File.Builder
source
(FileSource source) Setter for source.source
(FileSource.Known knownType) Setter for source given a known enum.Setter for source given a string.abstract File.Builder
Setter for state.state
(FileState.Known knownType) Setter for state given a known enum.Setter for state given a string.abstract File.Builder
updateTime
(Instant updateTime) Setter for updateTime.abstract File.Builder
Setter for uri.abstract File.Builder
videoMetadata
(Map<String, Object> videoMetadata) Setter for videoMetadata.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`
-
displayName
Setter for displayName.displayName: Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: 'Welcome Image'
-
mimeType
Setter for mimeType.mimeType: Output only. MIME type of the file.
-
sizeBytes
Setter for sizeBytes.sizeBytes: Output only. Size of the file in bytes.
-
createTime
Setter for createTime.createTime: Output only. The timestamp of when the `File` was created.
-
expirationTime
Setter for expirationTime.expirationTime: Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
-
updateTime
Setter for updateTime.updateTime: Output only. The timestamp of when the `File` was last updated.
-
sha256Hash
Setter for sha256Hash.sha256Hash: Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format.
-
uri
Setter for uri.uri: Output only. The URI of the `File`.
-
downloadUri
Setter for downloadUri.downloadUri: Output only. The URI of the `File`, only set for downloadable (generated) files.
-
state
Setter for state.state: Output only. Processing state of the File.
-
state
Setter for state given a known enum.state: Output only. Processing state of the File.
-
state
Setter for state given a string.state: Output only. Processing state of the File.
-
source
Setter for source.source: Output only. The source of the `File`.
-
source
Setter for source given a known enum.source: Output only. The source of the `File`.
-
source
Setter for source given a string.source: Output only. The source of the `File`.
-
videoMetadata
Setter for videoMetadata.videoMetadata: Output only. Metadata for a video.
-
error
Setter for error.error: Output only. Error status if File processing failed.
-
error
Setter for error builder.error: Output only. Error status if File processing failed.
-
build
-