Skip to content

Commit

Permalink
feat: add StyleInfo to document.proto (#11407)
Browse files Browse the repository at this point in the history
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Jun 19, 2023
1 parent 7c48e6a commit d402fd5
Show file tree
Hide file tree
Showing 148 changed files with 24,350 additions and 1,052 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DocumentService
---------------------------------

.. automodule:: google.cloud.documentai_v1beta3.services.document_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Documentai v1beta3 API
:maxdepth: 2

document_processor_service
document_service
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.15.0" # {x-release-please-version}
__version__ = "0.1.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.15.0" # {x-release-please-version}
__version__ = "0.1.0" # {x-release-please-version}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def _prep_wrapped_messages(self, client_info):
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=120.0,
deadline=300.0,
),
default_timeout=120.0,
default_timeout=300.0,
client_info=client_info,
),
self.batch_process_documents: gapic_v1.method.wrap_method(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
class DocumentProcessorServiceGrpcTransport(DocumentProcessorServiceTransport):
"""gRPC backend transport for DocumentProcessorService.
Service to call Cloud DocumentAI to process documents
according to the processor's definition. Processors are built
using state-of-the-art Google AI such as natural language,
computer vision, and translation to extract structured
information from unstructured or semi-structured documents.
Service to call Document AI to process documents according to
the processor's definition. Processors are built using
state-of-the-art Google AI such as natural language, computer
vision, and translation to extract structured information from
unstructured or semi-structured documents.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down Expand Up @@ -319,8 +319,9 @@ def fetch_processor_types(
]:
r"""Return a callable for the fetch processor types method over gRPC.
Fetches processor types. Note that we do not use
ListProcessorTypes here because it is not paginated.
Fetches processor types. Note that we don't use
[ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
here, because it isn't paginated.
Returns:
Callable[[~.FetchProcessorTypesRequest],
Expand Down Expand Up @@ -465,7 +466,8 @@ def train_processor_version(
r"""Return a callable for the train processor version method over gRPC.
Trains a new processor version. Operation metadata is returned
as cloud_documentai_core.TrainProcessorVersionMetadata.
as
[TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
Returns:
Callable[[~.TrainProcessorVersionRequest],
Expand Down Expand Up @@ -639,9 +641,10 @@ def create_processor(
]:
r"""Return a callable for the create processor method over gRPC.
Creates a processor from the type processor that the
user chose. The processor will be at "ENABLED" state by
default after its creation.
Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
Returns:
Callable[[~.CreateProcessorRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
class DocumentProcessorServiceGrpcAsyncIOTransport(DocumentProcessorServiceTransport):
"""gRPC AsyncIO backend transport for DocumentProcessorService.
Service to call Cloud DocumentAI to process documents
according to the processor's definition. Processors are built
using state-of-the-art Google AI such as natural language,
computer vision, and translation to extract structured
information from unstructured or semi-structured documents.
Service to call Document AI to process documents according to
the processor's definition. Processors are built using
state-of-the-art Google AI such as natural language, computer
vision, and translation to extract structured information from
unstructured or semi-structured documents.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down Expand Up @@ -325,8 +325,9 @@ def fetch_processor_types(
]:
r"""Return a callable for the fetch processor types method over gRPC.
Fetches processor types. Note that we do not use
ListProcessorTypes here because it is not paginated.
Fetches processor types. Note that we don't use
[ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
here, because it isn't paginated.
Returns:
Callable[[~.FetchProcessorTypesRequest],
Expand Down Expand Up @@ -471,7 +472,8 @@ def train_processor_version(
r"""Return a callable for the train processor version method over gRPC.
Trains a new processor version. Operation metadata is returned
as cloud_documentai_core.TrainProcessorVersionMetadata.
as
[TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
Returns:
Callable[[~.TrainProcessorVersionRequest],
Expand Down Expand Up @@ -646,9 +648,10 @@ def create_processor(
]:
r"""Return a callable for the create processor method over gRPC.
Creates a processor from the type processor that the
user chose. The processor will be at "ENABLED" state by
default after its creation.
Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
Returns:
Callable[[~.CreateProcessorRequest],
Expand Down
Loading

0 comments on commit d402fd5

Please sign in to comment.