google-cloud-document_ai-v1beta3 0.2.0 → 0.7.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.
@@ -560,7 +560,7 @@ module Google
560
560
  config_attr :scope, nil, ::String, ::Array, nil
561
561
  config_attr :lib_name, nil, ::String, nil
562
562
  config_attr :lib_version, nil, ::String, nil
563
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
563
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
564
564
  config_attr :interceptors, nil, ::Array, nil
565
565
  config_attr :timeout, nil, ::Numeric, nil
566
566
  config_attr :metadata, nil, ::Hash, nil
@@ -581,7 +581,7 @@ module Google
581
581
  def rpcs
582
582
  @rpcs ||= begin
583
583
  parent_rpcs = nil
584
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
584
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
585
585
  Rpcs.new parent_rpcs
586
586
  end
587
587
  end
@@ -632,15 +632,15 @@ module Google
632
632
 
633
633
  # @private
634
634
  def initialize parent_rpcs = nil
635
- list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
635
+ list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
636
636
  @list_operations = ::Gapic::Config::Method.new list_operations_config
637
- get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
637
+ get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
638
638
  @get_operation = ::Gapic::Config::Method.new get_operation_config
639
- delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
639
+ delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
640
640
  @delete_operation = ::Gapic::Config::Method.new delete_operation_config
641
- cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
641
+ cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
642
642
  @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
643
- wait_operation_config = parent_rpcs&.wait_operation if parent_rpcs&.respond_to? :wait_operation
643
+ wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
644
644
  @wait_operation = ::Gapic::Config::Method.new wait_operation_config
645
645
 
646
646
  yield self if block_given?
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.2.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/documentai/v1beta3/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/v1beta3/document_io.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.documentai.v1beta3.RawDocument" do
10
+ optional :content, :bytes, 1
11
+ optional :mime_type, :string, 2
12
+ end
13
+ add_message "google.cloud.documentai.v1beta3.GcsDocument" do
14
+ optional :gcs_uri, :string, 1
15
+ optional :mime_type, :string, 2
16
+ end
17
+ add_message "google.cloud.documentai.v1beta3.GcsDocuments" do
18
+ repeated :documents, :message, 1, "google.cloud.documentai.v1beta3.GcsDocument"
19
+ end
20
+ add_message "google.cloud.documentai.v1beta3.GcsPrefix" do
21
+ optional :gcs_uri_prefix, :string, 1
22
+ end
23
+ add_message "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" do
24
+ oneof :source do
25
+ optional :gcs_prefix, :message, 1, "google.cloud.documentai.v1beta3.GcsPrefix"
26
+ optional :gcs_documents, :message, 2, "google.cloud.documentai.v1beta3.GcsDocuments"
27
+ end
28
+ end
29
+ add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig" do
30
+ oneof :destination do
31
+ optional :gcs_output_config, :message, 1, "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig"
32
+ end
33
+ end
34
+ add_message "google.cloud.documentai.v1beta3.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 V1beta3
44
+ RawDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.RawDocument").msgclass
45
+ GcsDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GcsDocument").msgclass
46
+ GcsDocuments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GcsDocuments").msgclass
47
+ GcsPrefix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GcsPrefix").msgclass
48
+ BatchDocumentsInputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDocumentsInputConfig").msgclass
49
+ DocumentOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig").msgclass
50
+ DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -22,7 +22,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  repeated :pages, :message, 6, "google.cloud.documentai.v1beta3.Document.Page"
23
23
  repeated :entities, :message, 7, "google.cloud.documentai.v1beta3.Document.Entity"
24
24
  repeated :entity_relations, :message, 8, "google.cloud.documentai.v1beta3.Document.EntityRelation"
25
- repeated :translations, :message, 12, "google.cloud.documentai.v1beta3.Document.Translation"
26
25
  repeated :text_changes, :message, 14, "google.cloud.documentai.v1beta3.Document.TextChange"
27
26
  optional :shard_info, :message, 9, "google.cloud.documentai.v1beta3.Document.ShardInfo"
28
27
  optional :error, :message, 10, "google.rpc.Status"
@@ -176,6 +175,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
176
175
  optional :date_value, :message, 3, "google.type.Date"
177
176
  optional :datetime_value, :message, 4, "google.type.DateTime"
