Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CompositeMedia

import type { CompositeMedia } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";

A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.

interface CompositeMedia {
blobRef?: Uint8Array;
blobstore2Info?: Blobstore2Info;
cosmoBinaryReference?: Uint8Array;
crc32cHash?: number;
inline?: Uint8Array;
length?: bigint;
md5Hash?: Uint8Array;
objectId?: ObjectId;
path?: string;
referenceType?:
| "PATH"
| "BLOB_REF"
| "INLINE"
| "BIGSTORE_REF"
| "COSMO_BINARY_REFERENCE";
sha1Hash?: Uint8Array;
}

§Properties

§
blobRef?: Uint8Array
[src]

Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.

§
blobstore2Info?: Blobstore2Info
[src]

Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.

§
cosmoBinaryReference?: Uint8Array
[src]

A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.

§
crc32cHash?: number
[src]

crc32.c hash for the payload.

§
inline?: Uint8Array
[src]

Media data, set if reference_type is INLINE

§
length?: bigint
[src]

Size of the data, in bytes

§
md5Hash?: Uint8Array
[src]

MD5 hash for the payload.

§
objectId?: ObjectId
[src]

Reference to a TI Blob, set if reference_type is BIGSTORE_REF.

§
path?: string
[src]

Path to the data, set if reference_type is PATH

§
referenceType?: "PATH" | "BLOB_REF" | "INLINE" | "BIGSTORE_REF" | "COSMO_BINARY_REFERENCE"
[src]

Describes what the field reference contains.

§
sha1Hash?: Uint8Array
[src]

SHA-1 hash for the payload.