Skip to content

Commit d402fd5

Browse files
feat: add StyleInfo to document.proto (#11407)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 7c48e6a commit d402fd5

File tree

148 files changed

+24350
-1052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+24350
-1052
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DocumentService
2+
---------------------------------
3+
4+
.. automodule:: google.cloud.documentai_v1beta3.services.document_service
5+
:members:
6+
:inherited-members:

packages/google-cloud-documentai/docs/documentai_v1beta3/services.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Services for Google Cloud Documentai v1beta3 API
44
:maxdepth: 2
55

66
document_processor_service
7+
document_service

packages/google-cloud-documentai/google/cloud/documentai/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.15.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.15.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/async_client.py

Lines changed: 143 additions & 118 deletions
Large diffs are not rendered by default.

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/client.py

Lines changed: 141 additions & 116 deletions
Large diffs are not rendered by default.

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def _prep_wrapped_messages(self, client_info):
137137
core_exceptions.DeadlineExceeded,
138138
core_exceptions.ServiceUnavailable,
139139
),
140-
deadline=120.0,
140+
deadline=300.0,
141141
),
142-
default_timeout=120.0,
142+
default_timeout=300.0,
143143
client_info=client_info,
144144
),
145145
self.batch_process_documents: gapic_v1.method.wrap_method(

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/grpc.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
class DocumentProcessorServiceGrpcTransport(DocumentProcessorServiceTransport):
3636
"""gRPC backend transport for DocumentProcessorService.
3737
38-
Service to call Cloud DocumentAI to process documents
39-
according to the processor's definition. Processors are built
40-
using state-of-the-art Google AI such as natural language,
41-
computer vision, and translation to extract structured
42-
information from unstructured or semi-structured documents.
38+
Service to call Document AI to process documents according to
39+
the processor's definition. Processors are built using
40+
state-of-the-art Google AI such as natural language, computer
41+
vision, and translation to extract structured information from
42+
unstructured or semi-structured documents.
4343
4444
This class defines the same methods as the primary client, so the
4545
primary client can load the underlying transport implementation
@@ -319,8 +319,9 @@ def fetch_processor_types(
319319
]:
320320
r"""Return a callable for the fetch processor types method over gRPC.
321321
322-
Fetches processor types. Note that we do not use
323-
ListProcessorTypes here because it is not paginated.
322+
Fetches processor types. Note that we don't use
323+
[ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
324+
here, because it isn't paginated.
324325
325326
Returns:
326327
Callable[[~.FetchProcessorTypesRequest],
@@ -465,7 +466,8 @@ def train_processor_version(
465466
r"""Return a callable for the train processor version method over gRPC.
466467
467468
Trains a new processor version. Operation metadata is returned
468-
as cloud_documentai_core.TrainProcessorVersionMetadata.
469+
as
470+
[TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
469471
470472
Returns:
471473
Callable[[~.TrainProcessorVersionRequest],
@@ -639,9 +641,10 @@ def create_processor(
639641
]:
640642
r"""Return a callable for the create processor method over gRPC.
641643
642-
Creates a processor from the type processor that the
643-
user chose. The processor will be at "ENABLED" state by
644-
default after its creation.
644+
Creates a processor from the
645+
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
646+
provided. The processor will be at ``ENABLED`` state by default
647+
after its creation.
645648
646649
Returns:
647650
Callable[[~.CreateProcessorRequest],

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/grpc_asyncio.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
class DocumentProcessorServiceGrpcAsyncIOTransport(DocumentProcessorServiceTransport):
3737
"""gRPC AsyncIO backend transport for DocumentProcessorService.
3838
39-
Service to call Cloud DocumentAI to process documents
40-
according to the processor's definition. Processors are built
41-
using state-of-the-art Google AI such as natural language,
42-
computer vision, and translation to extract structured
43-
information from unstructured or semi-structured documents.
39+
Service to call Document AI to process documents according to
40+
the processor's definition. Processors are built using
41+
state-of-the-art Google AI such as natural language, computer
42+
vision, and translation to extract structured information from
43+
unstructured or semi-structured documents.
4444
4545
This class defines the same methods as the primary client, so the
4646
primary client can load the underlying transport implementation
@@ -325,8 +325,9 @@ def fetch_processor_types(
325325
]:
326326
r"""Return a callable for the fetch processor types method over gRPC.
327327
328-
Fetches processor types. Note that we do not use
329-
ListProcessorTypes here because it is not paginated.
328+
Fetches processor types. Note that we don't use
329+
[ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
330+
here, because it isn't paginated.
330331
331332
Returns:
332333
Callable[[~.FetchProcessorTypesRequest],
@@ -471,7 +472,8 @@ def train_processor_version(
471472
r"""Return a callable for the train processor version method over gRPC.
472473
473474
Trains a new processor version. Operation metadata is returned
474-
as cloud_documentai_core.TrainProcessorVersionMetadata.
475+
as
476+
[TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
475477
476478
Returns:
477479
Callable[[~.TrainProcessorVersionRequest],
@@ -646,9 +648,10 @@ def create_processor(
646648
]:
647649
r"""Return a callable for the create processor method over gRPC.
648650
649-
Creates a processor from the type processor that the
650-
user chose. The processor will be at "ENABLED" state by
651-
default after its creation.
651+
Creates a processor from the
652+
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
653+
provided. The processor will be at ``ENABLED`` state by default
654+
after its creation.
652655
653656
Returns:
654657
Callable[[~.CreateProcessorRequest],

0 commit comments

Comments
 (0)