google-cloud-document_ai-v1 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +51 -40
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +5 -3
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +51 -40
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +9 -7
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/service_stub.rb +22 -22
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest.rb +1 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service.rb +1 -1
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/barcode_pb.rb +24 -6
- data/lib/google/cloud/documentai/v1/document_io_pb.rb +25 -35
- data/lib/google/cloud/documentai/v1/document_pb.rb +34 -265
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +34 -229
- data/lib/google/cloud/documentai/v1/document_processor_service_services_pb.rb +8 -6
- data/lib/google/cloud/documentai/v1/document_schema_pb.rb +24 -37
- data/lib/google/cloud/documentai/v1/evaluation_pb.rb +25 -52
- data/lib/google/cloud/documentai/v1/geometry_pb.rb +24 -13
- data/lib/google/cloud/documentai/v1/operation_metadata_pb.rb +25 -16
- data/lib/google/cloud/documentai/v1/processor_pb.rb +27 -47
- data/lib/google/cloud/documentai/v1/processor_type_pb.rb +24 -13
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/documentai/v1/document.rb +88 -27
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +188 -98
- data/proto_docs/google/cloud/documentai/v1/document_schema.rb +6 -7
- data/proto_docs/google/cloud/documentai/v1/processor.rb +11 -9
- data/proto_docs/google/cloud/documentai/v1/processor_type.rb +3 -2
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -54,16 +54,15 @@ module Google
|
|
54
54
|
# @!attribute [rw] name
|
55
55
|
# @return [::String]
|
56
56
|
# Name of the type. It must be unique within the schema file and
|
57
|
-
# cannot be a
|
58
|
-
# conventions:
|
57
|
+
# cannot be a "Common Type". The following naming conventions are used:
|
59
58
|
#
|
60
|
-
# -
|
61
|
-
# -
|
59
|
+
# - Use `snake_casing`.
|
60
|
+
# - Name matching is case-sensitive.
|
62
61
|
# - Maximum 64 characters.
|
63
62
|
# - Must start with a letter.
|
64
63
|
# - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
|
65
64
|
# compatibility internal infrastructure and tooling can handle any ascii
|
66
|
-
# character)
|
65
|
+
# character.)
|
67
66
|
# - The `/` is sometimes used to denote a property of a type. For example
|
68
67
|
# `line_item/amount`. This convention is deprecated, but will still be
|
69
68
|
# honored for backward compatibility.
|
@@ -137,8 +136,8 @@ module Google
|
|
137
136
|
# Metadata for global schema behavior.
|
138
137
|
# @!attribute [rw] document_splitter
|
139
138
|
# @return [::Boolean]
|
140
|
-
# If true, a `document` entity type can be applied to subdocument
|
141
|
-
# splitting). Otherwise, it can only be applied to the entire document
|
139
|
+
# If true, a `document` entity type can be applied to subdocument
|
140
|
+
# (splitting). Otherwise, it can only be applied to the entire document
|
142
141
|
# (classification).
|
143
142
|
# @!attribute [rw] document_allow_multiple_labels
|
144
143
|
# @return [::Boolean]
|
@@ -22,10 +22,9 @@ module Google
|
|
22
22
|
module DocumentAI
|
23
23
|
module V1
|
24
24
|
# A processor version is an implementation of a processor. Each processor
|
25
|
-
# can have multiple versions,
|
26
|
-
# by the customer.
|
27
|
-
#
|
28
|
-
# by a default version
|
25
|
+
# can have multiple versions, pretrained by Google internally or uptrained
|
26
|
+
# by the customer. A processor can only have one default version at a time.
|
27
|
+
# Its document-processing behavior is defined by that version.
|
29
28
|
# @!attribute [rw] name
|
30
29
|
# @return [::String]
|
31
30
|
# The resource name of the processor version.
|
@@ -54,7 +53,7 @@ module Google
|
|
54
53
|
# The KMS key version with which data is encrypted.
|
55
54
|
# @!attribute [rw] google_managed
|
56
55
|
# @return [::Boolean]
|
57
|
-
# Denotes that this ProcessorVersion is managed by
|
56
|
+
# Denotes that this `ProcessorVersion` is managed by Google.
|
58
57
|
# @!attribute [rw] deprecation_info
|
59
58
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion::DeprecationInfo]
|
60
59
|
# If set, information about the eventual deprecation of this version.
|
@@ -99,6 +98,9 @@ module Google
|
|
99
98
|
|
100
99
|
# The processor version failed and is in an indeterminate state.
|
101
100
|
FAILED = 7
|
101
|
+
|
102
|
+
# The processor version is being imported.
|
103
|
+
IMPORTING = 8
|
102
104
|
end
|
103
105
|
end
|
104
106
|
|
@@ -110,8 +112,8 @@ module Google
|
|
110
112
|
# Format: `projects/{project}/locations/{location}/processors/{processor}`
|
111
113
|
# @!attribute [rw] type
|
112
114
|
# @return [::String]
|
113
|
-
# The processor type,
|
114
|
-
# To get a list of
|
115
|
+
# The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
116
|
+
# To get a list of processor types, see
|
115
117
|
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#fetch_processor_types FetchProcessorTypes}.
|
116
118
|
# @!attribute [rw] display_name
|
117
119
|
# @return [::String]
|
@@ -131,8 +133,8 @@ module Google
|
|
131
133
|
# The time the processor was created.
|
132
134
|
# @!attribute [rw] kms_key_name
|
133
135
|
# @return [::String]
|
134
|
-
# The KMS key used for
|
135
|
-
#
|
136
|
+
# The [KMS key](https://cloud.google.com/security-key-management) used for
|
137
|
+
# encryption and decryption in CMEK scenarios.
|
136
138
|
class Processor
|
137
139
|
include ::Google::Protobuf::MessageExts
|
138
140
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# Format: `projects/{project}/processorTypes/{processor_type}`
|
30
30
|
# @!attribute [rw] type
|
31
31
|
# @return [::String]
|
32
|
-
# The processor type,
|
32
|
+
# The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
33
33
|
# @!attribute [rw] category
|
34
34
|
# @return [::String]
|
35
35
|
# The processor category, used by UI to group processor types.
|
@@ -53,7 +53,8 @@ module Google
|
|
53
53
|
# The location information about where the processor is available.
|
54
54
|
# @!attribute [rw] location_id
|
55
55
|
# @return [::String]
|
56
|
-
# The location
|
56
|
+
# The location ID. For supported locations, refer to [regional and
|
57
|
+
# multi-regional support](/document-ai/docs/regions).
|
57
58
|
class LocationInfo
|
58
59
|
include ::Google::Protobuf::MessageExts
|
59
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
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.
|
4
|
+
version: 0.13.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: 2023-
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|