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

Document

import type { Document } from "https://googleapis.deno.dev/v1/language:v2.ts";

Represents the input to API methods.

interface Document {
content?: string;
gcsContentUri?: string;
languageCode?: string;
type?: "TYPE_UNSPECIFIED" | "PLAIN_TEXT" | "HTML";
}

§Properties

§
content?: string
[src]

The content of the input in string format. Cloud audit logging exempt since it is based on user data.

§
gcsContentUri?: string
[src]

The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.

§
languageCode?: string
[src]

Optional. The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. Language Support lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an INVALID_ARGUMENT error is returned.

§
type?: "TYPE_UNSPECIFIED" | "PLAIN_TEXT" | "HTML"
[src]

Required. If the type is not set or is TYPE_UNSPECIFIED, returns an INVALID_ARGUMENT error.