Class File.Builder

  • All Implemented Interfaces:

    
    public abstract class File.Builder
    
                        

    Builder for File.

    • Constructor Detail

      • File.Builder

        File.Builder()
    • Method Detail

      • name

         abstract File.Builder name(String 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

         abstract File.Builder displayName(String 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'

      • sizeBytes

         abstract File.Builder sizeBytes(Long sizeBytes)

        Setter for sizeBytes.

        sizeBytes: Output only. Size of the file in bytes.

      • createTime

         abstract File.Builder createTime(Instant createTime)

        Setter for createTime.

        createTime: Output only. The timestamp of when the `File` was created.

      • expirationTime

         abstract File.Builder expirationTime(Instant 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

         abstract File.Builder updateTime(Instant updateTime)

        Setter for updateTime.

        updateTime: Output only. The timestamp of when the `File` was last updated.

      • sha256Hash

         abstract File.Builder sha256Hash(String sha256Hash)

        Setter for sha256Hash.

        sha256Hash: Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format.

      • downloadUri

         abstract File.Builder downloadUri(String downloadUri)

        Setter for downloadUri.

        downloadUri: Output only. The URI of the `File`, only set for downloadable (generated) files.

      • state

        @CanIgnoreReturnValue() File.Builder state(FileState.Known knownType)

        Setter for state given a known enum.

        state: Output only. Processing state of the File.

      • state

        @CanIgnoreReturnValue() File.Builder state(String state)

        Setter for state given a string.

        state: Output only. Processing state of the File.

      • source

        @CanIgnoreReturnValue() File.Builder source(String source)

        Setter for source given a string.

        source: Output only. The source of the `File`.