@@ -37,18 +37,27 @@ class Document(proto.Message):
3737 documents and allows for collaboration between users and
3838 Document Understanding AI to iterate and optimize for quality.
3939
40+ This message has `oneof`_ fields (mutually exclusive fields).
41+ For each oneof, at most one member field can be set at the same time.
42+ Setting any member of the oneof automatically clears all other
43+ members.
44+
45+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
46+
4047 Attributes:
4148 uri (str):
4249 Optional. Currently supports Google Cloud Storage URI of the
4350 form ``gs://bucket_name/object_name``. Object versioning is
4451 not supported. See `Google Cloud Storage Request
4552 URIs <https://cloud.google.com/storage/docs/reference-uris>`__
4653 for more info.
54+ This field is a member of `oneof`_ ``source``.
4755 content (bytes):
4856 Optional. Inline document content, represented as a stream
4957 of bytes. Note: As with all ``bytes`` fields, protobuffers
5058 use a pure binary representation, whereas JSON
5159 representations use base64.
60+ This field is a member of `oneof`_ ``source``.
5261 mime_type (str):
5362 An IANA published MIME type (also referred to
5463 as media type). For more information, see
@@ -683,24 +692,36 @@ class Entity(proto.Message):
683692 class NormalizedValue (proto .Message ):
684693 r"""Parsed and normalized entity value.
685694
695+ This message has `oneof`_ fields (mutually exclusive fields).
696+ For each oneof, at most one member field can be set at the same time.
697+ Setting any member of the oneof automatically clears all other
698+ members.
699+
700+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
701+
686702 Attributes:
687703 money_value (google.type.money_pb2.Money):
688704 Money value. See also:
689705 https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
706+ This field is a member of `oneof`_ ``structured_value``.
690707 date_value (google.type.date_pb2.Date):
691708 Date value. Includes year, month, day. See
692709 also:
693710 https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
711+ This field is a member of `oneof`_ ``structured_value``.
694712 datetime_value (google.type.datetime_pb2.DateTime):
695713 DateTime value. Includes date, time, and
696714 timezone. See also:
697715 https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
716+ This field is a member of `oneof`_ ``structured_value``.
698717 address_value (google.type.postal_address_pb2.PostalAddress):
699718 Postal address. See also:
700719 https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
720+ This field is a member of `oneof`_ ``structured_value``.
701721 boolean_value (bool):
702722 Boolean value. Can be used for entities with
703723 binary values, or for checkboxes.
724+ This field is a member of `oneof`_ ``structured_value``.
704725 text (str):
705726 Required. Normalized entity value stored as a string. This
706727 field is populated for supported document type (e.g.
@@ -947,13 +968,22 @@ class Parent(proto.Message):
947968 class Revision (proto .Message ):
948969 r"""Contains past or forward revisions of this document.
949970
971+ This message has `oneof`_ fields (mutually exclusive fields).
972+ For each oneof, at most one member field can be set at the same time.
973+ Setting any member of the oneof automatically clears all other
974+ members.
975+
976+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
977+
950978 Attributes:
951979 agent (str):
952980 If the change was made by a person specify
953981 the name or id of that person.
982+ This field is a member of `oneof`_ ``source``.
954983 processor (str):
955984 If the annotation was made by processor
956985 identify the processor by its resource name.
986+ This field is a member of `oneof`_ ``source``.
957987 id (str):
958988 Id of the revision. Unique within the
959989 context of the document.
0 commit comments