google-cloud-document_ai-v1beta3 0.14.0 → 0.15.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad4ca96ad626154109db9e3a966c9d516e5f9540230fd23090a3c01a1ce7065
|
4
|
+
data.tar.gz: 82b66404f4d7c6adc4744ed5845effe3a77f4b5196de9c032b03484c098941fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c584f654b2560eec5ddf5e3bd6fdf865e9e413b52d982f0e98066a14e0648b05e5f7a2dda818297caa789e15263391d184c6fbd7d1771ce266a7ce44b1166f
|
7
|
+
data.tar.gz: 6e0d0789c421814d61c6cfeedf987dac95aa22b55f3dc7459a2fc995116c2ad5d64c49675f5d6df183da955f053229e9d6a44a46c8d0fd6c0a9e30bb462125b2
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -35,6 +35,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
35
|
add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig" do
|
36
36
|
optional :gcs_uri, :string, 1
|
37
37
|
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
38
|
+
optional :sharding_config, :message, 3, "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig"
|
39
|
+
end
|
40
|
+
add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig" do
|
41
|
+
optional :pages_per_shard, :int32, 1
|
42
|
+
optional :pages_overlap, :int32, 2
|
38
43
|
end
|
39
44
|
end
|
40
45
|
end
|
@@ -50,6 +55,7 @@ module Google
|
|
50
55
|
BatchDocumentsInputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDocumentsInputConfig").msgclass
|
51
56
|
DocumentOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig").msgclass
|
52
57
|
DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig").msgclass
|
58
|
+
DocumentOutputConfig::GcsOutputConfig::ShardingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig").msgclass
|
53
59
|
end
|
54
60
|
end
|
55
61
|
end
|
@@ -94,9 +94,24 @@ module Google
|
|
94
94
|
# Specifies which fields to include in the output documents.
|
95
95
|
# Only supports top level document and pages field so it must be in the
|
96
96
|
# form of `{document_field_name}` or `pages.{page_field_name}`.
|
97
|
+
# @!attribute [rw] sharding_config
|
98
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::DocumentOutputConfig::GcsOutputConfig::ShardingConfig]
|
99
|
+
# Specifies the sharding config for the output document.
|
97
100
|
class GcsOutputConfig
|
98
101
|
include ::Google::Protobuf::MessageExts
|
99
102
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
|
104
|
+
# The sharding config for the output document.
|
105
|
+
# @!attribute [rw] pages_per_shard
|
106
|
+
# @return [::Integer]
|
107
|
+
# The number of pages per shard.
|
108
|
+
# @!attribute [rw] pages_overlap
|
109
|
+
# @return [::Integer]
|
110
|
+
# The number of overlapping pages between consecutive shards.
|
111
|
+
class ShardingConfig
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
end
|
100
115
|
end
|
101
116
|
end
|
102
117
|
end
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.15.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: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|