google-cloud-document_ai-v1 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/documentai/v1/document.proto
3
4
 
@@ -14,273 +15,40 @@ require 'google/type/datetime_pb'
14
15
  require 'google/type/money_pb'
15
16
  require 'google/type/postal_address_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/documentai/v1/document.proto", :syntax => :proto3) do
19
- add_message "google.cloud.documentai.v1.Document" do
20
- optional :mime_type, :string, 3
21
- optional :text, :string, 4
22
- repeated :text_styles, :message, 5, "google.cloud.documentai.v1.Document.Style"
23
- repeated :pages, :message, 6, "google.cloud.documentai.v1.Document.Page"
24
- repeated :entities, :message, 7, "google.cloud.documentai.v1.Document.Entity"
25
- repeated :entity_relations, :message, 8, "google.cloud.documentai.v1.Document.EntityRelation"
26
- repeated :text_changes, :message, 14, "google.cloud.documentai.v1.Document.TextChange"
27
- optional :shard_info, :message, 9, "google.cloud.documentai.v1.Document.ShardInfo"
28
- optional :error, :message, 10, "google.rpc.Status"
29
- repeated :revisions, :message, 13, "google.cloud.documentai.v1.Document.Revision"
30
- oneof :source do
31
- optional :uri, :string, 1
32
- optional :content, :bytes, 2
33
- end
34
- end
35
- add_message "google.cloud.documentai.v1.Document.ShardInfo" do
36
- optional :shard_index, :int64, 1
37
- optional :shard_count, :int64, 2
38
- optional :text_offset, :int64, 3
39
- end
40
- add_message "google.cloud.documentai.v1.Document.Style" do
41
- optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
42
- optional :color, :message, 2, "google.type.Color"
43
- optional :background_color, :message, 3, "google.type.Color"
44
- optional :font_weight, :string, 4
45
- optional :text_style, :string, 5
46
- optional :text_decoration, :string, 6
47
- optional :font_size, :message, 7, "google.cloud.documentai.v1.Document.Style.FontSize"
48
- optional :font_family, :string, 8
49
- end
50
- add_message "google.cloud.documentai.v1.Document.Style.FontSize" do
51
- optional :size, :float, 1
52
- optional :unit, :string, 2
53
- end
54
- add_message "google.cloud.documentai.v1.Document.Page" do
55
- optional :page_number, :int32, 1
56
- optional :image, :message, 13, "google.cloud.documentai.v1.Document.Page.Image"
57
- repeated :transforms, :message, 14, "google.cloud.documentai.v1.Document.Page.Matrix"
58
- optional :dimension, :message, 2, "google.cloud.documentai.v1.Document.Page.Dimension"
59
- optional :layout, :message, 3, "google.cloud.documentai.v1.Document.Page.Layout"
60
- repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
61
- repeated :blocks, :message, 5, "google.cloud.documentai.v1.Document.Page.Block"
62
- repeated :paragraphs, :message, 6, "google.cloud.documentai.v1.Document.Page.Paragraph"
63
- repeated :lines, :message, 7, "google.cloud.documentai.v1.Document.Page.Line"
64
- repeated :tokens, :message, 8, "google.cloud.documentai.v1.Document.Page.Token"
65
- repeated :visual_elements, :message, 9, "google.cloud.documentai.v1.Document.Page.VisualElement"
66
- repeated :tables, :message, 10, "google.cloud.documentai.v1.Document.Page.Table"
67
- repeated :form_fields, :message, 11, "google.cloud.documentai.v1.Document.Page.FormField"
68
- repeated :symbols, :message, 12, "google.cloud.documentai.v1.Document.Page.Symbol"
69
- repeated :detected_barcodes, :message, 15, "google.cloud.documentai.v1.Document.Page.DetectedBarcode"
70
- optional :image_quality_scores, :message, 17, "google.cloud.documentai.v1.Document.Page.ImageQualityScores"
71
- optional :provenance, :message, 16, "google.cloud.documentai.v1.Document.Provenance"
72
- end
73
- add_message "google.cloud.documentai.v1.Document.Page.Dimension" do
74
- optional :width, :float, 1
75
- optional :height, :float, 2
76
- optional :unit, :string, 3
77
- end
78
- add_message "google.cloud.documentai.v1.Document.Page.Image" do
79
- optional :content, :bytes, 1
80
- optional :mime_type, :string, 2
81
- optional :width, :int32, 3
82
- optional :height, :int32, 4
83
- end
84
- add_message "google.cloud.documentai.v1.Document.Page.Matrix" do
85
- optional :rows, :int32, 1
86
- optional :cols, :int32, 2
87
- optional :type, :int32, 3
88
- optional :data, :bytes, 4
89
- end
90
- add_message "google.cloud.documentai.v1.Document.Page.Layout" do
91
- optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
92
- optional :confidence, :float, 2
93
- optional :bounding_poly, :message, 3, "google.cloud.documentai.v1.BoundingPoly"
94
- optional :orientation, :enum, 4, "google.cloud.documentai.v1.Document.Page.Layout.Orientation"
95
- end
96
- add_enum "google.cloud.documentai.v1.Document.Page.Layout.Orientation" do
97
- value :ORIENTATION_UNSPECIFIED, 0
98
- value :PAGE_UP, 1
99
- value :PAGE_RIGHT, 2
100
- value :PAGE_DOWN, 3
101
- value :PAGE_LEFT, 4
102
- end
103
- add_message "google.cloud.documentai.v1.Document.Page.Block" do
104
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
105
- repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
106
- optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
107
- end
108
- add_message "google.cloud.documentai.v1.Document.Page.Paragraph" do
109
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
110
- repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
111
- optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
112
- end
113
- add_message "google.cloud.documentai.v1.Document.Page.Line" do
114
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
115
- repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
116
- optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
117
- end
118
- add_message "google.cloud.documentai.v1.Document.Page.Token" do
119
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
120
- optional :detected_break, :message, 2, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak"
121
- repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
122
- optional :provenance, :message, 4, "google.cloud.documentai.v1.Document.Provenance"
123
- end
124
- add_message "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak" do
125
- optional :type, :enum, 1, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type"
126
- end
127
- add_enum "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type" do
128
- value :TYPE_UNSPECIFIED, 0
129
- value :SPACE, 1
130
- value :WIDE_SPACE, 2
131
- value :HYPHEN, 3
132
- end
133
- add_message "google.cloud.documentai.v1.Document.Page.Symbol" do
134
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
135
- repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
136
- end
137
- add_message "google.cloud.documentai.v1.Document.Page.VisualElement" do
138
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
139
- optional :type, :string, 2
140
- repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
141
- end
142
- add_message "google.cloud.documentai.v1.Document.Page.Table" do
143
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
144
- repeated :header_rows, :message, 2, "google.cloud.documentai.v1.Document.Page.Table.TableRow"
145
- repeated :body_rows, :message, 3, "google.cloud.documentai.v1.Document.Page.Table.TableRow"
146
- repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
147
- optional :provenance, :message, 5, "google.cloud.documentai.v1.Document.Provenance"
148
- end
149
- add_message "google.cloud.documentai.v1.Document.Page.Table.TableRow" do
150
- repeated :cells, :message, 1, "google.cloud.documentai.v1.Document.Page.Table.TableCell"
151
- end
152
- add_message "google.cloud.documentai.v1.Document.Page.Table.TableCell" do
153
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
154
- optional :row_span, :int32, 2
155
- optional :col_span, :int32, 3
156
- repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
157
- end
158
- add_message "google.cloud.documentai.v1.Document.Page.FormField" do
159
- optional :field_name, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
160
- optional :field_value, :message, 2, "google.cloud.documentai.v1.Document.Page.Layout"
161
- repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
162
- repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
163
- optional :value_type, :string, 5
164
- optional :corrected_key_text, :string, 6
165
- optional :corrected_value_text, :string, 7
166
- optional :provenance, :message, 8, "google.cloud.documentai.v1.Document.Provenance"
167
- end
168
- add_message "google.cloud.documentai.v1.Document.Page.DetectedBarcode" do
169
- optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
170
- optional :barcode, :message, 2, "google.cloud.documentai.v1.Barcode"
171
- end
172
- add_message "google.cloud.documentai.v1.Document.Page.DetectedLanguage" do
173
- optional :language_code, :string, 1
174
- optional :confidence, :float, 2
175
- end
176
- add_message "google.cloud.documentai.v1.Document.Page.ImageQualityScores" do
177
- optional :quality_score, :float, 1
178
- repeated :detected_defects, :message, 2, "google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect"
179
- end
180
- add_message "google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect" do
181
- optional :type, :string, 1
182
- optional :confidence, :float, 2
183
- end
184
- add_message "google.cloud.documentai.v1.Document.Entity" do
185
- optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
186
- optional :type, :string, 2
187
- optional :mention_text, :string, 3
188
- optional :mention_id, :string, 4
189
- optional :confidence, :float, 5
190
- optional :page_anchor, :message, 6, "google.cloud.documentai.v1.Document.PageAnchor"
191
- optional :id, :string, 7
192
- optional :normalized_value, :message, 9, "google.cloud.documentai.v1.Document.Entity.NormalizedValue"
193
- repeated :properties, :message, 10, "google.cloud.documentai.v1.Document.Entity"
194
- optional :provenance, :message, 11, "google.cloud.documentai.v1.Document.Provenance"
195
- optional :redacted, :bool, 12
196
- end
197
- add_message "google.cloud.documentai.v1.Document.Entity.NormalizedValue" do
198
- optional :text, :string, 1
199
- oneof :structured_value do
200
- optional :money_value, :message, 2, "google.type.Money"
201
- optional :date_value, :message, 3, "google.type.Date"
202
- optional :datetime_value, :message, 4, "google.type.DateTime"
203
- optional :address_value, :message, 5, "google.type.PostalAddress"
204
- optional :boolean_value, :bool, 6
205
- optional :integer_value, :int32, 7
206
- optional :float_value, :float, 8
207
- end
208
- end
209
- add_message "google.cloud.documentai.v1.Document.EntityRelation" do
210
- optional :subject_id, :string, 1
211
- optional :object_id, :string, 2
212
- optional :relation, :string, 3
213
- end
214
- add_message "google.cloud.documentai.v1.Document.TextAnchor" do
215
- repeated :text_segments, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor.TextSegment"
216
- optional :content, :string, 2
217
- end
218
- add_message "google.cloud.documentai.v1.Document.TextAnchor.TextSegment" do
219
- optional :start_index, :int64, 1
220
- optional :end_index, :int64, 2
221
- end
222
- add_message "google.cloud.documentai.v1.Document.PageAnchor" do
223
- repeated :page_refs, :message, 1, "google.cloud.documentai.v1.Document.PageAnchor.PageRef"
224
- end
225
- add_message "google.cloud.documentai.v1.Document.PageAnchor.PageRef" do
226
- optional :page, :int64, 1
227
- optional :layout_type, :enum, 2, "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType"
228
- optional :layout_id, :string, 3
229
- optional :bounding_poly, :message, 4, "google.cloud.documentai.v1.BoundingPoly"
230
- optional :confidence, :float, 5
231
- end
232
- add_enum "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType" do
233
- value :LAYOUT_TYPE_UNSPECIFIED, 0
234
- value :BLOCK, 1
235
- value :PARAGRAPH, 2
236
- value :LINE, 3
237
- value :TOKEN, 4
238
- value :VISUAL_ELEMENT, 5
239
- value :TABLE, 6
240
- value :FORM_FIELD, 7
241
- end
242
- add_message "google.cloud.documentai.v1.Document.Provenance" do
243
- optional :revision, :int32, 1
244
- optional :id, :int32, 2
245
- repeated :parents, :message, 3, "google.cloud.documentai.v1.Document.Provenance.Parent"
246
- optional :type, :enum, 4, "google.cloud.documentai.v1.Document.Provenance.OperationType"
247
- end
248
- add_message "google.cloud.documentai.v1.Document.Provenance.Parent" do
249
- optional :revision, :int32, 1
250
- optional :index, :int32, 3
251
- optional :id, :int32, 2
252
- end
253
- add_enum "google.cloud.documentai.v1.Document.Provenance.OperationType" do
254
- value :OPERATION_TYPE_UNSPECIFIED, 0
255
- value :ADD, 1
256
- value :REMOVE, 2
257
- value :UPDATE, 7
258
- value :REPLACE, 3
259
- value :EVAL_REQUESTED, 4
260
- value :EVAL_APPROVED, 5
261
- value :EVAL_SKIPPED, 6
262
- end
263
- add_message "google.cloud.documentai.v1.Document.Revision" do
264
- optional :id, :string, 1
265
- repeated :parent, :int32, 2
266
- repeated :parent_ids, :string, 7
267
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
268
- optional :human_review, :message, 6, "google.cloud.documentai.v1.Document.Revision.HumanReview"
269
- oneof :source do
270
- optional :agent, :string, 4
271
- optional :processor, :string, 5
272
- end
273
- end
274
- add_message "google.cloud.documentai.v1.Document.Revision.HumanReview" do
275
- optional :state, :string, 1
276
- optional :state_message, :string, 2
277
- end
278
- add_message "google.cloud.documentai.v1.Document.TextChange" do
279
- optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
280
- optional :changed_text, :string, 2
281
- repeated :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
18
+
19
+ descriptor_data = "\n)google/cloud/documentai/v1/document.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/documentai/v1/barcode.proto\x1a)google/cloud/documentai/v1/geometry.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"\xcf\x41\n\x08\x44ocument\x12\x12\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\x07\x63ontent\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x0btext_styles\x18\x05 \x03(\x0b\x32*.google.cloud.documentai.v1.Document.StyleB\x02\x18\x01\x12\x38\n\x05pages\x18\x06 \x03(\x0b\x32).google.cloud.documentai.v1.Document.Page\x12=\n\x08\x65ntities\x18\x07 \x03(\x0b\x32+.google.cloud.documentai.v1.Document.Entity\x12M\n\x10\x65ntity_relations\x18\x08 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.EntityRelation\x12\x45\n\x0ctext_changes\x18\x0e \x03(\x0b\x32/.google.cloud.documentai.v1.Document.TextChange\x12\x42\n\nshard_info\x18\t \x01(\x0b\x32..google.cloud.documentai.v1.Document.ShardInfo\x12!\n\x05\x65rror\x18\n \x01(\x0b\x32\x12.google.rpc.Status\x12@\n\trevisions\x18\r \x03(\x0b\x32-.google.cloud.documentai.v1.Document.Revision\x1aJ\n\tShardInfo\x12\x13\n\x0bshard_index\x18\x01 \x01(\x03\x12\x13\n\x0bshard_count\x18\x02 \x01(\x03\x12\x13\n\x0btext_offset\x18\x03 \x01(\x03\x1a\xe5\x02\n\x05Style\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12!\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12,\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12\x13\n\x0b\x66ont_weight\x18\x04 \x01(\t\x12\x12\n\ntext_style\x18\x05 \x01(\t\x12\x17\n\x0ftext_decoration\x18\x06 \x01(\t\x12\x46\n\tfont_size\x18\x07 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Style.FontSize\x12\x13\n\x0b\x66ont_family\x18\x08 \x01(\t\x1a&\n\x08\x46ontSize\x12\x0c\n\x04size\x18\x01 \x01(\x02\x12\x0c\n\x04unit\x18\x02 \x01(\t\x1a\x8a&\n\x04Page\x12\x13\n\x0bpage_number\x18\x01 \x01(\x05\x12>\n\x05image\x18\r \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Image\x12\x44\n\ntransforms\x18\x0e \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Matrix\x12\x46\n\tdimension\x18\x02 \x01(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Dimension\x12@\n\x06layout\x18\x03 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12?\n\x06\x62locks\x18\x05 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Block\x12G\n\nparagraphs\x18\x06 \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.Paragraph\x12=\n\x05lines\x18\x07 \x03(\x0b\x32..google.cloud.documentai.v1.Document.Page.Line\x12?\n\x06tokens\x18\x08 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Token\x12P\n\x0fvisual_elements\x18\t \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.Page.VisualElement\x12?\n\x06tables\x18\n \x03(\x0b\x32/.google.cloud.documentai.v1.Document.Page.Table\x12H\n\x0b\x66orm_fields\x18\x0b \x03(\x0b\x32\x33.google.cloud.documentai.v1.Document.Page.FormField\x12\x41\n\x07symbols\x18\x0c \x03(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Symbol\x12T\n\x11\x64\x65tected_barcodes\x18\x0f \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.DetectedBarcode\x12Z\n\x14image_quality_scores\x18\x11 \x01(\x0b\x32<.google.cloud.documentai.v1.Document.Page.ImageQualityScores\x12G\n\nprovenance\x18\x10 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\x38\n\tDimension\x12\r\n\x05width\x18\x01 \x01(\x02\x12\x0e\n\x06height\x18\x02 \x01(\x02\x12\x0c\n\x04unit\x18\x03 \x01(\t\x1aJ\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a@\n\x06Matrix\x12\x0c\n\x04rows\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\xdd\x02\n\x06Layout\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12?\n\rbounding_poly\x18\x03 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPoly\x12Q\n\x0borientation\x18\x04 \x01(\x0e\x32<.google.cloud.documentai.v1.Document.Page.Layout.Orientation\"e\n\x0bOrientation\x12\x1b\n\x17ORIENTATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07PAGE_UP\x10\x01\x12\x0e\n\nPAGE_RIGHT\x10\x02\x12\r\n\tPAGE_DOWN\x10\x03\x12\r\n\tPAGE_LEFT\x10\x04\x1a\xea\x01\n\x05\x42lock\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xee\x01\n\tParagraph\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xe9\x01\n\x04Line\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xea\x03\n\x05Token\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12U\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12G\n\nprovenance\x18\x04 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x1a\xa6\x01\n\rDetectedBreak\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type\"C\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nWIDE_SPACE\x10\x02\x12\n\n\x06HYPHEN\x10\x03\x1a\xa2\x01\n\x06Symbol\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12V\n\x12\x64\x65tected_languages\x18\x02 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xb7\x01\n\rVisualElement\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x0c\n\x04type\x18\x02 \x01(\t\x12V\n\x12\x64\x65tected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xa4\x05\n\x05Table\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12M\n\x0bheader_rows\x18\x02 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12K\n\tbody_rows\x18\x03 \x03(\x0b\x32\x38.google.cloud.documentai.v1.Document.Page.Table.TableRow\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x43\n\nprovenance\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1aT\n\x08TableRow\x12H\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Document.Page.Table.TableCell\x1a\xc9\x01\n\tTableCell\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x10\n\x08row_span\x18\x02 \x01(\x05\x12\x10\n\x08\x63ol_span\x18\x03 \x01(\x05\x12V\n\x12\x64\x65tected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x1a\xe6\x03\n\tFormField\x12\x44\n\nfield_name\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x45\n\x0b\x66ield_value\x18\x02 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12[\n\x17name_detected_languages\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\\\n\x18value_detected_languages\x18\x04 \x03(\x0b\x32:.google.cloud.documentai.v1.Document.Page.DetectedLanguage\x12\x12\n\nvalue_type\x18\x05 \x01(\t\x12\x1a\n\x12\x63orrected_key_text\x18\x06 \x01(\t\x12\x1c\n\x14\x63orrected_value_text\x18\x07 \x01(\t\x12\x43\n\nprovenance\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.Provenance\x1a\x89\x01\n\x0f\x44\x65tectedBarcode\x12@\n\x06layout\x18\x01 \x01(\x0b\x32\x30.google.cloud.documentai.v1.Document.Page.Layout\x12\x34\n\x07\x62\x61rcode\x18\x02 \x01(\x0b\x32#.google.cloud.documentai.v1.Barcode\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xc6\x01\n\x12ImageQualityScores\x12\x15\n\rquality_score\x18\x01 \x01(\x02\x12\x65\n\x10\x64\x65tected_defects\x18\x02 \x03(\x0b\x32K.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect\x1a\x32\n\x0e\x44\x65tectedDefect\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xd0\x06\n\x06\x45ntity\x12I\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchorB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cmention_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nmention_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\x12I\n\x0bpage_anchor\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.PageAnchorB\x03\xe0\x41\x01\x12\x0f\n\x02id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x10normalized_value\x18\t \x01(\x0b\x32;.google.cloud.documentai.v1.Document.Entity.NormalizedValueB\x03\xe0\x41\x01\x12\x44\n\nproperties\x18\n \x03(\x0b\x32+.google.cloud.documentai.v1.Document.EntityB\x03\xe0\x41\x01\x12H\n\nprovenance\x18\x0b \x01(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x03\xe0\x41\x01\x12\x15\n\x08redacted\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbb\x02\n\x0fNormalizedValue\x12)\n\x0bmoney_value\x18\x02 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12\'\n\ndate_value\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12/\n\x0e\x64\x61tetime_value\x18\x04 \x01(\x0b\x32\x15.google.type.DateTimeH\x00\x12\x33\n\raddress_value\x18\x05 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12\x17\n\rboolean_value\x18\x06 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x07 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x08 \x01(\x02H\x00\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10structured_value\x1aI\n\x0e\x45ntityRelation\x12\x12\n\nsubject_id\x18\x01 \x01(\t\x12\x11\n\tobject_id\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x1a\xa8\x01\n\nTextAnchor\x12R\n\rtext_segments\x18\x01 \x03(\x0b\x32;.google.cloud.documentai.v1.Document.TextAnchor.TextSegment\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a\x35\n\x0bTextSegment\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x1a\xd8\x03\n\nPageAnchor\x12J\n\tpage_refs\x18\x01 \x03(\x0b\x32\x37.google.cloud.documentai.v1.Document.PageAnchor.PageRef\x1a\xfd\x02\n\x07PageRef\x12\x11\n\x04page\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\\\n\x0blayout_type\x18\x02 \x01(\x0e\x32\x42.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutTypeB\x03\xe0\x41\x01\x12\x18\n\tlayout_id\x18\x03 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x44\n\rbounding_poly\x18\x04 \x01(\x0b\x32(.google.cloud.documentai.v1.BoundingPolyB\x03\xe0\x41\x01\x12\x17\n\nconfidence\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01\"\x87\x01\n\nLayoutType\x12\x1b\n\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x08\n\x04LINE\x10\x03\x12\t\n\x05TOKEN\x10\x04\x12\x12\n\x0eVISUAL_ELEMENT\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x0e\n\nFORM_FIELD\x10\x07\x1a\xa8\x03\n\nProvenance\x12\x14\n\x08revision\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\x12G\n\x07parents\x18\x03 \x03(\x0b\x32\x36.google.cloud.documentai.v1.Document.Provenance.Parent\x12K\n\x04type\x18\x04 \x01(\x0e\x32=.google.cloud.documentai.v1.Document.Provenance.OperationType\x1a\x39\n\x06Parent\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\r\n\x05index\x18\x03 \x01(\x05\x12\x0e\n\x02id\x18\x02 \x01(\x05\x42\x02\x18\x01\"\xa2\x01\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x12\n\n\x06UPDATE\x10\x07\x12\x0b\n\x07REPLACE\x10\x03\x12\x16\n\x0e\x45VAL_REQUESTED\x10\x04\x1a\x02\x08\x01\x12\x15\n\rEVAL_APPROVED\x10\x05\x1a\x02\x08\x01\x12\x14\n\x0c\x45VAL_SKIPPED\x10\x06\x1a\x02\x08\x01\x1a\xa5\x02\n\x08Revision\x12\x0f\n\x05\x61gent\x18\x04 \x01(\tH\x00\x12\x13\n\tprocessor\x18\x05 \x01(\tH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x06parent\x18\x02 \x03(\x05\x42\x02\x18\x01\x12\x12\n\nparent_ids\x18\x07 \x03(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x0chuman_review\x18\x06 \x01(\x0b\x32\x39.google.cloud.documentai.v1.Document.Revision.HumanReview\x1a\x33\n\x0bHumanReview\x12\r\n\x05state\x18\x01 \x01(\t\x12\x15\n\rstate_message\x18\x02 \x01(\tB\x08\n\x06source\x1a\xb1\x01\n\nTextChange\x12\x44\n\x0btext_anchor\x18\x01 \x01(\x0b\x32/.google.cloud.documentai.v1.Document.TextAnchor\x12\x14\n\x0c\x63hanged_text\x18\x02 \x01(\t\x12G\n\nprovenance\x18\x03 \x03(\x0b\x32/.google.cloud.documentai.v1.Document.ProvenanceB\x02\x18\x01\x42\x08\n\x06sourceB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rDocumentProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.rpc.Status", "google/rpc/status.proto"],
35
+ ["google.type.Color", "google/type/color.proto"],
36
+ ["google.cloud.documentai.v1.BoundingPoly", "google/cloud/documentai/v1/geometry.proto"],
37
+ ["google.cloud.documentai.v1.Barcode", "google/cloud/documentai/v1/barcode.proto"],
38
+ ["google.type.Money", "google/type/money.proto"],
39
+ ["google.type.Date", "google/type/date.proto"],
40
+ ["google.type.DateTime", "google/type/datetime.proto"],
41
+ ["google.type.PostalAddress", "google/type/postal_address.proto"],
42
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
43
+ ]
44
+ imports.each do |type_name, expected_filename|
45
+ import_file = pool.lookup(type_name).file_descriptor
46
+ if import_file.name != expected_filename
47
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
282
48
  end
283
49
  end
50
+ warn "Each proto file must use a consistent fully-qualified name."
51
+ warn "This will become an error in the next major version."
284
52
  end
285
53
 
286
54
  module Google