Search Results for

    Show / Hide Table of Contents

    Class GoogleFile

    A file uploaded to the API.

    Inheritance
    object
    GoogleFile
    Implements
    IUploadedFile
    IAIResource
    IData
    IHasId<string>
    IHasName
    IDeprecatable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class GoogleFile : IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Api

    Declaration
    [JsonIgnore]
    public Api Api { get; }
    Property Value
    Type Description
    Api
    | Edit this page View Source

    ByteSize

    Output only.

    Size of the GoogleFile in bytes.

    Declaration
    [JsonProperty("sizeBytes")]
    public int ByteSize { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    CreateTime

    Output only.

    The timestamp of when the GoogleFile was created.

    Declaration
    [JsonProperty("createTime")]
    public ZuluTime? CreateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?
    | Edit this page View Source

    CreatedAt

    Declaration
    [JsonIgnore]
    public UnixTime? CreatedAt { get; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    DownloadUri

    Declaration
    [JsonProperty("downloadUri")]
    public string DownloadUri { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Error

    Output only.

    Error status if GoogleFile processing failed.

    Declaration
    [JsonProperty("error")]
    public Status Error { get; set; }
    Property Value
    Type Description
    Status
    | Edit this page View Source

    ExpirationTime

    Output only.

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

    Declaration
    [JsonProperty("expirationTime")]
    public ZuluTime? ExpirationTime { get; set; }
    Property Value
    Type Description
    ZuluTime?
    | Edit this page View Source

    ExpiresAt

    Gets the file expiration timestamp, if the provider defines one. Returns null when the file has no expiration policy.

    Declaration
    [JsonIgnore]
    public UnixTime? ExpiresAt { get; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    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
    [JsonProperty("name")]
    public string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MimeType

    Gets the MIME type associated with the file. This can be used to select preview, parsing, or processing paths.

    Declaration
    [JsonIgnore]
    public MimeType MimeType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    MimeTypeAsString

    Output only.

    MIME type of the GoogleFile.

    Declaration
    [JsonProperty("mimeType")]
    public string MimeTypeAsString { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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
    [JsonProperty("displayName")]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Sha256Hash

    Output only.

    SHA-256 hash of the uploaded bytes.

    Declaration
    [JsonProperty("sha256Hash")]
    public string Sha256Hash { get; set; }
    Property Value
    Type Description
    string
    Remarks

    A base64-encoded string.

    | Edit this page View Source

    Source

    Declaration
    [JsonProperty("source")]
    public GoogleFileSource? Source { get; set; }
    Property Value
    Type Description
    GoogleFileSource?
    | Edit this page View Source

    State

    Output only.

    Processing state of the GoogleFile.

    Declaration
    [JsonProperty("state")]
    public FileState State { get; set; }
    Property Value
    Type Description
    FileState
    | Edit this page View Source

    UpdateTime

    Output only.

    The timestamp of when the GoogleFile was last updated.

    Declaration
    [JsonProperty("updateTime")]
    public ZuluTime? UpdateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?
    | Edit this page View Source

    Uri

    Output only.

    The uri of the GoogleFile.

    Declaration
    [JsonProperty("uri")]
    public string Uri { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    VideoMetadata

    Output only.

    Metadata for a video.

    Declaration
    [JsonProperty("videoMetadata")]
    public VideoMetadata VideoMetadata { get; set; }
    Property Value
    Type Description
    VideoMetadata

    Methods

    | Edit this page View Source

    GetMetadata()

    Declaration
    public SerializableMetadata GetMetadata()
    Returns
    Type Description
    SerializableMetadata

    Implements

    IUploadedFile
    IAIResource
    IData
    IHasId<TId>
    IHasName
    IDeprecatable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation