Class File.Builder
- Enclosing class:
- File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Filebuild()Clears the value of createTime field.Clears the value of displayName field.Clears the value of downloadUri field.Clears the value of error field.Clears the value of expirationTime field.Clears the value of mimeType field.Clears the value of name field.Clears the value of sha256Hash field.Clears the value of sizeBytes field.Clears the value of source field.Clears the value of state field.Clears the value of updateTime field.clearUri()Clears the value of uri field.Clears the value of videoMetadata field.abstract File.BuildercreateTime(Instant createTime) Setter for createTime.abstract File.BuilderdisplayName(String displayName) Setter for displayName.abstract File.BuilderdownloadUri(String downloadUri) Setter for downloadUri.abstract File.Buildererror(FileStatus error) Setter for error.error(FileStatus.Builder errorBuilder) Setter for error builder.abstract File.BuilderexpirationTime(Instant expirationTime) Setter for expirationTime.abstract File.BuilderSetter for mimeType.abstract File.BuilderSetter for name.abstract File.Buildersha256Hash(String sha256Hash) Setter for sha256Hash.abstract File.BuilderSetter for sizeBytes.abstract File.Buildersource(FileSource source) Setter for source.source(FileSource.Known knownType) Setter for source given a known enum.Setter for source given a string.abstract File.BuilderSetter for state.state(FileState.Known knownType) Setter for state given a known enum.Setter for state given a string.abstract File.BuilderupdateTime(Instant updateTime) Setter for updateTime.abstract File.BuilderSetter for uri.abstract File.BuildervideoMetadata(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`
-
clearName
Clears the value of name field. -
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'
-
clearDisplayName
Clears the value of displayName field. -
mimeType
Setter for mimeType.mimeType: Output only. MIME type of the file.
-
clearMimeType
Clears the value of mimeType field. -
sizeBytes
Setter for sizeBytes.sizeBytes: Output only. Size of the file in bytes.
-
clearSizeBytes
Clears the value of sizeBytes field. -
createTime
Setter for createTime.createTime: Output only. The timestamp of when the `File` was created.
-
clearCreateTime
Clears the value of createTime field. -
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.
-
clearExpirationTime
Clears the value of expirationTime field. -
updateTime
Setter for updateTime.updateTime: Output only. The timestamp of when the `File` was last updated.
-
clearUpdateTime
Clears the value of updateTime field. -
sha256Hash
Setter for sha256Hash.sha256Hash: Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format.
-
clearSha256Hash
Clears the value of sha256Hash field. -
uri
Setter for uri.uri: Output only. The URI of the `File`.
-
clearUri
Clears the value of uri field. -
downloadUri
Setter for downloadUri.downloadUri: Output only. The URI of the `File`, only set for downloadable (generated) files.
-
clearDownloadUri
Clears the value of downloadUri field. -
state
Setter for state.state: Output only. Processing state of the File.
-
clearState
Clears the value of state field. -
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`.
-
clearSource
Clears the value of source field. -
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.
-
clearVideoMetadata
Clears the value of videoMetadata field. -
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.
-
clearError
Clears the value of error field. -
build
-