Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit a4a1ecf

Browse files
feat: Added field_mask to ProcessRequest object in document_processor_service.proto (#868)
- [ ] Regenerate this pull request now. 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 Source-Link: googleapis/googleapis@d0237ea Source-Link: https://github.com/googleapis/googleapis-gen/commit/22d54f2d8eddd616149c5691d8056ef1290bacfa Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjJkNTRmMmQ4ZWRkZDYxNjE0OWM1NjkxZDgwNTZlZjEyOTBiYWNmYSJ9 docs: fix minor docstring formatting PiperOrigin-RevId: 466493520 Source-Link: googleapis/googleapis@c2674a3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/30077cfdd7aa06b94264ed733e7f68722f65b870 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzAwNzdjZmRkN2FhMDZiOTQyNjRlZDczM2U3ZjY4NzIyZjY1Yjg3MCJ9 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 Source-Link: googleapis/googleapis@19bf693 Source-Link: https://github.com/googleapis/googleapis-gen/commit/90986a3608bdc0a150e88650cffbfd44ae66d59b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTA5ODZhMzYwOGJkYzBhMTUwZTg4NjUwY2ZmYmZkNDRhZTY2ZDU5YiJ9
1 parent b3cd1ac commit a4a1ecf

File tree

345 files changed

+107474
-5097
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+107474
-5097
lines changed

google-cloud-document-ai/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@
125125
<classifier>testlib</classifier>
126126
<scope>test</scope>
127127
</dependency>
128+
<dependency>
129+
<groupId>com.google.api.grpc</groupId>
130+
<artifactId>grpc-google-common-protos</artifactId>
131+
<version>2.9.0</version>
132+
<scope>test</scope>
133+
</dependency>
128134
</dependencies>
129135

130136
<profiles>

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java

+2,394-94
Large diffs are not rendered by default.

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java

+322
Large diffs are not rendered by default.

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json

+48
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,59 @@
1313
"BatchProcessDocuments": {
1414
"methods": ["batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsOperationCallable", "batchProcessDocumentsCallable"]
1515
},
16+
"CreateProcessor": {
17+
"methods": ["createProcessor", "createProcessor", "createProcessor", "createProcessorCallable"]
18+
},
19+
"DeleteProcessor": {
20+
"methods": ["deleteProcessorAsync", "deleteProcessorAsync", "deleteProcessorAsync", "deleteProcessorOperationCallable", "deleteProcessorCallable"]
21+
},
22+
"DeleteProcessorVersion": {
23+
"methods": ["deleteProcessorVersionAsync", "deleteProcessorVersionAsync", "deleteProcessorVersionAsync", "deleteProcessorVersionOperationCallable", "deleteProcessorVersionCallable"]
24+
},
25+
"DeployProcessorVersion": {
26+
"methods": ["deployProcessorVersionAsync", "deployProcessorVersionAsync", "deployProcessorVersionAsync", "deployProcessorVersionOperationCallable", "deployProcessorVersionCallable"]
27+
},
28+
"DisableProcessor": {
29+
"methods": ["disableProcessorAsync", "disableProcessorOperationCallable", "disableProcessorCallable"]
30+
},
31+
"EnableProcessor": {
32+
"methods": ["enableProcessorAsync", "enableProcessorOperationCallable", "enableProcessorCallable"]
33+
},
34+
"FetchProcessorTypes": {
35+
"methods": ["fetchProcessorTypes", "fetchProcessorTypes", "fetchProcessorTypes", "fetchProcessorTypesCallable"]
36+
},
37+
"GetLocation": {
38+
"methods": ["getLocation", "getLocationCallable"]
39+
},
40+
"GetProcessor": {
41+
"methods": ["getProcessor", "getProcessor", "getProcessor", "getProcessorCallable"]
42+
},
43+
"GetProcessorVersion": {
44+
"methods": ["getProcessorVersion", "getProcessorVersion", "getProcessorVersion", "getProcessorVersionCallable"]
45+
},
46+
"ListLocations": {
47+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
48+
},
49+
"ListProcessorTypes": {
50+
"methods": ["listProcessorTypes", "listProcessorTypes", "listProcessorTypes", "listProcessorTypesPagedCallable", "listProcessorTypesCallable"]
51+
},
52+
"ListProcessorVersions": {
53+
"methods": ["listProcessorVersions", "listProcessorVersions", "listProcessorVersions", "listProcessorVersionsPagedCallable", "listProcessorVersionsCallable"]
54+
},
55+
"ListProcessors": {
56+
"methods": ["listProcessors", "listProcessors", "listProcessors", "listProcessorsPagedCallable", "listProcessorsCallable"]
57+
},
1658
"ProcessDocument": {
1759
"methods": ["processDocument", "processDocument", "processDocument", "processDocumentCallable"]
1860
},
1961
"ReviewDocument": {
2062
"methods": ["reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentOperationCallable", "reviewDocumentCallable"]
63+
},
64+
"SetDefaultProcessorVersion": {
65+
"methods": ["setDefaultProcessorVersionAsync", "setDefaultProcessorVersionOperationCallable", "setDefaultProcessorVersionCallable"]
66+
},
67+
"UndeployProcessorVersion": {
68+
"methods": ["undeployProcessorVersionAsync", "undeployProcessorVersionAsync", "undeployProcessorVersionAsync", "undeployProcessorVersionOperationCallable", "undeployProcessorVersionCallable"]
2169
}
2270
}
2371
}

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*/
1616

