Skip to content

Commit d0237ea

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 Barcode support 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: 468022354
1 parent 4bda299 commit d0237ea

File tree

11 files changed

+845
-204
lines changed

11 files changed

+845
-204
lines changed

google/cloud/documentai/v1beta3/BUILD.bazel

Lines changed: 39 additions & 7 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,9 +21,11 @@ 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",
2931
"processor.proto",
@@ -33,6 +35,7 @@ proto_library(
3335
"//google/api:annotations_proto",
3436
"//google/api:client_proto",
3537
"//google/api:field_behavior_proto",
38+
"//google/api:launch_stage_proto",
3639
"//google/api:resource_proto",
3740
"//google/longrunning:operations_proto",
3841
"//google/rpc:status_proto",
@@ -51,6 +54,7 @@ proto_library_with_info(
5154
deps = [
5255
":documentai_proto",
5356
"//google/cloud:common_resources_proto",
57+
"//google/cloud/location:location_proto",
5458
],
5559
)
5660

@@ -80,13 +84,18 @@ java_grpc_library(
8084
java_gapic_library(
8185
name = "documentai_java_gapic",
8286
srcs = [":documentai_proto_with_info"],
87+
gapic_yaml = None,
8388
grpc_service_config = "documentai_v1beta3_grpc_service_config.json",
89+
service_yaml = "documentai_v1beta3.yaml",
8490
test_deps = [
8591
":documentai_java_grpc",
92+
"//google/cloud/location:location_java_grpc",
8693
],
8794
transport = "grpc+rest",
8895
deps = [
8996
":documentai_java_proto",
97+
"//google/api:api_java_proto",
98+
"//google/cloud/location:location_java_proto",
9099
],
91100
)
92101

@@ -130,6 +139,7 @@ go_proto_library(
130139
protos = [":documentai_proto"],
131140
deps = [
132141
"//google/api:annotations_go_proto",
142+
"//google/api:api_go_proto",
133143
"//google/longrunning:longrunning_go_proto",
134144
"//google/rpc:status_go_proto",
135145
"//google/type:color_go_proto",
@@ -145,10 +155,12 @@ go_gapic_library(
145155
srcs = [":documentai_proto_with_info"],
146156
grpc_service_config = "documentai_v1beta3_grpc_service_config.json",
147157
importpath = "cloud.google.com/go/documentai/apiv1beta3;documentai",
158+
metadata = True,
148159
service_yaml = "documentai_v1beta3.yaml",
149160
transport = "grpc+rest",
150161
deps = [
151162
":documentai_go_proto",
163+
"//google/cloud/location:location_go_proto",
152164
"//google/longrunning:longrunning_go_proto",
153165
"@com_google_cloud_go//longrunning:go_default_library",
154166
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -167,6 +179,7 @@ go_gapic_assembly_pkg(
167179
name = "gapi-cloud-documentai-v1beta3-go",
168180
deps = [
169181
":documentai_go_gapic",
182+
":documentai_go_gapic_srcjar-metadata.srcjar",
170183
":documentai_go_gapic_srcjar-test.srcjar",
171184
":documentai_go_proto",
172185
],
@@ -186,8 +199,9 @@ py_gapic_library(
186199
name = "documentai_py_gapic",
187200
srcs = [":documentai_proto"],
188201
grpc_service_config = "documentai_v1beta3_grpc_service_config.json",
189-
opt_args = [
190-
"autogen-snippets",
202+
opt_args = ["autogen-snippets"],
203+
service_yaml = "documentai_v1beta3.yaml",
204+
deps = [
191205
],
192206
)
193207

@@ -235,6 +249,7 @@ php_gapic_library(
235249
name = "documentai_php_gapic",
236250
srcs = [":documentai_proto_with_info"],
237251
grpc_service_config = "documentai_v1beta3_grpc_service_config.json",
252+
service_yaml = "documentai_v1beta3.yaml",
238253
deps = [
239254
":documentai_php_grpc",
240255
":documentai_php_proto",
@@ -305,16 +320,17 @@ ruby_cloud_gapic_library(
305320
name = "documentai_ruby_gapic",
306321
srcs = [":documentai_proto_with_info"],
307322
extra_protoc_parameters = [
308-
"ruby-cloud-gem-name=google-cloud-document_ai-v1beta3",
309-
"ruby-cloud-env-prefix=DOCUMENT_AI",
310-
"ruby-cloud-product-url=https://cloud.google.com/document-ai/",
311323
"ruby-cloud-api-id=us-documentai.googleapis.com",
312324
"ruby-cloud-api-shortname=documentai",
325+
"ruby-cloud-env-prefix=DOCUMENT_AI",
326+
"ruby-cloud-gem-name=google-cloud-document_ai-v1beta3",
313327
"ruby-cloud-namespace-override=DocumentAi=DocumentAI",
328+
"ruby-cloud-product-url=https://cloud.google.com/document-ai/",
314329
],
315330
grpc_service_config = "documentai_v1beta3_grpc_service_config.json",
316331
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.",
317332
ruby_cloud_title = "Document AI V1beta3",
333+
service_yaml = "documentai_v1beta3.yaml",
318334
deps = [
319335
":documentai_ruby_grpc",
320336
":documentai_ruby_proto",
@@ -378,4 +394,20 @@ csharp_gapic_assembly_pkg(
378394
##############################################################################
379395
# C++
380396
##############################################################################
381-
# Put your C++ rules here
397+
load(
398+
"@com_google_googleapis_imports//:imports.bzl",
399+
"cc_grpc_library",
400+
"cc_proto_library",
401+
)
402+
403+
cc_proto_library(
404+
name = "documentai_cc_proto",
405+
deps = [":documentai_proto"],
406+
)
407+
408+
cc_grpc_library(
409+
name = "documentai_cc_grpc",
410+
srcs = [":documentai_proto"],
411+
grpc_only = True,
412+
deps = [":documentai_cc_proto"],
413+
)
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.v1beta3;
18+
19+
option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "BarcodeProto";
23+
option java_package = "com.google.cloud.documentai.v1beta3";
24+
option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
25+
option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
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)