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§

Source§

readonly content?: string

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

Source§

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.

Source§

readonly operation?: "analyzeSentiment"

Default: "analyzeSentiment"

Source§

readonly 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";
}

Default: {}

Source§

readonly resource?: "document"

Default: "document"

Source§

readonly source?: "content" | "gcsContentUri"

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