Class Document (2.7.0)

Document(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents the input to API methods.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof:


Required. If the type is not set or is TYPE_UNSPECIFIED, returns an INVALID_ARGUMENT error.
content str
The content of the input in string format. Cloud audit logging exempt since it is based on user data. This field is a member of oneof_ source.
gcs_content_uri str
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 NOTE: Cloud Storage object versioning is not supported. This field is a member of oneof_ source.
language str
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. `Language Support
reference_web_uri str
The web URI where the document comes from. This URI is not used for fetching the content, but as a hint for analyzing the document.
Indicates how detected boilerplate(e.g. advertisements, copyright declarations, banners) should be handled for this document. If not specified, boilerplate will be treated the same as content.




Ways of handling boilerplate detected in the document



The document types enum.