178
177
  optional :address_value, :message, 5, "google.type.PostalAddress"
178
+ optional :boolean_value, :bool, 6
179
179
  end
180
180
  end
181
181
  add_message "google.cloud.documentai.v1beta3.Document.EntityRelation" do
@@ -183,12 +183,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
183
183
  optional :object_id, :string, 2
184
184
  optional :relation, :string, 3
185
185
  end
186
- add_message "google.cloud.documentai.v1beta3.Document.Translation" do
187
- optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor"
188
- optional :language_code, :string, 2
189
- optional :translated_text, :string, 3
190
- repeated :provenance, :message, 4, "google.cloud.documentai.v1beta3.Document.Provenance"
191
- end
192
186
  add_message "google.cloud.documentai.v1beta3.Document.TextAnchor" do
193
187
  repeated :text_segments, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment"
194
188
  optional :content, :string, 2
@@ -233,6 +227,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
233
227
  value :REPLACE, 3
234
228
  value :EVAL_REQUESTED, 4
235
229
  value :EVAL_APPROVED, 5
230
+ value :EVAL_SKIPPED, 6
236
231
  end
237
232
  add_message "google.cloud.documentai.v1beta3.Document.Revision" do
238
233
  optional :id, :string, 1
@@ -285,7 +280,6 @@ module Google
285
280
  Document::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity").msgclass
286
281
  Document::Entity::NormalizedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue").msgclass
287
282
  Document::EntityRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.EntityRelation").msgclass
288
- Document::Translation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Translation").msgclass
289
283
  Document::TextAnchor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.TextAnchor").msgclass
290
284
  Document::TextAnchor::TextSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment").msgclass
291
285
  Document::PageAnchor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.PageAnchor").msgclass
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/documentai/v1beta3/document_pb'
11
+ require 'google/cloud/documentai/v1beta3/document_io_pb'
11
12
  require 'google/longrunning/operations_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
@@ -18,15 +19,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
19
  optional :name, :string, 1
19
20
  optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
20
21
  optional :skip_human_review, :bool, 3
22
+ oneof :source do
23
+ optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
24
+ optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument"
25
+ end
26
+ end
27
+ add_message "google.cloud.documentai.v1beta3.HumanReviewStatus" do
28
+ optional :state, :enum, 1, "google.cloud.documentai.v1beta3.HumanReviewStatus.State"
29
+ optional :state_message, :string, 2
30
+ optional :human_review_operation, :string, 3
31
+ end
32
+ add_enum "google.cloud.documentai.v1beta3.HumanReviewStatus.State" do
33
+ value :STATE_UNSPECIFIED, 0
34
+ value :SKIPPED, 1
35
+ value :VALIDATION_PASSED, 2
36
+ value :IN_PROGRESS, 3
37
+ value :ERROR, 4
21
38
  end
22
39
  add_message "google.cloud.documentai.v1beta3.ProcessResponse" do
23
40
  optional :document, :message, 1, "google.cloud.documentai.v1beta3.Document"
24
41
  optional :human_review_operation, :string, 2
42
+ optional :human_review_status, :message, 3, "google.cloud.documentai.v1beta3.HumanReviewStatus"
25
43
  end
26
44
  add_message "google.cloud.documentai.v1beta3.BatchProcessRequest" do
27
45
  optional :name, :string, 1
28
46
  repeated :input_configs, :message, 2, "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig"
29
47
  optional :output_config, :message, 3, "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig"
48
+ optional :input_documents, :message, 5, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig"
49
+ optional :document_output_config, :message, 6, "google.cloud.documentai.v1beta3.DocumentOutputConfig"
50
+ optional :skip_human_review, :bool, 4
30
51
  end
31
52
  add_message "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig" do
32
53
  optional :gcs_source, :string, 1
@@ -49,6 +70,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
70
  optional :status, :message, 2, "google.rpc.Status"
50
71
  optional :output_gcs_destination, :string, 3
51
72
  optional :human_review_operation, :string, 4
73
+ optional :human_review_status, :message, 5, "google.cloud.documentai.v1beta3.HumanReviewStatus"
52
74
  end
