google-cloud-document_ai-v1 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e135a1c1d1705ed69b0cda0ee44b859ce86d67facf10cb46020c7a012af68661
4
- data.tar.gz: 9d70cee5408d9e65ffc99f3e1c172f5b2c7fcb55797f2ed581441a95e3ed3c7c
3
+ metadata.gz: c32df52398221b6ae175cff910adafecea7d2fbdffa6f03d2efb302358c8ada0
4
+ data.tar.gz: 32c0f7e181994724911ec5598781b29e3966e081d6a32a1a32486d51b2d0444d
5
5
  SHA512:
6
- metadata.gz: 7e9ec87315d2863124668d05c73d639a7e9d46bec117e000940add79d2cacee62232b5f0b6d3a260f40f1e9b41bd173832591d45faaa2d611a269a62e0eaf94b
7
- data.tar.gz: bae847834df1ed702d5946ee13ad02638db8aba3418d59cd8058e099c15762ac866d9b78a338888b2403846e43bd485d2f2e6d3aafa37671e2e8138e5ba6fc3a
6
+ metadata.gz: ee0d029b19162c62ba490aa93212e405432a4e37d5abb2cdd300ba5c1e73097ea8f82ad41a6abd03d22a6602a5ae72ba5801f71777aaf7a46c1ec5f69d55adba
7
+ data.tar.gz: a979bdec1b92966f999ff77b1a14ad7f9e3054d6db3fbc19e8b4af66ab5f997565515f43b6005e3a19b7cec2ae3e8e89a37f64bdf9131e100b94cb3b50165707
@@ -351,7 +351,7 @@ module Google
351
351
  # @param options [::Gapic::CallOptions, ::Hash]
352
352
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
353
353
  #
354
- # @overload review_document(inline_document: nil, human_review_config: nil)
354
+ # @overload review_document(inline_document: nil, human_review_config: nil, enable_schema_validation: nil, priority: nil)
355
355
  # Pass arguments to `review_document` via keyword arguments. Note that at
356
356
  # least one keyword argument is required. To specify no parameters, or to keep all
357
357
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -361,6 +361,10 @@ module Google
361
361
  # @param human_review_config [::String]
362
362
  # Required. The resource name of the HumanReviewConfig that the document will be
363
363
  # reviewed with.
364
+ # @param enable_schema_validation [::Boolean]
365
+ # Whether the validation should be performed on the ad-hoc review request.
366
+ # @param priority [::Google::Cloud::DocumentAI::V1::ReviewDocumentRequest::Priority]
367
+ # The priority of the human review task.
364
368
  #
365
369
  # @yield [response, operation] Access the result along with the RPC operation
366
370
  # @yieldparam response [::Gapic::Operation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -63,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
63
  repeated :visual_elements, :message, 9, "google.cloud.documentai.v1.Document.Page.VisualElement"
64
64
  repeated :tables, :message, 10, "google.cloud.documentai.v1.Document.Page.Table"
65
65
  repeated :form_fields, :message, 11, "google.cloud.documentai.v1.Document.Page.FormField"
66
+ optional :provenance, :message, 16, "google.cloud.documentai.v1.Document.Provenance"
66
67
  end
67
68
  add_message "google.cloud.documentai.v1.Document.Page.Dimension" do
68
69
  optional :width, :float, 1
@@ -150,6 +151,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
150
151
  repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
151
152
  repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1.Document.Page.DetectedLanguage"
152
153
  optional :value_type, :string, 5
154
+ optional :provenance, :message, 8, "google.cloud.documentai.v1.Document.Provenance"
153
155
  end
154
156
  add_message "google.cloud.documentai.v1.Document.Page.DetectedLanguage" do
155
157
  optional :language_code, :string, 1
@@ -219,6 +221,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
219
221
  end
220
222
  add_message "google.cloud.documentai.v1.Document.Provenance.Parent" do
221
223
  optional :revision, :int32, 1
224
+ optional :index, :int32, 3
222
225
  optional :id, :int32, 2
223
226
  end
224
227
  add_enum "google.cloud.documentai.v1.Document.Provenance.OperationType" do
@@ -72,10 +72,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
72
  end
73
73
  add_message "google.cloud.documentai.v1.ReviewDocumentRequest" do
74
74
  optional :human_review_config, :string, 1
