google-cloud-document_ai-v1 0.21.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe5b4b89f9de99c9eb7b5c4ee673613ea24b7b3e17212197fca9794754c2c899
4
- data.tar.gz: 03e31159dd60913b995a2a8d5a7be5ee4737ef389140a6d63a5c5f43a48e74db
3
+ metadata.gz: 5acad205ea8dee11d29d5f66bba8e3b41807196cb115a67521cfe687cc23c558
4
+ data.tar.gz: '0856de9b6a44957195a9950c6a7c5ff5e33541aed180bc9ba6f3b2aa1093d4f4'
5
5
  SHA512:
6
- metadata.gz: 675d27ea9b5924cc4e41e31278b852f7956df1c2b80c2c0b0acdbb5a399ac7401fd0d72f71bfa15190a9d6a08038bbec0df7203430baefc20bccf709c6f3261c
7
- data.tar.gz: '08b9f3c0751e5ce5fc1928640e36cb10ddba8eb5f44d91894d25a0f6a4237255bbc67599be18f0d94612212e0e749ef71c20a838d9bd97aaa4c8ec3868440145'
6
+ metadata.gz: c41773f4f641aa529777034bfbbf0586f39f59a52a9f2f29e2d40476b53f09ca037eb5d2ba0a61db1ae8728ce0c36fa9399919eb09113c545ca894f085f27c7d
7
+ data.tar.gz: 2dcefc79ac9e0d3797044c763834dc880c576bf19d8aec9e3bfbd884c873664560e08531e72fe04af2826f3e90188f5063bad9f408fd61fe1b2f70c2762f3112
data/README.md CHANGED
@@ -24,7 +24,7 @@ In order to use this library, you first need to go through the following steps:
24
24
 
25
25
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
26
26
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
27
- 1. [Enable the API.](https://console.cloud.google.com/apis/library/us-documentai.googleapis.com)
27
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/documentai.googleapis.com)
28
28
  1. {file:AUTHENTICATION.md Set up authentication.}
29
29
 
30
30
  ## Quick Start