53
75
  add_enum "google.cloud.documentai.v1beta3.BatchProcessMetadata.State" do
54
76
  value :STATE_UNSPECIFIED, 0
@@ -62,6 +84,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
84
  add_message "google.cloud.documentai.v1beta3.ReviewDocumentRequest" do
63
85
  optional :human_review_config, :string, 1
64
86
  optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
87
+ oneof :source do
88
+ optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
89
+ end
65
90
  end
66
91
  add_message "google.cloud.documentai.v1beta3.ReviewDocumentResponse" do
67
92
  optional :gcs_destination, :string, 1
@@ -71,6 +96,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
71
96
  optional :state_message, :string, 2
72
97
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
73
98
  optional :update_time, :message, 4, "google.protobuf.Timestamp"
99
+ optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
74
100
  end
75
101
  add_enum "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State" do
76
102
  value :STATE_UNSPECIFIED, 0
@@ -80,6 +106,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
80
106
  value :FAILED, 4
81
107
  value :CANCELLED, 5
82
108
  end
109
+ add_message "google.cloud.documentai.v1beta3.CommonOperationMetadata" do
110
+ optional :state, :enum, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata.State"
111
+ optional :state_message, :string, 2
112
+ optional :create_time, :message, 3, "google.protobuf.Timestamp"
113
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
114
+ end
115
+ add_enum "google.cloud.documentai.v1beta3.CommonOperationMetadata.State" do
116
+ value :STATE_UNSPECIFIED, 0
117
+ value :RUNNING, 1
118
+ value :CANCELLING, 2
119
+ value :SUCCEEDED, 3
120
+ value :FAILED, 4
121
+ value :CANCELLED, 5
122
+ end
83
123
  end
84
124
  end
85
125
 
@@ -88,6 +128,8 @@ module Google
88
128
  module DocumentAI
89
129
  module V1beta3
90
130
  ProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessRequest").msgclass
131
+ HumanReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.HumanReviewStatus").msgclass
132
+ HumanReviewStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.HumanReviewStatus.State").enummodule
91
133
  ProcessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessResponse").msgclass
92
134
  BatchProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchProcessRequest").msgclass
93
135
  BatchProcessRequest::BatchInputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig").msgclass
@@ -100,6 +142,8 @@ module Google
100
142
  ReviewDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentResponse").msgclass
101
143
  ReviewDocumentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata").msgclass
102
144
  ReviewDocumentOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State").enummodule
145
+ CommonOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.CommonOperationMetadata").msgclass
146
+ CommonOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.CommonOperationMetadata.State").enummodule
103
147
  end
104
148
  end
105
149
  end
@@ -28,14 +28,14 @@ module Google
28
28
  # optimize for quality.
29
29
  # @!attribute [rw] uri
30
30
  # @return [::String]
31
- # Currently supports Google Cloud Storage URI of the form
31
+ # Optional. Currently supports Google Cloud Storage URI of the form
32
32
  # `gs://bucket_name/object_name`. Object versioning is not supported.
33
33
  # See [Google Cloud Storage Request
34
34
  # URIs](https://cloud.google.com/storage/docs/reference-uris) for more
35
35
  # info.
36
36
  # @!attribute [rw] content
37
37
  # @return [::String]
38
- # Inline document content, represented as a stream of bytes.
38
+ # Optional. Inline document content, represented as a stream of bytes.
39
39
  # Note: As with all `bytes` fields, protobuffers use a pure binary
40
40
  # representation, whereas JSON representations use base64.
41
41
  # @!attribute [rw] mime_type
@@ -45,7 +45,7 @@ module Google
45
45
  # https://www.iana.org/assignments/media-types/media-types.xhtml.
46
46
  # @!attribute [rw] text
47
47
  # @return [::String]
48
- # UTF-8 encoded text in reading order from the document.
48
+ # Optional. UTF-8 encoded text in reading order from the document.
49
49
  # @!attribute [rw] text_styles
50
50
  # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Style>]
51
51
  # Styles for the {::Google::Cloud::DocumentAI::V1beta3::Document#text Document.text}.
@@ -59,10 +59,6 @@ module Google
59
59
  # @!attribute [rw] entity_relations
60
60
  # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::EntityRelation>]
