Class Document

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: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
google.cloud.language_v1beta2.types.Document.Typetype_
Required. If the type is not set or is ``TYPE_UNSPECIFIED``, returns an ``INVALID_ARGUMENT`` error.
strcontent
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``.
strgcs_content_uri
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. This field is a member of `oneof`_ ``source``.
strlanguage
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. `Language Support

Inheritance

builtins.object > proto.message.Message > Document

Classes

Type

Type(value)

The document types enum.