google-cloud-document_ai-v1 1.3.0 → 1.4.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +17 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +7 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +17 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +7 -0
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/proto_docs/google/cloud/documentai/v1/document.rb +28 -0
- data/proto_docs/google/cloud/documentai/v1/document_io.rb +4 -0
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +16 -0
- data/proto_docs/google/cloud/documentai/v1/processor.rb +4 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- data/proto_docs/google/type/datetime.rb +4 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec3f0db95cad200259cee64500d17614e7ae2a8b091e95f8d422e2152a4fee1
|
4
|
+
data.tar.gz: c6c7c3c1e246cc658126ef4422251598a6967b8b532e4d7bc4f372b84aaa6290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66f0d804bd07b34a6253e99352c65de2e8fbc0a5774c6c512fb04054f5047ad051385776d00542b23babf2cfbda5064d7997a8fc376999593c2caff6f0188004
|
7
|
+
data.tar.gz: 5efbb26b23bbf79a1c43c3e37b248049f3cb2f644c79b8150851b8c427521abfef9d195f7753cd42df6118213e35f49307d651cec2e12a42816b799f4f1bf89a
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
86
86
|
|
87
87
|
## Supported Ruby Versions
|
88
88
|
|
89
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
90
90
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -251,10 +251,16 @@ module Google
|
|
251
251
|
#
|
252
252
|
# @param inline_document [::Google::Cloud::DocumentAI::V1::Document, ::Hash]
|
253
253
|
# An inline document proto.
|
254
|
+
#
|
255
|
+
# Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
254
256
|
# @param raw_document [::Google::Cloud::DocumentAI::V1::RawDocument, ::Hash]
|
255
257
|
# A raw document content (bytes).
|
258
|
+
#
|
259
|
+
# Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
256
260
|
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
257
261
|
# A raw document on Google Cloud Storage.
|
262
|
+
#
|
263
|
+
# Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
258
264
|
# @param name [::String]
|
259
265
|
# Required. The resource name of the
|
260
266
|
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
@@ -947,8 +953,12 @@ module Google
|
|
947
953
|
#
|
948
954
|
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
949
955
|
# Options to control Custom Document Extraction (CDE) Processor.
|
956
|
+
#
|
957
|
+
# Note: The following fields are mutually exclusive: `custom_document_extraction_options`, `foundation_model_tuning_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
950
958
|
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
|
951
959
|
# Options to control foundation model tuning of a processor.
|
960
|
+
#
|
961
|
+
# Note: The following fields are mutually exclusive: `foundation_model_tuning_options`, `custom_document_extraction_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
952
962
|
# @param parent [::String]
|
953
963
|
# Required. The parent (project, location and processor) to create the new
|
954
964
|
# version for. Format:
|
@@ -2431,6 +2441,13 @@ module Google
|
|
2431
2441
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2432
2442
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2433
2443
|
# * (`nil`) indicating no credentials
|
2444
|
+
#
|
2445
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
2446
|
+
# external source for authentication to Google Cloud, you must validate it before
|
2447
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
2448
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
2449
|
+
# For more information, refer to [Validate credential configurations from external
|
2450
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
2434
2451
|
# @return [::Object]
|
2435
2452
|
# @!attribute [rw] scope
|
2436
2453
|
# The OAuth scopes
|
@@ -640,6 +640,13 @@ module Google
|
|
640
640
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
641
641
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
642
642
|
# * (`nil`) indicating no credentials
|
643
|
+
#
|
644
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
645
|
+
# external source for authentication to Google Cloud, you must validate it before
|
646
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
647
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
648
|
+
# For more information, refer to [Validate credential configurations from external
|
649
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
643
650
|
# @return [::Object]
|
644
651
|
# @!attribute [rw] scope
|
645
652
|
# The OAuth scopes
|
@@ -245,10 +245,16 @@ module Google
|
|
245
245
|
#
|
246
246
|
# @param inline_document [::Google::Cloud::DocumentAI::V1::Document, ::Hash]
|
247
247
|
# An inline document proto.
|
248
|
+
#
|
249
|
+
# Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
248
250
|
# @param raw_document [::Google::Cloud::DocumentAI::V1::RawDocument, ::Hash]
|
249
251
|
# A raw document content (bytes).
|
252
|
+
#
|
253
|
+
# Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
250
254
|
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
251
255
|
# A raw document on Google Cloud Storage.
|
256
|
+
#
|
257
|
+
# Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
252
258
|
# @param name [::String]
|
253
259
|
# Required. The resource name of the
|
254
260
|
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
@@ -892,8 +898,12 @@ module Google
|
|
892
898
|
#
|
893
899
|
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
894
900
|
# Options to control Custom Document Extraction (CDE) Processor.
|
901
|
+
#
|
902
|
+
# Note: The following fields are mutually exclusive: `custom_document_extraction_options`, `foundation_model_tuning_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
895
903
|
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
|
896
904
|
# Options to control foundation model tuning of a processor.
|
905
|
+
#
|
906
|
+
# Note: The following fields are mutually exclusive: `foundation_model_tuning_options`, `custom_document_extraction_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
897
907
|
# @param parent [::String]
|
898
908
|
# Required. The parent (project, location and processor) to create the new
|
899
909
|
# version for. Format:
|
@@ -2269,6 +2279,13 @@ module Google
|
|
2269
2279
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2270
2280
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2271
2281
|
# * (`nil`) indicating no credentials
|
2282
|
+
#
|
2283
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
2284
|
+
# external source for authentication to Google Cloud, you must validate it before
|
2285
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
2286
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
2287
|
+
# For more information, refer to [Validate credential configurations from external
|
2288
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
2272
2289
|
# @return [::Object]
|
2273
2290
|
# @!attribute [rw] scope
|
2274
2291
|
# The OAuth scopes
|
@@ -502,6 +502,13 @@ module Google
|
|
502
502
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
503
503
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
504
504
|
# * (`nil`) indicating no credentials
|
505
|
+
#
|
506
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
507
|
+
# external source for authentication to Google Cloud, you must validate it before
|
508
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
509
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
510
|
+
# For more information, refer to [Validate credential configurations from external
|
511
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
505
512
|
# @return [::Object]
|
506
513
|
# @!attribute [rw] scope
|
507
514
|
# The OAuth scopes
|
@@ -31,11 +31,15 @@ module Google
|
|
31
31
|
# `gs://bucket_name/object_name`. Object versioning is not supported.
|
32
32
|
# For more information, refer to [Google Cloud Storage Request
|
33
33
|
# URIs](https://cloud.google.com/storage/docs/reference-uris).
|
34
|
+
#
|
35
|
+
# Note: The following fields are mutually exclusive: `uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
34
36
|
# @!attribute [rw] content
|
35
37
|
# @return [::String]
|
36
38
|
# Optional. Inline document content, represented as a stream of bytes.
|
37
39
|
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
38
40
|
# representation, whereas JSON representations use base64.
|
41
|
+
#
|
42
|
+
# Note: The following fields are mutually exclusive: `content`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
39
43
|
# @!attribute [rw] mime_type
|
40
44
|
# @return [::String]
|
41
45
|
# An IANA published [media type (MIME
|
@@ -726,28 +730,42 @@ module Google
|
|
726
730
|
# @return [::Google::Type::Money]
|
727
731
|
# Money value. See also:
|
728
732
|
# https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
|
733
|
+
#
|
734
|
+
# Note: The following fields are mutually exclusive: `money_value`, `date_value`, `datetime_value`, `address_value`, `boolean_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
729
735
|
# @!attribute [rw] date_value
|
730
736
|
# @return [::Google::Type::Date]
|
731
737
|
# Date value. Includes year, month, day. See also:
|
732
738
|
# https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
|
739
|
+
#
|
740
|
+
# Note: The following fields are mutually exclusive: `date_value`, `money_value`, `datetime_value`, `address_value`, `boolean_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
733
741
|
# @!attribute [rw] datetime_value
|
734
742
|
# @return [::Google::Type::DateTime]
|
735
743
|
# DateTime value. Includes date, time, and timezone. See also:
|
736
744
|
# https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
|
745
|
+
#
|
746
|
+
# Note: The following fields are mutually exclusive: `datetime_value`, `money_value`, `date_value`, `address_value`, `boolean_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
737
747
|
# @!attribute [rw] address_value
|
738
748
|
# @return [::Google::Type::PostalAddress]
|
739
749
|
# Postal address. See also:
|
740
750
|
# https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
|
751
|
+
#
|
752
|
+
# Note: The following fields are mutually exclusive: `address_value`, `money_value`, `date_value`, `datetime_value`, `boolean_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
741
753
|
# @!attribute [rw] boolean_value
|
742
754
|
# @return [::Boolean]
|
743
755
|
# Boolean value. Can be used for entities with binary values, or for
|
744
756
|
# checkboxes.
|
757
|
+
#
|
758
|
+
# Note: The following fields are mutually exclusive: `boolean_value`, `money_value`, `date_value`, `datetime_value`, `address_value`, `integer_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
745
759
|
# @!attribute [rw] integer_value
|
746
760
|
# @return [::Integer]
|
747
761
|
# Integer value.
|
762
|
+
#
|
763
|
+
# Note: The following fields are mutually exclusive: `integer_value`, `money_value`, `date_value`, `datetime_value`, `address_value`, `boolean_value`, `float_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
748
764
|
# @!attribute [rw] float_value
|
749
765
|
# @return [::Float]
|
750
766
|
# Float value.
|
767
|
+
#
|
768
|
+
# Note: The following fields are mutually exclusive: `float_value`, `money_value`, `date_value`, `datetime_value`, `address_value`, `boolean_value`, `integer_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
751
769
|
# @!attribute [rw] text
|
752
770
|
# @return [::String]
|
753
771
|
# Optional. An optional field to store a normalized string.
|
@@ -982,10 +1000,14 @@ module Google
|
|
982
1000
|
# @return [::String]
|
983
1001
|
# If the change was made by a person specify the name or id of that
|
984
1002
|
# person.
|
1003
|
+
#
|
1004
|
+
# Note: The following fields are mutually exclusive: `agent`, `processor`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
985
1005
|
# @!attribute [rw] processor
|
986
1006
|
# @return [::String]
|
987
1007
|
# If the annotation was made by processor identify the processor by its
|
988
1008
|
# resource name.
|
1009
|
+
#
|
1010
|
+
# Note: The following fields are mutually exclusive: `processor`, `agent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
989
1011
|
# @!attribute [rw] id
|
990
1012
|
# @return [::String]
|
991
1013
|
# Id of the revision, internally generated by doc proto storage.
|
@@ -1061,12 +1083,18 @@ module Google
|
|
1061
1083
|
# @!attribute [rw] text_block
|
1062
1084
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock]
|
1063
1085
|
# Block consisting of text content.
|
1086
|
+
#
|
1087
|
+
# Note: The following fields are mutually exclusive: `text_block`, `table_block`, `list_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1064
1088
|
# @!attribute [rw] table_block
|
1065
1089
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock]
|
1066
1090
|
# Block consisting of table content/structure.
|
1091
|
+
#
|
1092
|
+
# Note: The following fields are mutually exclusive: `table_block`, `text_block`, `list_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1067
1093
|
# @!attribute [rw] list_block
|
1068
1094
|
# @return [::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock]
|
1069
1095
|
# Block consisting of list content/structure.
|
1096
|
+
#
|
1097
|
+
# Note: The following fields are mutually exclusive: `list_block`, `text_block`, `table_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1070
1098
|
# @!attribute [rw] block_id
|
1071
1099
|
# @return [::String]
|
1072
1100
|
# ID of the block.
|
@@ -75,9 +75,13 @@ module Google
|
|
75
75
|
# @!attribute [rw] gcs_prefix
|
76
76
|
# @return [::Google::Cloud::DocumentAI::V1::GcsPrefix]
|
77
77
|
# The set of documents that match the specified Cloud Storage `gcs_prefix`.
|
78
|
+
#
|
79
|
+
# Note: The following fields are mutually exclusive: `gcs_prefix`, `gcs_documents`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
78
80
|
# @!attribute [rw] gcs_documents
|
79
81
|
# @return [::Google::Cloud::DocumentAI::V1::GcsDocuments]
|
80
82
|
# The set of documents individually specified on Cloud Storage.
|
83
|
+
#
|
84
|
+
# Note: The following fields are mutually exclusive: `gcs_documents`, `gcs_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
81
85
|
class BatchDocumentsInputConfig
|
82
86
|
include ::Google::Protobuf::MessageExts
|
83
87
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,13 +25,19 @@ module Google
|
|
25
25
|
# @!attribute [rw] individual_page_selector
|
26
26
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessOptions::IndividualPageSelector]
|
27
27
|
# Which pages to process (1-indexed).
|
28
|
+
#
|
29
|
+
# Note: The following fields are mutually exclusive: `individual_page_selector`, `from_start`, `from_end`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
28
30
|
# @!attribute [rw] from_start
|
29
31
|
# @return [::Integer]
|
30
32
|
# Only process certain pages from the start. Process all if the document
|
31
33
|
# has fewer pages.
|
34
|
+
#
|
35
|
+
# Note: The following fields are mutually exclusive: `from_start`, `individual_page_selector`, `from_end`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
32
36
|
# @!attribute [rw] from_end
|
33
37
|
# @return [::Integer]
|
34
38
|
# Only process certain pages from the end, same as above.
|
39
|
+
#
|
40
|
+
# Note: The following fields are mutually exclusive: `from_end`, `individual_page_selector`, `from_start`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
35
41
|
# @!attribute [rw] ocr_config
|
36
42
|
# @return [::Google::Cloud::DocumentAI::V1::OcrConfig]
|
37
43
|
# Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
|
@@ -89,12 +95,18 @@ module Google
|
|
89
95
|
# @!attribute [rw] inline_document
|
90
96
|
# @return [::Google::Cloud::DocumentAI::V1::Document]
|
91
97
|
# An inline document proto.
|
98
|
+
#
|
99
|
+
# Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
92
100
|
# @!attribute [rw] raw_document
|
93
101
|
# @return [::Google::Cloud::DocumentAI::V1::RawDocument]
|
94
102
|
# A raw document content (bytes).
|
103
|
+
#
|
104
|
+
# Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
95
105
|
# @!attribute [rw] gcs_document
|
96
106
|
# @return [::Google::Cloud::DocumentAI::V1::GcsDocument]
|
97
107
|
# A raw document on Google Cloud Storage.
|
108
|
+
#
|
109
|
+
# Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
98
110
|
# @!attribute [rw] name
|
99
111
|
# @return [::String]
|
100
112
|
# Required. The resource name of the
|
@@ -716,9 +728,13 @@ module Google
|
|
716
728
|
# @!attribute [rw] custom_document_extraction_options
|
717
729
|
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions]
|
718
730
|
# Options to control Custom Document Extraction (CDE) Processor.
|
731
|
+
#
|
732
|
+
# Note: The following fields are mutually exclusive: `custom_document_extraction_options`, `foundation_model_tuning_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
719
733
|
# @!attribute [rw] foundation_model_tuning_options
|
720
734
|
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::FoundationModelTuningOptions]
|
721
735
|
# Options to control foundation model tuning of a processor.
|
736
|
+
#
|
737
|
+
# Note: The following fields are mutually exclusive: `foundation_model_tuning_options`, `custom_document_extraction_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
722
738
|
# @!attribute [rw] parent
|
723
739
|
# @return [::String]
|
724
740
|
# Required. The parent (project, location and processor) to create the new
|
@@ -90,9 +90,13 @@ module Google
|
|
90
90
|
# @!attribute [rw] foundation_gen_ai_model_info
|
91
91
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion::GenAiModelInfo::FoundationGenAiModelInfo]
|
92
92
|
# Information for a pretrained Google-managed foundation model.
|
93
|
+
#
|
94
|
+
# Note: The following fields are mutually exclusive: `foundation_gen_ai_model_info`, `custom_gen_ai_model_info`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
93
95
|
# @!attribute [rw] custom_gen_ai_model_info
|
94
96
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo]
|
95
97
|
# Information for a custom Generative AI model created by the user.
|
98
|
+
#
|
99
|
+
# Note: The following fields are mutually exclusive: `custom_gen_ai_model_info`, `foundation_gen_ai_model_info`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
96
100
|
class GenAiModelInfo
|
97
101
|
include ::Google::Protobuf::MessageExts
|
98
102
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -40,6 +40,8 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
47
|
# The normal, successful response of the operation. If the original
|
@@ -50,6 +52,8 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -75,9 +75,13 @@ module Google
|
|
75
75
|
# UTC offset. Must be whole seconds, between -18 hours and +18 hours.
|
76
76
|
# For example, a UTC offset of -4:00 would be represented as
|
77
77
|
# { seconds: -14400 }.
|
78
|
+
#
|
79
|
+
# Note: The following fields are mutually exclusive: `utc_offset`, `time_zone`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
78
80
|
# @!attribute [rw] time_zone
|
79
81
|
# @return [::Google::Type::TimeZone]
|
80
82
|
# Time zone.
|
83
|
+
#
|
84
|
+
# Note: The following fields are mutually exclusive: `time_zone`, `utc_offset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
81
85
|
class DateTime
|
82
86
|
include ::Google::Protobuf::MessageExts
|
83
87
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -135,7 +134,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
135
134
|
licenses:
|
136
135
|
- Apache-2.0
|
137
136
|
metadata: {}
|
138
|
-
post_install_message:
|
139
137
|
rdoc_options: []
|
140
138
|
require_paths:
|
141
139
|
- lib
|
@@ -143,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
141
|
requirements:
|
144
142
|
- - ">="
|
145
143
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
144
|
+
version: '3.0'
|
147
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
146
|
requirements:
|
149
147
|
- - ">="
|
150
148
|
- !ruby/object:Gem::Version
|
151
149
|
version: '0'
|
152
150
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
154
|
-
signing_key:
|
151
|
+
rubygems_version: 3.6.2
|
155
152
|
specification_version: 4
|
156
153
|
summary: Service to parse structured information from unstructured or semi-structured
|
157
154
|
documents using state-of-the-art Google AI such as natural language, computer vision,
|