61
61
  # Relationship among {::Google::Cloud::DocumentAI::V1beta3::Document#entities Document.entities}.
62
- # @!attribute [rw] translations
63
- # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Translation>]
64
- # A list of translations on {::Google::Cloud::DocumentAI::V1beta3::Document#text Document.text}. For document shards,
65
- # translations in this list may cross shard boundaries.
66
62
  # @!attribute [rw] text_changes
67
63
  # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::TextChange>]
68
64
  # A list of text corrections made to [Document.text]. This is usually
@@ -489,17 +485,17 @@ module Google
489
485
  # organization, or location.
490
486
  # @!attribute [rw] text_anchor
491
487
  # @return [::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor]
492
- # Provenance of the entity.
488
+ # Optional. Provenance of the entity.
493
489
  # Text anchor indexing into the {::Google::Cloud::DocumentAI::V1beta3::Document#text Document.text}.
494
490
  # @!attribute [rw] type
495
491
  # @return [::String]
496
492
  # Entity type from a schema e.g. `Address`.
497
493
  # @!attribute [rw] mention_text
498
494
  # @return [::String]
499
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
495
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
500
496
  # @!attribute [rw] mention_id
501
497
  # @return [::String]
502
- # Deprecated. Use `id` field instead.
498
+ # Optional. Deprecated. Use `id` field instead.
503
499
  # @!attribute [rw] confidence
504
500
  # @return [::Float]
505
501
  # Optional. Confidence of detected Schema entity. Range [0, 1].
@@ -509,7 +505,7 @@ module Google
509
505
  # page where it was found.
510
506
  # @!attribute [rw] id
511
507
  # @return [::String]
512
- # Canonical id. This will be a unique value in the entity list
508
+ # Optional. Canonical id. This will be a unique value in the entity list
513
509
  # for this document.
514
510
  # @!attribute [rw] normalized_value
515
511
  # @return [::Google::Cloud::DocumentAI::V1beta3::Document::Entity::NormalizedValue]
@@ -535,27 +531,23 @@ module Google
535
531
  # @!attribute [rw] money_value
536
532
  # @return [::Google::Type::Money]
537
533
  # Money value. See also:
538
- #
539
- # https:
540
- # github.com/googleapis/googleapis/blob/master/google/type/money.proto
534
+ # https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
541
535
  # @!attribute [rw] date_value
542
536
  # @return [::Google::Type::Date]
543
537
  # Date value. Includes year, month, day. See also:
544
- #
545
- # https:
546
- # github.com/googleapis/googleapis/blob/master/google/type/date.proto
538
+ # https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
547
539
  # @!attribute [rw] datetime_value
548
540
  # @return [::Google::Type::DateTime]
549
541
  # DateTime value. Includes date, time, and timezone. See also:
550
- #
551
- # https:
552
- # github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
542
+ # https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
553
543
  # @!attribute [rw] address_value
554
544
  # @return [::Google::Type::PostalAddress]
555
545
  # Postal address. See also:
556
- #
557
- # https:
558
- # github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
546
+ # https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
547
+ # @!attribute [rw] boolean_value
548
+ # @return [::Boolean]
549
+ # Boolean value. Can be used for entities with binary values, or for
550
+ # checkboxes.
559
551
  # @!attribute [rw] text
560
552
  # @return [::String]
561
553
  # Required. Normalized entity value stored as a string. This field is populated for
@@ -586,30 +578,6 @@ module Google
586
578
  extend ::Google::Protobuf::MessageExts::ClassMethods
587
579
  end
588
580
 
589
- # A translation of the text segment.
590
- # @!attribute [rw] text_anchor
591
- # @return [::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor]
592
- # Provenance of the translation.
593
- # Text anchor indexing into the {::Google::Cloud::DocumentAI::V1beta3::Document#text Document.text}. There can only be a
594
- # single `TextAnchor.text_segments` element. If the start and
595
- # end index of the text segment are the same, the text change is inserted
596
- # before that index.
597
- # @!attribute [rw] language_code
598
- # @return [::String]
599
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
600
- # information, see
601
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
602
- # @!attribute [rw] translated_text
603
- # @return [::String]
604
- # Text translated into the target language.
605
- # @!attribute [rw] provenance
606
- # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Provenance>]
607
- # The history of this annotation.
608
- class Translation
609
- include ::Google::Protobuf::MessageExts
610
- extend ::Google::Protobuf::MessageExts::ClassMethods
611
- end
612
-
613
581
  # Text reference indexing into the {::Google::Cloud::DocumentAI::V1beta3::Document#text Document.text}.
