Skip to content

Commit 19bf693

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added field_mask to ProcessRequest object in document_processor_service.proto
feat: Added parent_ids to Revision object in document.proto feat: Added integer_values, float_values and non_present to Entity object in document.proto feat: Added corrected_key_text, correct_value_text to FormField object in document.proto feat: Added OperationMetadata resource feat!: Added Processor Management and Processor Version support to v1 library BREAKING CHANGE: Changed the name field for ProcessRequest and BatchProcessorRequest to accept * so the name field can accept Processor and ProcessorVersion. PiperOrigin-RevId: 466168406
1 parent d0de369 commit 19bf693

11 files changed

Lines changed: 1127 additions & 164 deletions

google/cloud/documentai/v1/BUILD.bazel

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -21,16 +21,21 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
2121
proto_library(
2222
name = "documentai_proto",
2323
srcs = [
24+
"barcode.proto",
2425
"document.proto",
2526
"document_io.proto",
2627
"document_processor_service.proto",
28+
"document_schema.proto",
2729
"geometry.proto",
2830
"operation_metadata.proto",
31+
"processor.proto",
32+
"processor_type.proto",
2933
],
3034
deps = [
3135
"//google/api:annotations_proto",
3236
"//google/api:client_proto",
3337
"//google/api:field_behavior_proto",
38+
"//google/api:launch_stage_proto",
3439
"//google/api:resource_proto",
3540
"//google/longrunning:operations_proto",
3641
"//google/rpc:status_proto",
@@ -49,6 +54,7 @@ proto_library_with_info(
4954
deps = [
5055
":documentai_proto",
5156
"//google/cloud:common_resources_proto",
57+
"//google/cloud/location:location_proto",
5258
],
5359
)
5460

@@ -78,13 +84,18 @@ java_grpc_library(
7884
java_gapic_library(
7985
name = "documentai_java_gapic",
8086
srcs = [":documentai_proto_with_info"],
87+
gapic_yaml = None,
8188
grpc_service_config = "documentai_v1_grpc_service_config.json",
89+
service_yaml = "documentai_v1.yaml",
8290
test_deps = [
8391
":documentai_java_grpc",
92+
"//google/cloud/location:location_java_grpc",
8493
],
8594
transport = "grpc+rest",
8695
deps = [
8796
":documentai_java_proto",
97+
"//google/api:api_java_proto",
98+
"//google/cloud/location:location_java_proto",
8899
],
89100
)
90101

@@ -128,6 +139,7 @@ go_proto_library(
128139
protos = [":documentai_proto"],
129140
deps = [
130141
"//google/api:annotations_go_proto",
142+
"//google/api:api_go_proto",
131143
"//google/longrunning:longrunning_go_proto",
132144
"//google/rpc:status_go_proto",
133145
"//google/type:color_go_proto",
@@ -143,10 +155,12 @@ go_gapic_library(
143155
srcs = [":documentai_proto_with_info"],
144156
grpc_service_config = "documentai_v1_grpc_service_config.json",
145157
importpath = "cloud.google.com/go/documentai/apiv1;documentai",
158+
metadata = True,
146159
service_yaml = "documentai_v1.yaml",
147160
transport = "grpc+rest",
148161
deps = [
149162
":documentai_go_proto",
163+
"//google/cloud/location:location_go_proto",
150164
"//google/longrunning:longrunning_go_proto",
151165
"@com_google_cloud_go//longrunning:go_default_library",
152166
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -165,6 +179,7 @@ go_gapic_assembly_pkg(
165179
name = "gapi-cloud-documentai-v1-go",
166180
deps = [
167181
":documentai_go_gapic",
182+
":documentai_go_gapic_srcjar-metadata.srcjar",
168183
":documentai_go_gapic_srcjar-test.srcjar",
169184
":documentai_go_proto",
170185
],
@@ -184,8 +199,9 @@ py_gapic_library(
184199
name = "documentai_py_gapic",
185200
srcs = [":documentai_proto"],
186201
grpc_service_config = "documentai_v1_grpc_service_config.json",
187-
opt_args = [
188-
"autogen-snippets",
202+
opt_args = ["autogen-snippets"],
203+
service_yaml = "documentai_v1.yaml",
204+
deps = [
189205
],
190206
)
191207

@@ -304,16 +320,17 @@ ruby_cloud_gapic_library(
304320
name = "documentai_ruby_gapic",
305321
srcs = [":documentai_proto_with_info"],
306322
extra_protoc_parameters = [
307-
"ruby-cloud-gem-name=google-cloud-document_ai-v1",
308-
"ruby-cloud-env-prefix=DOCUMENT_AI",
309-
"ruby-cloud-product-url=https://cloud.google.com/document-ai/",
310323
"ruby-cloud-api-id=us-documentai.googleapis.com",
311324
"ruby-cloud-api-shortname=documentai",
325+
"ruby-cloud-env-prefix=DOCUMENT_AI",
326+
"ruby-cloud-gem-name=google-cloud-document_ai-v1",
312327
"ruby-cloud-namespace-override=DocumentAi=DocumentAI",
328+
"ruby-cloud-product-url=https://cloud.google.com/document-ai/",
313329
],
314330
grpc_service_config = "documentai_v1_grpc_service_config.json",
315331
ruby_cloud_description = "Document AI uses machine learning on a single cloud-based platform to automatically classify, extract, and enrich data within your documents to unlock insights.",
316332
ruby_cloud_title = "Document AI V1",
333+
service_yaml = "documentai_v1.yaml",
317334
deps = [
318335
":documentai_ruby_grpc",
319336
":documentai_ruby_proto",
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.documentai.v1;
18+
19+
option csharp_namespace = "Google.Cloud.DocumentAI.V1";
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "BarcodeProto";
23+
option java_package = "com.google.cloud.documentai.v1";
24+
option php_namespace = "Google\\Cloud\\DocumentAI\\V1";
25+
option ruby_package = "Google::Cloud::DocumentAI::V1";
26+
27+
// Encodes the detailed information of a barcode.
28+
message Barcode {
29+
// Format of a barcode.
30+
// The supported formats are:
31+
// CODE_128: Code 128 type.
32+
// CODE_39: Code 39 type.
33+
// CODE_93: Code 93 type.
34+
// CODABAR: Codabar type.
35+
// DATA_MATRIX: 2D Data Matrix type.
36+
// ITF: ITF type.
37+
// EAN_13: EAN-13 type.
38+
// EAN_8: EAN-8 type.
39+
// QR_CODE: 2D QR code type.
40+
// UPC_A: UPC-A type.
41+
// UPC_E: UPC-E type.
42+
// PDF417: PDF417 type.
43+
// AZTEC: 2D Aztec code type.
44+
// DATABAR: GS1 DataBar code type.
45+
string format = 1;
46+
47+
// Value format describes the format of the value that a barcode
48+
// encodes.
49+
// The supported formats are:
50+
// CONTACT_INFO: Contact information.
51+
// EMAIL: Email address.
52+
// ISBN: ISBN identifier.
53+
// PHONE: Phone number.
54+
// PRODUCT: Product.
55+
// SMS: SMS message.
56+
// TEXT: Text string.
57+
// URL: URL address.
58+
// WIFI: Wifi information.
59+
// GEO: Geo-localization.
60+
// CALENDAR_EVENT: Calendar event.
61+
// DRIVER_LICENSE: Driver's license.
62+
string value_format = 2;
63+
64+
// Raw value encoded in the barcode.
65+
// For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.
66+
string raw_value = 3;
67+
}

0 commit comments

Comments
 (0)