google-cloud-document_ai-v1beta3 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +2 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb +2 -0
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +13 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +3 -1
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +171 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +37 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44682722a5b9f6f74fb2034c626ea008a66369cdc256523482db23d78b3d1248
|
4
|
+
data.tar.gz: c72bc0cc86cd9c34dbffa9811fece6007812aff17cbb647e2cd14e7a3c2bc0d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff453b6f4d259e612370b34fcc25e3d1fd1596af290029e29878cc1e48c11027d755b4f1d5060582210ec41186804ced37a20e4eba30b1c446ab636228adf4a
|
7
|
+
data.tar.gz: 69c379eaabbbb4f411395dcacfae6e393a0da5bcc0252aab311bf66b162c410af73bf04e588306c5a07df921ec1aa5d167ab1c5eb1df33257b89a9ed3ced1021
|
@@ -2374,6 +2374,8 @@ module Google
|
|
2374
2374
|
# @param processor_version_source [::String]
|
2375
2375
|
# The source processor version to import from. The source processor version
|
2376
2376
|
# and destination processor need to be in the same environment and region.
|
2377
|
+
# Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not
|
2378
|
+
# supported.
|
2377
2379
|
# @param external_processor_version_source [::Google::Cloud::DocumentAI::V1beta3::ImportProcessorVersionRequest::ExternalProcessorVersionSource, ::Hash]
|
2378
2380
|
# The source processor version to import from. It can be from a different
|
2379
2381
|
# environment and region than the destination processor.
|
@@ -2214,6 +2214,8 @@ module Google
|
|
2214
2214
|
# @param processor_version_source [::String]
|
2215
2215
|
# The source processor version to import from. The source processor version
|
2216
2216
|
# and destination processor need to be in the same environment and region.
|
2217
|
+
# Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not
|
2218
|
+
# supported.
|
2217
2219
|
# @param external_processor_version_source [::Google::Cloud::DocumentAI::V1beta3::ImportProcessorVersionRequest::ExternalProcessorVersionSource, ::Hash]
|
2218
2220
|
# The source processor version to import from. It can be from a different
|
2219
2221
|
# environment and region than the destination processor.
|
@@ -16,7 +16,7 @@ require 'google/type/money_pb'
|
|
16
16
|
require 'google/type/postal_address_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n.google/cloud/documentai/v1beta3/document.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/documentai/v1beta3/barcode.proto\x1a.google/cloud/documentai/v1beta3/geometry.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\x88H\n\x08\x44ocument\x12\x12\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12H\n\x0btext_styles\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1beta3.Document.StyleB\x02\x18\x01\x12=\n\x05pages\x18\x06 \x03(\x0b\x32..google.cloud.documentai.v1beta3.Document.Page\x12\x42\n\x08\x65ntities\x18\x07 \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.Entity\x12R\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.EntityRelation\x12J\n\x0ctext_changes\x18\x0e \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextChange\x12G\n\nshard_info\x18\t \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\trevisions\x18\r \x03(\x0b\x32\x32.google.cloud.documentai.v1beta3.Document.Revision\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xef\x02\n\x05Style\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12K\n\tfont_size\x18\x07 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Style.FontSize\x12\x13\n\x0b\x66ont_family\x18\x08 \x01(\t\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\xd0+\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12\x43\n\x05image\x18\r \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Image\x12I\n\ntransforms\x18\x0e \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Matrix\x12K\n\tdimension\x18\x02 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Dimension\x12\x45\n\x06layout\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x44\n\x06\x62locks\x18\x05 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Block\x12L\n\nparagraphs\x18\x06 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Paragraph\x12\x42\n\x05lines\x18\x07 \x03(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.Page.Line\x12\x44\n\x06tokens\x18\x08 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Token\x12U\n\x0fvisual_elements\x18\t \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.Page.VisualElement\x12\x44\n\x06tables\x18\n \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Table\x12M\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.FormField\x12\x46\n\x07symbols\x18\x0c \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Symbol\x12Y\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\x12_\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores\x12L\n\nprovenance\x18\x10 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1aJ\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a@\n\x06Matrix\x12\x0c\n\x04rows\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\xec\x02\n\x06Layout\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x44\n\rbounding_poly\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPoly\x12V\n\x0borientation\x18\x04 \x01(\x0e\x32\x41.google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xf9\x01\n\x05\x42lock\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xfd\x01\n\tParagraph\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xf8\x01\n\x04Line\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xbc\x07\n\x05Token\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12Z\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x04 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x12R\n\nstyle_info\x18\x05 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo\x1a\xab\x01\n\rDetectedBreak\x12U\n\x04type\x18\x01 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xe2\x02\n\tStyleInfo\x12\x11\n\tfont_size\x18\x01 \x01(\x05\x12\x17\n\x0fpixel_font_size\x18\x02 \x01(\x01\x12\x16\n\x0eletter_spacing\x18\x03 \x01(\x01\x12\x11\n\tfont_type\x18\x04 \x01(\t\x12\x0c\n\x04\x62old\x18\x05 \x01(\x08\x12\x0e\n\x06italic\x18\x06 \x01(\x08\x12\x12\n\nunderlined\x18\x07 \x01(\x08\x12\x11\n\tstrikeout\x18\x08 \x01(\x08\x12\x11\n\tsubscript\x18\t \x01(\x08\x12\x13\n\x0bsuperscript\x18\n \x01(\x08\x12\x11\n\tsmallcaps\x18\x0b \x01(\x08\x12\x13\n\x0b\x66ont_weight\x18\x0c \x01(\x05\x12\x13\n\x0bhandwritten\x18\r \x01(\x08\x12&\n\ntext_color\x18\x0e \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x0f \x01(\x0b\x32\x12.google.type.Color\x1a\xac\x01\n\x06Symbol\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xc1\x01\n\rVisualElement\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xd0\x05\n\x05Table\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12R\n\x0bheader_rows\x18\x02 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12P\n\tbody_rows\x18\x03 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x05 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1aY\n\x08TableRow\x12M\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.Table.TableCell\x1a\xd3\x01\n\tTableCell\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xff\x03\n\tFormField\x12I\n\nfield_name\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12J\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12`\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x61\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x12\n\nvalue_type\x18\x05 \x01(\t\x12\x1a\n\x12\x63orrected_key_text\x18\x06 \x01(\t\x12\x1c\n\x14\x63orrected_value_text\x18\x07 \x01(\t\x12H\n\nprovenance\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Provenance\x1a\x93\x01\n\x0f\x44\x65tectedBarcode\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x39\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1beta3.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xcb\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12j\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32P.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect\x1a\x32\n\x0e\x44\x65tectedDefect\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xe9\x06\n\x06\x45ntity\x12N\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchorB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmention_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nmention_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\x12N\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12_\n\x10normalized_value\x18\t \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12I\n\nproperties\x18\n \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.EntityB\x03\xe0\x41\x01\x12M\n\nprovenance\x18\x0b \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x03\xe0\x41\x01\x12\x15\n\x08redacted\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbb\x02\n\x0fNormalizedValue\x12)\n\x0bmoney_value\x18\x02 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12/\n\x0e\x64\x61tetime_value\x18\x04 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x12\x33\n\raddress_value\x18\x05 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12\x17\n\rboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x08 \x01(\x02H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\xad\x01\n\nTextAnchor\x12W\n\rtext_segments\x18\x01 \x03(\x0b\x32@.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x1a\xe7\x03\n\nPageAnchor\x12O\n\tpage_refs\x18\x01 \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\x1a\x87\x03\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x61\n\x0blayout_type\x18\x02 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12I\n\rbounding_poly\x18\x04 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPolyB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\"\x87\x01\n\nLayoutType\x12\x1b\n\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x08\n\x04LINE\x10\x03\x12\t\n\x05TOKEN\x10\x04\x12\x12\n\x0eVISUAL_ELEMENT\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x0e\n\nFORM_FIELD\x10\x07\x1a\xb2\x03\n\nProvenance\x12\x14\n\x08revision\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\x12L\n\x07parents\x18\x03 \x03(\x0b\x32;.google.cloud.documentai.v1beta3.Document.Provenance.Parent\x12P\n\x04type\x18\x04 \x01(\x0e\x32\x42.google.cloud.documentai.v1beta3.Document.Provenance.OperationType\x1a\x39\n\x06Parent\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\r\n\x05index\x18\x03 \x01(\x05\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\"\xa2\x01\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x12\n\n\x06UPDATE\x10\x07\x12\x0b\n\x07REPLACE\x10\x03\x12\x16\n\x0e\x45VAL_REQUESTED\x10\x04\x1a\x02\x08\x01\x12\x15\n\rEVAL_APPROVED\x10\x05\x1a\x02\x08\x01\x12\x14\n\x0c\x45VAL_SKIPPED\x10\x06\x1a\x02\x08\x01\x1a\xaa\x02\n\x08Revision\x12\x0f\n\x05\x61gent\x18\x04 \x01(\tH\x00\x12\x13\n\tprocessor\x18\x05 \x01(\tH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x06parent\x18\x02 \x03(\x05\x42\x02\x18\x01\x12\x12\n\nparent_ids\x18\x07 \x03(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0chuman_review\x18\x06 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Revision.HumanReview\x1a\x33\n\x0bHumanReview\x12\r\n\x05state\x18\x01 \x01(\t\x12\x15\n\rstate_message\x18\x02 \x01(\tB\x08\n\x06source\x1a\xbb\x01\n\nTextChange\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12L\n\nprovenance\x18\x03 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x42\x08\n\x06source\"\x9b\x02\n\x0bRevisionRef\x12R\n\rrevision_case\x18\x01 \x01(\x0e\x32\x39.google.cloud.documentai.v1beta3.RevisionRef.RevisionCaseH\x00\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\"\n\x18latest_processor_version\x18\x03 \x01(\tH\x00\"s\n\x0cRevisionCase\x12\x1d\n\x19REVISION_CASE_UNSPECIFIED\x10\x00\x12\x17\n\x13LATEST_HUMAN_REVIEW\x10\x01\x12\x14\n\x10LATEST_TIMESTAMP\x10\x02\x12\x15\n\x11\x42\x41SE_OCR_REVISION\x10\x03\x42\x08\n\x06sourceB\xe4\x01\n#com.google.cloud.documentai.v1beta3B\rDocumentProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
|
19
|
+
descriptor_data = "\n.google/cloud/documentai/v1beta3/document.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/documentai/v1beta3/barcode.proto\x1a.google/cloud/documentai/v1beta3/geometry.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\xd1X\n\x08\x44ocument\x12\x12\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12H\n\x0btext_styles\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1beta3.Document.StyleB\x02\x18\x01\x12=\n\x05pages\x18\x06 \x03(\x0b\x32..google.cloud.documentai.v1beta3.Document.Page\x12\x42\n\x08\x65ntities\x18\x07 \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.Entity\x12R\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.EntityRelation\x12J\n\x0ctext_changes\x18\x0e \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextChange\x12G\n\nshard_info\x18\t \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\trevisions\x18\r \x03(\x0b\x32\x32.google.cloud.documentai.v1beta3.Document.Revision\x12Q\n\x0f\x64ocument_layout\x18\x11 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.DocumentLayout\x12S\n\x10\x63hunked_document\x18\x12 \x01(\x0b\x32\x39.google.cloud.documentai.v1beta3.Document.ChunkedDocument\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xef\x02\n\x05Style\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12K\n\tfont_size\x18\x07 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Style.FontSize\x12\x13\n\x0b\x66ont_family\x18\x08 \x01(\t\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\xd0+\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12\x43\n\x05image\x18\r \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Image\x12I\n\ntransforms\x18\x0e \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Matrix\x12K\n\tdimension\x18\x02 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Dimension\x12\x45\n\x06layout\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x44\n\x06\x62locks\x18\x05 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Block\x12L\n\nparagraphs\x18\x06 \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.Paragraph\x12\x42\n\x05lines\x18\x07 \x03(\x0b\x32\x33.google.cloud.documentai.v1beta3.Document.Page.Line\x12\x44\n\x06tokens\x18\x08 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Token\x12U\n\x0fvisual_elements\x18\t \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.Page.VisualElement\x12\x44\n\x06tables\x18\n \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Page.Table\x12M\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x38.google.cloud.documentai.v1beta3.Document.Page.FormField\x12\x46\n\x07symbols\x18\x0c \x03(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Symbol\x12Y\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\x12_\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores\x12L\n\nprovenance\x18\x10 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1aJ\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a@\n\x06Matrix\x12\x0c\n\x04rows\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\xec\x02\n\x06Layout\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x44\n\rbounding_poly\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPoly\x12V\n\x0borientation\x18\x04 \x01(\x0e\x32\x41.google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xf9\x01\n\x05\x42lock\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xfd\x01\n\tParagraph\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xf8\x01\n\x04Line\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x03 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xbc\x07\n\x05Token\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12Z\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x42.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x04 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x12R\n\nstyle_info\x18\x05 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo\x1a\xab\x01\n\rDetectedBreak\x12U\n\x04type\x18\x01 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xe2\x02\n\tStyleInfo\x12\x11\n\tfont_size\x18\x01 \x01(\x05\x12\x17\n\x0fpixel_font_size\x18\x02 \x01(\x01\x12\x16\n\x0eletter_spacing\x18\x03 \x01(\x01\x12\x11\n\tfont_type\x18\x04 \x01(\t\x12\x0c\n\x04\x62old\x18\x05 \x01(\x08\x12\x0e\n\x06italic\x18\x06 \x01(\x08\x12\x12\n\nunderlined\x18\x07 \x01(\x08\x12\x11\n\tstrikeout\x18\x08 \x01(\x08\x12\x11\n\tsubscript\x18\t \x01(\x08\x12\x13\n\x0bsuperscript\x18\n \x01(\x08\x12\x11\n\tsmallcaps\x18\x0b \x01(\x08\x12\x13\n\x0b\x66ont_weight\x18\x0c \x01(\x05\x12\x13\n\x0bhandwritten\x18\r \x01(\x08\x12&\n\ntext_color\x18\x0e \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x0f \x01(\x0b\x32\x12.google.type.Color\x1a\xac\x01\n\x06Symbol\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12[\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xc1\x01\n\rVisualElement\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12[\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xd0\x05\n\x05Table\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12R\n\x0bheader_rows\x18\x02 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12P\n\tbody_rows\x18\x03 \x03(\x0b\x32=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12L\n\nprovenance\x18\x05 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1aY\n\x08TableRow\x12M\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Page.Table.TableCell\x1a\xd3\x01\n\tTableCell\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12[\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x1a\xff\x03\n\tFormField\x12I\n\nfield_name\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12J\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12`\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x61\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\x12\x12\n\nvalue_type\x18\x05 \x01(\t\x12\x1a\n\x12\x63orrected_key_text\x18\x06 \x01(\t\x12\x1c\n\x14\x63orrected_value_text\x18\x07 \x01(\t\x12H\n\nprovenance\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.Provenance\x1a\x93\x01\n\x0f\x44\x65tectedBarcode\x12\x45\n\x06layout\x18\x01 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.Document.Page.Layout\x12\x39\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1beta3.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xcb\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12j\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32P.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect\x1a\x32\n\x0e\x44\x65tectedDefect\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xe9\x06\n\x06\x45ntity\x12N\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchorB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmention_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nmention_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\x12N\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12_\n\x10normalized_value\x18\t \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12I\n\nproperties\x18\n \x03(\x0b\x32\x30.google.cloud.documentai.v1beta3.Document.EntityB\x03\xe0\x41\x01\x12M\n\nprovenance\x18\x0b \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x03\xe0\x41\x01\x12\x15\n\x08redacted\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbb\x02\n\x0fNormalizedValue\x12)\n\x0bmoney_value\x18\x02 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12/\n\x0e\x64\x61tetime_value\x18\x04 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x12\x33\n\raddress_value\x18\x05 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12\x17\n\rboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x08 \x01(\x02H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\xad\x01\n\nTextAnchor\x12W\n\rtext_segments\x18\x01 \x03(\x0b\x32@.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x1a\xe7\x03\n\nPageAnchor\x12O\n\tpage_refs\x18\x01 \x03(\x0b\x32<.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\x1a\x87\x03\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x61\n\x0blayout_type\x18\x02 \x01(\x0e\x32G.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12I\n\rbounding_poly\x18\x04 \x01(\x0b\x32-.google.cloud.documentai.v1beta3.BoundingPolyB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\"\x87\x01\n\nLayoutType\x12\x1b\n\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x08\n\x04LINE\x10\x03\x12\t\n\x05TOKEN\x10\x04\x12\x12\n\x0eVISUAL_ELEMENT\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x0e\n\nFORM_FIELD\x10\x07\x1a\xb2\x03\n\nProvenance\x12\x14\n\x08revision\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\x12L\n\x07parents\x18\x03 \x03(\x0b\x32;.google.cloud.documentai.v1beta3.Document.Provenance.Parent\x12P\n\x04type\x18\x04 \x01(\x0e\x32\x42.google.cloud.documentai.v1beta3.Document.Provenance.OperationType\x1a\x39\n\x06Parent\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\r\n\x05index\x18\x03 \x01(\x05\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\"\xa2\x01\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x12\n\n\x06UPDATE\x10\x07\x12\x0b\n\x07REPLACE\x10\x03\x12\x16\n\x0e\x45VAL_REQUESTED\x10\x04\x1a\x02\x08\x01\x12\x15\n\rEVAL_APPROVED\x10\x05\x1a\x02\x08\x01\x12\x14\n\x0c\x45VAL_SKIPPED\x10\x06\x1a\x02\x08\x01\x1a\xaa\x02\n\x08Revision\x12\x0f\n\x05\x61gent\x18\x04 \x01(\tH\x00\x12\x13\n\tprocessor\x18\x05 \x01(\tH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x06parent\x18\x02 \x03(\x05\x42\x02\x18\x01\x12\x12\n\nparent_ids\x18\x07 \x03(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0chuman_review\x18\x06 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Document.Revision.HumanReview\x1a\x33\n\x0bHumanReview\x12\r\n\x05state\x18\x01 \x01(\t\x12\x15\n\rstate_message\x18\x02 \x01(\tB\x08\n\x06source\x1a\xbb\x01\n\nTextChange\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12L\n\nprovenance\x18\x03 \x03(\x0b\x32\x34.google.cloud.documentai.v1beta3.Document.ProvenanceB\x02\x18\x01\x1a\xd9\x0c\n\x0e\x44ocumentLayout\x12\\\n\x06\x62locks\x18\x01 \x03(\x0b\x32L.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\x1a\xe8\x0b\n\x13\x44ocumentLayoutBlock\x12r\n\ntext_block\x18\x02 \x01(\x0b\x32\\.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\x00\x12t\n\x0btable_block\x18\x03 \x01(\x0b\x32].google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\x00\x12r\n\nlist_block\x18\x04 \x01(\x0b\x32\\.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\x00\x12\x10\n\x08\x62lock_id\x18\x01 \x01(\t\x12n\n\tpage_span\x18\x05 \x01(\x0b\x32[.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan\x1a\x36\n\x0eLayoutPageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x1a\x8b\x01\n\x0fLayoutTextBlock\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\\\n\x06\x62locks\x18\x03 \x03(\x0b\x32L.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\x1a\x85\x02\n\x10LayoutTableBlock\x12p\n\x0bheader_rows\x18\x01 \x03(\x0b\x32[.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12n\n\tbody_rows\x18\x02 \x03(\x0b\x32[.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12\x0f\n\x07\x63\x61ption\x18\x03 \x01(\t\x1a}\n\x0eLayoutTableRow\x12k\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\\.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell\x1a\x93\x01\n\x0fLayoutTableCell\x12\\\n\x06\x62locks\x18\x01 \x03(\x0b\x32L.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x1a\x93\x01\n\x0fLayoutListBlock\x12r\n\x0clist_entries\x18\x01 \x03(\x0b\x32\\.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\x12\x0c\n\x04type\x18\x02 \x01(\t\x1ao\n\x0fLayoutListEntry\x12\\\n\x06\x62locks\x18\x01 \x03(\x0b\x32L.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlockB\x07\n\x05\x62lock\x1a\xc2\x02\n\x0f\x43hunkedDocument\x12O\n\x06\x63hunks\x18\x01 \x03(\x0b\x32?.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk\x1a\xdd\x01\n\x05\x43hunk\x12\x10\n\x08\x63hunk_id\x18\x01 \x01(\t\x12\x18\n\x10source_block_ids\x18\x02 \x03(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12`\n\tpage_span\x18\x04 \x01(\x0b\x32M.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1a\x35\n\rChunkPageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x42\x08\n\x06source\"\x9b\x02\n\x0bRevisionRef\x12R\n\rrevision_case\x18\x01 \x01(\x0e\x32\x39.google.cloud.documentai.v1beta3.RevisionRef.RevisionCaseH\x00\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\"\n\x18latest_processor_version\x18\x03 \x01(\tH\x00\"s\n\x0cRevisionCase\x12\x1d\n\x19REVISION_CASE_UNSPECIFIED\x10\x00\x12\x17\n\x13LATEST_HUMAN_REVIEW\x10\x01\x12\x14\n\x10LATEST_TIMESTAMP\x10\x02\x12\x15\n\x11\x42\x41SE_OCR_REVISION\x10\x03\x42\x08\n\x06sourceB\xe4\x01\n#com.google.cloud.documentai.v1beta3B\rDocumentProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
@@ -96,6 +96,18 @@ module Google
|
|
96
96
|
Document::Revision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Revision").msgclass
|
97
97
|
Document::Revision::HumanReview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Revision.HumanReview").msgclass
|
98
98
|
Document::TextChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.TextChange").msgclass
|
99
|
+
Document::DocumentLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout").msgclass
|
100
|
+
Document::DocumentLayout::DocumentLayoutBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock").msgclass
|
101
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan").msgclass
|
102
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock").msgclass
|
103
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock").msgclass
|
104
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow").msgclass
|
105
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell").msgclass
|
106
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock").msgclass
|
107
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry").msgclass
|
108
|
+
Document::ChunkedDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.ChunkedDocument").msgclass
|
109
|
+
Document::ChunkedDocument::Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk").msgclass
|
110
|
+
Document::ChunkedDocument::Chunk::ChunkPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan").msgclass
|
99
111
|
RevisionRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.RevisionRef").msgclass
|
100
112
|
RevisionRef::RevisionCase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.RevisionRef.RevisionCase").enummodule
|
101
113
|
end
|
@@ -22,7 +22,7 @@ require 'google/protobuf/timestamp_pb'
|
|
22
22
|
require 'google/rpc/status_pb'
|
23
23
|
|
24
24
|
|
25
|
-
descriptor_data = "\n@google/cloud/documentai/v1beta3/document_processor_service.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a/google/cloud/documentai/v1beta3/processor.proto\x1a\x34google/cloud/documentai/v1beta3/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf1\x02\n\x0eProcessOptions\x12j\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelectorH\x00\x12\x14\n\nfrom_start\x18\x06 \x01(\x05H\x00\x12\x12\n\x08\x66rom_end\x18\x07 \x01(\x05H\x00\x12>\n\nocr_config\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.OcrConfig\x12M\n\x0fschema_override\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x1a,\n\x16IndividualPageSelector\x12\x12\n\x05pages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x01\x42\x0c\n\npage_range\"\xdc\x04\n\x0eProcessRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12\x44\n\x0craw_document\x18\x05 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RawDocumentH\x00\x12\x44\n\x0cgcs_document\x18\x08 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12P\n\x06labels\x18\n \x03(\x0b\x32;.google.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xf3\x01\n\x11HumanReviewStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.documentai.v1beta3.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\xc3\x01\n\x0fProcessResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\x12\"\n\x16human_review_operation\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x03 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"\xfb\x05\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12`\n\rinput_configs\x18\x02 \x03(\x0b\x32\x45.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\x02\x18\x01\x12\x61\n\routput_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\x02\x18\x01\x12S\n\x0finput_documents\x18\x05 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12U\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12U\n\x06labels\x18\t \x03(\x0b\x32@.google.cloud.documentai.v1beta3.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a=\n\x10\x42\x61tchInputConfig\x12\x12\n\ngcs_source\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t:\x02\x18\x01\x1a\x30\n\x11\x42\x61tchOutputConfig\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t:\x02\x18\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x16\n\x14\x42\x61tchProcessResponse\"\xb2\x05\n\x14\x42\x61tchProcessMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.documentai.v1beta3.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12r\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32M.google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus\x1a\xec\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12\"\n\x16human_review_operation\x18\x04 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x05 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"f\n\x1b\x46\x65tchProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x1aListProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x16ListProcessorsResponse\x12>\n\nprocessors\x18\x01 \x03(\x0b\x32*.google.cloud.documentai.v1beta3.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x87\x01\n\x1dListProcessorVersionsResponse\x12M\n\x12processor_versions\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1e\x44\x65leteProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"s\n\x1e\x44\x65ployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"u\n UndeployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\x99\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x42\n\tprocessor\x18\x02 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"l\n\x17\x44\x65leteProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"l\n\x17\x45nableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"m\n\x18\x44isableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"w\n\"SetDefaultProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xcc\t\n\x1cTrainProcessorVersionRequest\x12\x8b\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32].google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x85\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32Z.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12Q\n\x11processor_version\x18\x02 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersionB\x03\xe0\x41\x02\x12M\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12`\n\ninput_data\x18\x04 \x01(\x0b\x32G.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xb7\x01\n\tInputData\x12V\n\x12training_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12R\n\x0etest_documents\x18\x04 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x1a\x81\x02\n\x1f\x43ustomDocumentExtractionOptions\x12\x85\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32l.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod\"V\n\x0eTrainingMethod\x12\x1f\n\x1bTRAINING_METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMODEL_BASED\x10\x01\x12\x12\n\x0eTEMPLATE_BASED\x10\x02\x1a_\n\x1c\x46oundationModelTuningOptions\x12\x18\n\x0btrain_steps\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12%\n\x18learning_rate_multiplier\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x42\x11\n\x0fprocessor_flags\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\x86\x04\n\x1dTrainProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12u\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x12q\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\xde\x03\n\x15ReviewDocumentRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12Q\n\x08priority\x18\x05 \x01(\x0e\x32?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\x12H\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd6\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12L\n\x05state\x18\x02 \x01(\x0e\x32=.google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\xc0\x03\n\x1fReviewDocumentOperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xcf\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12]\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"u\n EvaluateProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListEvaluationsResponse\x12@\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb0\x03\n\x1dImportProcessorVersionRequest\x12S\n\x18processor_version_source\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersionH\x00\x12\x8a\x01\n!external_processor_version_source\x18\x03 \x01(\x0b\x32].google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSourceH\x00\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x1a_\n\x1e\x45xternalProcessorVersionSource\x12\x1e\n\x11processor_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10service_endpoint\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06source\"l\n\x1eImportProcessorVersionResponse\x12J\n\x11processor_version\x18\x01 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1eImportProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata2\xeb.\n\x18\x44ocumentProcessorService\x12\x9b\x02\n\x0fProcessDocument\x12/.google.cloud.documentai.v1beta3.ProcessRequest\x1a\x30.google.cloud.documentai.v1beta3.ProcessResponse\"\xa4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\x01*ZT\"O/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xcc\x02\n\x15\x42\x61tchProcessDocuments\x12\x34.google.cloud.documentai.v1beta3.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa0\x01\"@/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZY\"T/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xdf\x01\n\x13\x46\x65tchProcessorTypes\x12;.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest\x1a<.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta3/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xd7\x01\n\x12ListProcessorTypes\x12:.google.cloud.documentai.v1beta3.ListProcessorTypesRequest\x1a;.google.cloud.documentai.v1beta3.ListProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{parent=projects/*/locations/*}/processorTypes\x12\xc4\x01\n\x10GetProcessorType\x12\x38.google.cloud.documentai.v1beta3.GetProcessorTypeRequest\x1a..google.cloud.documentai.v1beta3.ProcessorType\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{name=projects/*/locations/*/processorTypes/*}\x12\xc7\x01\n\x0eListProcessors\x12\x36.google.cloud.documentai.v1beta3.ListProcessorsRequest\x1a\x37.google.cloud.documentai.v1beta3.ListProcessorsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{parent=projects/*/locations/*}/processors\x12\xb4\x01\n\x0cGetProcessor\x12\x34.google.cloud.documentai.v1beta3.GetProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xac\x02\n\x15TrainProcessorVersion\x12=.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02R\"M/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xdd\x01\n\x13GetProcessorVersion\x12;.google.cloud.documentai.v1beta3.GetProcessorVersionRequest\x1a\x31.google.cloud.documentai.v1beta3.ProcessorVersion\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xf0\x01\n\x15ListProcessorVersions\x12=.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest\x1a>.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x8a\x02\n\x16\x44\x65leteProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x9d\x02\n\x16\x44\x65ployProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02S\"N/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\xa7\x02\n\x18UndeployProcessorVersion\x12@.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02U\"P/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xd1\x01\n\x0f\x43reateProcessor\x12\x37.google.cloud.documentai.v1beta3.CreateProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"Y\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02@\"3/v1beta3/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xe0\x01\n\x0f\x44\x65leteProcessor\x12\x37.google.cloud.documentai.v1beta3.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xe5\x01\n\x0f\x45nableProcessor\x12\x37.google.cloud.documentai.v1beta3.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xea\x01\n\x10\x44isableProcessor\x12\x38.google.cloud.documentai.v1beta3.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xab\x02\n\x1aSetDefaultProcessorVersion\x12\x42.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02X\"S/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xaa\x02\n\x0eReviewDocument\x12\x36.google.cloud.documentai.v1beta3.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02h\"c/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xd1\x02\n\x18\x45valuateProcessorVersion\x12@.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02r\"m/v1beta3/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xd9\x01\n\rGetEvaluation\x12\x35.google.cloud.documentai.v1beta3.GetEvaluationRequest\x1a+.google.cloud.documentai.v1beta3.Evaluation\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xec\x01\n\x0fListEvaluations\x12\x37.google.cloud.documentai.v1beta3.ListEvaluationsRequest\x1a\x38.google.cloud.documentai.v1beta3.ListEvaluationsResponse\"f\xda\x41\x06parent\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x12\xaf\x02\n\x16ImportProcessorVersion\x12>.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41@\n\x1eImportProcessorVersionResponse\x12\x1eImportProcessorVersionMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x63\"^/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:importProcessorVersion:\x01*\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x03\n#com.google.cloud.documentai.v1beta3B\x1a\x44ocumentAiProcessorServiceP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
25
|
+
descriptor_data = "\n@google/cloud/documentai/v1beta3/document_processor_service.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a/google/cloud/documentai/v1beta3/processor.proto\x1a\x34google/cloud/documentai/v1beta3/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf4\x05\n\x0eProcessOptions\x12j\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelectorH\x00\x12\x14\n\nfrom_start\x18\x06 \x01(\x05H\x00\x12\x12\n\x08\x66rom_end\x18\x07 \x01(\x05H\x00\x12>\n\nocr_config\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.OcrConfig\x12X\n\rlayout_config\x18\t \x01(\x0b\x32<.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfigB\x03\xe0\x41\x01\x12M\n\x0fschema_override\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x1a\xa6\x02\n\x0cLayoutConfig\x12i\n\x0f\x63hunking_config\x18\x01 \x01(\x0b\x32K.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfigB\x03\xe0\x41\x01\x1a\xaa\x01\n\x0e\x43hunkingConfig\x12\x17\n\nchunk_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19include_ancestor_headings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1csemantic_chunking_group_size\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1f\x62reakpoint_percentile_threshold\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a,\n\x16IndividualPageSelector\x12\x12\n\x05pages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x01\x42\x0c\n\npage_range\"\xdc\x04\n\x0eProcessRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12\x44\n\x0craw_document\x18\x05 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RawDocumentH\x00\x12\x44\n\x0cgcs_document\x18\x08 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12P\n\x06labels\x18\n \x03(\x0b\x32;.google.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xf3\x01\n\x11HumanReviewStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.documentai.v1beta3.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\xc3\x01\n\x0fProcessResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\x12\"\n\x16human_review_operation\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x03 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"\xfb\x05\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12`\n\rinput_configs\x18\x02 \x03(\x0b\x32\x45.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\x02\x18\x01\x12\x61\n\routput_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\x02\x18\x01\x12S\n\x0finput_documents\x18\x05 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12U\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12U\n\x06labels\x18\t \x03(\x0b\x32@.google.cloud.documentai.v1beta3.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a=\n\x10\x42\x61tchInputConfig\x12\x12\n\ngcs_source\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t:\x02\x18\x01\x1a\x30\n\x11\x42\x61tchOutputConfig\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t:\x02\x18\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x16\n\x14\x42\x61tchProcessResponse\"\xb2\x05\n\x14\x42\x61tchProcessMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.documentai.v1beta3.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12r\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32M.google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus\x1a\xec\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12\"\n\x16human_review_operation\x18\x04 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x05 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"f\n\x1b\x46\x65tchProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x1aListProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x16ListProcessorsResponse\x12>\n\nprocessors\x18\x01 \x03(\x0b\x32*.google.cloud.documentai.v1beta3.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x87\x01\n\x1dListProcessorVersionsResponse\x12M\n\x12processor_versions\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1e\x44\x65leteProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"s\n\x1e\x44\x65ployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"u\n UndeployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\x99\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x42\n\tprocessor\x18\x02 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"l\n\x17\x44\x65leteProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"l\n\x17\x45nableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"m\n\x18\x44isableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"w\n\"SetDefaultProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xcc\t\n\x1cTrainProcessorVersionRequest\x12\x8b\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32].google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x85\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32Z.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12Q\n\x11processor_version\x18\x02 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersionB\x03\xe0\x41\x02\x12M\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12`\n\ninput_data\x18\x04 \x01(\x0b\x32G.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xb7\x01\n\tInputData\x12V\n\x12training_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12R\n\x0etest_documents\x18\x04 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x1a\x81\x02\n\x1f\x43ustomDocumentExtractionOptions\x12\x85\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32l.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod\"V\n\x0eTrainingMethod\x12\x1f\n\x1bTRAINING_METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMODEL_BASED\x10\x01\x12\x12\n\x0eTEMPLATE_BASED\x10\x02\x1a_\n\x1c\x46oundationModelTuningOptions\x12\x18\n\x0btrain_steps\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12%\n\x18learning_rate_multiplier\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x42\x11\n\x0fprocessor_flags\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\x86\x04\n\x1dTrainProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12u\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x12q\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\xde\x03\n\x15ReviewDocumentRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12Q\n\x08priority\x18\x05 \x01(\x0e\x32?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\x12H\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd6\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12L\n\x05state\x18\x02 \x01(\x0e\x32=.google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\xc0\x03\n\x1fReviewDocumentOperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xcf\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12]\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"u\n EvaluateProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListEvaluationsResponse\x12@\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb0\x03\n\x1dImportProcessorVersionRequest\x12S\n\x18processor_version_source\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersionH\x00\x12\x8a\x01\n!external_processor_version_source\x18\x03 \x01(\x0b\x32].google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSourceH\x00\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x1a_\n\x1e\x45xternalProcessorVersionSource\x12\x1e\n\x11processor_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10service_endpoint\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06source\"l\n\x1eImportProcessorVersionResponse\x12J\n\x11processor_version\x18\x01 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1eImportProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata2\xeb.\n\x18\x44ocumentProcessorService\x12\x9b\x02\n\x0fProcessDocument\x12/.google.cloud.documentai.v1beta3.ProcessRequest\x1a\x30.google.cloud.documentai.v1beta3.ProcessResponse\"\xa4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\x01*ZT\"O/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xcc\x02\n\x15\x42\x61tchProcessDocuments\x12\x34.google.cloud.documentai.v1beta3.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa0\x01\"@/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZY\"T/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xdf\x01\n\x13\x46\x65tchProcessorTypes\x12;.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest\x1a<.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta3/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xd7\x01\n\x12ListProcessorTypes\x12:.google.cloud.documentai.v1beta3.ListProcessorTypesRequest\x1a;.google.cloud.documentai.v1beta3.ListProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{parent=projects/*/locations/*}/processorTypes\x12\xc4\x01\n\x10GetProcessorType\x12\x38.google.cloud.documentai.v1beta3.GetProcessorTypeRequest\x1a..google.cloud.documentai.v1beta3.ProcessorType\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{name=projects/*/locations/*/processorTypes/*}\x12\xc7\x01\n\x0eListProcessors\x12\x36.google.cloud.documentai.v1beta3.ListProcessorsRequest\x1a\x37.google.cloud.documentai.v1beta3.ListProcessorsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{parent=projects/*/locations/*}/processors\x12\xb4\x01\n\x0cGetProcessor\x12\x34.google.cloud.documentai.v1beta3.GetProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xac\x02\n\x15TrainProcessorVersion\x12=.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02R\"M/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xdd\x01\n\x13GetProcessorVersion\x12;.google.cloud.documentai.v1beta3.GetProcessorVersionRequest\x1a\x31.google.cloud.documentai.v1beta3.ProcessorVersion\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xf0\x01\n\x15ListProcessorVersions\x12=.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest\x1a>.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x8a\x02\n\x16\x44\x65leteProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x9d\x02\n\x16\x44\x65ployProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02S\"N/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\xa7\x02\n\x18UndeployProcessorVersion\x12@.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02U\"P/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xd1\x01\n\x0f\x43reateProcessor\x12\x37.google.cloud.documentai.v1beta3.CreateProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"Y\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02@\"3/v1beta3/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xe0\x01\n\x0f\x44\x65leteProcessor\x12\x37.google.cloud.documentai.v1beta3.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xe5\x01\n\x0f\x45nableProcessor\x12\x37.google.cloud.documentai.v1beta3.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xea\x01\n\x10\x44isableProcessor\x12\x38.google.cloud.documentai.v1beta3.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xab\x02\n\x1aSetDefaultProcessorVersion\x12\x42.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02X\"S/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xaa\x02\n\x0eReviewDocument\x12\x36.google.cloud.documentai.v1beta3.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02h\"c/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xd1\x02\n\x18\x45valuateProcessorVersion\x12@.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02r\"m/v1beta3/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xd9\x01\n\rGetEvaluation\x12\x35.google.cloud.documentai.v1beta3.GetEvaluationRequest\x1a+.google.cloud.documentai.v1beta3.Evaluation\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xec\x01\n\x0fListEvaluations\x12\x37.google.cloud.documentai.v1beta3.ListEvaluationsRequest\x1a\x38.google.cloud.documentai.v1beta3.ListEvaluationsResponse\"f\xda\x41\x06parent\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x12\xaf\x02\n\x16ImportProcessorVersion\x12>.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41@\n\x1eImportProcessorVersionResponse\x12\x1eImportProcessorVersionMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x63\"^/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:importProcessorVersion:\x01*\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x03\n#com.google.cloud.documentai.v1beta3B\x1a\x44ocumentAiProcessorServiceP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
26
26
|
|
27
27
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
28
28
|
|
@@ -63,6 +63,8 @@ module Google
|
|
63
63
|
module DocumentAI
|
64
64
|
module V1beta3
|
65
65
|
ProcessOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessOptions").msgclass
|
66
|
+
ProcessOptions::LayoutConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig").msgclass
|
67
|
+
ProcessOptions::LayoutConfig::ChunkingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfig").msgclass
|
66
68
|
ProcessOptions::IndividualPageSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelector").msgclass
|
67
69
|
ProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessRequest").msgclass
|
68
70
|
HumanReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.HumanReviewStatus").msgclass
|
@@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1beta3/evaluation_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\t\n\x10ProcessorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12H\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\x12K\n\x05state\x18\x06 \x01(\x0e\x32\x37.google.cloud.documentai.v1beta3.ProcessorVersion.StateB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x1b\n\x0egoogle_managed\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo\x12T\n\nmodel_type\x18\x0f \x01(\x0e\x32;.google.cloud.documentai.v1beta3.ProcessorVersion.ModelTypeB\x03\xe0\x41\x03\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x93\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\r\n\tIMPORTING\x10\x08\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15MODEL_TYPE_GENERATIVE\x10\x01\x12\x15\n\x11MODEL_TYPE_CUSTOM\x10\x02:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"r\n\x15ProcessorVersionAlias\x12\r\n\x05\x61lias\x18\x01 \x01(\t\x12J\n\x11processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x92\x05\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x04 \x01(\x0e\x32\x30.google.cloud.documentai.v1beta3.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12^\n\x19processor_version_aliases\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1beta3.ProcessorVersionAliasB\x03\xe0\x41\x03\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xea\x01\n#com.google.cloud.documentai.v1beta3B\x13\x44ocumentAiProcessorP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -77,6 +77,12 @@ module Google
|
|
77
77
|
# @!attribute [rw] revisions
|
78
78
|
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Revision>]
|
79
79
|
# Placeholder. Revision history of this document.
|
80
|
+
# @!attribute [rw] document_layout
|
81
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout]
|
82
|
+
# Parsed layout of the document.
|
83
|
+
# @!attribute [rw] chunked_document
|
84
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument]
|
85
|
+
# Document chunked based on chunking config.
|
80
86
|
class Document
|
81
87
|
include ::Google::Protobuf::MessageExts
|
82
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1046,6 +1052,171 @@ module Google
|
|
1046
1052
|
include ::Google::Protobuf::MessageExts
|
1047
1053
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1048
1054
|
end
|
1055
|
+
|
1056
|
+
# Represents the parsed layout of a document as a collection of blocks that
|
1057
|
+
# the document is divided into.
|
1058
|
+
# @!attribute [rw] blocks
|
1059
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>]
|
1060
|
+
# List of blocks in the document.
|
1061
|
+
class DocumentLayout
|
1062
|
+
include ::Google::Protobuf::MessageExts
|
1063
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1064
|
+
|
1065
|
+
# Represents a block. A block could be one of the various types (text,
|
1066
|
+
# table, list) supported.
|
1067
|
+
# @!attribute [rw] text_block
|
1068
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock]
|
1069
|
+
# Block consisting of text content.
|
1070
|
+
# @!attribute [rw] table_block
|
1071
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock]
|
1072
|
+
# Block consisting of table content/structure.
|
1073
|
+
# @!attribute [rw] list_block
|
1074
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock]
|
1075
|
+
# Block consisting of list content/structure.
|
1076
|
+
# @!attribute [rw] block_id
|
1077
|
+
# @return [::String]
|
1078
|
+
# ID of the block.
|
1079
|
+
# @!attribute [rw] page_span
|
1080
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan]
|
1081
|
+
# Page span of the block.
|
1082
|
+
class DocumentLayoutBlock
|
1083
|
+
include ::Google::Protobuf::MessageExts
|
1084
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1085
|
+
|
1086
|
+
# Represents where the block starts and ends in the document.
|
1087
|
+
# @!attribute [rw] page_start
|
1088
|
+
# @return [::Integer]
|
1089
|
+
# Page where block starts in the document.
|
1090
|
+
# @!attribute [rw] page_end
|
1091
|
+
# @return [::Integer]
|
1092
|
+
# Page where block ends in the document.
|
1093
|
+
class LayoutPageSpan
|
1094
|
+
include ::Google::Protobuf::MessageExts
|
1095
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# Represents a text type block.
|
1099
|
+
# @!attribute [rw] text
|
1100
|
+
# @return [::String]
|
1101
|
+
# Text content stored in the block.
|
1102
|
+
# @!attribute [rw] type
|
1103
|
+
# @return [::String]
|
1104
|
+
# Type of the text in the block. Available options are: `paragraph`,
|
1105
|
+
# `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`,
|
1106
|
+
# `heading-5`, `header`, `footer`.
|
1107
|
+
# @!attribute [rw] blocks
|
1108
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>]
|
1109
|
+
# A text block could further have child blocks.
|
1110
|
+
# Repeated blocks support further hierarchies and nested blocks.
|
1111
|
+
class LayoutTextBlock
|
1112
|
+
include ::Google::Protobuf::MessageExts
|
1113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
# Represents a table type block.
|
1117
|
+
# @!attribute [rw] header_rows
|
1118
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
|
1119
|
+
# Header rows at the top of the table.
|
1120
|
+
# @!attribute [rw] body_rows
|
1121
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
|
1122
|
+
# Body rows containing main table content.
|
1123
|
+
# @!attribute [rw] caption
|
1124
|
+
# @return [::String]
|
1125
|
+
# Table caption/title.
|
1126
|
+
class LayoutTableBlock
|
1127
|
+
include ::Google::Protobuf::MessageExts
|
1128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# Represents a row in a table.
|
1132
|
+
# @!attribute [rw] cells
|
1133
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
|
1134
|
+
# A table row is a list of table cells.
|
1135
|
+
class LayoutTableRow
|
1136
|
+
include ::Google::Protobuf::MessageExts
|
1137
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Represents a cell in a table row.
|
1141
|
+
# @!attribute [rw] blocks
|
1142
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>]
|
1143
|
+
# A table cell is a list of blocks.
|
1144
|
+
# Repeated blocks support further hierarchies and nested blocks.
|
1145
|
+
# @!attribute [rw] row_span
|
1146
|
+
# @return [::Integer]
|
1147
|
+
# How many rows this cell spans.
|
1148
|
+
# @!attribute [rw] col_span
|
1149
|
+
# @return [::Integer]
|
1150
|
+
# How many columns this cell spans.
|
1151
|
+
class LayoutTableCell
|
1152
|
+
include ::Google::Protobuf::MessageExts
|
1153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
# Represents a list type block.
|
1157
|
+
# @!attribute [rw] list_entries
|
1158
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
|
1159
|
+
# List entries that constitute a list block.
|
1160
|
+
# @!attribute [rw] type
|
1161
|
+
# @return [::String]
|
1162
|
+
# Type of the list_entries (if exist). Available options are `ordered`
|
1163
|
+
# and `unordered`.
|
1164
|
+
class LayoutListBlock
|
1165
|
+
include ::Google::Protobuf::MessageExts
|
1166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# Represents an entry in the list.
|
1170
|
+
# @!attribute [rw] blocks
|
1171
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>]
|
1172
|
+
# A list entry is a list of blocks.
|
1173
|
+
# Repeated blocks support further hierarchies and nested blocks.
|
1174
|
+
class LayoutListEntry
|
1175
|
+
include ::Google::Protobuf::MessageExts
|
1176
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1177
|
+
end
|
1178
|
+
end
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
# Represents the chunks that the document is divided into.
|
1182
|
+
# @!attribute [rw] chunks
|
1183
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk>]
|
1184
|
+
# List of chunks.
|
1185
|
+
class ChunkedDocument
|
1186
|
+
include ::Google::Protobuf::MessageExts
|
1187
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1188
|
+
|
1189
|
+
# Represents a chunk.
|
1190
|
+
# @!attribute [rw] chunk_id
|
1191
|
+
# @return [::String]
|
1192
|
+
# ID of the chunk.
|
1193
|
+
# @!attribute [rw] source_block_ids
|
1194
|
+
# @return [::Array<::String>]
|
1195
|
+
# List of all parsed documents layout source blocks used to generate the
|
1196
|
+
# chunk.
|
1197
|
+
# @!attribute [rw] content
|
1198
|
+
# @return [::String]
|
1199
|
+
# Text content of the chunk.
|
1200
|
+
# @!attribute [rw] page_span
|
1201
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageSpan]
|
1202
|
+
# Page span of the chunk.
|
1203
|
+
class Chunk
|
1204
|
+
include ::Google::Protobuf::MessageExts
|
1205
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1206
|
+
|
1207
|
+
# Represents where the chunk starts and ends in the document.
|
1208
|
+
# @!attribute [rw] page_start
|
1209
|
+
# @return [::Integer]
|
1210
|
+
# Page where chunk starts in the document.
|
1211
|
+
# @!attribute [rw] page_end
|
1212
|
+
# @return [::Integer]
|
1213
|
+
# Page where chunk ends in the document.
|
1214
|
+
class ChunkPageSpan
|
1215
|
+
include ::Google::Protobuf::MessageExts
|
1216
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1217
|
+
end
|
1218
|
+
end
|
1219
|
+
end
|
1049
1220
|
end
|
1050
1221
|
|
1051
1222
|
# The revision reference specifies which revision on the document to read.
|
@@ -36,6 +36,10 @@ module Google
|
|
36
36
|
# @return [::Google::Cloud::DocumentAI::V1beta3::OcrConfig]
|
37
37
|
# Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
|
38
38
|
# Returns error if set on other processor types.
|
39
|
+
# @!attribute [rw] layout_config
|
40
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions::LayoutConfig]
|
41
|
+
# Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`.
|
42
|
+
# Returns error if set on other processor types.
|
39
43
|
# @!attribute [rw] schema_override
|
40
44
|
# @return [::Google::Cloud::DocumentAI::V1beta3::DocumentSchema]
|
41
45
|
# Optional. Override the schema of the
|
@@ -47,6 +51,37 @@ module Google
|
|
47
51
|
include ::Google::Protobuf::MessageExts
|
48
52
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
53
|
|
54
|
+
# Serving config for layout parser processor.
|
55
|
+
# @!attribute [rw] chunking_config
|
56
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions::LayoutConfig::ChunkingConfig]
|
57
|
+
# Optional. Config for chunking in layout parser processor.
|
58
|
+
class LayoutConfig
|
59
|
+
include ::Google::Protobuf::MessageExts
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
|
+
|
62
|
+
# Serving config for chunking.
|
63
|
+
# @!attribute [rw] chunk_size
|
64
|
+
# @return [::Integer]
|
65
|
+
# Optional. The chunk sizes to use when splitting documents, in order of
|
66
|
+
# level.
|
67
|
+
# @!attribute [rw] include_ancestor_headings
|
68
|
+
# @return [::Boolean]
|
69
|
+
# Optional. Whether or not to include ancestor headings when splitting.
|
70
|
+
# @!attribute [rw] semantic_chunking_group_size
|
71
|
+
# @return [::Boolean]
|
72
|
+
# Optional. The number of tokens to group together when evaluating
|
73
|
+
# semantic similarity.
|
74
|
+
# @!attribute [rw] breakpoint_percentile_threshold
|
75
|
+
# @return [::Integer]
|
76
|
+
# Optional. The percentile of cosine dissimilarity that must be exceeded
|
77
|
+
# between a group of tokens and the next. The smaller this number is, the
|
78
|
+
# more chunks will be generated.
|
79
|
+
class ChunkingConfig
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
50
85
|
# A list of individual page numbers.
|
51
86
|
# @!attribute [rw] pages
|
52
87
|
# @return [::Array<::Integer>]
|
@@ -1097,6 +1132,8 @@ module Google
|
|
1097
1132
|
# @return [::String]
|
1098
1133
|
# The source processor version to import from. The source processor version
|
1099
1134
|
# and destination processor need to be in the same environment and region.
|
1135
|
+
# Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not
|
1136
|
+
# supported.
|
1100
1137
|
# @!attribute [rw] external_processor_version_source
|
1101
1138
|
# @return [::Google::Cloud::DocumentAI::V1beta3::ImportProcessorVersionRequest::ExternalProcessorVersionSource]
|
1102
1139
|
# The source processor version to import from. It can be from a different
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Its document-processing behavior is defined by that version.
|
28
28
|
# @!attribute [rw] name
|
29
29
|
# @return [::String]
|
30
|
-
# The resource name of the processor version.
|
30
|
+
# Identifier. The resource name of the processor version.
|
31
31
|
# Format:
|
32
32
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
|
33
33
|
# @!attribute [rw] display_name
|
@@ -36,9 +36,9 @@ module Google
|
|
36
36
|
# @!attribute [rw] document_schema
|
37
37
|
# @return [::Google::Cloud::DocumentAI::V1beta3::DocumentSchema]
|
38
38
|
# The schema of the processor version. Describes the output.
|
39
|
-
# @!attribute [
|
39
|
+
# @!attribute [r] state
|
40
40
|
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::State]
|
41
|
-
# The state of the processor version.
|
41
|
+
# Output only. The state of the processor version.
|
42
42
|
# @!attribute [rw] create_time
|
43
43
|
# @return [::Google::Protobuf::Timestamp]
|
44
44
|
# The time the processor version was created.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|