Struct google_language1_beta1::Document[][src]

pub struct Document {
    pub content: Option<String>,
    pub type_: Option<String>,
    pub language: Option<String>,
    pub gcs_content_uri: Option<String>,
}

################################################################ #

Represents the input to API methods.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

The content of the input in string format.

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

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.

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.

Trait Implementations

impl Default for Document
[src]

Returns the "default value" for a type. Read more

impl Clone for Document
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Document
[src]

Formats the value using the given formatter. Read more

impl Resource for Document
[src]

Auto Trait Implementations

impl Send for Document

impl Sync for Document