@@ -40,7 +40,7 @@ response = client.process_document request
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
- See also the [Product Documentation](https://cloud.google.com/document-ai/)
43
+ See also the [Product Documentation](https://cloud.google.com/document-ai/docs)
44
44
  for general usage information.
45
45
 
46
46
  ## Enabling Logging
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1
24
- VERSION = "0.21.1"
24
+ VERSION = "0.23.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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/v1/document.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/documentai/v1/barcode.proto\x1a)google/cloud/documentai/v1/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\"\x87\x45\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\x12\x43\n\x0btext_styles\x18\x05 \x03(\x0b\x32*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x12\x38\n\x05pages\x18\x06 \x03(\x0b\x32).google.cloud.documentai.v1.Document.Page\x12=\n\x08\x65ntities\x18\x07 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12M\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.EntityRelation\x12\x45\n\x0ctext_changes\x18\x0e \x03(\x0b\x32/.google.cloud.documentai.v1.Document.TextChange\x12\x42\n\nshard_info\x18\t \x01(\x0b\x32..google.cloud.documentai.v1.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12@\n\trevisions\x18\r \x03(\x0b\x32-.google.cloud.documentai.v1.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\xe5\x02\n\x05Style\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12\x46\n\tfont_size\x18\x07 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\xc2)\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12>\n\x05image\x18\r \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Image\x12\x44\n\ntransforms\x18\x0e \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Matrix\x12\x46\n\tdimension\x18\x02 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Dimension\x12@\n\x06layout\x18\x03 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\n\x06\x62locks\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Block\x12G\n\nparagraphs\x18\x06 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\n\x05lines\x18\x07 \x03(\x0b\x32..google.cloud.documentai.v1.Document.Page.Line\x12?\n\x06tokens\x18\x08 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Token\x12P\n\x0fvisual_elements\x18\t \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\n\x06tables\x18\n \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Table\x12H\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.FormField\x12\x41\n\x07symbols\x18\x0c \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Symbol\x12T\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\n\nprovenance\x18\x10 \x01(\x0b\x32/.google.cloud.documentai.v1.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\xdd\x02\n\x06Layout\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12?\n\rbounding_poly\x18\x03 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\x12Q\n\x0borientation\x18\x04 \x01(\x0e\x32<.google.cloud.documentai.v1.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\xea\x01\n\x05\x42lock\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xee\x01\n\tParagraph\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xe9\x01\n\x04Line\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\x9e\x07\n\x05Token\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12U\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x04 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x12M\n\nstyle_info\x18\x05 \x01(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Token.StyleInfo\x1a\xa6\x01\n\rDetectedBreak\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.cloud.documentai.v1.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\xa2\x01\n\x06Symbol\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xb7\x01\n\rVisualElement\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xa8\x05\n\x05Table\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12M\n\x0bheader_rows\x18\x02 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\n\tbody_rows\x18\x03 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1aT\n\x08TableRow\x12H\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1a\xc9\x01\n\tTableCell\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xe6\x03\n\tFormField\x12\x44\n\nfield_name\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x45\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12[\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.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\x12\x43\n\nprovenance\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1a\x89\x01\n\x0f\x44\x65tectedBarcode\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x34\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32#.google.cloud.documentai.v1.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xc6\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12\x65\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32K.google.cloud.documentai.v1.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\xd0\x06\n\x06\x45ntity\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12I\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x10normalized_value\x18\t \x01(\x0b\x32;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12\x44\n\nproperties\x18\n \x03(\x0b\x32+.google.cloud.documentai.v1.Document.EntityB\x03\xe0\x41\x01\x12H\n\nprovenance\x18\x0b \x01(\x0b\x32/.google.cloud.documentai.v1.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\xa8\x01\n\nTextAnchor\x12R\n\rtext_segments\x18\x01 \x03(\x0b\x32;.google.cloud.documentai.v1.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\xd8\x03\n\nPageAnchor\x12J\n\tpage_refs\x18\x01 \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1a\xfd\x02\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\\\n\x0blayout_type\x18\x02 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x44\n\rbounding_poly\x18\x04 \x01(\x0b\x32(.google.cloud.documentai.v1.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\xa8\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\x12G\n\x07parents\x18\x03 \x03(\x0b\x32\x36.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\n\x04type\x18\x04 \x01(\x0e\x32=.google.cloud.documentai.v1.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\xa5\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\x12O\n\x0chuman_review\x18\x06 \x01(\x0b\x32\x39.google.cloud.documentai.v1.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\xb1\x01\n\nTextChange\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12G\n\nprovenance\x18\x03 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x42\x08\n\x06sourceB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rDocumentProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
19
+ descriptor_data = "\n)google/cloud/documentai/v1/document.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/documentai/v1/barcode.proto\x1a)google/cloud/documentai/v1/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\"\xc0X\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\x12\x43\n\x0btext_styles\x18\x05 \x03(\x0b\x32*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x12\x38\n\x05pages\x18\x06 \x03(\x0b\x32).google.cloud.documentai.v1.Document.Page\x12=\n\x08\x65ntities\x18\x07 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12M\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.EntityRelation\x12\x45\n\x0ctext_changes\x18\x0e \x03(\x0b\x32/.google.cloud.documentai.v1.Document.TextChange\x12\x42\n\nshard_info\x18\t \x01(\x0b\x32..google.cloud.documentai.v1.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12@\n\trevisions\x18\r \x03(\x0b\x32-.google.cloud.documentai.v1.Document.Revision\x12L\n\x0f\x64ocument_layout\x18\x11 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.DocumentLayout\x12N\n\x10\x63hunked_document\x18\x12 \x01(\x0b\x32\x34.google.cloud.documentai.v1.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\xe5\x02\n\x05Style\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12\x46\n\tfont_size\x18\x07 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\xc2)\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12>\n\x05image\x18\r \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Image\x12\x44\n\ntransforms\x18\x0e \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Matrix\x12\x46\n\tdimension\x18\x02 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Dimension\x12@\n\x06layout\x18\x03 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\n\x06\x62locks\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Block\x12G\n\nparagraphs\x18\x06 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\n\x05lines\x18\x07 \x03(\x0b\x32..google.cloud.documentai.v1.Document.Page.Line\x12?\n\x06tokens\x18\x08 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Token\x12P\n\x0fvisual_elements\x18\t \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\n\x06tables\x18\n \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Table\x12H\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.FormField\x12\x41\n\x07symbols\x18\x0c \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Symbol\x12T\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\n\nprovenance\x18\x10 \x01(\x0b\x32/.google.cloud.documentai.v1.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\xdd\x02\n\x06Layout\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12?\n\rbounding_poly\x18\x03 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\x12Q\n\x0borientation\x18\x04 \x01(\x0e\x32<.google.cloud.documentai.v1.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\xea\x01\n\x05\x42lock\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xee\x01\n\tParagraph\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xe9\x01\n\x04Line\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\x9e\x07\n\x05Token\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12U\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x04 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x12M\n\nstyle_info\x18\x05 \x01(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Token.StyleInfo\x1a\xa6\x01\n\rDetectedBreak\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.cloud.documentai.v1.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\xa2\x01\n\x06Symbol\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xb7\x01\n\rVisualElement\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xa8\x05\n\x05Table\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12M\n\x0bheader_rows\x18\x02 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\n\tbody_rows\x18\x03 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1aT\n\x08TableRow\x12H\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1a\xc9\x01\n\tTableCell\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xe6\x03\n\tFormField\x12\x44\n\nfield_name\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x45\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12[\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.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\x12\x43\n\nprovenance\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1a\x89\x01\n\x0f\x44\x65tectedBarcode\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x34\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32#.google.cloud.documentai.v1.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xc6\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12\x65\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32K.google.cloud.documentai.v1.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\xd0\x06\n\x06\x45ntity\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12I\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x10normalized_value\x18\t \x01(\x0b\x32;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12\x44\n\nproperties\x18\n \x03(\x0b\x32+.google.cloud.documentai.v1.Document.EntityB\x03\xe0\x41\x01\x12H\n\nprovenance\x18\x0b \x01(\x0b\x32/.google.cloud.documentai.v1.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\xa8\x01\n\nTextAnchor\x12R\n\rtext_segments\x18\x01 \x03(\x0b\x32;.google.cloud.documentai.v1.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\xd8\x03\n\nPageAnchor\x12J\n\tpage_refs\x18\x01 \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1a\xfd\x02\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\\\n\x0blayout_type\x18\x02 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x44\n\rbounding_poly\x18\x04 \x01(\x0b\x32(.google.cloud.documentai.v1.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\xa8\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\x12G\n\x07parents\x18\x03 \x03(\x0b\x32\x36.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\n\x04type\x18\x04 \x01(\x0e\x32=.google.cloud.documentai.v1.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\xa5\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\x12O\n\x0chuman_review\x18\x06 \x01(\x0b\x32\x39.google.cloud.documentai.v1.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\xb1\x01\n\nTextChange\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12G\n\nprovenance\x18\x03 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\x9d\x0c\n\x0e\x44ocumentLayout\x12W\n\x06\x62locks\x18\x01 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1a\xb1\x0b\n\x13\x44ocumentLayoutBlock\x12m\n\ntext_block\x18\x02 \x01(\x0b\x32W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\x00\x12o\n\x0btable_block\x18\x03 \x01(\x0b\x32X.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\x00\x12m\n\nlist_block\x18\x04 \x01(\x0b\x32W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\x00\x12\x10\n\x08\x62lock_id\x18\x01 \x01(\t\x12i\n\tpage_span\x18\x05 \x01(\x0b\x32V.google.cloud.documentai.v1.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\x86\x01\n\x0fLayoutTextBlock\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12W\n\x06\x62locks\x18\x03 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1a\xfb\x01\n\x10LayoutTableBlock\x12k\n\x0bheader_rows\x18\x01 \x03(\x0b\x32V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12i\n\tbody_rows\x18\x02 \x03(\x0b\x32V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12\x0f\n\x07\x63\x61ption\x18\x03 \x01(\t\x1ax\n\x0eLayoutTableRow\x12\x66\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell\x1a\x8e\x01\n\x0fLayoutTableCell\x12W\n\x06\x62locks\x18\x01 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x1a\x8e\x01\n\x0fLayoutListBlock\x12m\n\x0clist_entries\x18\x01 \x03(\x0b\x32W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\x12\x0c\n\x04type\x18\x02 \x01(\t\x1aj\n\x0fLayoutListEntry\x12W\n\x06\x62locks\x18\x01 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlockB\x07\n\x05\x62lock\x1a\xf8\x05\n\x0f\x43hunkedDocument\x12J\n\x06\x63hunks\x18\x01 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk\x1a\x98\x05\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\x32H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x12`\n\x0cpage_headers\x18\x05 \x03(\x0b\x32J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader\x12`\n\x0cpage_footers\x18\x06 \x03(\x0b\x32J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter\x1a\x35\n\rChunkPageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x1a|\n\x0f\x43hunkPageHeader\x12\x0c\n\x04text\x18\x01 \x01(\t\x12[\n\tpage_span\x18\x02 \x01(\x0b\x32H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1a|\n\x0f\x43hunkPageFooter\x12\x0c\n\x04text\x18\x01 \x01(\t\x12[\n\tpage_span\x18\x02 \x01(\x0b\x32H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpanB\x08\n\x06sourceB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rDocumentProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
20
20
 
21
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
22
22
 
@@ -96,6 +96,20 @@ module Google
96
96
  Document::Revision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision").msgclass
97
97
  Document::Revision::HumanReview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision.HumanReview").msgclass
98
98
  Document::TextChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.TextChange").msgclass
99
+ Document::DocumentLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout").msgclass
100
+ Document::DocumentLayout::DocumentLayoutBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock").msgclass
101
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan").msgclass
102
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock").msgclass
103
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock").msgclass
104
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow").msgclass
105
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell").msgclass
106
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock").msgclass
107
+ Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry").msgclass
108
+ Document::ChunkedDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument").msgclass
109
+ Document::ChunkedDocument::Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk").msgclass
110
+ Document::ChunkedDocument::Chunk::ChunkPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan").msgclass
111
+ Document::ChunkedDocument::Chunk::ChunkPageHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader").msgclass
112
+ Document::ChunkedDocument::Chunk::ChunkPageFooter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter").msgclass
99
113
  end
100
114
  end
101
115
  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/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\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/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/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\"\xe2\x02\n\x0eProcessOptions\x12\x65\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x41.google.cloud.documentai.v1.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\x39\n\nocr_config\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.OcrConfig\x12H\n\x0fschema_override\x18\x08 \x01(\x0b\x32*.google.cloud.documentai.v1.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\"\x82\x04\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12?\n\x0cgcs_document\x18\x08 \x01(\x0b\x32\'.google.cloud.documentai.v1.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12K\n\x06labels\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1.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\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.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\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xb1\x03\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12P\n\x06labels\x18\t \x03(\x0b\x32;.google.cloud.documentai.v1.BatchProcessRequest.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\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.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\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\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\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.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\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.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\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.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\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.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\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.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\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.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\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa4\t\n\x1cTrainProcessorVersionRequest\x12\x86\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32X.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x80\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32U.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x1a\xfc\x01\n\x1f\x43ustomDocumentExtractionOptions\x12\x80\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32g.google.cloud.documentai.v1.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\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.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\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.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\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\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/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\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/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/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\"\x81\x05\n\x0eProcessOptions\x12\x65\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x41.google.cloud.documentai.v1.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\x39\n\nocr_config\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.OcrConfig\x12S\n\rlayout_config\x18\t \x01(\x0b\x32\x37.google.cloud.documentai.v1.ProcessOptions.LayoutConfigB\x03\xe0\x41\x01\x12H\n\x0fschema_override\x18\x08 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x1a\xc7\x01\n\x0cLayoutConfig\x12\x64\n\x0f\x63hunking_config\x18\x01 \x01(\x0b\x32\x46.google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfigB\x03\xe0\x41\x01\x1aQ\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\x1a,\n\x16IndividualPageSelector\x12\x12\n\x05pages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x01\x42\x0c\n\npage_range\"\x82\x04\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12?\n\x0cgcs_document\x18\x08 \x01(\x0b\x32\'.google.cloud.documentai.v1.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12K\n\x06labels\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1.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\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.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\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xb1\x03\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12P\n\x06labels\x18\t \x03(\x0b\x32;.google.cloud.documentai.v1.BatchProcessRequest.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\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.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\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\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\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.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\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.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\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.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\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.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\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.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\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.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\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa4\t\n\x1cTrainProcessorVersionRequest\x12\x86\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32X.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x80\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32U.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x1a\xfc\x01\n\x1f\x43ustomDocumentExtractionOptions\x12\x80\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32g.google.cloud.documentai.v1.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\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.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\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.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\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.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\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\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 V1
65
65
  ProcessOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessOptions").msgclass
66
+ ProcessOptions::LayoutConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessOptions.LayoutConfig").msgclass
67
+ ProcessOptions::LayoutConfig::ChunkingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig").msgclass
66
68
  ProcessOptions::IndividualPageSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector").msgclass
67
69
  ProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessRequest").msgclass
68
70
  HumanReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.HumanReviewStatus").msgclass
@@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1/evaluation_pb'
11
11
  require 'google/protobuf/timestamp_pb'
12
12
 
13
13
 
14
- descriptor_data = "\n*google/cloud/documentai/v1/processor.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xeb\x08\n\x10ProcessorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\x12\x46\n\x05state\x18\x06 \x01(\x0e\x32\x32.google.cloud.documentai.v1.ProcessorVersion.StateB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12V\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32<.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo\x12O\n\nmodel_type\x18\x0f \x01(\x0e\x32\x36.google.cloud.documentai.v1.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\"\x88\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?\n\x05state\x18\x04 \x01(\x0e\x32+.google.cloud.documentai.v1.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\x12Y\n\x19processor_version_aliases\x18\n \x03(\x0b\x32\x31.google.cloud.documentai.v1.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\xd1\x01\n\x1e\x63om.google.cloud.documentai.v1B\x13\x44ocumentAiProcessorP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
14
+ descriptor_data = "\n*google/cloud/documentai/v1/processor.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\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\x12\x43\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\x12\x46\n\x05state\x18\x06 \x01(\x0e\x32\x32.google.cloud.documentai.v1.ProcessorVersion.StateB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.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\x12V\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32<.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo\x12O\n\nmodel_type\x18\x0f \x01(\x0e\x32\x36.google.cloud.documentai.v1.ProcessorVersion.ModelTypeB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x11 \x01(\x08\x42\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\"\xc0\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?\n\x05state\x18\x04 \x01(\x0e\x32+.google.cloud.documentai.v1.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\x12Y\n\x19processor_version_aliases\x18\n \x03(\x0b\x32\x31.google.cloud.documentai.v1.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\x12\x1a\n\rsatisfies_pzs\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\r \x01(\x08\x42\x03\xe0\x41\x03\"~\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\xd1\x01\n\x1e\x63om.google.cloud.documentai.v1B\x13\x44ocumentAiProcessorP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
@@ -75,6 +75,12 @@ module Google
75
75
  # @!attribute [rw] revisions
76
76
  # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::Revision>]
77
77
  # Placeholder. Revision history of this document.
78
+ # @!attribute [rw] document_layout
79
+ # @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout]
80
+ # Parsed layout of the document.
81
+ # @!attribute [rw] chunked_document
82
+ # @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument]
83
+ # Document chunked based on chunking config.
78
84
  class Document
79
85
  include ::Google::Protobuf::MessageExts
80
86
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1040,6 +1046,200 @@ module Google
1040
1046
  include ::Google::Protobuf::MessageExts
1041
1047
  extend ::Google::Protobuf::MessageExts::ClassMethods
1042
1048
  end
1049
+
1050
+ # Represents the parsed layout of a document as a collection of blocks that
1051
+ # the document is divided into.
1052
+ # @!attribute [rw] blocks
1053
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
1054
+ # List of blocks in the document.
1055
+ class DocumentLayout
1056
+ include ::Google::Protobuf::MessageExts
1057
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1058
+
1059
+ # Represents a block. A block could be one of the various types (text,
1060
+ # table, list) supported.
1061
+ # @!attribute [rw] text_block
1062
+ # @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock]
1063
+ # Block consisting of text content.
1064
+ # @!attribute [rw] table_block
1065
+ # @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock]
1066
+ # Block consisting of table content/structure.
1067
+ # @!attribute [rw] list_block
1068
+ # @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock]
1069
+ # Block consisting of list content/structure.
1070
+ # @!attribute [rw] block_id
1071
+ # @return [::String]
1072
+ # ID of the block.
1073
+ # @!attribute [rw] page_span
1074
+ # @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan]
1075
+ # Page span of the block.
1076
+ class DocumentLayoutBlock
1077
+ include ::Google::Protobuf::MessageExts
1078
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1079
+
1080
+ # Represents where the block starts and ends in the document.
1081
+ # @!attribute [rw] page_start
1082
+ # @return [::Integer]
1083
+ # Page where block starts in the document.
1084
+ # @!attribute [rw] page_end
1085
+ # @return [::Integer]
1086
+ # Page where block ends in the document.
1087
+ class LayoutPageSpan
1088
+ include ::Google::Protobuf::MessageExts
1089
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1090
+ end
1091
+
1092
+ # Represents a text type block.
1093
+ # @!attribute [rw] text
1094
+ # @return [::String]
1095
+ # Text content stored in the block.
1096
+ # @!attribute [rw] type
1097
+ # @return [::String]
1098
+ # Type of the text in the block. Available options are: `paragraph`,
1099
+ # `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`,
1100
+ # `heading-5`, `header`, `footer`.
1101
+ # @!attribute [rw] blocks
1102
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
1103
+ # A text block could further have child blocks.
1104
+ # Repeated blocks support further hierarchies and nested blocks.
1105
+ class LayoutTextBlock
1106
+ include ::Google::Protobuf::MessageExts
1107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1108
+ end
1109
+
1110
+ # Represents a table type block.
1111
+ # @!attribute [rw] header_rows
1112
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
1113
+ # Header rows at the top of the table.
1114
+ # @!attribute [rw] body_rows
1115
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
1116
+ # Body rows containing main table content.
1117
+ # @!attribute [rw] caption
1118
+ # @return [::String]
1119
+ # Table caption/title.
1120
+ class LayoutTableBlock
1121
+ include ::Google::Protobuf::MessageExts
1122
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1123
+ end
1124
+
1125
+ # Represents a row in a table.
1126
+ # @!attribute [rw] cells
1127
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
1128
+ # A table row is a list of table cells.
1129
+ class LayoutTableRow
1130
+ include ::Google::Protobuf::MessageExts
1131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1132
+ end
1133
+
1134
+ # Represents a cell in a table row.
1135
+ # @!attribute [rw] blocks
1136
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
1137
+ # A table cell is a list of blocks.
1138
+ # Repeated blocks support further hierarchies and nested blocks.
1139
+ # @!attribute [rw] row_span
1140
+ # @return [::Integer]
1141
+ # How many rows this cell spans.
1142
+ # @!attribute [rw] col_span
1143
+ # @return [::Integer]
1144
+ # How many columns this cell spans.
1145
+ class LayoutTableCell
1146
+ include ::Google::Protobuf::MessageExts
1147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1148
+ end
1149
+
1150
+ # Represents a list type block.
1151
+ # @!attribute [rw] list_entries
1152
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
1153
+ # List entries that constitute a list block.
1154
+ # @!attribute [rw] type
1155
+ # @return [::String]
1156
+ # Type of the list_entries (if exist). Available options are `ordered`
1157
+ # and `unordered`.
1158
+ class LayoutListBlock
1159
+ include ::Google::Protobuf::MessageExts
1160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1161
+ end
1162
+
1163
+ # Represents an entry in the list.
1164
+ # @!attribute [rw] blocks
1165
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
1166
+ # A list entry is a list of blocks.
1167
+ # Repeated blocks support further hierarchies and nested blocks.
1168
+ class LayoutListEntry
1169
+ include ::Google::Protobuf::MessageExts
1170
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1171
+ end
1172
+ end
1173
+ end
1174
+
1175
+ # Represents the chunks that the document is divided into.
1176
+ # @!attribute [rw] chunks
1177
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk>]
1178
+ # List of chunks.
1179
+ class ChunkedDocument
1180
+ include ::Google::Protobuf::MessageExts
1181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1182
+
1183
+ # Represents a chunk.
1184
+ # @!attribute [rw] chunk_id
1185
+ # @return [::String]
1186
+ # ID of the chunk.
1187
+ # @!attribute [rw] source_block_ids
1188
+ # @return [::Array<::String>]
1189
+ # Unused.
1190
+ # @!attribute [rw] content
1191
+ # @return [::String]
1192
+ # Text content of the chunk.
1193
+ # @!attribute [rw] page_span
1194
+ # @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan]
1195
+ # Page span of the chunk.
1196
+ # @!attribute [rw] page_headers
1197
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader>]
1198
+ # Page headers associated with the chunk.
1199
+ # @!attribute [rw] page_footers
1200
+ # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter>]
1201
+ # Page footers associated with the chunk.
1202
+ class Chunk
1203
+ include ::Google::Protobuf::MessageExts
1204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1205
+
1206
+ # Represents where the chunk starts and ends in the document.
1207
+ # @!attribute [rw] page_start
1208
+ # @return [::Integer]
1209
+ # Page where chunk starts in the document.
1210
+ # @!attribute [rw] page_end
1211
+ # @return [::Integer]
1212
+ # Page where chunk ends in the document.
1213
+ class ChunkPageSpan
1214
+ include ::Google::Protobuf::MessageExts
1215
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1216
+ end
1217
+
1218
+ # Represents the page header associated with the chunk.
1219
+ # @!attribute [rw] text
1220
+ # @return [::String]
1221
+ # Header in text format.
1222
+ # @!attribute [rw] page_span
1223
+ # @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan]
1224
+ # Page span of the header.
1225
+ class ChunkPageHeader
1226
+ include ::Google::Protobuf::MessageExts
1227
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1228
+ end
1229
+
1230
+ # Represents the page footer associated with the chunk.
1231
+ # @!attribute [rw] text
1232
+ # @return [::String]
1233
+ # Footer in text format.
1234
+ # @!attribute [rw] page_span
1235
+ # @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan]
1236
+ # Page span of the footer.
1237
+ class ChunkPageFooter
1238
+ include ::Google::Protobuf::MessageExts
1239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1240
+ end
1241
+ end
1242
+ end
1043
1243
  end
