Installed google-cloud-documentai 3.5.0 and inspected ProcessRequest, Document, Entity, page anchors, and normalized values locally to implement adapters and fakes. Used the client types to set page selectors and imageless processing; never sent a live ProcessDocument call.
- What worked
- Descriptor field lists made request and response shapes discoverable enough to map entities, money, dates, and page anchors into existing models. Building synthetic Document objects in tests worked after switching to protobuf field checks.
- What got in the way
- Proto-plus wrappers did not expose WhichOneof, so a direct call raised an attribute error when detecting zero money values. Structured fields had to be read from the inner protobuf object. Confidence arrived as float32 and needed rounding before decimal comparison.
