AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GoogleFile

    A file uploaded to the API.

    Inheritance
    object
    GoogleFile
    Implements
    IApiFile
    IData
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class GoogleFile : IApiFile, IData

    Properties

    Api

    Declaration
    public Api Api { get; }
    Property Value
    Type Description
    Api

    ByteSize

    Output only.

    Size of the GoogleFile in bytes.

    Declaration
    public int ByteSize { get; set; }
    Property Value
    Type Description
    int

    CreateTime

    Output only.

    The timestamp of when the GoogleFile was created.

    Declaration
    public ZuluTime? CreateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?

    CreatedAt

    Declaration
    public UnixTime CreatedAt { get; }
    Property Value
    Type Description
    UnixTime

    DownloadUri

    Declaration
    public string DownloadUri { get; set; }
    Property Value
    Type Description
    string

    Error

    Output only.

    Error status if GoogleFile processing failed.

    Declaration
    public Status Error { get; set; }
    Property Value
    Type Description
    Status

    ExpirationTime

    Output only.

    The timestamp of when the GoogleFile will be deleted. Only set if the GoogleFile is scheduled to expire.

    Declaration
    public ZuluTime? ExpirationTime { get; set; }
    Property Value
    Type Description
    ZuluTime?

    ExpiresAt

    Declaration
    public UnixTime ExpiresAt { get; }
    Property Value
    Type Description
    UnixTime

    Id

    Immutable. Identifier.

    The GoogleFile 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

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    MimeType

    Declaration
    public MIMEType MimeType { get; }
    Property Value
    Type Description
    MIMEType

    MimeTypeAsString

    Output only.

    MIME type of the GoogleFile.

    Declaration
    public string MimeTypeAsString { get; set; }
    Property Value
    Type Description
    string

    Name

    Optional.

    The human-readable display name for the GoogleFile. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image"

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Sha256Hash

    Output only.

    SHA-256 hash of the uploaded bytes.

    Declaration
    public string Sha256Hash { get; set; }
    Property Value
    Type Description
    string
    Remarks

    A base64-encoded string.

    Source

    Declaration
    public GoogleFileSource? Source { get; set; }
    Property Value
    Type Description
    GoogleFileSource?

    State

    Output only.

    Processing state of the GoogleFile.

    Declaration
    public FileState State { get; set; }
    Property Value
    Type Description
    FileState

    UpdateTime

    Output only.

    The timestamp of when the GoogleFile was last updated.

    Declaration
    public ZuluTime? UpdateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?

    Uri

    Output only.

    The uri of the GoogleFile.

    Declaration
    public string Uri { get; set; }
    Property Value
    Type Description
    string

    VideoMetadata

    Output only.

    Metadata for a video.

    Declaration
    public VideoMetadata VideoMetadata { get; set; }
    Property Value
    Type Description
    VideoMetadata

    Methods

    BuildMetadata()

    Declaration
    public Metadata BuildMetadata()
    Returns
    Type Description
    Metadata

    Implements

    IApiFile
    IData
    In this article
    Back to top Generated by DocFX