google-cloud-document_ai-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-document_ai-v1.rb +21 -0
  7. data/lib/google/cloud/document_ai/v1.rb +38 -0
  8. data/lib/google/cloud/document_ai/v1/document_processor_service.rb +53 -0
  9. data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +581 -0
  10. data/lib/google/cloud/document_ai/v1/document_processor_service/credentials.rb +51 -0
  11. data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +655 -0
  12. data/lib/google/cloud/document_ai/v1/document_processor_service/paths.rb +71 -0
  13. data/lib/google/cloud/document_ai/v1/version.rb +28 -0
  14. data/lib/google/cloud/documentai/v1/document_io_pb.rb +54 -0
  15. data/lib/google/cloud/documentai/v1/document_pb.rb +298 -0
  16. data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +107 -0
  17. data/lib/google/cloud/documentai/v1/document_processor_service_services_pb.rb +54 -0
  18. data/lib/google/cloud/documentai/v1/geometry_pb.rb +34 -0
  19. data/lib/google/cloud/documentai/v1/operation_metadata_pb.rb +36 -0
  20. data/proto_docs/README.md +4 -0
  21. data/proto_docs/google/api/field_behavior.rb +65 -0
  22. data/proto_docs/google/api/resource.rb +283 -0
  23. data/proto_docs/google/cloud/documentai/v1/document.rb +791 -0
  24. data/proto_docs/google/cloud/documentai/v1/document_io.rb +100 -0
  25. data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +221 -0
  26. data/proto_docs/google/cloud/documentai/v1/geometry.rb +65 -0
  27. data/proto_docs/google/cloud/documentai/v1/operation_metadata.rb +65 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +141 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +36 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  34. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  35. data/proto_docs/google/rpc/status.rb +46 -0
  36. data/proto_docs/google/type/color.rb +173 -0
  37. data/proto_docs/google/type/date.rb +53 -0
  38. data/proto_docs/google/type/datetime.rb +99 -0
  39. data/proto_docs/google/type/money.rb +43 -0
  40. data/proto_docs/google/type/postal_address.rb +135 -0
  41. metadata +231 -0
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DocumentAI
23
+ module V1
24
+ module DocumentProcessorService
25
+ # Path helper methods for the DocumentProcessorService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified HumanReviewConfig resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param processor [String]
37
+ #
38
+ # @return [::String]
39
+ def human_review_config_path project:, location:, processor:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/processors/#{processor}/humanReviewConfig"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Processor resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/processors/{processor}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param processor [String]
56
+ #
57
+ # @return [::String]
58
+ def processor_path project:, location:, processor:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/processors/#{processor}"
63
+ end
64
+
65
+ extend self
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DocumentAI
23
+ module V1
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/documentai/v1/document_io.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/documentai/v1/document_io.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.documentai.v1.RawDocument" do
10
+ optional :content, :bytes, 1
11
+ optional :mime_type, :string, 2
12
+ end
13
+ add_message "google.cloud.documentai.v1.GcsDocument" do
14
+ optional :gcs_uri, :string, 1
15
+ optional :mime_type, :string, 2
16
+ end
17
+ add_message "google.cloud.documentai.v1.GcsDocuments" do
18
+ repeated :documents, :message, 1, "google.cloud.documentai.v1.GcsDocument"
19
+ end
20
+ add_message "google.cloud.documentai.v1.GcsPrefix" do
21
+ optional :gcs_uri_prefix, :string, 1
22
+ end
23
+ add_message "google.cloud.documentai.v1.BatchDocumentsInputConfig" do
24
+ oneof :source do
25
+ optional :gcs_prefix, :message, 1, "google.cloud.documentai.v1.GcsPrefix"
26
+ optional :gcs_documents, :message, 2, "google.cloud.documentai.v1.GcsDocuments"
27
+ end
28
+ end
29
+ add_message "google.cloud.documentai.v1.DocumentOutputConfig" do
30
+ oneof :destination do
31
+ optional :gcs_output_config, :message, 1, "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig"
32
+ end
33
+ end
34
+ add_message "google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig" do
35
+ optional :gcs_uri, :string, 1
36
+ end
37
+ end
38
+ end
39
+
40
+ module Google
41
+ module Cloud
42
+ module DocumentAI
43
+ module V1
44
+ RawDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.RawDocument").msgclass
45
+ GcsDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.GcsDocument").msgclass
46
+ GcsDocuments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.GcsDocuments").msgclass
47
+ GcsPrefix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.GcsPrefix").msgclass
48
+ BatchDocumentsInputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.BatchDocumentsInputConfig").msgclass
49
+ DocumentOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.DocumentOutputConfig").msgclass
50
+ DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,298 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/documentai/v1/document.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/cloud/documentai/v1/geometry_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'google/rpc/status_pb'
10
+ require 'google/type/color_pb'
11
+ require 'google/type/date_pb'
12
+ require 'google/type/datetime_pb'
13
+ require 'google/type/money_pb'
14
+ require 'google/type/postal_address_pb'
15
+ require 'google/api/annotations_pb'
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("google/cloud/documentai/v1/document.proto", :syntax => :proto3) do
18
+ add_message "google.cloud.documentai.v1.Document" do
19
+ optional :mime_type, :string, 3
20
+ optional :text, :string, 4
21
+ repeated :text_styles, :message, 5, "google.cloud.documentai.v1.Document.Style"
22
+ repeated :pages, :message, 6, "google.cloud.documentai.v1.Document.Page"
23
+ repeated :entities, :message, 7, "google.cloud.documentai.v1.Document.Entity"
24
+ repeated :entity_relations, :message, 8, "google.cloud.documentai.v1.Document.EntityRelation"
25
+ repeated :text_changes, :message, 14, "google.cloud.documentai.v1.Document.TextChange"
26
+ optional :shard_info, :message, 9, "google.cloud.documentai.v1.Document.ShardInfo"
27
+ optional :error, :message, 10, "google.rpc.Status"
28
+ repeated :revisions, :message, 13, "google.cloud.documentai.v1.Document.Revision"
29
+ oneof :source do
30
+ optional :uri, :string, 1
31
+ optional :content, :bytes, 2
32
+ end
33
+ end
34
+ add_message "google.cloud.documentai.v1.Document.ShardInfo" do
35
+ optional :shard_index, :int64, 1
36
+ optional :shard_count, :int64, 2
37
+ optional :text_offset, :int64, 3
38
+ end
39
+ add_message "google.cloud.documentai.v1.Document.Style" do
40
+ optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
41
+ optional :color, :message, 2, "google.type.Color"
42
+ optional :background_color, :message, 3, "google.type.Color"
43
+ optional :font_weight, :string, 4
44
+ optional :text_style, :string, 5
45
+ optional :text_decoration, :string, 6
46
+ optional :font_size, :message, 7, "google.cloud.documentai.v1.Document.Style.FontSize"
47
+ end
48
+ add_message "google.cloud.documentai.v1.Document.Style.FontSize" do
49
+ optional :size, :float, 1
50
+ optional :unit, :string, 2
51
+ end
52
+ add_message "google.cloud.documentai.v1.Document.Page" do
53
+ optional :page_number, :int32, 1
54
+ optional :image, :message, 13, "google.cloud.documentai.v1.Document.Page.Image"
55
+ repeated :transforms, :message, 14, "google.cloud.documentai.v1.Document.Page.Matrix"
56
+ optional :dimension, :message, 2, "google.cloud.documentai.v1.Document.Page.Dimension"
57
+ optional :layout, :message, 3, "google.cloud.documentai.v1.Document.Page.Layout"
58
+ repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
59
+ repeated :blocks, :message, 5, "google.cloud.documentai.v1.Document.Page.Block"
60
+ repeated :paragraphs, :message, 6, "google.cloud.documentai.v1.Document.Page.Paragraph"
61
+ repeated :lines, :message, 7, "google.cloud.documentai.v1.Document.Page.Line"
62
+ repeated :tokens, :message, 8, "google.cloud.documentai.v1.Document.Page.Token"
63
+ repeated :visual_elements, :message, 9, "google.cloud.documentai.v1.Document.Page.VisualElement"
64
+ repeated :tables, :message, 10, "google.cloud.documentai.v1.Document.Page.Table"
65
+ repeated :form_fields, :message, 11, "google.cloud.documentai.v1.Document.Page.FormField"
66
+ end
67
+ add_message "google.cloud.documentai.v1.Document.Page.Dimension" do
68
+ optional :width, :float, 1
69
+ optional :height, :float, 2
70
+ optional :unit, :string, 3
71
+ end
72
+ add_message "google.cloud.documentai.v1.Document.Page.Image" do
73
+ optional :content, :bytes, 1
74
+ optional :mime_type, :string, 2
75
+ optional :width, :int32, 3
76
+ optional :height, :int32, 4
77
+ end
78
+ add_message "google.cloud.documentai.v1.Document.Page.Matrix" do
79
+ optional :rows, :int32, 1
80
+ optional :cols, :int32, 2
81
+ optional :type, :int32, 3
82
+ optional :data, :bytes, 4
83
+ end
84
+ add_message "google.cloud.documentai.v1.Document.Page.Layout" do
85
+ optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
86
+ optional :confidence, :float, 2
87
+ optional :bounding_poly, :message, 3, "google.cloud.documentai.v1.BoundingPoly"
88
+ optional :orientation, :enum, 4, "google.cloud.documentai.v1.Document.Page.Layout.Orientation"
89
+ end
90
+ add_enum "google.cloud.documentai.v1.Document.Page.Layout.Orientation" do
91
+ value :ORIENTATION_UNSPECIFIED, 0
92
+ value :PAGE_UP, 1
93
+ value :PAGE_RIGHT, 2
94
+ value :PAGE_DOWN, 3
95
+ value :PAGE_LEFT, 4
96
+ end
97
+ add_message "google.cloud.documentai.v1.Document.Page.Block" do
98
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
99
+ repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
100
+ optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
101
+ end
102
+ add_message "google.cloud.documentai.v1.Document.Page.Paragraph" do
103
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
104
+ repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
105
+ optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
106
+ end
107
+ add_message "google.cloud.documentai.v1.Document.Page.Line" do
108
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
109
+ repeated :detected_languages, :message, 2, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
110
+ optional :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
111
+ end
112
+ add_message "google.cloud.documentai.v1.Document.Page.Token" do
113
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
114
+ optional :detected_break, :message, 2, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak"
115
+ repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
116
+ optional :provenance, :message, 4, "google.cloud.documentai.v1.Document.Provenance"
117
+ end
118
+ add_message "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak" do
119
+ optional :type, :enum, 1, "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type"
120
+ end
121
+ add_enum "google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type" do
122
+ value :TYPE_UNSPECIFIED, 0
123
+ value :SPACE, 1
124
+ value :WIDE_SPACE, 2
125
+ value :HYPHEN, 3
126
+ end
127
+ add_message "google.cloud.documentai.v1.Document.Page.VisualElement" do
128
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
129
+ optional :type, :string, 2
130
+ repeated :detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
131
+ end
132
+ add_message "google.cloud.documentai.v1.Document.Page.Table" do
133
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
134
+ repeated :header_rows, :message, 2, "google.cloud.documentai.v1.Document.Page.Table.TableRow"
135
+ repeated :body_rows, :message, 3, "google.cloud.documentai.v1.Document.Page.Table.TableRow"
136
+ repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
137
+ end
138
+ add_message "google.cloud.documentai.v1.Document.Page.Table.TableRow" do
139
+ repeated :cells, :message, 1, "google.cloud.documentai.v1.Document.Page.Table.TableCell"
140
+ end
141
+ add_message "google.cloud.documentai.v1.Document.Page.Table.TableCell" do
142
+ optional :layout, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
143
+ optional :row_span, :int32, 2
144
+ optional :col_span, :int32, 3
145
+ repeated :detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
146
+ end
147
+ add_message "google.cloud.documentai.v1.Document.Page.FormField" do
148
+ optional :field_name, :message, 1, "google.cloud.documentai.v1.Document.Page.Layout"
149
+ optional :field_value, :message, 2, "google.cloud.documentai.v1.Document.Page.Layout"
150
+ repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
151
+ repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
152
+ optional :value_type, :string, 5
153
+ end
154
+ add_message "google.cloud.documentai.v1.Document.Page.DetectedLanguage" do
155
+ optional :language_code, :string, 1
156
+ optional :confidence, :float, 2
157
+ end
158
+ add_message "google.cloud.documentai.v1.Document.Entity" do
159
+ optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
160
+ optional :type, :string, 2
161
+ optional :mention_text, :string, 3
162
+ optional :mention_id, :string, 4
163
+ optional :confidence, :float, 5
164
+ optional :page_anchor, :message, 6, "google.cloud.documentai.v1.Document.PageAnchor"
165
+ optional :id, :string, 7
166
+ optional :normalized_value, :message, 9, "google.cloud.documentai.v1.Document.Entity.NormalizedValue"
167
+ repeated :properties, :message, 10, "google.cloud.documentai.v1.Document.Entity"
168
+ optional :provenance, :message, 11, "google.cloud.documentai.v1.Document.Provenance"
169
+ optional :redacted, :bool, 12
170
+ end
171
+ add_message "google.cloud.documentai.v1.Document.Entity.NormalizedValue" do
172
+ optional :text, :string, 1
173
+ oneof :structured_value do
174
+ optional :money_value, :message, 2, "google.type.Money"
175
+ optional :date_value, :message, 3, "google.type.Date"
176
+ optional :datetime_value, :message, 4, "google.type.DateTime"
177
+ optional :address_value, :message, 5, "google.type.PostalAddress"
178
+ optional :boolean_value, :bool, 6
179
+ end
180
+ end
181
+ add_message "google.cloud.documentai.v1.Document.EntityRelation" do
182
+ optional :subject_id, :string, 1
183
+ optional :object_id, :string, 2
184
+ optional :relation, :string, 3
185
+ end
186
+ add_message "google.cloud.documentai.v1.Document.TextAnchor" do
187
+ repeated :text_segments, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor.TextSegment"
188
+ optional :content, :string, 2
189
+ end
190
+ add_message "google.cloud.documentai.v1.Document.TextAnchor.TextSegment" do
191
+ optional :start_index, :int64, 1
192
+ optional :end_index, :int64, 2
193
+ end
194
+ add_message "google.cloud.documentai.v1.Document.PageAnchor" do
195
+ repeated :page_refs, :message, 1, "google.cloud.documentai.v1.Document.PageAnchor.PageRef"
196
+ end
197
+ add_message "google.cloud.documentai.v1.Document.PageAnchor.PageRef" do
198
+ optional :page, :int64, 1
199
+ optional :layout_type, :enum, 2, "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType"
200
+ optional :layout_id, :string, 3
201
+ optional :bounding_poly, :message, 4, "google.cloud.documentai.v1.BoundingPoly"
202
+ optional :confidence, :float, 5
203
+ end
204
+ add_enum "google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType" do
205
+ value :LAYOUT_TYPE_UNSPECIFIED, 0
206
+ value :BLOCK, 1
207
+ value :PARAGRAPH, 2
208
+ value :LINE, 3
209
+ value :TOKEN, 4
210
+ value :VISUAL_ELEMENT, 5
211
+ value :TABLE, 6
212
+ value :FORM_FIELD, 7
213
+ end
214
+ add_message "google.cloud.documentai.v1.Document.Provenance" do
215
+ optional :revision, :int32, 1
216
+ optional :id, :int32, 2
217
+ repeated :parents, :message, 3, "google.cloud.documentai.v1.Document.Provenance.Parent"
218
+ optional :type, :enum, 4, "google.cloud.documentai.v1.Document.Provenance.OperationType"
219
+ end
220
+ add_message "google.cloud.documentai.v1.Document.Provenance.Parent" do
221
+ optional :revision, :int32, 1
222
+ optional :id, :int32, 2
223
+ end
224
+ add_enum "google.cloud.documentai.v1.Document.Provenance.OperationType" do
225
+ value :OPERATION_TYPE_UNSPECIFIED, 0
226
+ value :ADD, 1
227
+ value :REMOVE, 2
228
+ value :REPLACE, 3
229
+ value :EVAL_REQUESTED, 4
230
+ value :EVAL_APPROVED, 5
231
+ value :EVAL_SKIPPED, 6
232
+ end
233
+ add_message "google.cloud.documentai.v1.Document.Revision" do
234
+ optional :id, :string, 1
235
+ repeated :parent, :int32, 2
236
+ optional :create_time, :message, 3, "google.protobuf.Timestamp"
237
+ optional :human_review, :message, 6, "google.cloud.documentai.v1.Document.Revision.HumanReview"
238
+ oneof :source do
239
+ optional :agent, :string, 4
240
+ optional :processor, :string, 5
241
+ end
242
+ end
243
+ add_message "google.cloud.documentai.v1.Document.Revision.HumanReview" do
244
+ optional :state, :string, 1
245
+ optional :state_message, :string, 2
246
+ end
247
+ add_message "google.cloud.documentai.v1.Document.TextChange" do
248
+ optional :text_anchor, :message, 1, "google.cloud.documentai.v1.Document.TextAnchor"
249
+ optional :changed_text, :string, 2
250
+ repeated :provenance, :message, 3, "google.cloud.documentai.v1.Document.Provenance"
251
+ end
252
+ end
253
+ end
254
+
255
+ module Google
256
+ module Cloud
257
+ module DocumentAI
258
+ module V1
259
+ Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document").msgclass
260
+ Document::ShardInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.ShardInfo").msgclass
261
+ Document::Style = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Style").msgclass
262
+ Document::Style::FontSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Style.FontSize").msgclass
263
+ Document::Page = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page").msgclass
264
+ Document::Page::Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Dimension").msgclass
265
+ Document::Page::Image = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Image").msgclass
266
+ Document::Page::Matrix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Matrix").msgclass
267
+ Document::Page::Layout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Layout").msgclass
268
+ Document::Page::Layout::Orientation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Layout.Orientation").enummodule
269
+ Document::Page::Block = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Block").msgclass
270
+ Document::Page::Paragraph = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Paragraph").msgclass
271
+ Document::Page::Line = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Line").msgclass
272
+ Document::Page::Token = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Token").msgclass
273
+ Document::Page::Token::DetectedBreak = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Token.DetectedBreak").msgclass
274
+ Document::Page::Token::DetectedBreak::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type").enummodule
275
+ Document::Page::VisualElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.VisualElement").msgclass
276
+ Document::Page::Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Table").msgclass
277
+ Document::Page::Table::TableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Table.TableRow").msgclass
278
+ Document::Page::Table::TableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.Table.TableCell").msgclass
279
+ Document::Page::FormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.FormField").msgclass
280
+ Document::Page::DetectedLanguage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Page.DetectedLanguage").msgclass
281
+ Document::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Entity").msgclass
282
+ Document::Entity::NormalizedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Entity.NormalizedValue").msgclass
283
+ Document::EntityRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.EntityRelation").msgclass
284
+ Document::TextAnchor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.TextAnchor").msgclass
285
+ Document::TextAnchor::TextSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.TextAnchor.TextSegment").msgclass
286
+ Document::PageAnchor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.PageAnchor").msgclass
287
+ Document::PageAnchor::PageRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.PageAnchor.PageRef").msgclass
288
+ Document::PageAnchor::PageRef::LayoutType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType").enummodule
289
+ Document::Provenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Provenance").msgclass
290
+ Document::Provenance::Parent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Provenance.Parent").msgclass
291
+ Document::Provenance::OperationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Provenance.OperationType").enummodule
292
+ Document::Revision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision").msgclass
293
+ Document::Revision::HumanReview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.Revision.HumanReview").msgclass
294
+ Document::TextChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.Document.TextChange").msgclass
295
+ end
296
+ end
297
+ end
298
+ end