75
+ optional :enable_schema_validation, :bool, 3
76
+ optional :priority, :enum, 5, "google.cloud.documentai.v1.ReviewDocumentRequest.Priority"
75
77
  oneof :source do
76
78
  optional :inline_document, :message, 4, "google.cloud.documentai.v1.Document"
77
79
  end
78
80
  end
81
+ add_enum "google.cloud.documentai.v1.ReviewDocumentRequest.Priority" do
82
+ value :DEFAULT, 0
83
+ value :URGENT, 1
84
+ end
79
85
  add_message "google.cloud.documentai.v1.ReviewDocumentResponse" do
80
86
  optional :gcs_destination, :string, 1
81
87
  end
@@ -99,6 +105,7 @@ module Google
99
105
  BatchProcessMetadata::IndividualProcessStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus").msgclass
100
106
  BatchProcessMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.BatchProcessMetadata.State").enummodule
101
107
  ReviewDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ReviewDocumentRequest").msgclass
108
+ ReviewDocumentRequest::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ReviewDocumentRequest.Priority").enummodule
102
109
  ReviewDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ReviewDocumentResponse").msgclass
103
110
  ReviewDocumentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ReviewDocumentOperationMetadata").msgclass
104
111
  end
@@ -190,6 +190,9 @@ module Google
190
190
  # @!attribute [rw] form_fields
191
191
  # @return [::Array<::Google::Cloud::DocumentAI::V1::Document::Page::FormField>]
192
192
  # A list of visually detected form fields on the page.
193
+ # @!attribute [rw] provenance
194
+ # @return [::Google::Cloud::DocumentAI::V1::Document::Provenance]
195
+ # The history of this page.
193
196
  class Page
194
197
  include ::Google::Protobuf::MessageExts
195
198
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -461,6 +464,9 @@ module Google
461
464
  # - blank (this indicates the field_value is normal text)
462
465
  # - "unfilled_checkbox"
463
466
  # - "filled_checkbox"
467
+ # @!attribute [rw] provenance
468
+ # @return [::Google::Cloud::DocumentAI::V1::Document::Provenance]
469
+ # The history of this annotation.
464
470
  class FormField
465
471
  include ::Google::Protobuf::MessageExts
466
472
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -621,6 +627,8 @@ module Google
621
627
  # @return [::Integer]
622
628
  # Required. Index into the {::Google::Cloud::DocumentAI::V1::Document#pages Document.pages} element, for example using
623
629
  # [Document.pages][page_refs.page] to locate the related page element.
630
+ # This field is skipped when its value is the default 0. See
631
+ # https://developers.google.com/protocol-buffers/docs/proto3#json.
624
632
  # @!attribute [rw] layout_type
625
633
  # @return [::Google::Cloud::DocumentAI::V1::Document::PageAnchor::PageRef::LayoutType]
626
634
  # Optional. The type of the layout element that is being referenced if any.
@@ -691,6 +699,10 @@ module Google
691
699
  # @!attribute [rw] revision
692
700
  # @return [::Integer]
693
701
  # The index of the [Document.revisions] identifying the parent revision.
702
+ # @!attribute [rw] index
703
+ # @return [::Integer]
704
+ # The index of the parent revisions corresponding collection of items
705
+ # (eg. list of entities, properties within entities, etc.)
694
706
  # @!attribute [rw] id
695
707
  # @return [::Integer]
696
708
  # The id of the parent provenance.
@@ -193,9 +193,25 @@ module Google
193
193
  # @return [::String]
194
194
  # Required. The resource name of the HumanReviewConfig that the document will be
195
195
  # reviewed with.
196
+ # @!attribute [rw] enable_schema_validation
197
+ # @return [::Boolean]
198
+ # Whether the validation should be performed on the ad-hoc review request.
199
+ # @!attribute [rw] priority
200
+ # @return [::Google::Cloud::DocumentAI::V1::ReviewDocumentRequest::Priority]
201
+ # The priority of the human review task.
196
202
  class ReviewDocumentRequest
197
203
  include ::Google::Protobuf::MessageExts
198
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # The priority level of the human review task.
207
+ module Priority
208
+ # The default priority level.
209
+ DEFAULT = 0
210
+
211
+ # The urgent priority level. The labeling manager should allocate labeler
212
+ # resource to the urgent task queue to respect this priority level.
213
+ URGENT = 1
214
+ end
199
215
  end
200
216
 
201
217
  # Response message for review document method.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-document_ai-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common