google-cloud-document_ai-v1 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/document_pb.rb +8 -1
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/documentai/v1/document.rb +161 -17
- data/proto_docs/google/type/color.rb +8 -8
- data/proto_docs/google/type/date.rb +10 -7
- data/proto_docs/google/type/datetime.rb +16 -15
- data/proto_docs/google/type/postal_address.rb +38 -37
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0964593e33aa2a2d2d86f09b8412d3c2b8df3e3650310d1d7be2d07424ff0c1
|
|
4
|
+
data.tar.gz: c61a061a40c3c65ab8aee019df9e7f30f1275af82a85261daa2940b23fecebb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d16b4b1bc7269d1c71a5862ab324a10726ff5330785ffaab43d3982f9c79bd42363c6efcf732fc98b19bcde9ca451f56ab9ef12434479f3d354a0812529501e
|
|
7
|
+
data.tar.gz: 6fe80539ffd841a8f02f9452af8ea40ec411ebc3fd8a90248606ecf1ba837c0925349ef75efa8bdff0844affe5f5da95deb5ef5d387907b025172e5404007b59
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
8
9
|
require 'google/cloud/documentai/v1/barcode_pb'
|
|
9
10
|
require 'google/cloud/documentai/v1/geometry_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
|
@@ -16,7 +17,7 @@ require 'google/type/money_pb'
|
|
|
16
17
|
require 'google/type/postal_address_pb'
|
|
17
18
|
|
|
18
19
|
|
|
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\"\xa0\x62\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\x12\n\x05\x64ocid\x18\x0f \x01(\tB\x03\xe0\x41\x01\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\x12]\n\x18\x65ntity_validation_output\x18\x15 \x01(\x0b\x32;.google.cloud.documentai.v1.Document.EntityValidationOutput\x12Q\n\x12\x65ntities_revisions\x18\x16 \x03(\x0b\x32\x35.google.cloud.documentai.v1.Document.EntitiesRevision\x12\x1c\n\x14\x65ntities_revision_id\x18\x17 \x01(\t\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\xef\x07\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\x12G\n\x06method\x18\x0f \x01(\x0e\x32\x32.google.cloud.documentai.v1.Document.Entity.MethodB\x03\xe0\x41\x01\x1a\xd6\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\x19\n\x0fsignature_value\x18\n \x01(\x08H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\"9\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XTRACT\x10\x01\x12\n\n\x06\x44\x45RIVE\x10\x02\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\xdd\x0c\n\x0e\x44ocumentLayout\x12W\n\x06\x62locks\x18\x01 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1a\xf1\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\x12>\n\x0c\x62ounding_box\x18\x06 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\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.ChunkPageSpan\x1a\xd2\x04\n\x16\x45ntityValidationOutput\x12h\n\x12validation_results\x18\x01 \x03(\x0b\x32L.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult\x12\x16\n\x0epass_all_rules\x18\x02 \x01(\x08\x1a\xb5\x03\n\x10ValidationResult\x12\x11\n\trule_name\x18\x01 \x01(\t\x12\x18\n\x10rule_description\x18\x02 \x01(\t\x12\x81\x01\n\x16validation_result_type\x18\x03 \x01(\x0e\x32\x61.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType\x12\x1a\n\x12validation_details\x18\x04 \x01(\t\"\xd3\x01\n\x14ValidationResultType\x12&\n\"VALIDATION_RESULT_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cVALIDATION_RESULT_TYPE_VALID\x10\x01\x12\"\n\x1eVALIDATION_RESULT_TYPE_INVALID\x10\x02\x12\"\n\x1eVALIDATION_RESULT_TYPE_SKIPPED\x10\x03\x12)\n%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\x10\x04\x1a\xc5\x01\n\x10\x45ntitiesRevision\x12\x13\n\x0brevision_id\x18\x01 \x01(\t\x12=\n\x08\x65ntities\x18\x02 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12]\n\x18\x65ntity_validation_output\x18\x03 \x01(\x0b\x32;.google.cloud.documentai.v1.Document.EntityValidationOutputB\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
|
+
descriptor_data = "\n)google/cloud/documentai/v1/document.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.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\"\x9cl\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\x12\n\x05\x64ocid\x18\x0f \x01(\tB\x03\xe0\x41\x01\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\x12H\n\x0b\x62lob_assets\x18\x13 \x03(\x0b\x32..google.cloud.documentai.v1.Document.BlobAssetB\x03\xe0\x41\x01\x12]\n\x18\x65ntity_validation_output\x18\x15 \x01(\x0b\x32;.google.cloud.documentai.v1.Document.EntityValidationOutput\x12Q\n\x12\x65ntities_revisions\x18\x16 \x03(\x0b\x32\x35.google.cloud.documentai.v1.Document.EntitiesRevision\x12\x1c\n\x14\x65ntities_revision_id\x18\x17 \x01(\t\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\xef\x07\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\x12G\n\x06method\x18\x0f \x01(\x0e\x32\x32.google.cloud.documentai.v1.Document.Entity.MethodB\x03\xe0\x41\x01\x1a\xd6\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\x19\n\x0fsignature_value\x18\n \x01(\x08H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\"9\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XTRACT\x10\x01\x12\n\n\x06\x44\x45RIVE\x10\x02\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\"\n\x0b\x41nnotations\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x1a\xbe\x10\n\x0e\x44ocumentLayout\x12W\n\x06\x62locks\x18\x01 \x03(\x0b\x32G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1a\xd2\x0f\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\x12o\n\x0bimage_block\x18\x07 \x01(\x0b\x32X.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\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\x12>\n\x0c\x62ounding_box\x18\x06 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\x1a\x36\n\x0eLayoutPageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x1a\xcd\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\x12\x45\n\x0b\x61nnotations\x18\x04 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Annotations\x1a\xc2\x02\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\x12\x45\n\x0b\x61nnotations\x18\x04 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Annotations\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.DocumentLayoutBlock\x1a\xdf\x01\n\x10LayoutImageBlock\x12\x1c\n\rblob_asset_id\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07gcs_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x17\n\x08\x64\x61ta_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x12\n\nimage_text\x18\x02 \x01(\t\x12\x45\n\x0b\x61nnotations\x18\x03 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.AnnotationsB\x0e\n\x0cimage_sourceB\x07\n\x05\x62lock\x1a\xd8\n\n\x0f\x43hunkedDocument\x12J\n\x06\x63hunks\x18\x01 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk\x1a\xf8\t\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\x12[\n\x0c\x63hunk_fields\x18\x07 \x03(\x0b\x32\x45.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField\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.ChunkPageSpan\x1a\xb7\x01\n\x0fImageChunkField\x12\x1c\n\rblob_asset_id\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x17\n\x08\x64\x61ta_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x45\n\x0b\x61nnotations\x18\x04 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.AnnotationsB\x0e\n\x0cimage_source\x1aX\n\x0fTableChunkField\x12\x45\n\x0b\x61nnotations\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Annotations\x1a\xec\x01\n\nChunkField\x12g\n\x11image_chunk_field\x18\x01 \x01(\x0b\x32J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkFieldH\x00\x12g\n\x11table_chunk_field\x18\x02 \x01(\x0b\x32J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkFieldH\x00\x42\x0c\n\nfield_type\x1aK\n\tBlobAsset\x12\x15\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\x12\x11\n\tmime_type\x18\x03 \x01(\t\x1a\xd2\x04\n\x16\x45ntityValidationOutput\x12h\n\x12validation_results\x18\x01 \x03(\x0b\x32L.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult\x12\x16\n\x0epass_all_rules\x18\x02 \x01(\x08\x1a\xb5\x03\n\x10ValidationResult\x12\x11\n\trule_name\x18\x01 \x01(\t\x12\x18\n\x10rule_description\x18\x02 \x01(\t\x12\x81\x01\n\x16validation_result_type\x18\x03 \x01(\x0e\x32\x61.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType\x12\x1a\n\x12validation_details\x18\x04 \x01(\t\"\xd3\x01\n\x14ValidationResultType\x12&\n\"VALIDATION_RESULT_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cVALIDATION_RESULT_TYPE_VALID\x10\x01\x12\"\n\x1eVALIDATION_RESULT_TYPE_INVALID\x10\x02\x12\"\n\x1eVALIDATION_RESULT_TYPE_SKIPPED\x10\x03\x12)\n%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\x10\x04\x1a\xc5\x01\n\x10\x45ntitiesRevision\x12\x13\n\x0brevision_id\x18\x01 \x01(\t\x12=\n\x08\x65ntities\x18\x02 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12]\n\x18\x65ntity_validation_output\x18\x03 \x01(\x0b\x32;.google.cloud.documentai.v1.Document.EntityValidationOutputB\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
21
|
|
|
21
22
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
22
23
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -67,6 +68,7 @@ module Google
|
|
|
67
68
|
Document::Revision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision").msgclass
|
|
68
69
|
Document::Revision::HumanReview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision.HumanReview").msgclass
|
|
69
70
|
Document::TextChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.TextChange").msgclass
|
|
71
|
+
Document::Annotations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Annotations").msgclass
|
|
70
72
|
Document::DocumentLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout").msgclass
|
|
71
73
|
Document::DocumentLayout::DocumentLayoutBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock").msgclass
|
|
72
74
|
Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan").msgclass
|
|
@@ -76,11 +78,16 @@ module Google
|
|
|
76
78
|
Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell").msgclass
|
|
77
79
|
Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock").msgclass
|
|
78
80
|
Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry").msgclass
|
|
81
|
+
Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock").msgclass
|
|
79
82
|
Document::ChunkedDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument").msgclass
|
|
80
83
|
Document::ChunkedDocument::Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk").msgclass
|
|
81
84
|
Document::ChunkedDocument::Chunk::ChunkPageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan").msgclass
|
|
82
85
|
Document::ChunkedDocument::Chunk::ChunkPageHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader").msgclass
|
|
83
86
|
Document::ChunkedDocument::Chunk::ChunkPageFooter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter").msgclass
|
|
87
|
+
Document::ChunkedDocument::Chunk::ImageChunkField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField").msgclass
|
|
88
|
+
Document::ChunkedDocument::Chunk::TableChunkField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField").msgclass
|
|
89
|
+
Document::ChunkedDocument::Chunk::ChunkField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField").msgclass
|
|
90
|
+
Document::BlobAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.BlobAsset").msgclass
|
|
84
91
|
Document::EntityValidationOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.EntityValidationOutput").msgclass
|
|
85
92
|
Document::EntityValidationOutput::ValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult").msgclass
|
|
86
93
|
Document::EntityValidationOutput::ValidationResult::ValidationResultType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType").enummodule
|
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
# @!attribute [rw] selective_gapic_generation
|
|
32
32
|
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
33
|
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
34
|
+
#
|
|
35
|
+
# Note: This field should not be used in most cases.
|
|
34
36
|
class CommonLanguageSettings
|
|
35
37
|
include ::Google::Protobuf::MessageExts
|
|
36
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -141,9 +143,10 @@ module Google
|
|
|
141
143
|
#
|
|
142
144
|
# Example of a YAML configuration::
|
|
143
145
|
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
146
|
+
# publishing:
|
|
147
|
+
# library_settings:
|
|
148
|
+
# java_settings:
|
|
149
|
+
# library_package: com.google.cloud.pubsub.v1
|
|
147
150
|
# @!attribute [rw] service_class_names
|
|
148
151
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
149
152
|
# Configure the Java class name to use instead of the service's for its
|
|
@@ -155,11 +158,11 @@ module Google
|
|
|
155
158
|
#
|
|
156
159
|
# Example of a YAML configuration::
|
|
157
160
|
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
161
|
+
# publishing:
|
|
162
|
+
# java_settings:
|
|
163
|
+
# service_class_names:
|
|
164
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
|
165
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
163
166
|
# @!attribute [rw] common
|
|
164
167
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
165
168
|
# Some settings.
|
|
@@ -190,6 +193,20 @@ module Google
|
|
|
190
193
|
# @!attribute [rw] common
|
|
191
194
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
192
195
|
# Some settings.
|
|
196
|
+
# @!attribute [rw] library_package
|
|
197
|
+
# @return [::String]
|
|
198
|
+
# The package name to use in Php. Clobbers the php_namespace option
|
|
199
|
+
# set in the protobuf. This should be used **only** by APIs
|
|
200
|
+
# who have already set the language_settings.php.package_name" field
|
|
201
|
+
# in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
202
|
+
# where possible.
|
|
203
|
+
#
|
|
204
|
+
# Example of a YAML configuration::
|
|
205
|
+
#
|
|
206
|
+
# publishing:
|
|
207
|
+
# library_settings:
|
|
208
|
+
# php_settings:
|
|
209
|
+
# library_package: Google\Cloud\PubSub\V1
|
|
193
210
|
class PhpSettings
|
|
194
211
|
include ::Google::Protobuf::MessageExts
|
|
195
212
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -318,10 +335,12 @@ module Google
|
|
|
318
335
|
# service names and values are the name to be used for the service client
|
|
319
336
|
# and call options.
|
|
320
337
|
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
338
|
+
# Example:
|
|
339
|
+
#
|
|
340
|
+
# publishing:
|
|
341
|
+
# go_settings:
|
|
342
|
+
# renamed_services:
|
|
343
|
+
# Publisher: TopicAdmin
|
|
325
344
|
class GoSettings
|
|
326
345
|
include ::Google::Protobuf::MessageExts
|
|
327
346
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -344,10 +363,10 @@ module Google
|
|
|
344
363
|
#
|
|
345
364
|
# Example:
|
|
346
365
|
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
366
|
+
# publishing:
|
|
367
|
+
# method_settings:
|
|
368
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
369
|
+
# # method settings for CreateFolder...
|
|
351
370
|
# @!attribute [rw] long_running
|
|
352
371
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
353
372
|
# Describes settings to use for long-running operations when generating
|
|
@@ -356,14 +375,14 @@ module Google
|
|
|
356
375
|
#
|
|
357
376
|
# Example of a YAML configuration::
|
|
358
377
|
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
378
|
+
# publishing:
|
|
379
|
+
# method_settings:
|
|
380
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
381
|
+
# long_running:
|
|
382
|
+
# initial_poll_delay: 60s # 1 minute
|
|
383
|
+
# poll_delay_multiplier: 1.5
|
|
384
|
+
# max_poll_delay: 360s # 6 minutes
|
|
385
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
367
386
|
# @!attribute [rw] auto_populated_fields
|
|
368
387
|
# @return [::Array<::String>]
|
|
369
388
|
# List of top-level fields of the request message, that should be
|
|
@@ -372,11 +391,24 @@ module Google
|
|
|
372
391
|
#
|
|
373
392
|
# Example of a YAML configuration:
|
|
374
393
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
#
|
|
378
|
-
#
|
|
379
|
-
#
|
|
394
|
+
# publishing:
|
|
395
|
+
# method_settings:
|
|
396
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
397
|
+
# auto_populated_fields:
|
|
398
|
+
# - request_id
|
|
399
|
+
# @!attribute [rw] batching
|
|
400
|
+
# @return [::Google::Api::BatchingConfigProto]
|
|
401
|
+
# Batching configuration for an API method in client libraries.
|
|
402
|
+
#
|
|
403
|
+
# Example of a YAML configuration:
|
|
404
|
+
#
|
|
405
|
+
# publishing:
|
|
406
|
+
# method_settings:
|
|
407
|
+
# - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
408
|
+
# batching:
|
|
409
|
+
# element_count_threshold: 1000
|
|
410
|
+
# request_byte_threshold: 100000000
|
|
411
|
+
# delay_threshold_millis: 10
|
|
380
412
|
class MethodSettings
|
|
381
413
|
include ::Google::Protobuf::MessageExts
|
|
382
414
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -411,6 +443,8 @@ module Google
|
|
|
411
443
|
|
|
412
444
|
# This message is used to configure the generation of a subset of the RPCs in
|
|
413
445
|
# a service for client libraries.
|
|
446
|
+
#
|
|
447
|
+
# Note: This feature should not be used in most cases.
|
|
414
448
|
# @!attribute [rw] methods
|
|
415
449
|
# @return [::Array<::String>]
|
|
416
450
|
# An allowlist of the fully qualified names of RPCs that should be included
|
|
@@ -428,6 +462,77 @@ module Google
|
|
|
428
462
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
463
|
end
|
|
430
464
|
|
|
465
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
466
|
+
# @!attribute [rw] thresholds
|
|
467
|
+
# @return [::Google::Api::BatchingSettingsProto]
|
|
468
|
+
# The thresholds which trigger a batched request to be sent.
|
|
469
|
+
# @!attribute [rw] batch_descriptor
|
|
470
|
+
# @return [::Google::Api::BatchingDescriptorProto]
|
|
471
|
+
# The request and response fields used in batching.
|
|
472
|
+
class BatchingConfigProto
|
|
473
|
+
include ::Google::Protobuf::MessageExts
|
|
474
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
478
|
+
# which acts as a trigger to send a batch of messages as a request. At least
|
|
479
|
+
# one threshold must be positive nonzero.
|
|
480
|
+
# @!attribute [rw] element_count_threshold
|
|
481
|
+
# @return [::Integer]
|
|
482
|
+
# The number of elements of a field collected into a batch which, if
|
|
483
|
+
# exceeded, causes the batch to be sent.
|
|
484
|
+
# @!attribute [rw] request_byte_threshold
|
|
485
|
+
# @return [::Integer]
|
|
486
|
+
# The aggregated size of the batched field which, if exceeded, causes the
|
|
487
|
+
# batch to be sent. This size is computed by aggregating the sizes of the
|
|
488
|
+
# request field to be batched, not of the entire request message.
|
|
489
|
+
# @!attribute [rw] delay_threshold
|
|
490
|
+
# @return [::Google::Protobuf::Duration]
|
|
491
|
+
# The duration after which a batch should be sent, starting from the addition
|
|
492
|
+
# of the first message to that batch.
|
|
493
|
+
# @!attribute [rw] element_count_limit
|
|
494
|
+
# @return [::Integer]
|
|
495
|
+
# The maximum number of elements collected in a batch that could be accepted
|
|
496
|
+
# by server.
|
|
497
|
+
# @!attribute [rw] request_byte_limit
|
|
498
|
+
# @return [::Integer]
|
|
499
|
+
# The maximum size of the request that could be accepted by server.
|
|
500
|
+
# @!attribute [rw] flow_control_element_limit
|
|
501
|
+
# @return [::Integer]
|
|
502
|
+
# The maximum number of elements allowed by flow control.
|
|
503
|
+
# @!attribute [rw] flow_control_byte_limit
|
|
504
|
+
# @return [::Integer]
|
|
505
|
+
# The maximum size of data allowed by flow control.
|
|
506
|
+
# @!attribute [rw] flow_control_limit_exceeded_behavior
|
|
507
|
+
# @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
|
|
508
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
509
|
+
class BatchingSettingsProto
|
|
510
|
+
include ::Google::Protobuf::MessageExts
|
|
511
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
515
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
516
|
+
# used for demultiplexing.
|
|
517
|
+
# @!attribute [rw] batched_field
|
|
518
|
+
# @return [::String]
|
|
519
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
520
|
+
# @!attribute [rw] discriminator_fields
|
|
521
|
+
# @return [::Array<::String>]
|
|
522
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
523
|
+
# together only if the values of every field specified in
|
|
524
|
+
# `request_discriminator_fields` is equal between the two requests.
|
|
525
|
+
# @!attribute [rw] subresponse_field
|
|
526
|
+
# @return [::String]
|
|
527
|
+
# Optional. When present, indicates the field in the response message to be
|
|
528
|
+
# used to demultiplex the response into multiple response messages, in
|
|
529
|
+
# correspondence with the multiple request messages originally batched
|
|
530
|
+
# together.
|
|
531
|
+
class BatchingDescriptorProto
|
|
532
|
+
include ::Google::Protobuf::MessageExts
|
|
533
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
534
|
+
end
|
|
535
|
+
|
|
431
536
|
# The organization for which the client libraries are being published.
|
|
432
537
|
# Affects the url where generated docs are published, etc.
|
|
433
538
|
module ClientLibraryOrganization
|
|
@@ -469,5 +574,20 @@ module Google
|
|
|
469
574
|
# Publish the library to package managers like nuget.org and npmjs.com.
|
|
470
575
|
PACKAGE_MANAGER = 20
|
|
471
576
|
end
|
|
577
|
+
|
|
578
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
579
|
+
module FlowControlLimitExceededBehaviorProto
|
|
580
|
+
# Default behavior, system-defined.
|
|
581
|
+
UNSET_BEHAVIOR = 0
|
|
582
|
+
|
|
583
|
+
# Stop operation, raise error.
|
|
584
|
+
THROW_EXCEPTION = 1
|
|
585
|
+
|
|
586
|
+
# Pause operation until limit clears.
|
|
587
|
+
BLOCK = 2
|
|
588
|
+
|
|
589
|
+
# Continue operation, disregard limit.
|
|
590
|
+
IGNORE = 3
|
|
591
|
+
end
|
|
472
592
|
end
|
|
473
593
|
end
|
|
@@ -88,6 +88,12 @@ module Google
|
|
|
88
88
|
# @!attribute [rw] chunked_document
|
|
89
89
|
# @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument]
|
|
90
90
|
# Document chunked based on chunking config.
|
|
91
|
+
# @!attribute [rw] blob_assets
|
|
92
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::BlobAsset>]
|
|
93
|
+
# Optional. The blob assets in this document. This is used to store the
|
|
94
|
+
# content of the inline blobs in this document, for example, image bytes,
|
|
95
|
+
# such that it can be referenced by other fields in the document via asset
|
|
96
|
+
# id.
|
|
91
97
|
# @!attribute [rw] entity_validation_output
|
|
92
98
|
# @return [::Google::Cloud::DocumentAI::V1::Document::EntityValidationOutput]
|
|
93
99
|
# The entity validation output for the document. This is the validation
|
|
@@ -102,7 +108,7 @@ module Google
|
|
|
102
108
|
# The entity revision ID that `document.entities` field is based on.
|
|
103
109
|
# If this field is set and `entities_revisions` is not empty, the entities in
|
|
104
110
|
# `document.entities` field are the entities in the entity revision with this
|
|
105
|
-
#
|
|
111
|
+
# id and `document.entity_validation_output` field is the
|
|
106
112
|
# `entity_validation_output` field in this entity revision.
|
|
107
113
|
class Document
|
|
108
114
|
include ::Google::Protobuf::MessageExts
|
|
@@ -222,7 +228,7 @@ module Google
|
|
|
222
228
|
# A list of visually detected tokens on the page.
|
|
223
229
|
# @!attribute [rw] visual_elements
|
|
224
230
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::Page::VisualElement>]
|
|
225
|
-
# A list of detected non-text visual elements
|
|
231
|
+
# A list of detected non-text visual elements, for example, checkbox,
|
|
226
232
|
# signature etc. on the page.
|
|
227
233
|
# @!attribute [rw] tables
|
|
228
234
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::Page::Table>]
|
|
@@ -313,9 +319,9 @@ module Google
|
|
|
313
319
|
# @return [::Float]
|
|
314
320
|
# Confidence of the current
|
|
315
321
|
# {::Google::Cloud::DocumentAI::V1::Document::Page::Layout Layout} within
|
|
316
|
-
# context of the object this layout is for.
|
|
317
|
-
# single token, a table, a visual element, etc. depending on
|
|
318
|
-
# Range `[0, 1]`.
|
|
322
|
+
# context of the object this layout is for. For example, confidence can
|
|
323
|
+
# be for a single token, a table, a visual element, etc. depending on
|
|
324
|
+
# context. Range `[0, 1]`.
|
|
319
325
|
# @!attribute [rw] bounding_poly
|
|
320
326
|
# @return [::Google::Cloud::DocumentAI::V1::BoundingPoly]
|
|
321
327
|
# The bounding polygon for the
|
|
@@ -521,8 +527,8 @@ module Google
|
|
|
521
527
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
522
528
|
end
|
|
523
529
|
|
|
524
|
-
# Detected non-text visual elements
|
|
525
|
-
# page.
|
|
530
|
+
# Detected non-text visual elements, for example, checkbox, signature etc.
|
|
531
|
+
# on the page.
|
|
526
532
|
# @!attribute [rw] layout
|
|
527
533
|
# @return [::Google::Cloud::DocumentAI::V1::Document::Page::Layout]
|
|
528
534
|
# {::Google::Cloud::DocumentAI::V1::Document::Page::Layout Layout} for
|
|
@@ -595,7 +601,7 @@ module Google
|
|
|
595
601
|
# @return [::Google::Cloud::DocumentAI::V1::Document::Page::Layout]
|
|
596
602
|
# {::Google::Cloud::DocumentAI::V1::Document::Page::Layout Layout} for the
|
|
597
603
|
# {::Google::Cloud::DocumentAI::V1::Document::Page::FormField FormField} name.
|
|
598
|
-
#
|
|
604
|
+
# For example, `Address`, `Email`, `Grand total`, `Phone number`, etc.
|
|
599
605
|
# @!attribute [rw] field_value
|
|
600
606
|
# @return [::Google::Cloud::DocumentAI::V1::Document::Page::Layout]
|
|
601
607
|
# {::Google::Cloud::DocumentAI::V1::Document::Page::Layout Layout} for the
|
|
@@ -705,10 +711,11 @@ module Google
|
|
|
705
711
|
# {::Google::Cloud::DocumentAI::V1::Document#text Document.text}.
|
|
706
712
|
# @!attribute [rw] type
|
|
707
713
|
# @return [::String]
|
|
708
|
-
# Required. Entity type from a schema
|
|
714
|
+
# Required. Entity type from a schema, for example, `Address`.
|
|
709
715
|
# @!attribute [rw] mention_text
|
|
710
716
|
# @return [::String]
|
|
711
|
-
# Optional. Text value of the entity
|
|
717
|
+
# Optional. Text value of the entity, for example, `1600 Amphitheatre
|
|
718
|
+
# Pkwy`.
|
|
712
719
|
# @!attribute [rw] mention_id
|
|
713
720
|
# @return [::String]
|
|
714
721
|
# Optional. Deprecated. Use `id` field instead.
|
|
@@ -726,9 +733,9 @@ module Google
|
|
|
726
733
|
# @!attribute [rw] normalized_value
|
|
727
734
|
# @return [::Google::Cloud::DocumentAI::V1::Document::Entity::NormalizedValue]
|
|
728
735
|
# Optional. Normalized entity value. Absent if the extracted value could
|
|
729
|
-
# not be converted or the type (
|
|
730
|
-
# parsers. This field is also only populated for certain supported
|
|
731
|
-
# types.
|
|
736
|
+
# not be converted or the type (for example, address) is not supported for
|
|
737
|
+
# certain parsers. This field is also only populated for certain supported
|
|
738
|
+
# document types.
|
|
732
739
|
# @!attribute [rw] properties
|
|
733
740
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::Entity>]
|
|
734
741
|
# Optional. Entities can be nested to form a hierarchical data structure
|
|
@@ -790,6 +797,9 @@ module Google
|
|
|
790
797
|
# Note: The following fields are mutually exclusive: `float_value`, `money_value`, `date_value`, `datetime_value`, `address_value`, `boolean_value`, `integer_value`, `signature_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
791
798
|
# @!attribute [rw] signature_value
|
|
792
799
|
# @return [::Boolean]
|
|
800
|
+
# A signature - a graphical representation of a person's name,
|
|
801
|
+
# often used to sign a document.
|
|
802
|
+
#
|
|
793
803
|
# Note: The following fields are mutually exclusive: `signature_value`, `money_value`, `date_value`, `datetime_value`, `address_value`, `boolean_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
794
804
|
# @!attribute [rw] text
|
|
795
805
|
# @return [::String]
|
|
@@ -1076,7 +1086,7 @@ module Google
|
|
|
1076
1086
|
# Human Review information of the document.
|
|
1077
1087
|
# @!attribute [rw] state
|
|
1078
1088
|
# @return [::String]
|
|
1079
|
-
# Human review state.
|
|
1089
|
+
# Human review state. For example, `requested`, `succeeded`, `rejected`.
|
|
1080
1090
|
# @!attribute [rw] state_message
|
|
1081
1091
|
# @return [::String]
|
|
1082
1092
|
# A message providing more details about the current state of processing.
|
|
@@ -1108,6 +1118,15 @@ module Google
|
|
|
1108
1118
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1109
1119
|
end
|
|
1110
1120
|
|
|
1121
|
+
# Represents the annotation of a block or a chunk.
|
|
1122
|
+
# @!attribute [rw] description
|
|
1123
|
+
# @return [::String]
|
|
1124
|
+
# The description of the content with this annotation.
|
|
1125
|
+
class Annotations
|
|
1126
|
+
include ::Google::Protobuf::MessageExts
|
|
1127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1111
1130
|
# Represents the parsed layout of a document as a collection of blocks that
|
|
1112
1131
|
# the document is divided into.
|
|
1113
1132
|
# @!attribute [rw] blocks
|
|
@@ -1123,17 +1142,22 @@ module Google
|
|
|
1123
1142
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock]
|
|
1124
1143
|
# Block consisting of text content.
|
|
1125
1144
|
#
|
|
1126
|
-
# Note: The following fields are mutually exclusive: `text_block`, `table_block`, `list_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1145
|
+
# Note: The following fields are mutually exclusive: `text_block`, `table_block`, `list_block`, `image_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1127
1146
|
# @!attribute [rw] table_block
|
|
1128
1147
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock]
|
|
1129
1148
|
# Block consisting of table content/structure.
|
|
1130
1149
|
#
|
|
1131
|
-
# Note: The following fields are mutually exclusive: `table_block`, `text_block`, `list_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1150
|
+
# Note: The following fields are mutually exclusive: `table_block`, `text_block`, `list_block`, `image_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1132
1151
|
# @!attribute [rw] list_block
|
|
1133
1152
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock]
|
|
1134
1153
|
# Block consisting of list content/structure.
|
|
1135
1154
|
#
|
|
1136
|
-
# Note: The following fields are mutually exclusive: `list_block`, `text_block`, `table_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1155
|
+
# Note: The following fields are mutually exclusive: `list_block`, `text_block`, `table_block`, `image_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1156
|
+
# @!attribute [rw] image_block
|
|
1157
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock]
|
|
1158
|
+
# Block consisting of image content.
|
|
1159
|
+
#
|
|
1160
|
+
# Note: The following fields are mutually exclusive: `image_block`, `text_block`, `table_block`, `list_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1137
1161
|
# @!attribute [rw] block_id
|
|
1138
1162
|
# @return [::String]
|
|
1139
1163
|
# ID of the block.
|
|
@@ -1172,6 +1196,9 @@ module Google
|
|
|
1172
1196
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
|
|
1173
1197
|
# A text block could further have child blocks.
|
|
1174
1198
|
# Repeated blocks support further hierarchies and nested blocks.
|
|
1199
|
+
# @!attribute [rw] annotations
|
|
1200
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::Annotations]
|
|
1201
|
+
# Annotation of the text block.
|
|
1175
1202
|
class LayoutTextBlock
|
|
1176
1203
|
include ::Google::Protobuf::MessageExts
|
|
1177
1204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1187,6 +1214,9 @@ module Google
|
|
|
1187
1214
|
# @!attribute [rw] caption
|
|
1188
1215
|
# @return [::String]
|
|
1189
1216
|
# Table caption/title.
|
|
1217
|
+
# @!attribute [rw] annotations
|
|
1218
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::Annotations]
|
|
1219
|
+
# Annotation of the table block.
|
|
1190
1220
|
class LayoutTableBlock
|
|
1191
1221
|
include ::Google::Protobuf::MessageExts
|
|
1192
1222
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1239,6 +1269,43 @@ module Google
|
|
|
1239
1269
|
include ::Google::Protobuf::MessageExts
|
|
1240
1270
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1241
1271
|
end
|
|
1272
|
+
|
|
1273
|
+
# Represents an image type block.
|
|
1274
|
+
# @!attribute [rw] blob_asset_id
|
|
1275
|
+
# @return [::String]
|
|
1276
|
+
# Optional. Asset id of the inline image. If set, find the image
|
|
1277
|
+
# content in the blob_assets field.
|
|
1278
|
+
#
|
|
1279
|
+
# Note: The following fields are mutually exclusive: `blob_asset_id`, `gcs_uri`, `data_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1280
|
+
# @!attribute [rw] gcs_uri
|
|
1281
|
+
# @return [::String]
|
|
1282
|
+
# Optional. Google Cloud Storage uri of the image.
|
|
1283
|
+
#
|
|
1284
|
+
# Note: The following fields are mutually exclusive: `gcs_uri`, `blob_asset_id`, `data_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1285
|
+
# @!attribute [rw] data_uri
|
|
1286
|
+
# @return [::String]
|
|
1287
|
+
# Optional. Data uri of the image.
|
|
1288
|
+
# It is composed of four parts: a prefix (data:), a MIME type
|
|
1289
|
+
# indicating the type of data, an optional base64 token if
|
|
1290
|
+
# non-textual, and the data itself:
|
|
1291
|
+
# data:[<mediatype>][;base64],<data>
|
|
1292
|
+
#
|
|
1293
|
+
# Note: The following fields are mutually exclusive: `data_uri`, `blob_asset_id`, `gcs_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1294
|
+
# @!attribute [rw] mime_type
|
|
1295
|
+
# @return [::String]
|
|
1296
|
+
# Mime type of the image. An IANA published [media type (MIME type)]
|
|
1297
|
+
# (https://www.iana.org/assignments/media-types/media-types.xhtml).
|
|
1298
|
+
# @!attribute [rw] image_text
|
|
1299
|
+
# @return [::String]
|
|
1300
|
+
# Text extracted from the image using OCR or alt text describing the
|
|
1301
|
+
# image.
|
|
1302
|
+
# @!attribute [rw] annotations
|
|
1303
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::Annotations]
|
|
1304
|
+
# Annotation of the image block.
|
|
1305
|
+
class LayoutImageBlock
|
|
1306
|
+
include ::Google::Protobuf::MessageExts
|
|
1307
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1308
|
+
end
|
|
1242
1309
|
end
|
|
1243
1310
|
end
|
|
1244
1311
|
|
|
@@ -1269,6 +1336,9 @@ module Google
|
|
|
1269
1336
|
# @!attribute [rw] page_footers
|
|
1270
1337
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter>]
|
|
1271
1338
|
# Page footers associated with the chunk.
|
|
1339
|
+
# @!attribute [rw] chunk_fields
|
|
1340
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField>]
|
|
1341
|
+
# Chunk fields inside this chunk.
|
|
1272
1342
|
class Chunk
|
|
1273
1343
|
include ::Google::Protobuf::MessageExts
|
|
1274
1344
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1308,9 +1378,83 @@ module Google
|
|
|
1308
1378
|
include ::Google::Protobuf::MessageExts
|
|
1309
1379
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1310
1380
|
end
|
|
1381
|
+
|
|
1382
|
+
# The image chunk field in the chunk.
|
|
1383
|
+
# @!attribute [rw] blob_asset_id
|
|
1384
|
+
# @return [::String]
|
|
1385
|
+
# Optional. Asset id of the inline image. If set, find the image
|
|
1386
|
+
# content in the blob_assets field.
|
|
1387
|
+
#
|
|
1388
|
+
# Note: The following fields are mutually exclusive: `blob_asset_id`, `gcs_uri`, `data_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1389
|
+
# @!attribute [rw] gcs_uri
|
|
1390
|
+
# @return [::String]
|
|
1391
|
+
# Optional. Google Cloud Storage uri of the image.
|
|
1392
|
+
#
|
|
1393
|
+
# Note: The following fields are mutually exclusive: `gcs_uri`, `blob_asset_id`, `data_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1394
|
+
# @!attribute [rw] data_uri
|
|
1395
|
+
# @return [::String]
|
|
1396
|
+
# Optional. Data uri of the image.
|
|
1397
|
+
# It is composed of four parts: a prefix (data:), a MIME type
|
|
1398
|
+
# indicating the type of data, an optional base64 token if
|
|
1399
|
+
# non-textual, and the data itself:
|
|
1400
|
+
# data:[<mediatype>][;base64],<data>
|
|
1401
|
+
#
|
|
1402
|
+
# Note: The following fields are mutually exclusive: `data_uri`, `blob_asset_id`, `gcs_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1403
|
+
# @!attribute [rw] annotations
|
|
1404
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::Annotations]
|
|
1405
|
+
# Annotation of the image chunk field.
|
|
1406
|
+
class ImageChunkField
|
|
1407
|
+
include ::Google::Protobuf::MessageExts
|
|
1408
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
# The table chunk field in the chunk.
|
|
1412
|
+
# @!attribute [rw] annotations
|
|
1413
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::Annotations]
|
|
1414
|
+
# Annotation of the table chunk field.
|
|
1415
|
+
class TableChunkField
|
|
1416
|
+
include ::Google::Protobuf::MessageExts
|
|
1417
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
# The chunk field in the chunk. A chunk field could be one of the various
|
|
1421
|
+
# types (for example, image, table) supported.
|
|
1422
|
+
# @!attribute [rw] image_chunk_field
|
|
1423
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ImageChunkField]
|
|
1424
|
+
# The image chunk field in the chunk.
|
|
1425
|
+
#
|
|
1426
|
+
# Note: The following fields are mutually exclusive: `image_chunk_field`, `table_chunk_field`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1427
|
+
# @!attribute [rw] table_chunk_field
|
|
1428
|
+
# @return [::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::TableChunkField]
|
|
1429
|
+
# The table chunk field in the chunk.
|
|
1430
|
+
#
|
|
1431
|
+
# Note: The following fields are mutually exclusive: `table_chunk_field`, `image_chunk_field`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1432
|
+
class ChunkField
|
|
1433
|
+
include ::Google::Protobuf::MessageExts
|
|
1434
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1435
|
+
end
|
|
1311
1436
|
end
|
|
1312
1437
|
end
|
|
1313
1438
|
|
|
1439
|
+
# Represents a blob asset. It's used to store the content of the inline blob
|
|
1440
|
+
# in this document, for example, image bytes, such that it can be referenced
|
|
1441
|
+
# by other fields in the document via asset ID.
|
|
1442
|
+
# @!attribute [rw] asset_id
|
|
1443
|
+
# @return [::String]
|
|
1444
|
+
# Optional. The id of the blob asset.
|
|
1445
|
+
# @!attribute [rw] content
|
|
1446
|
+
# @return [::String]
|
|
1447
|
+
# Optional. The content of the blob asset, for example, image bytes.
|
|
1448
|
+
# @!attribute [rw] mime_type
|
|
1449
|
+
# @return [::String]
|
|
1450
|
+
# The mime type of the blob asset.
|
|
1451
|
+
# An IANA published [media type (MIME
|
|
1452
|
+
# type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
|
|
1453
|
+
class BlobAsset
|
|
1454
|
+
include ::Google::Protobuf::MessageExts
|
|
1455
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1314
1458
|
# The output of the validation given the document and the validation rules.
|
|
1315
1459
|
# @!attribute [rw] validation_results
|
|
1316
1460
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Document::EntityValidationOutput::ValidationResult>]
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
module Google
|
|
21
21
|
module Type
|
|
22
22
|
# Represents a color in the RGBA color space. This representation is designed
|
|
23
|
-
# for simplicity of conversion to
|
|
23
|
+
# for simplicity of conversion to and from color representations in various
|
|
24
24
|
# languages over compactness. For example, the fields of this representation
|
|
25
25
|
# can be trivially provided to the constructor of `java.awt.Color` in Java; it
|
|
26
26
|
# can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
|
27
27
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
|
28
28
|
# a CSS `rgba()` string in JavaScript.
|
|
29
29
|
#
|
|
30
|
-
# This reference page doesn't
|
|
31
|
-
# space
|
|
32
|
-
#
|
|
33
|
-
# DCI-P3, BT.2020
|
|
30
|
+
# This reference page doesn't have information about the absolute color
|
|
31
|
+
# space that should be used to interpret the RGB value—for example, sRGB,
|
|
32
|
+
# Adobe RGB,
|
|
33
|
+
# DCI-P3, and BT.2020. By default, applications should assume the sRGB color
|
|
34
34
|
# space.
|
|
35
35
|
#
|
|
36
|
-
# When color equality needs to be decided, implementations, unless
|
|
37
|
-
#
|
|
38
|
-
#
|
|
36
|
+
# When color equality needs to be decided, implementations, unless documented
|
|
37
|
+
# otherwise, treat two colors as equal if all their red, green, blue, and alpha
|
|
38
|
+
# values each differ by at most `1e-5`.
|
|
39
39
|
#
|
|
40
40
|
# Example (Java):
|
|
41
41
|
#
|
|
@@ -24,14 +24,17 @@ module Google
|
|
|
24
24
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
|
25
25
|
# following:
|
|
26
26
|
#
|
|
27
|
-
# * A full date, with non-zero year, month, and day values
|
|
28
|
-
# * A month and day
|
|
29
|
-
# * A year on its own, with zero month and day
|
|
30
|
-
# * A year and month
|
|
31
|
-
#
|
|
27
|
+
# * A full date, with non-zero year, month, and day values.
|
|
28
|
+
# * A month and day, with a zero year (for example, an anniversary).
|
|
29
|
+
# * A year on its own, with a zero month and a zero day.
|
|
30
|
+
# * A year and month, with a zero day (for example, a credit card expiration
|
|
31
|
+
# date).
|
|
32
32
|
#
|
|
33
|
-
# Related types
|
|
34
|
-
#
|
|
33
|
+
# Related types:
|
|
34
|
+
#
|
|
35
|
+
# * [google.type.TimeOfDay][google.type.TimeOfDay]
|
|
36
|
+
# * {::Google::Type::DateTime google.type.DateTime}
|
|
37
|
+
# * {::Google::Protobuf::Timestamp google.protobuf.Timestamp}
|
|
35
38
|
# @!attribute [rw] year
|
|
36
39
|
# @return [::Integer]
|
|
37
40
|
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
|
@@ -32,8 +32,8 @@ module Google
|
|
|
32
32
|
#
|
|
33
33
|
# The date is relative to the Proleptic Gregorian Calendar.
|
|
34
34
|
#
|
|
35
|
-
# If year
|
|
36
|
-
#
|
|
35
|
+
# If year, month, or day are 0, the DateTime is considered not to have a
|
|
36
|
+
# specific year, month, or day respectively.
|
|
37
37
|
#
|
|
38
38
|
# This type may also be used to represent a physical time if all the date and
|
|
39
39
|
# time fields are set and either case of the `time_offset` oneof is set.
|
|
@@ -49,27 +49,28 @@ module Google
|
|
|
49
49
|
# datetime without a year.
|
|
50
50
|
# @!attribute [rw] month
|
|
51
51
|
# @return [::Integer]
|
|
52
|
-
#
|
|
52
|
+
# Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
|
|
53
|
+
# datetime without a month.
|
|
53
54
|
# @!attribute [rw] day
|
|
54
55
|
# @return [::Integer]
|
|
55
|
-
#
|
|
56
|
-
# month.
|
|
56
|
+
# Optional. Day of month. Must be from 1 to 31 and valid for the year and
|
|
57
|
+
# month, or 0 if specifying a datetime without a day.
|
|
57
58
|
# @!attribute [rw] hours
|
|
58
59
|
# @return [::Integer]
|
|
59
|
-
#
|
|
60
|
-
# may choose to allow the value "24:00:00" for
|
|
61
|
-
# closing time.
|
|
60
|
+
# Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
|
|
61
|
+
# to 0 (midnight). An API may choose to allow the value "24:00:00" for
|
|
62
|
+
# scenarios like business closing time.
|
|
62
63
|
# @!attribute [rw] minutes
|
|
63
64
|
# @return [::Integer]
|
|
64
|
-
#
|
|
65
|
+
# Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
|
|
65
66
|
# @!attribute [rw] seconds
|
|
66
67
|
# @return [::Integer]
|
|
67
|
-
#
|
|
68
|
-
# API may allow the value 60 if it allows leap-seconds.
|
|
68
|
+
# Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
|
|
69
|
+
# defaults to 0. An API may allow the value 60 if it allows leap-seconds.
|
|
69
70
|
# @!attribute [rw] nanos
|
|
70
71
|
# @return [::Integer]
|
|
71
|
-
#
|
|
72
|
-
# 999,999,999.
|
|
72
|
+
# Optional. Fractions of seconds in nanoseconds. Must be from 0 to
|
|
73
|
+
# 999,999,999, defaults to 0.
|
|
73
74
|
# @!attribute [rw] utc_offset
|
|
74
75
|
# @return [::Google::Protobuf::Duration]
|
|
75
76
|
# UTC offset. Must be whole seconds, between -18 hours and +18 hours.
|
|
@@ -91,10 +92,10 @@ module Google
|
|
|
91
92
|
# [IANA Time Zone Database](https://www.iana.org/time-zones).
|
|
92
93
|
# @!attribute [rw] id
|
|
93
94
|
# @return [::String]
|
|
94
|
-
# IANA Time Zone Database time zone
|
|
95
|
+
# IANA Time Zone Database time zone. For example "America/New_York".
|
|
95
96
|
# @!attribute [rw] version
|
|
96
97
|
# @return [::String]
|
|
97
|
-
# Optional. IANA Time Zone Database version number
|
|
98
|
+
# Optional. IANA Time Zone Database version number. For example "2019a".
|
|
98
99
|
class TimeZone
|
|
99
100
|
include ::Google::Protobuf::MessageExts
|
|
100
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
|
|
20
20
|
module Google
|
|
21
21
|
module Type
|
|
22
|
-
# Represents a postal address,
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
# mountains).
|
|
22
|
+
# Represents a postal address, such as for postal delivery or payments
|
|
23
|
+
# addresses. With a postal address, a postal service can deliver items to a
|
|
24
|
+
# premise, P.O. box, or similar. A postal address is not intended to model
|
|
25
|
+
# geographical locations like roads, towns, or mountains.
|
|
27
26
|
#
|
|
28
|
-
# In typical usage an address would be created
|
|
27
|
+
# In typical usage, an address would be created by user input or from importing
|
|
29
28
|
# existing data, depending on the type of process.
|
|
30
29
|
#
|
|
31
|
-
# Advice on address input
|
|
32
|
-
# - Use an i18n-ready address widget such as
|
|
33
|
-
# https://github.com/google/libaddressinput)
|
|
34
|
-
# - Users should not be presented with UI elements for input or editing of
|
|
35
|
-
# fields outside countries where that field is used.
|
|
30
|
+
# Advice on address input or editing:
|
|
36
31
|
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
32
|
+
# - Use an internationalization-ready address widget such as
|
|
33
|
+
# https://github.com/google/libaddressinput.
|
|
34
|
+
# - Users should not be presented with UI elements for input or editing of
|
|
35
|
+
# fields outside countries where that field is used.
|
|
36
|
+
#
|
|
37
|
+
# For more guidance on how to use this schema, see:
|
|
38
|
+
# https://support.google.com/business/answer/6397478.
|
|
39
39
|
# @!attribute [rw] revision
|
|
40
40
|
# @return [::Integer]
|
|
41
41
|
# The schema revision of the `PostalAddress`. This must be set to 0, which is
|
|
@@ -46,8 +46,8 @@ module Google
|
|
|
46
46
|
# @return [::String]
|
|
47
47
|
# Required. CLDR region code of the country/region of the address. This
|
|
48
48
|
# is never inferred and it is up to the user to ensure the value is
|
|
49
|
-
# correct. See
|
|
50
|
-
#
|
|
49
|
+
# correct. See https://cldr.unicode.org/ and
|
|
50
|
+
# https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
|
|
51
51
|
# for details. Example: "CH" for Switzerland.
|
|
52
52
|
# @!attribute [rw] language_code
|
|
53
53
|
# @return [::String]
|
|
@@ -67,55 +67,56 @@ module Google
|
|
|
67
67
|
# @return [::String]
|
|
68
68
|
# Optional. Postal code of the address. Not all countries use or require
|
|
69
69
|
# postal codes to be present, but where they are used, they may trigger
|
|
70
|
-
# additional validation with other parts of the address (
|
|
71
|
-
# validation in the
|
|
70
|
+
# additional validation with other parts of the address (for example,
|
|
71
|
+
# state or zip code validation in the United States).
|
|
72
72
|
# @!attribute [rw] sorting_code
|
|
73
73
|
# @return [::String]
|
|
74
74
|
# Optional. Additional, country-specific, sorting code. This is not used
|
|
75
75
|
# in most regions. Where it is used, the value is either a string like
|
|
76
|
-
# "CEDEX", optionally followed by a number (
|
|
77
|
-
# alone, representing the "sector code" (Jamaica), "delivery area
|
|
78
|
-
# (Malawi) or "post office indicator" (
|
|
76
|
+
# "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
|
|
77
|
+
# a number alone, representing the "sector code" (Jamaica), "delivery area
|
|
78
|
+
# indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
|
|
79
79
|
# @!attribute [rw] administrative_area
|
|
80
80
|
# @return [::String]
|
|
81
81
|
# Optional. Highest administrative subdivision which is used for postal
|
|
82
82
|
# addresses of a country or region.
|
|
83
83
|
# For example, this can be a state, a province, an oblast, or a prefecture.
|
|
84
|
-
#
|
|
85
|
-
# community (
|
|
86
|
-
# Many countries don't use an administrative area in postal addresses.
|
|
87
|
-
# in Switzerland this should be left unpopulated.
|
|
84
|
+
# For Spain, this is the province and not the autonomous
|
|
85
|
+
# community (for example, "Barcelona" and not "Catalonia").
|
|
86
|
+
# Many countries don't use an administrative area in postal addresses. For
|
|
87
|
+
# example, in Switzerland, this should be left unpopulated.
|
|
88
88
|
# @!attribute [rw] locality
|
|
89
89
|
# @return [::String]
|
|
90
|
-
# Optional. Generally refers to the city
|
|
90
|
+
# Optional. Generally refers to the city or town portion of the address.
|
|
91
91
|
# Examples: US city, IT comune, UK post town.
|
|
92
92
|
# In regions of the world where localities are not well defined or do not fit
|
|
93
|
-
# into this structure well, leave locality empty and use address_lines
|
|
93
|
+
# into this structure well, leave `locality` empty and use `address_lines`.
|
|
94
94
|
# @!attribute [rw] sublocality
|
|
95
95
|
# @return [::String]
|
|
96
96
|
# Optional. Sublocality of the address.
|
|
97
|
-
# For example, this can be
|
|
97
|
+
# For example, this can be a neighborhood, borough, or district.
|
|
98
98
|
# @!attribute [rw] address_lines
|
|
99
99
|
# @return [::Array<::String>]
|
|
100
100
|
# Unstructured address lines describing the lower levels of an address.
|
|
101
101
|
#
|
|
102
|
-
# Because values in address_lines do not have type information and may
|
|
103
|
-
# sometimes contain multiple values in a single field (
|
|
102
|
+
# Because values in `address_lines` do not have type information and may
|
|
103
|
+
# sometimes contain multiple values in a single field (for example,
|
|
104
104
|
# "Austin, TX"), it is important that the line order is clear. The order of
|
|
105
|
-
# address lines should be "envelope order" for the country
|
|
106
|
-
# address. In places where this can vary (
|
|
107
|
-
# used to make it explicit (
|
|
108
|
-
# "ja-Latn" or "en" for small-to-large).
|
|
109
|
-
# an address can be selected based on the
|
|
105
|
+
# address lines should be "envelope order" for the country or region of the
|
|
106
|
+
# address. In places where this can vary (for example, Japan),
|
|
107
|
+
# `address_language` is used to make it explicit (for example, "ja" for
|
|
108
|
+
# large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
|
|
109
|
+
# way, the most specific line of an address can be selected based on the
|
|
110
|
+
# language.
|
|
110
111
|
#
|
|
111
112
|
# The minimum permitted structural representation of an address consists
|
|
112
|
-
# of a region_code with all remaining information placed in the
|
|
113
|
-
# address_lines
|
|
113
|
+
# of a `region_code` with all remaining information placed in the
|
|
114
|
+
# `address_lines`. It would be possible to format such an address very
|
|
114
115
|
# approximately without geocoding, but no semantic reasoning could be
|
|
115
116
|
# made about any of the address components until it was at least
|
|
116
117
|
# partially resolved.
|
|
117
118
|
#
|
|
118
|
-
# Creating an address only containing a region_code and address_lines
|
|
119
|
+
# Creating an address only containing a `region_code` and `address_lines` and
|
|
119
120
|
# then geocoding is the recommended way to handle completely unstructured
|
|
120
121
|
# addresses (as opposed to guessing which parts of the address should be
|
|
121
122
|
# localities or administrative areas).
|