google-cloud-document_ai-v1beta3 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +464 -3
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +2 -2
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb +17 -0
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +3 -0
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +64 -16
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +15 -1
- data/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +36 -0
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +45 -0
- data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +32 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +12 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +149 -39
- data/proto_docs/google/cloud/documentai/v1beta3/geometry.rb +2 -2
- data/proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb +65 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +86 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor_type.rb +59 -0
- metadata +19 -7
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# X coordinate.
|
29
29
|
# @!attribute [rw] y
|
30
30
|
# @return [::Integer]
|
31
|
-
# Y coordinate.
|
31
|
+
# Y coordinate (starts from the top of the image).
|
32
32
|
class Vertex
|
33
33
|
include ::Google::Protobuf::MessageExts
|
34
34
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
# X coordinate.
|
43
43
|
# @!attribute [rw] y
|
44
44
|
# @return [::Float]
|
45
|
-
# Y coordinate.
|
45
|
+
# Y coordinate (starts from the top of the image).
|
46
46
|
class NormalizedVertex
|
47
47
|
include ::Google::Protobuf::MessageExts
|
48
48
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,65 @@
|
|
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
|
+
# The common metadata for long running operations.
|
25
|
+
# @!attribute [rw] state
|
26
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::CommonOperationMetadata::State]
|
27
|
+
# The state of the operation.
|
28
|
+
# @!attribute [rw] state_message
|
29
|
+
# @return [::String]
|
30
|
+
# A message providing more details about the current state of processing.
|
31
|
+
# @!attribute [rw] create_time
|
32
|
+
# @return [::Google::Protobuf::Timestamp]
|
33
|
+
# The creation time of the operation.
|
34
|
+
# @!attribute [rw] update_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# The last update time of the operation.
|
37
|
+
class CommonOperationMetadata
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
|
41
|
+
# State of the longrunning operation.
|
42
|
+
module State
|
43
|
+
# Unspecified state.
|
44
|
+
STATE_UNSPECIFIED = 0
|
45
|
+
|
46
|
+
# Operation is still running.
|
47
|
+
RUNNING = 1
|
48
|
+
|
49
|
+
# Operation is being cancelled.
|
50
|
+
CANCELLING = 2
|
51
|
+
|
52
|
+
# Operation succeeded.
|
53
|
+
SUCCEEDED = 3
|
54
|
+
|
55
|
+
# Operation failed.
|
56
|
+
FAILED = 4
|
57
|
+
|
58
|
+
# Operation is cancelled.
|
59
|
+
CANCELLED = 5
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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
|
+
# The first-class citizen for DocumentAI. Each processor defines how to extract
|
25
|
+
# structural information from a document.
|
26
|
+
# @!attribute [r] name
|
27
|
+
# @return [::String]
|
28
|
+
# Output only. Immutable. The resource name of the processor.
|
29
|
+
# Format: projects/\\{project}/locations/\\{location}/processors/\\{processor}
|
30
|
+
# @!attribute [rw] type
|
31
|
+
# @return [::String]
|
32
|
+
# The processor type.
|
33
|
+
# @!attribute [rw] display_name
|
34
|
+
# @return [::String]
|
35
|
+
# The display name of the processor.
|
36
|
+
# @!attribute [r] state
|
37
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Processor::State]
|
38
|
+
# Output only. The state of the processor.
|
39
|
+
# @!attribute [rw] default_processor_version
|
40
|
+
# @return [::String]
|
41
|
+
# The default processor version.
|
42
|
+
# @!attribute [r] process_endpoint
|
43
|
+
# @return [::String]
|
44
|
+
# Output only. Immutable. The http endpoint that can be called to invoke processing.
|
45
|
+
# @!attribute [rw] create_time
|
46
|
+
# @return [::Google::Protobuf::Timestamp]
|
47
|
+
# The time the processor was created.
|
48
|
+
# @!attribute [rw] kms_key_name
|
49
|
+
# @return [::String]
|
50
|
+
# The KMS key used for encryption/decryption in CMEK scenarios.
|
51
|
+
# See https://cloud.google.com/security-key-management.
|
52
|
+
class Processor
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
|
56
|
+
# The possible states of the processor.
|
57
|
+
module State
|
58
|
+
# The processor is in an unspecified state.
|
59
|
+
STATE_UNSPECIFIED = 0
|
60
|
+
|
61
|
+
# The processor is enabled.
|
62
|
+
ENABLED = 1
|
63
|
+
|
64
|
+
# The processor is disabled.
|
65
|
+
DISABLED = 2
|
66
|
+
|
67
|
+
# The processor is being enabled, will become ENABLED if successful.
|
68
|
+
ENABLING = 3
|
69
|
+
|
70
|
+
# The processor is being disabled, will become DISABLED if successful.
|
71
|
+
DISABLING = 4
|
72
|
+
|
73
|
+
# The processor is being created.
|
74
|
+
CREATING = 5
|
75
|
+
|
76
|
+
# The processor failed during creation.
|
77
|
+
FAILED = 6
|
78
|
+
|
79
|
+
# The processor is being deleted, will be removed if successful.
|
80
|
+
DELETING = 7
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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
|
+
# A processor type is responsible for performing a certain document
|
25
|
+
# understanding task on a certain type of document.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# The resource name of the processor type.
|
29
|
+
# @!attribute [rw] type
|
30
|
+
# @return [::String]
|
31
|
+
# The type of the processor.
|
32
|
+
# @!attribute [rw] category
|
33
|
+
# @return [::String]
|
34
|
+
# The processor category.
|
35
|
+
# @!attribute [rw] available_locations
|
36
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::ProcessorType::LocationInfo>]
|
37
|
+
# The locations in which this processor is available.
|
38
|
+
# @!attribute [rw] allow_creation
|
39
|
+
# @return [::Boolean]
|
40
|
+
# Whether the processor type allows creation. If yes, user can create a
|
41
|
+
# processor of this processor type. Otherwise, user needs to require for
|
42
|
+
# whitelisting.
|
43
|
+
class ProcessorType
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
|
47
|
+
# The location information about where the processor is available.
|
48
|
+
# @!attribute [rw] location_id
|
49
|
+
# @return [::String]
|
50
|
+
# The location id.
|
51
|
+
class LocationInfo
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,6 +183,9 @@ files:
|
|
177
183
|
- lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb
|
178
184
|
- lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb
|
179
185
|
- lib/google/cloud/documentai/v1beta3/geometry_pb.rb
|
186
|
+
- lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb
|
187
|
+
- lib/google/cloud/documentai/v1beta3/processor_pb.rb
|
188
|
+
- lib/google/cloud/documentai/v1beta3/processor_type_pb.rb
|
180
189
|
- proto_docs/README.md
|
181
190
|
- proto_docs/google/api/field_behavior.rb
|
182
191
|
- proto_docs/google/api/resource.rb
|
@@ -184,6 +193,9 @@ files:
|
|
184
193
|
- proto_docs/google/cloud/documentai/v1beta3/document_io.rb
|
185
194
|
- proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb
|
186
195
|
- proto_docs/google/cloud/documentai/v1beta3/geometry.rb
|
196
|
+
- proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb
|
197
|
+
- proto_docs/google/cloud/documentai/v1beta3/processor.rb
|
198
|
+
- proto_docs/google/cloud/documentai/v1beta3/processor_type.rb
|
187
199
|
- proto_docs/google/longrunning/operations.rb
|
188
200
|
- proto_docs/google/protobuf/any.rb
|
189
201
|
- proto_docs/google/protobuf/duration.rb
|
@@ -216,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
228
|
- !ruby/object:Gem::Version
|
217
229
|
version: '0'
|
218
230
|
requirements: []
|
219
|
-
rubygems_version: 3.2.
|
231
|
+
rubygems_version: 3.2.17
|
220
232
|
signing_key:
|
221
233
|
specification_version: 4
|
222
234
|
summary: API Client library for the Document AI V1beta3 API
|