Interface GoogleCloudNaturalLanguageNodeParameters

Source
interface GoogleCloudNaturalLanguageNodeParameters {
    content?: string;
    gcsContentUri?: string;
    operation?: "analyzeSentiment";
    options?: {
        documentType?: "HTML" | "PLAIN_TEXT";
        encodingType?: "NONE" | "UTF8" | "UTF16" | "UTF32";
        language?:
            | "nl"
            | "en"
            | "fr"
            | "de"
            | "id"
            | "ja"
            | "pt"
            | "es"
            | "tr"
            | "ar"
            | "zh"
            | "it"
            | "ko"
            | "th"
            | "vi"
            | "zh-Hant";
    };
    resource?: "document";
    source?: "content"
    | "gcsContentUri";
}

Properties§

§readonly content?: string

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

§readonly gcsContentUri?: string

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 reference.

§readonly operation?: "analyzeSentiment"

Default: "analyzeSentiment"

§readonly options?: { ... }

Default: {}

§readonly resource?: "document"

Default: "document"

§readonly source?: "content" | "gcsContentUri"

The source of the document: a string containing the content or a Google Cloud Storage URI Default: "content"