1044
1244
  end
1045
1245
  end
@@ -36,6 +36,10 @@ module Google
36
36
  # @return [::Google::Cloud::DocumentAI::V1::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::V1::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::V1::DocumentSchema]
41
45
  # Optional. Override the schema of the
@@ -47,6 +51,28 @@ 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::V1::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
+ class ChunkingConfig
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+ end
75
+
50
76
  # A list of individual page numbers.
51
77
  # @!attribute [rw] pages
52
78
  # @return [::Array<::Integer>]
@@ -60,6 +60,12 @@ module Google
60
60
  # @!attribute [r] model_type
61
61
  # @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion::ModelType]
62
62
  # Output only. The model type of this processor version.
63
+ # @!attribute [r] satisfies_pzs
64
+ # @return [::Boolean]
65
+ # Output only. Reserved for future use.
66
+ # @!attribute [r] satisfies_pzi
67
+ # @return [::Boolean]
68
+ # Output only. Reserved for future use.
63
69
  class ProcessorVersion
64
70
  include ::Google::Protobuf::MessageExts
65
71
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -165,6 +171,12 @@ module Google
165
171
  # @return [::String]
166
172
  # The [KMS key](https://cloud.google.com/security-key-management) used for
167
173
  # encryption and decryption in CMEK scenarios.
174
+ # @!attribute [r] satisfies_pzs
175
+ # @return [::Boolean]
176
+ # Output only. Reserved for future use.
177
+ # @!attribute [r] satisfies_pzi
178
+ # @return [::Boolean]
179
+ # Output only. Reserved for future use.
168
180
  class Processor
169
181
  include ::Google::Protobuf::MessageExts
170
182
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-document_ai-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.23.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-05-16 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common