diff --git a/DocumentAi/metadata/V1/Document.php b/DocumentAi/metadata/V1/Document.php index 7abee157c3e..9ba73c628c1 100644 --- a/DocumentAi/metadata/V1/Document.php +++ b/DocumentAi/metadata/V1/Document.php @@ -15,6 +15,7 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Documentai\V1\Barcode::initOnce(); \GPBMetadata\Google\Cloud\Documentai\V1\Geometry::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); @@ -25,7 +26,7 @@ public static function initOnce() { \GPBMetadata\Google\Type\Money::initOnce(); \GPBMetadata\Google\Type\PostalAddress::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xD7f\x0A)google/cloud/documentai/v1/document.proto\x12\x1Agoogle.cloud.documentai.v1\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\"\xA0b\x0A\x08Document\x12\x12\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x16\x0A\x07content\x18\x02 \x01(\x0CB\x03\xE0A\x01H\x00\x12\x12\x0A\x05docid\x18\x0F \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x09mime_type\x18\x03 \x01(\x09\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x0Btext_styles\x18\x05 \x03(\x0B2*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x128\x0A\x05pages\x18\x06 \x03(\x0B2).google.cloud.documentai.v1.Document.Page\x12=\x0A\x08entities\x18\x07 \x03(\x0B2+.google.cloud.documentai.v1.Document.Entity\x12M\x0A\x10entity_relations\x18\x08 \x03(\x0B23.google.cloud.documentai.v1.Document.EntityRelation\x12E\x0A\x0Ctext_changes\x18\x0E \x03(\x0B2/.google.cloud.documentai.v1.Document.TextChange\x12B\x0A\x0Ashard_info\x18\x09 \x01(\x0B2..google.cloud.documentai.v1.Document.ShardInfo\x12!\x0A\x05error\x18\x0A \x01(\x0B2\x12.google.rpc.Status\x12@\x0A\x09revisions\x18\x0D \x03(\x0B2-.google.cloud.documentai.v1.Document.Revision\x12L\x0A\x0Fdocument_layout\x18\x11 \x01(\x0B23.google.cloud.documentai.v1.Document.DocumentLayout\x12N\x0A\x10chunked_document\x18\x12 \x01(\x0B24.google.cloud.documentai.v1.Document.ChunkedDocument\x12]\x0A\x18entity_validation_output\x18\x15 \x01(\x0B2;.google.cloud.documentai.v1.Document.EntityValidationOutput\x12Q\x0A\x12entities_revisions\x18\x16 \x03(\x0B25.google.cloud.documentai.v1.Document.EntitiesRevision\x12\x1C\x0A\x14entities_revision_id\x18\x17 \x01(\x09\x1AJ\x0A\x09ShardInfo\x12\x13\x0A\x0Bshard_index\x18\x01 \x01(\x03\x12\x13\x0A\x0Bshard_count\x18\x02 \x01(\x03\x12\x13\x0A\x0Btext_offset\x18\x03 \x01(\x03\x1A\xE5\x02\x0A\x05Style\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12!\x0A\x05color\x18\x02 \x01(\x0B2\x12.google.type.Color\x12,\x0A\x10background_color\x18\x03 \x01(\x0B2\x12.google.type.Color\x12\x13\x0A\x0Bfont_weight\x18\x04 \x01(\x09\x12\x12\x0A\x0Atext_style\x18\x05 \x01(\x09\x12\x17\x0A\x0Ftext_decoration\x18\x06 \x01(\x09\x12F\x0A\x09font_size\x18\x07 \x01(\x0B23.google.cloud.documentai.v1.Document.Style.FontSize\x12\x13\x0A\x0Bfont_family\x18\x08 \x01(\x09\x1A&\x0A\x08FontSize\x12\x0C\x0A\x04size\x18\x01 \x01(\x02\x12\x0C\x0A\x04unit\x18\x02 \x01(\x09\x1A\xC2)\x0A\x04Page\x12\x13\x0A\x0Bpage_number\x18\x01 \x01(\x05\x12>\x0A\x05image\x18\x0D \x01(\x0B2/.google.cloud.documentai.v1.Document.Page.Image\x12D\x0A\x0Atransforms\x18\x0E \x03(\x0B20.google.cloud.documentai.v1.Document.Page.Matrix\x12F\x0A\x09dimension\x18\x02 \x01(\x0B23.google.cloud.documentai.v1.Document.Page.Dimension\x12@\x0A\x06layout\x18\x03 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\x0A\x06blocks\x18\x05 \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Block\x12G\x0A\x0Aparagraphs\x18\x06 \x03(\x0B23.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\x0A\x05lines\x18\x07 \x03(\x0B2..google.cloud.documentai.v1.Document.Page.Line\x12?\x0A\x06tokens\x18\x08 \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Token\x12P\x0A\x0Fvisual_elements\x18\x09 \x03(\x0B27.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\x0A\x06tables\x18\x0A \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Table\x12H\x0A\x0Bform_fields\x18\x0B \x03(\x0B23.google.cloud.documentai.v1.Document.Page.FormField\x12A\x0A\x07symbols\x18\x0C \x03(\x0B20.google.cloud.documentai.v1.Document.Page.Symbol\x12T\x0A\x11detected_barcodes\x18\x0F \x03(\x0B29.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\x0A\x14image_quality_scores\x18\x11 \x01(\x0B2<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\x0A\x0Aprovenance\x18\x10 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A8\x0A\x09Dimension\x12\x0D\x0A\x05width\x18\x01 \x01(\x02\x12\x0E\x0A\x06height\x18\x02 \x01(\x02\x12\x0C\x0A\x04unit\x18\x03 \x01(\x09\x1AJ\x0A\x05Image\x12\x0F\x0A\x07content\x18\x01 \x01(\x0C\x12\x11\x0A\x09mime_type\x18\x02 \x01(\x09\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\x1A@\x0A\x06Matrix\x12\x0C\x0A\x04rows\x18\x01 \x01(\x05\x12\x0C\x0A\x04cols\x18\x02 \x01(\x05\x12\x0C\x0A\x04type\x18\x03 \x01(\x05\x12\x0C\x0A\x04data\x18\x04 \x01(\x0C\x1A\xDD\x02\x0A\x06Layout\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x12?\x0A\x0Dbounding_poly\x18\x03 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPoly\x12Q\x0A\x0Borientation\x18\x04 \x01(\x0E2<.google.cloud.documentai.v1.Document.Page.Layout.Orientation\"e\x0A\x0BOrientation\x12\x1B\x0A\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PAGE_UP\x10\x01\x12\x0E\x0A\x0APAGE_RIGHT\x10\x02\x12\x0D\x0A\x09PAGE_DOWN\x10\x03\x12\x0D\x0A\x09PAGE_LEFT\x10\x04\x1A\xEA\x01\x0A\x05Block\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\xEE\x01\x0A\x09Paragraph\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\xE9\x01\x0A\x04Line\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\x9E\x07\x0A\x05Token\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12U\x0A\x0Edetected_break\x18\x02 \x01(\x0B2=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\x0A\x12detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x04 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x12M\x0A\x0Astyle_info\x18\x05 \x01(\x0B29.google.cloud.documentai.v1.Document.Page.Token.StyleInfo\x1A\xA6\x01\x0A\x0DDetectedBreak\x12P\x0A\x04type\x18\x01 \x01(\x0E2B.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type\"C\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPACE\x10\x01\x12\x0E\x0A\x0AWIDE_SPACE\x10\x02\x12\x0A\x0A\x06HYPHEN\x10\x03\x1A\xE2\x02\x0A\x09StyleInfo\x12\x11\x0A\x09font_size\x18\x01 \x01(\x05\x12\x17\x0A\x0Fpixel_font_size\x18\x02 \x01(\x01\x12\x16\x0A\x0Eletter_spacing\x18\x03 \x01(\x01\x12\x11\x0A\x09font_type\x18\x04 \x01(\x09\x12\x0C\x0A\x04bold\x18\x05 \x01(\x08\x12\x0E\x0A\x06italic\x18\x06 \x01(\x08\x12\x12\x0A\x0Aunderlined\x18\x07 \x01(\x08\x12\x11\x0A\x09strikeout\x18\x08 \x01(\x08\x12\x11\x0A\x09subscript\x18\x09 \x01(\x08\x12\x13\x0A\x0Bsuperscript\x18\x0A \x01(\x08\x12\x11\x0A\x09smallcaps\x18\x0B \x01(\x08\x12\x13\x0A\x0Bfont_weight\x18\x0C \x01(\x05\x12\x13\x0A\x0Bhandwritten\x18\x0D \x01(\x08\x12&\x0A\x0Atext_color\x18\x0E \x01(\x0B2\x12.google.type.Color\x12,\x0A\x10background_color\x18\x0F \x01(\x0B2\x12.google.type.Color\x1A\xA2\x01\x0A\x06Symbol\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xB7\x01\x0A\x0DVisualElement\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12V\x0A\x12detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xA8\x05\x0A\x05Table\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12M\x0A\x0Bheader_rows\x18\x02 \x03(\x0B28.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\x0A\x09body_rows\x18\x03 \x03(\x0B28.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x05 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1AT\x0A\x08TableRow\x12H\x0A\x05cells\x18\x01 \x03(\x0B29.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1A\xC9\x01\x0A\x09TableCell\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\x0A\x08row_span\x18\x02 \x01(\x05\x12\x10\x0A\x08col_span\x18\x03 \x01(\x05\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xE6\x03\x0A\x09FormField\x12D\x0A\x0Afield_name\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12E\x0A\x0Bfield_value\x18\x02 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12[\x0A\x17name_detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\x0A\x18value_detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x12\x0A\x0Avalue_type\x18\x05 \x01(\x09\x12\x1A\x0A\x12corrected_key_text\x18\x06 \x01(\x09\x12\x1C\x0A\x14corrected_value_text\x18\x07 \x01(\x09\x12C\x0A\x0Aprovenance\x18\x08 \x01(\x0B2/.google.cloud.documentai.v1.Document.Provenance\x1A\x89\x01\x0A\x0FDetectedBarcode\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x124\x0A\x07barcode\x18\x02 \x01(\x0B2#.google.cloud.documentai.v1.Barcode\x1A=\x0A\x10DetectedLanguage\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x1A\xC6\x01\x0A\x12ImageQualityScores\x12\x15\x0A\x0Dquality_score\x18\x01 \x01(\x02\x12e\x0A\x10detected_defects\x18\x02 \x03(\x0B2K.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect\x1A2\x0A\x0EDetectedDefect\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x1A\xEF\x07\x0A\x06Entity\x12I\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchorB\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cmention_text\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Amention_id\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Aconfidence\x18\x05 \x01(\x02B\x03\xE0A\x01\x12I\x0A\x0Bpage_anchor\x18\x06 \x01(\x0B2/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xE0A\x01\x12\x0F\x0A\x02id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x10normalized_value\x18\x09 \x01(\x0B2;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xE0A\x01\x12D\x0A\x0Aproperties\x18\x0A \x03(\x0B2+.google.cloud.documentai.v1.Document.EntityB\x03\xE0A\x01\x12H\x0A\x0Aprovenance\x18\x0B \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x03\xE0A\x01\x12\x15\x0A\x08redacted\x18\x0C \x01(\x08B\x03\xE0A\x01\x12G\x0A\x06method\x18\x0F \x01(\x0E22.google.cloud.documentai.v1.Document.Entity.MethodB\x03\xE0A\x01\x1A\xD6\x02\x0A\x0FNormalizedValue\x12)\x0A\x0Bmoney_value\x18\x02 \x01(\x0B2\x12.google.type.MoneyH\x00\x12'\x0A\x0Adate_value\x18\x03 \x01(\x0B2\x11.google.type.DateH\x00\x12/\x0A\x0Edatetime_value\x18\x04 \x01(\x0B2\x15.google.type.DateTimeH\x00\x123\x0A\x0Daddress_value\x18\x05 \x01(\x0B2\x1A.google.type.PostalAddressH\x00\x12\x17\x0A\x0Dboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\x0A\x0Dinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\x0A\x0Bfloat_value\x18\x08 \x01(\x02H\x00\x12\x19\x0A\x0Fsignature_value\x18\x0A \x01(\x08H\x00\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x01B\x12\x0A\x10structured_value\"9\x0A\x06Method\x12\x16\x0A\x12METHOD_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07EXTRACT\x10\x01\x12\x0A\x0A\x06DERIVE\x10\x02\x1AI\x0A\x0EEntityRelation\x12\x12\x0A\x0Asubject_id\x18\x01 \x01(\x09\x12\x11\x0A\x09object_id\x18\x02 \x01(\x09\x12\x10\x0A\x08relation\x18\x03 \x01(\x09\x1A\xA8\x01\x0A\x0ATextAnchor\x12R\x0A\x0Dtext_segments\x18\x01 \x03(\x0B2;.google.cloud.documentai.v1.Document.TextAnchor.TextSegment\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x1A5\x0A\x0BTextSegment\x12\x13\x0A\x0Bstart_index\x18\x01 \x01(\x03\x12\x11\x0A\x09end_index\x18\x02 \x01(\x03\x1A\xD8\x03\x0A\x0APageAnchor\x12J\x0A\x09page_refs\x18\x01 \x03(\x0B27.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1A\xFD\x02\x0A\x07PageRef\x12\x11\x0A\x04page\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\\\x0A\x0Blayout_type\x18\x02 \x01(\x0E2B.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xE0A\x01\x12\x18\x0A\x09layout_id\x18\x03 \x01(\x09B\x05\x18\x01\xE0A\x01\x12D\x0A\x0Dbounding_poly\x18\x04 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPolyB\x03\xE0A\x01\x12\x17\x0A\x0Aconfidence\x18\x05 \x01(\x02B\x03\xE0A\x01\"\x87\x01\x0A\x0ALayoutType\x12\x1B\x0A\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BLOCK\x10\x01\x12\x0D\x0A\x09PARAGRAPH\x10\x02\x12\x08\x0A\x04LINE\x10\x03\x12\x09\x0A\x05TOKEN\x10\x04\x12\x12\x0A\x0EVISUAL_ELEMENT\x10\x05\x12\x09\x0A\x05TABLE\x10\x06\x12\x0E\x0A\x0AFORM_FIELD\x10\x07\x1A\xA8\x03\x0A\x0AProvenance\x12\x14\x0A\x08revision\x18\x01 \x01(\x05B\x02\x18\x01\x12\x0E\x0A\x02id\x18\x02 \x01(\x05B\x02\x18\x01\x12G\x0A\x07parents\x18\x03 \x03(\x0B26.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\x0A\x04type\x18\x04 \x01(\x0E2=.google.cloud.documentai.v1.Document.Provenance.OperationType\x1A9\x0A\x06Parent\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x0D\x0A\x05index\x18\x03 \x01(\x05\x12\x0E\x0A\x02id\x18\x02 \x01(\x05B\x02\x18\x01\"\xA2\x01\x0A\x0DOperationType\x12\x1E\x0A\x1AOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\x12\x0A\x0A\x06UPDATE\x10\x07\x12\x0B\x0A\x07REPLACE\x10\x03\x12\x16\x0A\x0EEVAL_REQUESTED\x10\x04\x1A\x02\x08\x01\x12\x15\x0A\x0DEVAL_APPROVED\x10\x05\x1A\x02\x08\x01\x12\x14\x0A\x0CEVAL_SKIPPED\x10\x06\x1A\x02\x08\x01\x1A\xA5\x02\x0A\x08Revision\x12\x0F\x0A\x05agent\x18\x04 \x01(\x09H\x00\x12\x13\x0A\x09processor\x18\x05 \x01(\x09H\x00\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x12\x0A\x06parent\x18\x02 \x03(\x05B\x02\x18\x01\x12\x12\x0A\x0Aparent_ids\x18\x07 \x03(\x09\x12/\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12O\x0A\x0Chuman_review\x18\x06 \x01(\x0B29.google.cloud.documentai.v1.Document.Revision.HumanReview\x1A3\x0A\x0BHumanReview\x12\x0D\x0A\x05state\x18\x01 \x01(\x09\x12\x15\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x08\x0A\x06source\x1A\xB1\x01\x0A\x0ATextChange\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\x0A\x0Cchanged_text\x18\x02 \x01(\x09\x12G\x0A\x0Aprovenance\x18\x03 \x03(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\xDD\x0C\x0A\x0EDocumentLayout\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1A\xF1\x0B\x0A\x13DocumentLayoutBlock\x12m\x0A\x0Atext_block\x18\x02 \x01(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\x00\x12o\x0A\x0Btable_block\x18\x03 \x01(\x0B2X.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\x00\x12m\x0A\x0Alist_block\x18\x04 \x01(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\x00\x12\x10\x0A\x08block_id\x18\x01 \x01(\x09\x12i\x0A\x09page_span\x18\x05 \x01(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan\x12>\x0A\x0Cbounding_box\x18\x06 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPoly\x1A6\x0A\x0ELayoutPageSpan\x12\x12\x0A\x0Apage_start\x18\x01 \x01(\x05\x12\x10\x0A\x08page_end\x18\x02 \x01(\x05\x1A\x86\x01\x0A\x0FLayoutTextBlock\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12W\x0A\x06blocks\x18\x03 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1A\xFB\x01\x0A\x10LayoutTableBlock\x12k\x0A\x0Bheader_rows\x18\x01 \x03(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12i\x0A\x09body_rows\x18\x02 \x03(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12\x0F\x0A\x07caption\x18\x03 \x01(\x09\x1Ax\x0A\x0ELayoutTableRow\x12f\x0A\x05cells\x18\x01 \x03(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell\x1A\x8E\x01\x0A\x0FLayoutTableCell\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x12\x10\x0A\x08row_span\x18\x02 \x01(\x05\x12\x10\x0A\x08col_span\x18\x03 \x01(\x05\x1A\x8E\x01\x0A\x0FLayoutListBlock\x12m\x0A\x0Clist_entries\x18\x01 \x03(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1Aj\x0A\x0FLayoutListEntry\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlockB\x07\x0A\x05block\x1A\xF8\x05\x0A\x0FChunkedDocument\x12J\x0A\x06chunks\x18\x01 \x03(\x0B2:.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk\x1A\x98\x05\x0A\x05Chunk\x12\x10\x0A\x08chunk_id\x18\x01 \x01(\x09\x12\x18\x0A\x10source_block_ids\x18\x02 \x03(\x09\x12\x0F\x0A\x07content\x18\x03 \x01(\x09\x12[\x0A\x09page_span\x18\x04 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x12`\x0A\x0Cpage_headers\x18\x05 \x03(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader\x12`\x0A\x0Cpage_footers\x18\x06 \x03(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter\x1A5\x0A\x0DChunkPageSpan\x12\x12\x0A\x0Apage_start\x18\x01 \x01(\x05\x12\x10\x0A\x08page_end\x18\x02 \x01(\x05\x1A|\x0A\x0FChunkPageHeader\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12[\x0A\x09page_span\x18\x02 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1A|\x0A\x0FChunkPageFooter\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12[\x0A\x09page_span\x18\x02 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1A\xD2\x04\x0A\x16EntityValidationOutput\x12h\x0A\x12validation_results\x18\x01 \x03(\x0B2L.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult\x12\x16\x0A\x0Epass_all_rules\x18\x02 \x01(\x08\x1A\xB5\x03\x0A\x10ValidationResult\x12\x11\x0A\x09rule_name\x18\x01 \x01(\x09\x12\x18\x0A\x10rule_description\x18\x02 \x01(\x09\x12\x81\x01\x0A\x16validation_result_type\x18\x03 \x01(\x0E2a.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType\x12\x1A\x0A\x12validation_details\x18\x04 \x01(\x09\"\xD3\x01\x0A\x14ValidationResultType\x12&\x0A\"VALIDATION_RESULT_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CVALIDATION_RESULT_TYPE_VALID\x10\x01\x12\"\x0A\x1EVALIDATION_RESULT_TYPE_INVALID\x10\x02\x12\"\x0A\x1EVALIDATION_RESULT_TYPE_SKIPPED\x10\x03\x12)\x0A%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\x10\x04\x1A\xC5\x01\x0A\x10EntitiesRevision\x12\x13\x0A\x0Brevision_id\x18\x01 \x01(\x09\x12=\x0A\x08entities\x18\x02 \x03(\x0B2+.google.cloud.documentai.v1.Document.Entity\x12]\x0A\x18entity_validation_output\x18\x03 \x01(\x0B2;.google.cloud.documentai.v1.Document.EntityValidationOutputB\x08\x0A\x06sourceB\xCB\x01\x0A\x1Ecom.google.cloud.documentai.v1B\x0DDocumentProtoP\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" + "\x0A\xEEp\x0A)google/cloud/documentai/v1/document.proto\x12\x1Agoogle.cloud.documentai.v1\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\x0A\x08Document\x12\x12\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x16\x0A\x07content\x18\x02 \x01(\x0CB\x03\xE0A\x01H\x00\x12\x12\x0A\x05docid\x18\x0F \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x09mime_type\x18\x03 \x01(\x09\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x0Btext_styles\x18\x05 \x03(\x0B2*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x128\x0A\x05pages\x18\x06 \x03(\x0B2).google.cloud.documentai.v1.Document.Page\x12=\x0A\x08entities\x18\x07 \x03(\x0B2+.google.cloud.documentai.v1.Document.Entity\x12M\x0A\x10entity_relations\x18\x08 \x03(\x0B23.google.cloud.documentai.v1.Document.EntityRelation\x12E\x0A\x0Ctext_changes\x18\x0E \x03(\x0B2/.google.cloud.documentai.v1.Document.TextChange\x12B\x0A\x0Ashard_info\x18\x09 \x01(\x0B2..google.cloud.documentai.v1.Document.ShardInfo\x12!\x0A\x05error\x18\x0A \x01(\x0B2\x12.google.rpc.Status\x12@\x0A\x09revisions\x18\x0D \x03(\x0B2-.google.cloud.documentai.v1.Document.Revision\x12L\x0A\x0Fdocument_layout\x18\x11 \x01(\x0B23.google.cloud.documentai.v1.Document.DocumentLayout\x12N\x0A\x10chunked_document\x18\x12 \x01(\x0B24.google.cloud.documentai.v1.Document.ChunkedDocument\x12H\x0A\x0Bblob_assets\x18\x13 \x03(\x0B2..google.cloud.documentai.v1.Document.BlobAssetB\x03\xE0A\x01\x12]\x0A\x18entity_validation_output\x18\x15 \x01(\x0B2;.google.cloud.documentai.v1.Document.EntityValidationOutput\x12Q\x0A\x12entities_revisions\x18\x16 \x03(\x0B25.google.cloud.documentai.v1.Document.EntitiesRevision\x12\x1C\x0A\x14entities_revision_id\x18\x17 \x01(\x09\x1AJ\x0A\x09ShardInfo\x12\x13\x0A\x0Bshard_index\x18\x01 \x01(\x03\x12\x13\x0A\x0Bshard_count\x18\x02 \x01(\x03\x12\x13\x0A\x0Btext_offset\x18\x03 \x01(\x03\x1A\xE5\x02\x0A\x05Style\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12!\x0A\x05color\x18\x02 \x01(\x0B2\x12.google.type.Color\x12,\x0A\x10background_color\x18\x03 \x01(\x0B2\x12.google.type.Color\x12\x13\x0A\x0Bfont_weight\x18\x04 \x01(\x09\x12\x12\x0A\x0Atext_style\x18\x05 \x01(\x09\x12\x17\x0A\x0Ftext_decoration\x18\x06 \x01(\x09\x12F\x0A\x09font_size\x18\x07 \x01(\x0B23.google.cloud.documentai.v1.Document.Style.FontSize\x12\x13\x0A\x0Bfont_family\x18\x08 \x01(\x09\x1A&\x0A\x08FontSize\x12\x0C\x0A\x04size\x18\x01 \x01(\x02\x12\x0C\x0A\x04unit\x18\x02 \x01(\x09\x1A\xC2)\x0A\x04Page\x12\x13\x0A\x0Bpage_number\x18\x01 \x01(\x05\x12>\x0A\x05image\x18\x0D \x01(\x0B2/.google.cloud.documentai.v1.Document.Page.Image\x12D\x0A\x0Atransforms\x18\x0E \x03(\x0B20.google.cloud.documentai.v1.Document.Page.Matrix\x12F\x0A\x09dimension\x18\x02 \x01(\x0B23.google.cloud.documentai.v1.Document.Page.Dimension\x12@\x0A\x06layout\x18\x03 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\x0A\x06blocks\x18\x05 \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Block\x12G\x0A\x0Aparagraphs\x18\x06 \x03(\x0B23.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\x0A\x05lines\x18\x07 \x03(\x0B2..google.cloud.documentai.v1.Document.Page.Line\x12?\x0A\x06tokens\x18\x08 \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Token\x12P\x0A\x0Fvisual_elements\x18\x09 \x03(\x0B27.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\x0A\x06tables\x18\x0A \x03(\x0B2/.google.cloud.documentai.v1.Document.Page.Table\x12H\x0A\x0Bform_fields\x18\x0B \x03(\x0B23.google.cloud.documentai.v1.Document.Page.FormField\x12A\x0A\x07symbols\x18\x0C \x03(\x0B20.google.cloud.documentai.v1.Document.Page.Symbol\x12T\x0A\x11detected_barcodes\x18\x0F \x03(\x0B29.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\x0A\x14image_quality_scores\x18\x11 \x01(\x0B2<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\x0A\x0Aprovenance\x18\x10 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A8\x0A\x09Dimension\x12\x0D\x0A\x05width\x18\x01 \x01(\x02\x12\x0E\x0A\x06height\x18\x02 \x01(\x02\x12\x0C\x0A\x04unit\x18\x03 \x01(\x09\x1AJ\x0A\x05Image\x12\x0F\x0A\x07content\x18\x01 \x01(\x0C\x12\x11\x0A\x09mime_type\x18\x02 \x01(\x09\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\x1A@\x0A\x06Matrix\x12\x0C\x0A\x04rows\x18\x01 \x01(\x05\x12\x0C\x0A\x04cols\x18\x02 \x01(\x05\x12\x0C\x0A\x04type\x18\x03 \x01(\x05\x12\x0C\x0A\x04data\x18\x04 \x01(\x0C\x1A\xDD\x02\x0A\x06Layout\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x12?\x0A\x0Dbounding_poly\x18\x03 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPoly\x12Q\x0A\x0Borientation\x18\x04 \x01(\x0E2<.google.cloud.documentai.v1.Document.Page.Layout.Orientation\"e\x0A\x0BOrientation\x12\x1B\x0A\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PAGE_UP\x10\x01\x12\x0E\x0A\x0APAGE_RIGHT\x10\x02\x12\x0D\x0A\x09PAGE_DOWN\x10\x03\x12\x0D\x0A\x09PAGE_LEFT\x10\x04\x1A\xEA\x01\x0A\x05Block\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\xEE\x01\x0A\x09Paragraph\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\xE9\x01\x0A\x04Line\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x03 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\x9E\x07\x0A\x05Token\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12U\x0A\x0Edetected_break\x18\x02 \x01(\x0B2=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\x0A\x12detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x04 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x12M\x0A\x0Astyle_info\x18\x05 \x01(\x0B29.google.cloud.documentai.v1.Document.Page.Token.StyleInfo\x1A\xA6\x01\x0A\x0DDetectedBreak\x12P\x0A\x04type\x18\x01 \x01(\x0E2B.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type\"C\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPACE\x10\x01\x12\x0E\x0A\x0AWIDE_SPACE\x10\x02\x12\x0A\x0A\x06HYPHEN\x10\x03\x1A\xE2\x02\x0A\x09StyleInfo\x12\x11\x0A\x09font_size\x18\x01 \x01(\x05\x12\x17\x0A\x0Fpixel_font_size\x18\x02 \x01(\x01\x12\x16\x0A\x0Eletter_spacing\x18\x03 \x01(\x01\x12\x11\x0A\x09font_type\x18\x04 \x01(\x09\x12\x0C\x0A\x04bold\x18\x05 \x01(\x08\x12\x0E\x0A\x06italic\x18\x06 \x01(\x08\x12\x12\x0A\x0Aunderlined\x18\x07 \x01(\x08\x12\x11\x0A\x09strikeout\x18\x08 \x01(\x08\x12\x11\x0A\x09subscript\x18\x09 \x01(\x08\x12\x13\x0A\x0Bsuperscript\x18\x0A \x01(\x08\x12\x11\x0A\x09smallcaps\x18\x0B \x01(\x08\x12\x13\x0A\x0Bfont_weight\x18\x0C \x01(\x05\x12\x13\x0A\x0Bhandwritten\x18\x0D \x01(\x08\x12&\x0A\x0Atext_color\x18\x0E \x01(\x0B2\x12.google.type.Color\x12,\x0A\x10background_color\x18\x0F \x01(\x0B2\x12.google.type.Color\x1A\xA2\x01\x0A\x06Symbol\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12V\x0A\x12detected_languages\x18\x02 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xB7\x01\x0A\x0DVisualElement\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12V\x0A\x12detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xA8\x05\x0A\x05Table\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12M\x0A\x0Bheader_rows\x18\x02 \x03(\x0B28.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\x0A\x09body_rows\x18\x03 \x03(\x0B28.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\x0A\x0Aprovenance\x18\x05 \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1AT\x0A\x08TableRow\x12H\x0A\x05cells\x18\x01 \x03(\x0B29.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1A\xC9\x01\x0A\x09TableCell\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\x0A\x08row_span\x18\x02 \x01(\x05\x12\x10\x0A\x08col_span\x18\x03 \x01(\x05\x12V\x0A\x12detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1A\xE6\x03\x0A\x09FormField\x12D\x0A\x0Afield_name\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12E\x0A\x0Bfield_value\x18\x02 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x12[\x0A\x17name_detected_languages\x18\x03 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\x0A\x18value_detected_languages\x18\x04 \x03(\x0B2:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x12\x0A\x0Avalue_type\x18\x05 \x01(\x09\x12\x1A\x0A\x12corrected_key_text\x18\x06 \x01(\x09\x12\x1C\x0A\x14corrected_value_text\x18\x07 \x01(\x09\x12C\x0A\x0Aprovenance\x18\x08 \x01(\x0B2/.google.cloud.documentai.v1.Document.Provenance\x1A\x89\x01\x0A\x0FDetectedBarcode\x12@\x0A\x06layout\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Page.Layout\x124\x0A\x07barcode\x18\x02 \x01(\x0B2#.google.cloud.documentai.v1.Barcode\x1A=\x0A\x10DetectedLanguage\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x1A\xC6\x01\x0A\x12ImageQualityScores\x12\x15\x0A\x0Dquality_score\x18\x01 \x01(\x02\x12e\x0A\x10detected_defects\x18\x02 \x03(\x0B2K.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect\x1A2\x0A\x0EDetectedDefect\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aconfidence\x18\x02 \x01(\x02\x1A\xEF\x07\x0A\x06Entity\x12I\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchorB\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cmention_text\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Amention_id\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Aconfidence\x18\x05 \x01(\x02B\x03\xE0A\x01\x12I\x0A\x0Bpage_anchor\x18\x06 \x01(\x0B2/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xE0A\x01\x12\x0F\x0A\x02id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x10normalized_value\x18\x09 \x01(\x0B2;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xE0A\x01\x12D\x0A\x0Aproperties\x18\x0A \x03(\x0B2+.google.cloud.documentai.v1.Document.EntityB\x03\xE0A\x01\x12H\x0A\x0Aprovenance\x18\x0B \x01(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x03\xE0A\x01\x12\x15\x0A\x08redacted\x18\x0C \x01(\x08B\x03\xE0A\x01\x12G\x0A\x06method\x18\x0F \x01(\x0E22.google.cloud.documentai.v1.Document.Entity.MethodB\x03\xE0A\x01\x1A\xD6\x02\x0A\x0FNormalizedValue\x12)\x0A\x0Bmoney_value\x18\x02 \x01(\x0B2\x12.google.type.MoneyH\x00\x12'\x0A\x0Adate_value\x18\x03 \x01(\x0B2\x11.google.type.DateH\x00\x12/\x0A\x0Edatetime_value\x18\x04 \x01(\x0B2\x15.google.type.DateTimeH\x00\x123\x0A\x0Daddress_value\x18\x05 \x01(\x0B2\x1A.google.type.PostalAddressH\x00\x12\x17\x0A\x0Dboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\x0A\x0Dinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\x0A\x0Bfloat_value\x18\x08 \x01(\x02H\x00\x12\x19\x0A\x0Fsignature_value\x18\x0A \x01(\x08H\x00\x12\x11\x0A\x04text\x18\x01 \x01(\x09B\x03\xE0A\x01B\x12\x0A\x10structured_value\"9\x0A\x06Method\x12\x16\x0A\x12METHOD_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07EXTRACT\x10\x01\x12\x0A\x0A\x06DERIVE\x10\x02\x1AI\x0A\x0EEntityRelation\x12\x12\x0A\x0Asubject_id\x18\x01 \x01(\x09\x12\x11\x0A\x09object_id\x18\x02 \x01(\x09\x12\x10\x0A\x08relation\x18\x03 \x01(\x09\x1A\xA8\x01\x0A\x0ATextAnchor\x12R\x0A\x0Dtext_segments\x18\x01 \x03(\x0B2;.google.cloud.documentai.v1.Document.TextAnchor.TextSegment\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x1A5\x0A\x0BTextSegment\x12\x13\x0A\x0Bstart_index\x18\x01 \x01(\x03\x12\x11\x0A\x09end_index\x18\x02 \x01(\x03\x1A\xD8\x03\x0A\x0APageAnchor\x12J\x0A\x09page_refs\x18\x01 \x03(\x0B27.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1A\xFD\x02\x0A\x07PageRef\x12\x11\x0A\x04page\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\\\x0A\x0Blayout_type\x18\x02 \x01(\x0E2B.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xE0A\x01\x12\x18\x0A\x09layout_id\x18\x03 \x01(\x09B\x05\x18\x01\xE0A\x01\x12D\x0A\x0Dbounding_poly\x18\x04 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPolyB\x03\xE0A\x01\x12\x17\x0A\x0Aconfidence\x18\x05 \x01(\x02B\x03\xE0A\x01\"\x87\x01\x0A\x0ALayoutType\x12\x1B\x0A\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BLOCK\x10\x01\x12\x0D\x0A\x09PARAGRAPH\x10\x02\x12\x08\x0A\x04LINE\x10\x03\x12\x09\x0A\x05TOKEN\x10\x04\x12\x12\x0A\x0EVISUAL_ELEMENT\x10\x05\x12\x09\x0A\x05TABLE\x10\x06\x12\x0E\x0A\x0AFORM_FIELD\x10\x07\x1A\xA8\x03\x0A\x0AProvenance\x12\x14\x0A\x08revision\x18\x01 \x01(\x05B\x02\x18\x01\x12\x0E\x0A\x02id\x18\x02 \x01(\x05B\x02\x18\x01\x12G\x0A\x07parents\x18\x03 \x03(\x0B26.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\x0A\x04type\x18\x04 \x01(\x0E2=.google.cloud.documentai.v1.Document.Provenance.OperationType\x1A9\x0A\x06Parent\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x0D\x0A\x05index\x18\x03 \x01(\x05\x12\x0E\x0A\x02id\x18\x02 \x01(\x05B\x02\x18\x01\"\xA2\x01\x0A\x0DOperationType\x12\x1E\x0A\x1AOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\x12\x0A\x0A\x06UPDATE\x10\x07\x12\x0B\x0A\x07REPLACE\x10\x03\x12\x16\x0A\x0EEVAL_REQUESTED\x10\x04\x1A\x02\x08\x01\x12\x15\x0A\x0DEVAL_APPROVED\x10\x05\x1A\x02\x08\x01\x12\x14\x0A\x0CEVAL_SKIPPED\x10\x06\x1A\x02\x08\x01\x1A\xA5\x02\x0A\x08Revision\x12\x0F\x0A\x05agent\x18\x04 \x01(\x09H\x00\x12\x13\x0A\x09processor\x18\x05 \x01(\x09H\x00\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x12\x0A\x06parent\x18\x02 \x03(\x05B\x02\x18\x01\x12\x12\x0A\x0Aparent_ids\x18\x07 \x03(\x09\x12/\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12O\x0A\x0Chuman_review\x18\x06 \x01(\x0B29.google.cloud.documentai.v1.Document.Revision.HumanReview\x1A3\x0A\x0BHumanReview\x12\x0D\x0A\x05state\x18\x01 \x01(\x09\x12\x15\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x08\x0A\x06source\x1A\xB1\x01\x0A\x0ATextChange\x12D\x0A\x0Btext_anchor\x18\x01 \x01(\x0B2/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\x0A\x0Cchanged_text\x18\x02 \x01(\x09\x12G\x0A\x0Aprovenance\x18\x03 \x03(\x0B2/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1A\"\x0A\x0BAnnotations\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x1A\xBE\x10\x0A\x0EDocumentLayout\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1A\xD2\x0F\x0A\x13DocumentLayoutBlock\x12m\x0A\x0Atext_block\x18\x02 \x01(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\x00\x12o\x0A\x0Btable_block\x18\x03 \x01(\x0B2X.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\x00\x12m\x0A\x0Alist_block\x18\x04 \x01(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\x00\x12o\x0A\x0Bimage_block\x18\x07 \x01(\x0B2X.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\x00\x12\x10\x0A\x08block_id\x18\x01 \x01(\x09\x12i\x0A\x09page_span\x18\x05 \x01(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan\x12>\x0A\x0Cbounding_box\x18\x06 \x01(\x0B2(.google.cloud.documentai.v1.BoundingPoly\x1A6\x0A\x0ELayoutPageSpan\x12\x12\x0A\x0Apage_start\x18\x01 \x01(\x05\x12\x10\x0A\x08page_end\x18\x02 \x01(\x05\x1A\xCD\x01\x0A\x0FLayoutTextBlock\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12W\x0A\x06blocks\x18\x03 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x12E\x0A\x0Bannotations\x18\x04 \x01(\x0B20.google.cloud.documentai.v1.Document.Annotations\x1A\xC2\x02\x0A\x10LayoutTableBlock\x12k\x0A\x0Bheader_rows\x18\x01 \x03(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12i\x0A\x09body_rows\x18\x02 \x03(\x0B2V.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\x12\x0F\x0A\x07caption\x18\x03 \x01(\x09\x12E\x0A\x0Bannotations\x18\x04 \x01(\x0B20.google.cloud.documentai.v1.Document.Annotations\x1Ax\x0A\x0ELayoutTableRow\x12f\x0A\x05cells\x18\x01 \x03(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell\x1A\x8E\x01\x0A\x0FLayoutTableCell\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x12\x10\x0A\x08row_span\x18\x02 \x01(\x05\x12\x10\x0A\x08col_span\x18\x03 \x01(\x05\x1A\x8E\x01\x0A\x0FLayoutListBlock\x12m\x0A\x0Clist_entries\x18\x01 \x03(\x0B2W.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x1Aj\x0A\x0FLayoutListEntry\x12W\x0A\x06blocks\x18\x01 \x03(\x0B2G.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock\x1A\xDF\x01\x0A\x10LayoutImageBlock\x12\x1C\x0A\x0Dblob_asset_id\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x16\x0A\x07gcs_uri\x18\x05 \x01(\x09B\x03\xE0A\x01H\x00\x12\x17\x0A\x08data_uri\x18\x06 \x01(\x09B\x03\xE0A\x01H\x00\x12\x11\x0A\x09mime_type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aimage_text\x18\x02 \x01(\x09\x12E\x0A\x0Bannotations\x18\x03 \x01(\x0B20.google.cloud.documentai.v1.Document.AnnotationsB\x0E\x0A\x0Cimage_sourceB\x07\x0A\x05block\x1A\xD8\x0A\x0A\x0FChunkedDocument\x12J\x0A\x06chunks\x18\x01 \x03(\x0B2:.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk\x1A\xF8\x09\x0A\x05Chunk\x12\x10\x0A\x08chunk_id\x18\x01 \x01(\x09\x12\x18\x0A\x10source_block_ids\x18\x02 \x03(\x09\x12\x0F\x0A\x07content\x18\x03 \x01(\x09\x12[\x0A\x09page_span\x18\x04 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x12`\x0A\x0Cpage_headers\x18\x05 \x03(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader\x12`\x0A\x0Cpage_footers\x18\x06 \x03(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter\x12[\x0A\x0Cchunk_fields\x18\x07 \x03(\x0B2E.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField\x1A5\x0A\x0DChunkPageSpan\x12\x12\x0A\x0Apage_start\x18\x01 \x01(\x05\x12\x10\x0A\x08page_end\x18\x02 \x01(\x05\x1A|\x0A\x0FChunkPageHeader\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12[\x0A\x09page_span\x18\x02 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1A|\x0A\x0FChunkPageFooter\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12[\x0A\x09page_span\x18\x02 \x01(\x0B2H.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan\x1A\xB7\x01\x0A\x0FImageChunkField\x12\x1C\x0A\x0Dblob_asset_id\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x16\x0A\x07gcs_uri\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x12\x17\x0A\x08data_uri\x18\x03 \x01(\x09B\x03\xE0A\x01H\x00\x12E\x0A\x0Bannotations\x18\x04 \x01(\x0B20.google.cloud.documentai.v1.Document.AnnotationsB\x0E\x0A\x0Cimage_source\x1AX\x0A\x0FTableChunkField\x12E\x0A\x0Bannotations\x18\x01 \x01(\x0B20.google.cloud.documentai.v1.Document.Annotations\x1A\xEC\x01\x0A\x0AChunkField\x12g\x0A\x11image_chunk_field\x18\x01 \x01(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkFieldH\x00\x12g\x0A\x11table_chunk_field\x18\x02 \x01(\x0B2J.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkFieldH\x00B\x0C\x0A\x0Afield_type\x1AK\x0A\x09BlobAsset\x12\x15\x0A\x08asset_id\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x07content\x18\x02 \x01(\x0CB\x03\xE0A\x01\x12\x11\x0A\x09mime_type\x18\x03 \x01(\x09\x1A\xD2\x04\x0A\x16EntityValidationOutput\x12h\x0A\x12validation_results\x18\x01 \x03(\x0B2L.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult\x12\x16\x0A\x0Epass_all_rules\x18\x02 \x01(\x08\x1A\xB5\x03\x0A\x10ValidationResult\x12\x11\x0A\x09rule_name\x18\x01 \x01(\x09\x12\x18\x0A\x10rule_description\x18\x02 \x01(\x09\x12\x81\x01\x0A\x16validation_result_type\x18\x03 \x01(\x0E2a.google.cloud.documentai.v1.Document.EntityValidationOutput.ValidationResult.ValidationResultType\x12\x1A\x0A\x12validation_details\x18\x04 \x01(\x09\"\xD3\x01\x0A\x14ValidationResultType\x12&\x0A\"VALIDATION_RESULT_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CVALIDATION_RESULT_TYPE_VALID\x10\x01\x12\"\x0A\x1EVALIDATION_RESULT_TYPE_INVALID\x10\x02\x12\"\x0A\x1EVALIDATION_RESULT_TYPE_SKIPPED\x10\x03\x12)\x0A%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\x10\x04\x1A\xC5\x01\x0A\x10EntitiesRevision\x12\x13\x0A\x0Brevision_id\x18\x01 \x01(\x09\x12=\x0A\x08entities\x18\x02 \x03(\x0B2+.google.cloud.documentai.v1.Document.Entity\x12]\x0A\x18entity_validation_output\x18\x03 \x01(\x0B2;.google.cloud.documentai.v1.Document.EntityValidationOutputB\x08\x0A\x06sourceB\xCB\x01\x0A\x1Ecom.google.cloud.documentai.v1B\x0DDocumentProtoP\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" , true); static::$is_initialized = true; diff --git a/DocumentAi/src/V1/Document.php b/DocumentAi/src/V1/Document.php index 78a7aff4bda..7479847bda6 100644 --- a/DocumentAi/src/V1/Document.php +++ b/DocumentAi/src/V1/Document.php @@ -105,6 +105,15 @@ class Document extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18; */ protected $chunked_document = null; + /** + * Optional. The blob assets in this document. This is used to store the + * content of the inline blobs in this document, for example, image bytes, + * such that it can be referenced by other fields in the document via asset + * id. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $blob_assets; /** * The entity validation output for the document. This is the validation * output for `document.entities` field. @@ -124,7 +133,7 @@ class Document extends \Google\Protobuf\Internal\Message * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * Generated from protobuf field string entities_revision_id = 23; @@ -181,6 +190,11 @@ class Document extends \Google\Protobuf\Internal\Message * Parsed layout of the document. * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument $chunked_document * Document chunked based on chunking config. + * @type \Google\Cloud\DocumentAI\V1\Document\BlobAsset[] $blob_assets + * Optional. The blob assets in this document. This is used to store the + * content of the inline blobs in this document, for example, image bytes, + * such that it can be referenced by other fields in the document via asset + * id. * @type \Google\Cloud\DocumentAI\V1\Document\EntityValidationOutput $entity_validation_output * The entity validation output for the document. This is the validation * output for `document.entities` field. @@ -192,7 +206,7 @@ class Document extends \Google\Protobuf\Internal\Message * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * } */ @@ -675,6 +689,38 @@ public function setChunkedDocument($var) return $this; } + /** + * Optional. The blob assets in this document. This is used to store the + * content of the inline blobs in this document, for example, image bytes, + * such that it can be referenced by other fields in the document via asset + * id. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\DocumentAI\V1\Document\BlobAsset> + */ + public function getBlobAssets() + { + return $this->blob_assets; + } + + /** + * Optional. The blob assets in this document. This is used to store the + * content of the inline blobs in this document, for example, image bytes, + * such that it can be referenced by other fields in the document via asset + * id. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DocumentAI\V1\Document\BlobAsset[] $var + * @return $this + */ + public function setBlobAssets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\BlobAsset::class); + $this->blob_assets = $arr; + + return $this; + } + /** * The entity validation output for the document. This is the validation * output for `document.entities` field. @@ -747,7 +793,7 @@ public function setEntitiesRevisions($var) * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * Generated from protobuf field string entities_revision_id = 23; @@ -762,7 +808,7 @@ public function getEntitiesRevisionId() * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * Generated from protobuf field string entities_revision_id = 23; diff --git a/DocumentAi/src/V1/Document/Annotations.php b/DocumentAi/src/V1/Document/Annotations.php new file mode 100644 index 00000000000..4a0e271e55f --- /dev/null +++ b/DocumentAi/src/V1/Document/Annotations.php @@ -0,0 +1,67 @@ +google.cloud.documentai.v1.Document.Annotations + */ +class Annotations extends \Google\Protobuf\Internal\Message +{ + /** + * The description of the content with this annotation. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * The description of the content with this annotation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * The description of the content with this annotation. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the content with this annotation. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/DocumentAi/src/V1/Document/BlobAsset.php b/DocumentAi/src/V1/Document/BlobAsset.php new file mode 100644 index 00000000000..98f4830fddd --- /dev/null +++ b/DocumentAi/src/V1/Document/BlobAsset.php @@ -0,0 +1,145 @@ +google.cloud.documentai.v1.Document.BlobAsset + */ +class BlobAsset extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The id of the blob asset. + * + * Generated from protobuf field string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $asset_id = ''; + /** + * Optional. The content of the blob asset, for example, image bytes. + * + * Generated from protobuf field bytes content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $content = ''; + /** + * The mime type of the blob asset. + * An IANA published [media type (MIME + * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 3; + */ + protected $mime_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $asset_id + * Optional. The id of the blob asset. + * @type string $content + * Optional. The content of the blob asset, for example, image bytes. + * @type string $mime_type + * The mime type of the blob asset. + * An IANA published [media type (MIME + * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The id of the blob asset. + * + * Generated from protobuf field string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAssetId() + { + return $this->asset_id; + } + + /** + * Optional. The id of the blob asset. + * + * Generated from protobuf field string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAssetId($var) + { + GPBUtil::checkString($var, True); + $this->asset_id = $var; + + return $this; + } + + /** + * Optional. The content of the blob asset, for example, image bytes. + * + * Generated from protobuf field bytes content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Optional. The content of the blob asset, for example, image bytes. + * + * Generated from protobuf field bytes content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, False); + $this->content = $var; + + return $this; + } + + /** + * The mime type of the blob asset. + * An IANA published [media type (MIME + * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 3; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * The mime type of the blob asset. + * An IANA published [media type (MIME + * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 3; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + +} + diff --git a/DocumentAi/src/V1/Document/ChunkedDocument/Chunk.php b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk.php index b275ec0c110..5823a992d47 100644 --- a/DocumentAi/src/V1/Document/ChunkedDocument/Chunk.php +++ b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk.php @@ -51,6 +51,12 @@ class Chunk extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6; */ private $page_footers; + /** + * Chunk fields inside this chunk. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7; + */ + private $chunk_fields; /** * Constructor. @@ -70,6 +76,8 @@ class Chunk extends \Google\Protobuf\Internal\Message * Page headers associated with the chunk. * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageFooter[] $page_footers * Page footers associated with the chunk. + * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkField[] $chunk_fields + * Chunk fields inside this chunk. * } */ public function __construct($data = NULL) { @@ -243,5 +251,31 @@ public function setPageFooters($var) return $this; } + /** + * Chunk fields inside this chunk. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7; + * @return RepeatedField<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkField> + */ + public function getChunkFields() + { + return $this->chunk_fields; + } + + /** + * Chunk fields inside this chunk. + * + * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7; + * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkField[] $var + * @return $this + */ + public function setChunkFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkField::class); + $this->chunk_fields = $arr; + + return $this; + } + } diff --git a/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ChunkField.php b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ChunkField.php new file mode 100644 index 00000000000..3254de492b6 --- /dev/null +++ b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ChunkField.php @@ -0,0 +1,109 @@ +google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField + */ +class ChunkField extends \Google\Protobuf\Internal\Message +{ + protected $field_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ImageChunkField $image_chunk_field + * The image chunk field in the chunk. + * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\TableChunkField $table_chunk_field + * The table chunk field in the chunk. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * The image chunk field in the chunk. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField image_chunk_field = 1; + * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ImageChunkField|null + */ + public function getImageChunkField() + { + return $this->readOneof(1); + } + + public function hasImageChunkField() + { + return $this->hasOneof(1); + } + + /** + * The image chunk field in the chunk. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField image_chunk_field = 1; + * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ImageChunkField $var + * @return $this + */ + public function setImageChunkField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ImageChunkField::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The table chunk field in the chunk. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField table_chunk_field = 2; + * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\TableChunkField|null + */ + public function getTableChunkField() + { + return $this->readOneof(2); + } + + public function hasTableChunkField() + { + return $this->hasOneof(2); + } + + /** + * The table chunk field in the chunk. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField table_chunk_field = 2; + * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\TableChunkField $var + * @return $this + */ + public function setTableChunkField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\TableChunkField::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getFieldType() + { + return $this->whichOneof("field_type"); + } + +} + diff --git a/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ImageChunkField.php b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ImageChunkField.php new file mode 100644 index 00000000000..e65d3abb0bc --- /dev/null +++ b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/ImageChunkField.php @@ -0,0 +1,200 @@ +google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ImageChunkField + */ +class ImageChunkField extends \Google\Protobuf\Internal\Message +{ + /** + * Annotation of the image chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + */ + protected $annotations = null; + protected $image_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $blob_asset_id + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * @type string $gcs_uri + * Optional. Google Cloud Storage uri of the image. + * @type string $data_uri + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * @type \Google\Cloud\DocumentAI\V1\Document\Annotations $annotations + * Annotation of the image chunk field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * + * Generated from protobuf field string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBlobAssetId() + { + return $this->readOneof(1); + } + + public function hasBlobAssetId() + { + return $this->hasOneof(1); + } + + /** + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * + * Generated from protobuf field string blob_asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBlobAssetId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Google Cloud Storage uri of the image. + * + * Generated from protobuf field string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcsUri() + { + return $this->readOneof(2); + } + + public function hasGcsUri() + { + return $this->hasOneof(2); + } + + /** + * Optional. Google Cloud Storage uri of the image. + * + * Generated from protobuf field string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcsUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * + * Generated from protobuf field string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataUri() + { + return $this->readOneof(3); + } + + public function hasDataUri() + { + return $this->hasOneof(3); + } + + /** + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * + * Generated from protobuf field string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Annotation of the image chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @return \Google\Cloud\DocumentAI\V1\Document\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Annotation of the image chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @param \Google\Cloud\DocumentAI\V1\Document\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Annotations::class); + $this->annotations = $var; + + return $this; + } + + /** + * @return string + */ + public function getImageSource() + { + return $this->whichOneof("image_source"); + } + +} + diff --git a/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/TableChunkField.php b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/TableChunkField.php new file mode 100644 index 00000000000..b76e42189ec --- /dev/null +++ b/DocumentAi/src/V1/Document/ChunkedDocument/Chunk/TableChunkField.php @@ -0,0 +1,77 @@ +google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.TableChunkField + */ +class TableChunkField extends \Google\Protobuf\Internal\Message +{ + /** + * Annotation of the table chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 1; + */ + protected $annotations = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DocumentAI\V1\Document\Annotations $annotations + * Annotation of the table chunk field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * Annotation of the table chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 1; + * @return \Google\Cloud\DocumentAI\V1\Document\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Annotation of the table chunk field. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 1; + * @param \Google\Cloud\DocumentAI\V1\Document\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Annotations::class); + $this->annotations = $var; + + return $this; + } + +} + diff --git a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock.php b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock.php index 7b736a0aa07..a1a42fb47bc 100644 --- a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock.php +++ b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock.php @@ -48,6 +48,8 @@ class DocumentLayoutBlock extends \Google\Protobuf\Internal\Message * Block consisting of table content/structure. * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListBlock $list_block * Block consisting of list content/structure. + * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutImageBlock $image_block + * Block consisting of image content. * @type string $block_id * ID of the block. * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutPageSpan $page_span @@ -154,6 +156,37 @@ public function setListBlock($var) return $this; } + /** + * Block consisting of image content. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; + * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutImageBlock|null + */ + public function getImageBlock() + { + return $this->readOneof(7); + } + + public function hasImageBlock() + { + return $this->hasOneof(7); + } + + /** + * Block consisting of image content. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; + * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutImageBlock $var + * @return $this + */ + public function setImageBlock($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutImageBlock::class); + $this->writeOneof(7, $var); + + return $this; + } + /** * ID of the block. * diff --git a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutImageBlock.php b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutImageBlock.php new file mode 100644 index 00000000000..4859308efc0 --- /dev/null +++ b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutImageBlock.php @@ -0,0 +1,276 @@ +google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock + */ +class LayoutImageBlock extends \Google\Protobuf\Internal\Message +{ + /** + * Mime type of the image. An IANA published [media type (MIME type)] + * (https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 1; + */ + protected $mime_type = ''; + /** + * Text extracted from the image using OCR or alt text describing the + * image. + * + * Generated from protobuf field string image_text = 2; + */ + protected $image_text = ''; + /** + * Annotation of the image block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 3; + */ + protected $annotations = null; + protected $image_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $blob_asset_id + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * @type string $gcs_uri + * Optional. Google Cloud Storage uri of the image. + * @type string $data_uri + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * @type string $mime_type + * Mime type of the image. An IANA published [media type (MIME type)] + * (https://www.iana.org/assignments/media-types/media-types.xhtml). + * @type string $image_text + * Text extracted from the image using OCR or alt text describing the + * image. + * @type \Google\Cloud\DocumentAI\V1\Document\Annotations $annotations + * Annotation of the image block. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * + * Generated from protobuf field string blob_asset_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBlobAssetId() + { + return $this->readOneof(4); + } + + public function hasBlobAssetId() + { + return $this->hasOneof(4); + } + + /** + * Optional. Asset id of the inline image. If set, find the image + * content in the blob_assets field. + * + * Generated from protobuf field string blob_asset_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBlobAssetId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. Google Cloud Storage uri of the image. + * + * Generated from protobuf field string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcsUri() + { + return $this->readOneof(5); + } + + public function hasGcsUri() + { + return $this->hasOneof(5); + } + + /** + * Optional. Google Cloud Storage uri of the image. + * + * Generated from protobuf field string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcsUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * + * Generated from protobuf field string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataUri() + { + return $this->readOneof(6); + } + + public function hasDataUri() + { + return $this->hasOneof(6); + } + + /** + * Optional. Data uri of the image. + * It is composed of four parts: a prefix (data:), a MIME type + * indicating the type of data, an optional base64 token if + * non-textual, and the data itself: + * data:[][;base64], + * + * Generated from protobuf field string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Mime type of the image. An IANA published [media type (MIME type)] + * (https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 1; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * Mime type of the image. An IANA published [media type (MIME type)] + * (https://www.iana.org/assignments/media-types/media-types.xhtml). + * + * Generated from protobuf field string mime_type = 1; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + + /** + * Text extracted from the image using OCR or alt text describing the + * image. + * + * Generated from protobuf field string image_text = 2; + * @return string + */ + public function getImageText() + { + return $this->image_text; + } + + /** + * Text extracted from the image using OCR or alt text describing the + * image. + * + * Generated from protobuf field string image_text = 2; + * @param string $var + * @return $this + */ + public function setImageText($var) + { + GPBUtil::checkString($var, True); + $this->image_text = $var; + + return $this; + } + + /** + * Annotation of the image block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 3; + * @return \Google\Cloud\DocumentAI\V1\Document\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Annotation of the image block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 3; + * @param \Google\Cloud\DocumentAI\V1\Document\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Annotations::class); + $this->annotations = $var; + + return $this; + } + + /** + * @return string + */ + public function getImageSource() + { + return $this->whichOneof("image_source"); + } + +} + diff --git a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php index bdfbe898149..ca77f587661 100644 --- a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php +++ b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php @@ -33,6 +33,12 @@ class LayoutTableBlock extends \Google\Protobuf\Internal\Message * Generated from protobuf field string caption = 3; */ protected $caption = ''; + /** + * Annotation of the table block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + */ + protected $annotations = null; /** * Constructor. @@ -46,6 +52,8 @@ class LayoutTableBlock extends \Google\Protobuf\Internal\Message * Body rows containing main table content. * @type string $caption * Table caption/title. + * @type \Google\Cloud\DocumentAI\V1\Document\Annotations $annotations + * Annotation of the table block. * } */ public function __construct($data = NULL) { @@ -131,5 +139,41 @@ public function setCaption($var) return $this; } + /** + * Annotation of the table block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @return \Google\Cloud\DocumentAI\V1\Document\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Annotation of the table block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @param \Google\Cloud\DocumentAI\V1\Document\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Annotations::class); + $this->annotations = $var; + + return $this; + } + } diff --git a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php index 9febff016e5..ca3cc05bb93 100644 --- a/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php +++ b/DocumentAi/src/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php @@ -36,6 +36,12 @@ class LayoutTextBlock extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; */ private $blocks; + /** + * Annotation of the text block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + */ + protected $annotations = null; /** * Constructor. @@ -52,6 +58,8 @@ class LayoutTextBlock extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock[] $blocks * A text block could further have child blocks. * Repeated blocks support further hierarchies and nested blocks. + * @type \Google\Cloud\DocumentAI\V1\Document\Annotations $annotations + * Annotation of the text block. * } */ public function __construct($data = NULL) { @@ -143,5 +151,41 @@ public function setBlocks($var) return $this; } + /** + * Annotation of the text block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @return \Google\Cloud\DocumentAI\V1\Document\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Annotation of the text block. + * + * Generated from protobuf field .google.cloud.documentai.v1.Document.Annotations annotations = 4; + * @param \Google\Cloud\DocumentAI\V1\Document\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Annotations::class); + $this->annotations = $var; + + return $this; + } + } diff --git a/DocumentAi/src/V1/Document/Entity.php b/DocumentAi/src/V1/Document/Entity.php index 976c3e388b6..70e64e229c9 100644 --- a/DocumentAi/src/V1/Document/Entity.php +++ b/DocumentAi/src/V1/Document/Entity.php @@ -26,13 +26,14 @@ class Entity extends \Google\Protobuf\Internal\Message */ protected $text_anchor = null; /** - * Required. Entity type from a schema e.g. `Address`. + * Required. Entity type from a schema, for example, `Address`. * * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; */ protected $type = ''; /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + * Optional. Text value of the entity, for example, `1600 Amphitheatre + * Pkwy`. * * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -65,9 +66,9 @@ class Entity extends \Google\Protobuf\Internal\Message protected $id = ''; /** * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. + * not be converted or the type (for example, address) is not supported for + * certain parsers. This field is also only populated for certain supported + * document types. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -110,9 +111,10 @@ class Entity extends \Google\Protobuf\Internal\Message * Text anchor indexing into the * [Document.text][google.cloud.documentai.v1.Document.text]. * @type string $type - * Required. Entity type from a schema e.g. `Address`. + * Required. Entity type from a schema, for example, `Address`. * @type string $mention_text - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + * Optional. Text value of the entity, for example, `1600 Amphitheatre + * Pkwy`. * @type string $mention_id * Optional. Deprecated. Use `id` field instead. * @type float $confidence @@ -125,9 +127,9 @@ class Entity extends \Google\Protobuf\Internal\Message * for this document. * @type \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue $normalized_value * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. + * not be converted or the type (for example, address) is not supported for + * certain parsers. This field is also only populated for certain supported + * document types. * @type \Google\Cloud\DocumentAI\V1\Document\Entity[] $properties * Optional. Entities can be nested to form a hierarchical data structure * representing the content in the document. @@ -186,7 +188,7 @@ public function setTextAnchor($var) } /** - * Required. Entity type from a schema e.g. `Address`. + * Required. Entity type from a schema, for example, `Address`. * * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -197,7 +199,7 @@ public function getType() } /** - * Required. Entity type from a schema e.g. `Address`. + * Required. Entity type from a schema, for example, `Address`. * * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -212,7 +214,8 @@ public function setType($var) } /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + * Optional. Text value of the entity, for example, `1600 Amphitheatre + * Pkwy`. * * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -223,7 +226,8 @@ public function getMentionText() } /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + * Optional. Text value of the entity, for example, `1600 Amphitheatre + * Pkwy`. * * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var @@ -357,9 +361,9 @@ public function setId($var) /** * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. + * not be converted or the type (for example, address) is not supported for + * certain parsers. This field is also only populated for certain supported + * document types. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue|null @@ -381,9 +385,9 @@ public function clearNormalizedValue() /** * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. + * not be converted or the type (for example, address) is not supported for + * certain parsers. This field is also only populated for certain supported + * document types. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue $var diff --git a/DocumentAi/src/V1/Document/Entity/NormalizedValue.php b/DocumentAi/src/V1/Document/Entity/NormalizedValue.php index daf84adf42e..cd09e678f3d 100644 --- a/DocumentAi/src/V1/Document/Entity/NormalizedValue.php +++ b/DocumentAi/src/V1/Document/Entity/NormalizedValue.php @@ -57,6 +57,8 @@ class NormalizedValue extends \Google\Protobuf\Internal\Message * @type float $float_value * Float value. * @type bool $signature_value + * A signature - a graphical representation of a person's name, + * often used to sign a document. * @type string $text * Optional. An optional field to store a normalized string. * For some entity types, one of respective `structured_value` fields may @@ -302,6 +304,9 @@ public function setFloatValue($var) } /** + * A signature - a graphical representation of a person's name, + * often used to sign a document. + * * Generated from protobuf field bool signature_value = 10; * @return bool */ @@ -316,6 +321,9 @@ public function hasSignatureValue() } /** + * A signature - a graphical representation of a person's name, + * often used to sign a document. + * * Generated from protobuf field bool signature_value = 10; * @param bool $var * @return $this diff --git a/DocumentAi/src/V1/Document/Page.php b/DocumentAi/src/V1/Document/Page.php index 4e7e0a78bef..37a47edf43a 100644 --- a/DocumentAi/src/V1/Document/Page.php +++ b/DocumentAi/src/V1/Document/Page.php @@ -87,7 +87,7 @@ class Page extends \Google\Protobuf\Internal\Message */ private $tokens; /** - * A list of detected non-text visual elements e.g. checkbox, + * A list of detected non-text visual elements, for example, checkbox, * signature etc. on the page. * * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; @@ -169,7 +169,7 @@ class Page extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\DocumentAI\V1\Document\Page\Token[] $tokens * A list of visually detected tokens on the page. * @type \Google\Cloud\DocumentAI\V1\Document\Page\VisualElement[] $visual_elements - * A list of detected non-text visual elements e.g. checkbox, + * A list of detected non-text visual elements, for example, checkbox, * signature etc. on the page. * @type \Google\Cloud\DocumentAI\V1\Document\Page\Table[] $tables * A list of visually detected tables on the page. @@ -503,7 +503,7 @@ public function setTokens($var) } /** - * A list of detected non-text visual elements e.g. checkbox, + * A list of detected non-text visual elements, for example, checkbox, * signature etc. on the page. * * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; @@ -515,7 +515,7 @@ public function getVisualElements() } /** - * A list of detected non-text visual elements e.g. checkbox, + * A list of detected non-text visual elements, for example, checkbox, * signature etc. on the page. * * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; diff --git a/DocumentAi/src/V1/Document/Page/FormField.php b/DocumentAi/src/V1/Document/Page/FormField.php index e42a4977499..4f52cc2af82 100644 --- a/DocumentAi/src/V1/Document/Page/FormField.php +++ b/DocumentAi/src/V1/Document/Page/FormField.php @@ -18,7 +18,7 @@ class FormField extends \Google\Protobuf\Internal\Message /** * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + * For example, `Address`, `Email`, `Grand total`, `Phone number`, etc. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; */ @@ -84,7 +84,7 @@ class FormField extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $field_name * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + * For example, `Address`, `Email`, `Grand total`, `Phone number`, etc. * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $field_value * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the * [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. @@ -118,7 +118,7 @@ public function __construct($data = NULL) { /** * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + * For example, `Address`, `Email`, `Grand total`, `Phone number`, etc. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null @@ -141,7 +141,7 @@ public function clearFieldName() /** * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + * For example, `Address`, `Email`, `Grand total`, `Phone number`, etc. * * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var diff --git a/DocumentAi/src/V1/Document/Page/Layout.php b/DocumentAi/src/V1/Document/Page/Layout.php index 00cafd16882..ad78411be81 100644 --- a/DocumentAi/src/V1/Document/Page/Layout.php +++ b/DocumentAi/src/V1/Document/Page/Layout.php @@ -25,9 +25,9 @@ class Layout extends \Google\Protobuf\Internal\Message /** * Confidence of the current * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. + * context of the object this layout is for. For example, confidence can + * be for a single token, a table, a visual element, etc. depending on + * context. Range `[0, 1]`. * * Generated from protobuf field float confidence = 2; */ @@ -59,9 +59,9 @@ class Layout extends \Google\Protobuf\Internal\Message * @type float $confidence * Confidence of the current * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. + * context of the object this layout is for. For example, confidence can + * be for a single token, a table, a visual element, etc. depending on + * context. Range `[0, 1]`. * @type \Google\Cloud\DocumentAI\V1\BoundingPoly $bounding_poly * The bounding polygon for the * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. @@ -116,9 +116,9 @@ public function setTextAnchor($var) /** * Confidence of the current * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. + * context of the object this layout is for. For example, confidence can + * be for a single token, a table, a visual element, etc. depending on + * context. Range `[0, 1]`. * * Generated from protobuf field float confidence = 2; * @return float @@ -131,9 +131,9 @@ public function getConfidence() /** * Confidence of the current * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. + * context of the object this layout is for. For example, confidence can + * be for a single token, a table, a visual element, etc. depending on + * context. Range `[0, 1]`. * * Generated from protobuf field float confidence = 2; * @param float $var diff --git a/DocumentAi/src/V1/Document/Page/VisualElement.php b/DocumentAi/src/V1/Document/Page/VisualElement.php index a5e46c248ba..ead412d26c3 100644 --- a/DocumentAi/src/V1/Document/Page/VisualElement.php +++ b/DocumentAi/src/V1/Document/Page/VisualElement.php @@ -9,8 +9,8 @@ use Google\Protobuf\RepeatedField; /** - * Detected non-text visual elements e.g. checkbox, signature etc. on the - * page. + * Detected non-text visual elements, for example, checkbox, signature etc. + * on the page. * * Generated from protobuf message google.cloud.documentai.v1.Document.Page.VisualElement */ diff --git a/DocumentAi/src/V1/Document/Revision/HumanReview.php b/DocumentAi/src/V1/Document/Revision/HumanReview.php index 13c139c5239..5db9c95244c 100644 --- a/DocumentAi/src/V1/Document/Revision/HumanReview.php +++ b/DocumentAi/src/V1/Document/Revision/HumanReview.php @@ -16,7 +16,7 @@ class HumanReview extends \Google\Protobuf\Internal\Message { /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. + * Human review state. For example, `requested`, `succeeded`, `rejected`. * * Generated from protobuf field string state = 1; */ @@ -36,7 +36,7 @@ class HumanReview extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $state - * Human review state. e.g. `requested`, `succeeded`, `rejected`. + * Human review state. For example, `requested`, `succeeded`, `rejected`. * @type string $state_message * A message providing more details about the current state of processing. * For example, the rejection reason when the state is `rejected`. @@ -48,7 +48,7 @@ public function __construct($data = NULL) { } /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. + * Human review state. For example, `requested`, `succeeded`, `rejected`. * * Generated from protobuf field string state = 1; * @return string @@ -59,7 +59,7 @@ public function getState() } /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. + * Human review state. For example, `requested`, `succeeded`, `rejected`. * * Generated from protobuf field string state = 1; * @param string $var