Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
feat: added field_mask field in DocumentOutputConfig.GcsOutputConfig …
Browse files Browse the repository at this point in the history
…in document_io.proto (#415)

* feat: added field_mask field in DocumentOutputConfig.GcsOutputConfig in document_io.proto

PiperOrigin-RevId: 488680436

Source-Link: googleapis/googleapis@d1e4539

Source-Link: googleapis/googleapis-gen@6c358d9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmMzNThkOWI4MmZiMzczZDM2YTk1NzhjM2RlNmUxM2U1NjFjOTc0MiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 15, 2022
1 parent 21feaa8 commit 575121f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions google/cloud/documentai_v1beta3/types/document_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
from typing import MutableMapping, MutableSequence

from google.protobuf import field_mask_pb2 # type: ignore
import proto # type: ignore

__protobuf__ = proto.module(
Expand Down Expand Up @@ -162,12 +163,22 @@ class GcsOutputConfig(proto.Message):
gcs_uri (str):
The Cloud Storage uri (a directory) of the
output.
field_mask (google.protobuf.field_mask_pb2.FieldMask):
Specifies which fields to include in the output documents.
Only supports top level document and pages field so it must
be in the form of ``{document_field_name}`` or
``pages.{page_field_name}``.
"""

gcs_uri: str = proto.Field(
proto.STRING,
number=1,
)
field_mask: field_mask_pb2.FieldMask = proto.Field(
proto.MESSAGE,
number=2,
message=field_mask_pb2.FieldMask,
)

gcs_output_config: GcsOutputConfig = proto.Field(
proto.MESSAGE,
Expand Down

0 comments on commit 575121f

Please sign in to comment.