614
582
  # @!attribute [rw] text_segments
615
583
  # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor::TextSegment>]
@@ -651,7 +619,8 @@ module Google
651
619
  # Represents a weak reference to a page element within a document.
652
620
  # @!attribute [rw] page
653
621
  # @return [::Integer]
654
- # Required. Index into the {::Google::Cloud::DocumentAI::V1beta3::Document#pages Document.pages} element
622
+ # Required. Index into the {::Google::Cloud::DocumentAI::V1beta3::Document#pages Document.pages} element, for example using
623
+ # [Document.pages][page_refs.page] to locate the related page element.
655
624
  # @!attribute [rw] layout_type
656
625
  # @return [::Google::Cloud::DocumentAI::V1beta3::Document::PageAnchor::PageRef::LayoutType]
657
626
  # Optional. The type of the layout element that is being referenced if any.
@@ -744,9 +713,12 @@ module Google
744
713
  # Element is requested for human review.
745
714
  EVAL_REQUESTED = 4
746
715
 
747
- # Element is review and approved at human review, confidence will be set
748
- # to 1.0
716
+ # Element is reviewed and approved at human review, confidence will be
717
+ # set to 1.0.
749
718
  EVAL_APPROVED = 5
719
+
720
+ # Element is skipped in the validation process.
721
+ EVAL_SKIPPED = 6
750
722
  end
751
723
  end
752
724
 
@@ -0,0 +1,100 @@
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 V1beta3
24
+ # Payload message of raw document content (bytes).
25
+ # @!attribute [rw] content
26
+ # @return [::String]
27
+ # Inline document content.
28
+ # @!attribute [rw] mime_type
29
+ # @return [::String]
30
+ # An IANA MIME type (RFC6838) indicating the nature and format of the
31
+ # [content].
32
+ class RawDocument
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
+ end
36
+
37
+ # Specifies a document stored on Cloud Storage.
38
+ # @!attribute [rw] gcs_uri
39
+ # @return [::String]
40
+ # The Cloud Storage object uri.
41
+ # @!attribute [rw] mime_type
42
+ # @return [::String]
43
+ # An IANA MIME type (RFC6838) of the content.
44
+ class GcsDocument
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
49
+ # Specifies a set of documents on Cloud Storage.
50
+ # @!attribute [rw] documents
51
+ # @return [::Array<::Google::Cloud::DocumentAI::V1beta3::GcsDocument>]
52
+ # The list of documents.
53
+ class GcsDocuments
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # Specifies all documents on Cloud Storage with a common prefix.
59
+ # @!attribute [rw] gcs_uri_prefix
60
+ # @return [::String]
61
+ # The URI prefix.
62
+ class GcsPrefix
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The common config to specify a set of documents used as input.
68
+ # @!attribute [rw] gcs_prefix
69
+ # @return [::Google::Cloud::DocumentAI::V1beta3::GcsPrefix]
70
+ # The set of documents that match the specified Cloud Storage [gcs_prefix].
71
+ # @!attribute [rw] gcs_documents
72
+ # @return [::Google::Cloud::DocumentAI::V1beta3::GcsDocuments]
73
+ # The set of documents individually specified on Cloud Storage.
74
+ class BatchDocumentsInputConfig
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+
79
+ # Config that controls the output of documents. All documents will be written
80
+ # as a JSON file.
81
+ # @!attribute [rw] gcs_output_config
82
+ # @return [::Google::Cloud::DocumentAI::V1beta3::DocumentOutputConfig::GcsOutputConfig]
83
+ # Output config to write the results to Cloud Storage.
84
+ class DocumentOutputConfig
85
+ include ::Google::Protobuf::MessageExts
86
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
+
88
+ # The configuration used when outputting documents.
89
+ # @!attribute [rw] gcs_uri
90
+ # @return [::String]
91
+ # The Cloud Storage uri (a directory) of the output.
92
+ class GcsOutputConfig
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end