1717
/**
18-
* The interfaces provided are listed below, along with usage samples.
18+
* A client to Cloud Document AI API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
1921
*
2022
* <p>======================= DocumentProcessorServiceClient =======================
2123
*
@@ -31,7 +33,7 @@
3133
* // It may require modifications to work in your environment.
3234
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
3335
* DocumentProcessorServiceClient.create()) {
34-
* ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
36+
* ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
3537
* ProcessResponse response = documentProcessorServiceClient.processDocument(name);
3638
* }
3739
* }</pre>

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java

+182
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,61 @@
1616

1717
package com.google.cloud.documentai.v1.stub;
1818

19+
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListLocationsPagedResponse;
20+
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorTypesPagedResponse;
21+
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorVersionsPagedResponse;
22+
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorsPagedResponse;
23+
1924
import com.google.api.gax.core.BackgroundResource;
2025
import com.google.api.gax.rpc.OperationCallable;
2126
import com.google.api.gax.rpc.UnaryCallable;
2227
import com.google.cloud.documentai.v1.BatchProcessMetadata;
2328
import com.google.cloud.documentai.v1.BatchProcessRequest;
2429
import com.google.cloud.documentai.v1.BatchProcessResponse;
30+
import com.google.cloud.documentai.v1.CreateProcessorRequest;
31+
import com.google.cloud.documentai.v1.DeleteProcessorMetadata;
32+
import com.google.cloud.documentai.v1.DeleteProcessorRequest;
33+
import com.google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
34+
import com.google.cloud.documentai.v1.DeleteProcessorVersionRequest;
35+
import com.google.cloud.documentai.v1.DeployProcessorVersionMetadata;
36+
import com.google.cloud.documentai.v1.DeployProcessorVersionRequest;
37+
import com.google.cloud.documentai.v1.DeployProcessorVersionResponse;
38+
import com.google.cloud.documentai.v1.DisableProcessorMetadata;
39+
import com.google.cloud.documentai.v1.DisableProcessorRequest;
40+
import com.google.cloud.documentai.v1.DisableProcessorResponse;
41+
import com.google.cloud.documentai.v1.EnableProcessorMetadata;
42+
import com.google.cloud.documentai.v1.EnableProcessorRequest;
43+
import com.google.cloud.documentai.v1.EnableProcessorResponse;
44+
import com.google.cloud.documentai.v1.FetchProcessorTypesRequest;
45+
import com.google.cloud.documentai.v1.FetchProcessorTypesResponse;
46+
import com.google.cloud.documentai.v1.GetProcessorRequest;
47+
import com.google.cloud.documentai.v1.GetProcessorVersionRequest;
48+
import com.google.cloud.documentai.v1.ListProcessorTypesRequest;
49+
import com.google.cloud.documentai.v1.ListProcessorTypesResponse;
50+
import com.google.cloud.documentai.v1.ListProcessorVersionsRequest;
51+
import com.google.cloud.documentai.v1.ListProcessorVersionsResponse;
52+
import com.google.cloud.documentai.v1.ListProcessorsRequest;
53+
import com.google.cloud.documentai.v1.ListProcessorsResponse;
2554
import com.google.cloud.documentai.v1.ProcessRequest;
2655
import com.google.cloud.documentai.v1.ProcessResponse;
56+
import com.google.cloud.documentai.v1.Processor;
57+
import com.google.cloud.documentai.v1.ProcessorVersion;
2758
import com.google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
2859
import com.google.cloud.documentai.v1.ReviewDocumentRequest;
2960
import com.google.cloud.documentai.v1.ReviewDocumentResponse;
61+
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
62+
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
63+
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
64+
import com.google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
65+
import com.google.cloud.documentai.v1.UndeployProcessorVersionRequest;
66+
import com.google.cloud.documentai.v1.UndeployProcessorVersionResponse;
67+
import com.google.cloud.location.GetLocationRequest;
68+
import com.google.cloud.location.ListLocationsRequest;
69+
import com.google.cloud.location.ListLocationsResponse;
70+
import com.google.cloud.location.Location;
3071
import com.google.longrunning.Operation;
3172
import com.google.longrunning.stub.OperationsStub;
73+
import com.google.protobuf.Empty;
3274
import javax.annotation.Generated;
3375

3476
// AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -62,6 +104,133 @@ public UnaryCallable<BatchProcessRequest, Operation> batchProcessDocumentsCallab
62104
throw new UnsupportedOperationException("Not implemented: batchProcessDocumentsCallable()");
63105
}
64106

107+
public UnaryCallable<FetchProcessorTypesRequest, FetchProcessorTypesResponse>
108+
fetchProcessorTypesCallable() {
109+
throw new UnsupportedOperationException("Not implemented: fetchProcessorTypesCallable()");
110+
}
111+
112+
public UnaryCallable<ListProcessorTypesRequest, ListProcessorTypesPagedResponse>
113+
listProcessorTypesPagedCallable() {
114+
throw new UnsupportedOperationException("Not implemented: listProcessorTypesPagedCallable()");
115+
}
116+
117+
public UnaryCallable<ListProcessorTypesRequest, ListProcessorTypesResponse>
118+
listProcessorTypesCallable() {
119+
throw new UnsupportedOperationException("Not implemented: listProcessorTypesCallable()");
120+
}
121+
122+
public UnaryCallable<ListProcessorsRequest, ListProcessorsPagedResponse>
123+
listProcessorsPagedCallable() {
124+
throw new UnsupportedOperationException("Not implemented: listProcessorsPagedCallable()");
125+
}
126+
127+
public UnaryCallable<ListProcessorsRequest, ListProcessorsResponse> listProcessorsCallable() {
128+
throw new UnsupportedOperationException("Not implemented: listProcessorsCallable()");
129+
}
130+
131+
public UnaryCallable<GetProcessorRequest, Processor> getProcessorCallable() {
132+
throw new UnsupportedOperationException("Not implemented: getProcessorCallable()");
133+
}
134+
135+
public UnaryCallable<GetProcessorVersionRequest, ProcessorVersion> getProcessorVersionCallable() {
136+
throw new UnsupportedOperationException("Not implemented: getProcessorVersionCallable()");
137+
}
138+
139+
public UnaryCallable<ListProcessorVersionsRequest, ListProcessorVersionsPagedResponse>
140+
listProcessorVersionsPagedCallable() {
141+
throw new UnsupportedOperationException(
142+
"Not implemented: listProcessorVersionsPagedCallable()");
143+
}
144+
145+
public UnaryCallable<ListProcessorVersionsRequest, ListProcessorVersionsResponse>
146+
listProcessorVersionsCallable() {
147+
throw new UnsupportedOperationException("Not implemented: listProcessorVersionsCallable()");
148+
}
149+
150+
public OperationCallable<DeleteProcessorVersionRequest, Empty, DeleteProcessorVersionMetadata>
151+
deleteProcessorVersionOperationCallable() {
152+
throw new UnsupportedOperationException(
153+
"Not implemented: deleteProcessorVersionOperationCallable()");
154+
}
155+
156+
public UnaryCallable<DeleteProcessorVersionRequest, Operation> deleteProcessorVersionCallable() {
157+
throw new UnsupportedOperationException("Not implemented: deleteProcessorVersionCallable()");
158+
}
159+
160+
public OperationCallable<
161+
DeployProcessorVersionRequest,
162+
DeployProcessorVersionResponse,
163+
DeployProcessorVersionMetadata>
164+
deployProcessorVersionOperationCallable() {
165+
throw new UnsupportedOperationException(
166+
"Not implemented: deployProcessorVersionOperationCallable()");
167+
}
168+
169+
public UnaryCallable<DeployProcessorVersionRequest, Operation> deployProcessorVersionCallable() {
170+
throw new UnsupportedOperationException("Not implemented: deployProcessorVersionCallable()");
171+
}
172+
173+
public OperationCallable<
174+
UndeployProcessorVersionRequest,
175+
UndeployProcessorVersionResponse,
176+
UndeployProcessorVersionMetadata>
177+
undeployProcessorVersionOperationCallable() {
178+
throw new UnsupportedOperationException(
179+
"Not implemented: undeployProcessorVersionOperationCallable()");
180+
}
181+
182+
public UnaryCallable<UndeployProcessorVersionRequest, Operation>
183+
undeployProcessorVersionCallable() {
184+
throw new UnsupportedOperationException("Not implemented: undeployProcessorVersionCallable()");
185+
}
186+
187+
public UnaryCallable<CreateProcessorRequest, Processor> createProcessorCallable() {
188+
throw new UnsupportedOperationException("Not implemented: createProcessorCallable()");
189+
}
190+
191+
public OperationCallable<DeleteProcessorRequest, Empty, DeleteProcessorMetadata>
192+
deleteProcessorOperationCallable() {
193+
throw new UnsupportedOperationException("Not implemented: deleteProcessorOperationCallable()");
194+
}
195+
196+
public UnaryCallable<DeleteProcessorRequest, Operation> deleteProcessorCallable() {
197+
throw new UnsupportedOperationException("Not implemented: deleteProcessorCallable()");
198+
}
199+
200+
public OperationCallable<EnableProcessorRequest, EnableProcessorResponse, EnableProcessorMetadata>
201+
enableProcessorOperationCallable() {
202+
throw new UnsupportedOperationException("Not implemented: enableProcessorOperationCallable()");
203+
}
204+
205+
public UnaryCallable<EnableProcessorRequest, Operation> enableProcessorCallable() {
206+
throw new UnsupportedOperationException("Not implemented: enableProcessorCallable()");
207+
}
208+
209+
public OperationCallable<
210+
DisableProcessorRequest, DisableProcessorResponse, DisableProcessorMetadata>
211+
disableProcessorOperationCallable() {
212+
throw new UnsupportedOperationException("Not implemented: disableProcessorOperationCallable()");
213+
}
214+
215+
public UnaryCallable<DisableProcessorRequest, Operation> disableProcessorCallable() {
216+
throw new UnsupportedOperationException("Not implemented: disableProcessorCallable()");
217+
}
218+
219+
public OperationCallable<
220+
SetDefaultProcessorVersionRequest,
221+
SetDefaultProcessorVersionResponse,
222+
SetDefaultProcessorVersionMetadata>
223+
setDefaultProcessorVersionOperationCallable() {
224+
throw new UnsupportedOperationException(
225+
"Not implemented: setDefaultProcessorVersionOperationCallable()");
226+
}
227+
228+
public UnaryCallable<SetDefaultProcessorVersionRequest, Operation>
229+
setDefaultProcessorVersionCallable() {
230+
throw new UnsupportedOperationException(
231+
"Not implemented: setDefaultProcessorVersionCallable()");
232+
}
233+
65234
public OperationCallable<
66235
ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata>
67236
reviewDocumentOperationCallable() {
@@ -72,6 +241,19 @@ public UnaryCallable<ReviewDocumentRequest, Operation> reviewDocumentCallable()
72241
throw new UnsupportedOperationException("Not implemented: reviewDocumentCallable()");
73242
}
74243

244+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
245+
listLocationsPagedCallable() {
246+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
247+
}
248+
249+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
250+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
251+
}
252+
253+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
254+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
255+
}
256+
75257
@Override
76258
public abstract void close();
77259
}

0 commit comments

Comments
 (0)