google-cloud-document_ai-v1beta3 0.34.0 → 0.36.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 +2 -2
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +56 -24
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +13 -5
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb +56 -24
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/operations.rb +11 -4
- data/lib/google/cloud/document_ai/v1beta3/document_service/client.rb +22 -7
- data/lib/google/cloud/document_ai/v1beta3/document_service/operations.rb +13 -5
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/client.rb +22 -7
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/operations.rb +11 -4
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/dataset_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +3 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +4 -0
- data/lib/google/cloud/documentai/v1beta3/document_service_services_pb.rb +5 -0
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +5 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/documentai/v1beta3/dataset.rb +6 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +35 -6
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +3 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +67 -0
- metadata +2 -2
@@ -460,16 +460,16 @@ module Google
|
|
460
460
|
# Whether the text is underlined.
|
461
461
|
# @!attribute [rw] strikeout
|
462
462
|
# @return [::Boolean]
|
463
|
-
# Whether the text is strikethrough.
|
463
|
+
# Whether the text is strikethrough. This feature is not supported yet.
|
464
464
|
# @!attribute [rw] subscript
|
465
465
|
# @return [::Boolean]
|
466
|
-
# Whether the text is a subscript.
|
466
|
+
# Whether the text is a subscript. This feature is not supported yet.
|
467
467
|
# @!attribute [rw] superscript
|
468
468
|
# @return [::Boolean]
|
469
|
-
# Whether the text is a superscript.
|
469
|
+
# Whether the text is a superscript. This feature is not supported yet.
|
470
470
|
# @!attribute [rw] smallcaps
|
471
471
|
# @return [::Boolean]
|
472
|
-
# Whether the text is in small caps.
|
472
|
+
# Whether the text is in small caps. This feature is not supported yet.
|
473
473
|
# @!attribute [rw] font_weight
|
474
474
|
# @return [::Integer]
|
475
475
|
# TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
|
@@ -1192,14 +1192,19 @@ module Google
|
|
1192
1192
|
# ID of the chunk.
|
1193
1193
|
# @!attribute [rw] source_block_ids
|
1194
1194
|
# @return [::Array<::String>]
|
1195
|
-
#
|
1196
|
-
# chunk.
|
1195
|
+
# Unused.
|
1197
1196
|
# @!attribute [rw] content
|
1198
1197
|
# @return [::String]
|
1199
1198
|
# Text content of the chunk.
|
1200
1199
|
# @!attribute [rw] page_span
|
1201
1200
|
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageSpan]
|
1202
1201
|
# Page span of the chunk.
|
1202
|
+
# @!attribute [rw] page_headers
|
1203
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageHeader>]
|
1204
|
+
# Page headers associated with the chunk.
|
1205
|
+
# @!attribute [rw] page_footers
|
1206
|
+
# @return [::Array<::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageFooter>]
|
1207
|
+
# Page footers associated with the chunk.
|
1203
1208
|
class Chunk
|
1204
1209
|
include ::Google::Protobuf::MessageExts
|
1205
1210
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1215,6 +1220,30 @@ module Google
|
|
1215
1220
|
include ::Google::Protobuf::MessageExts
|
1216
1221
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1217
1222
|
end
|
1223
|
+
|
1224
|
+
# Represents the page header associated with the chunk.
|
1225
|
+
# @!attribute [rw] text
|
1226
|
+
# @return [::String]
|
1227
|
+
# Header in text format.
|
1228
|
+
# @!attribute [rw] page_span
|
1229
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageSpan]
|
1230
|
+
# Page span of the header.
|
1231
|
+
class ChunkPageHeader
|
1232
|
+
include ::Google::Protobuf::MessageExts
|
1233
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
# Represents the page footer associated with the chunk.
|
1237
|
+
# @!attribute [rw] text
|
1238
|
+
# @return [::String]
|
1239
|
+
# Footer in text format.
|
1240
|
+
# @!attribute [rw] page_span
|
1241
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::ChunkedDocument::Chunk::ChunkPageSpan]
|
1242
|
+
# Page span of the footer.
|
1243
|
+
class ChunkPageFooter
|
1244
|
+
include ::Google::Protobuf::MessageExts
|
1245
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1246
|
+
end
|
1218
1247
|
end
|
1219
1248
|
end
|
1220
1249
|
end
|
@@ -144,6 +144,9 @@ module Google
|
|
144
144
|
# (Unicode codepoints) and can only contain lowercase letters, numeric
|
145
145
|
# characters, underscores, and dashes. International characters are allowed.
|
146
146
|
# Label values are optional. Label keys must start with a letter.
|
147
|
+
# @!attribute [rw] imageless_mode
|
148
|
+
# @return [::Boolean]
|
149
|
+
# Optional. Option to remove images from the document.
|
147
150
|
class ProcessRequest
|
148
151
|
include ::Google::Protobuf::MessageExts
|
149
152
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -60,6 +60,16 @@ module Google
|
|
60
60
|
# @!attribute [r] model_type
|
61
61
|
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::ModelType]
|
62
62
|
# Output only. The model type of this processor version.
|
63
|
+
# @!attribute [r] satisfies_pzs
|
64
|
+
# @return [::Boolean]
|
65
|
+
# Output only. Reserved for future use.
|
66
|
+
# @!attribute [r] satisfies_pzi
|
67
|
+
# @return [::Boolean]
|
68
|
+
# Output only. Reserved for future use.
|
69
|
+
# @!attribute [r] gen_ai_model_info
|
70
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo]
|
71
|
+
# Output only. Information about Generative AI model-based processor
|
72
|
+
# versions.
|
63
73
|
class ProcessorVersion
|
64
74
|
include ::Google::Protobuf::MessageExts
|
65
75
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -76,6 +86,57 @@ module Google
|
|
76
86
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
87
|
end
|
78
88
|
|
89
|
+
# Information about Generative AI model-based processor versions.
|
90
|
+
# @!attribute [rw] foundation_gen_ai_model_info
|
91
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::FoundationGenAiModelInfo]
|
92
|
+
# Information for a pretrained Google-managed foundation model.
|
93
|
+
# @!attribute [rw] custom_gen_ai_model_info
|
94
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo]
|
95
|
+
# Information for a custom Generative AI model created by the user.
|
96
|
+
class GenAiModelInfo
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
|
100
|
+
# Information for a pretrained Google-managed foundation model.
|
101
|
+
# @!attribute [rw] finetuning_allowed
|
102
|
+
# @return [::Boolean]
|
103
|
+
# Whether finetuning is allowed for this base processor version.
|
104
|
+
# @!attribute [rw] min_train_labeled_documents
|
105
|
+
# @return [::Integer]
|
106
|
+
# The minimum number of labeled documents in the training dataset
|
107
|
+
# required for finetuning.
|
108
|
+
class FoundationGenAiModelInfo
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
113
|
+
# Information for a custom Generative AI model created by the user. These
|
114
|
+
# are created with `Create New Version` in either the `Call foundation
|
115
|
+
# model` or `Fine tuning` tabs.
|
116
|
+
# @!attribute [rw] custom_model_type
|
117
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo::CustomModelType]
|
118
|
+
# The type of custom model created by the user.
|
119
|
+
# @!attribute [rw] base_processor_version_id
|
120
|
+
# @return [::String]
|
121
|
+
# The base processor version ID for the custom model.
|
122
|
+
class CustomGenAiModelInfo
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
|
126
|
+
# The type of custom model created by the user.
|
127
|
+
module CustomModelType
|
128
|
+
# The model type is unspecified.
|
129
|
+
CUSTOM_MODEL_TYPE_UNSPECIFIED = 0
|
130
|
+
|
131
|
+
# The model is a versioned foundation model.
|
132
|
+
VERSIONED_FOUNDATION = 1
|
133
|
+
|
134
|
+
# The model is a finetuned foundation model.
|
135
|
+
FINE_TUNED = 2
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
79
140
|
# The possible states of the processor version.
|
80
141
|
module State
|
81
142
|
# The processor version is in an unspecified state.
|
@@ -165,6 +226,12 @@ module Google
|
|
165
226
|
# @return [::String]
|
166
227
|
# The [KMS key](https://cloud.google.com/security-key-management) used for
|
167
228
|
# encryption and decryption in CMEK scenarios.
|
229
|
+
# @!attribute [r] satisfies_pzs
|
230
|
+
# @return [::Boolean]
|
231
|
+
# Output only. Reserved for future use.
|
232
|
+
# @!attribute [r] satisfies_pzi
|
233
|
+
# @return [::Boolean]
|
234
|
+
# Output only. Reserved for future use.
|
168
235
|
class Processor
|
169
236
|
include ::Google::Protobuf::MessageExts
|
170
237
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.36.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: 2024-
|
11
|
+
date: 2024-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|