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

Commit

Permalink
feat: Added field_mask to ProcessRequest object in document_processor…
Browse files Browse the repository at this point in the history
…_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
  • Loading branch information
gcf-owl-bot[bot] authored Aug 16, 2022
1 parent b3cd1ac commit a4a1ecf
Show file tree
Hide file tree
Showing 345 changed files with 107,474 additions and 5,097 deletions.
6 changes: 6 additions & 0 deletions google-cloud-document-ai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
<classifier>testlib</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,59 @@
"BatchProcessDocuments": {
"methods": ["batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsOperationCallable", "batchProcessDocumentsCallable"]
},
"CreateProcessor": {
"methods": ["createProcessor", "createProcessor", "createProcessor", "createProcessorCallable"]
},
"DeleteProcessor": {
"methods": ["deleteProcessorAsync", "deleteProcessorAsync", "deleteProcessorAsync", "deleteProcessorOperationCallable", "deleteProcessorCallable"]
},
"DeleteProcessorVersion": {
"methods": ["deleteProcessorVersionAsync", "deleteProcessorVersionAsync", "deleteProcessorVersionAsync", "deleteProcessorVersionOperationCallable", "deleteProcessorVersionCallable"]
},
"DeployProcessorVersion": {
"methods": ["deployProcessorVersionAsync", "deployProcessorVersionAsync", "deployProcessorVersionAsync", "deployProcessorVersionOperationCallable", "deployProcessorVersionCallable"]
},
"DisableProcessor": {
"methods": ["disableProcessorAsync", "disableProcessorOperationCallable", "disableProcessorCallable"]
},
"EnableProcessor": {
"methods": ["enableProcessorAsync", "enableProcessorOperationCallable", "enableProcessorCallable"]
},
"FetchProcessorTypes": {
"methods": ["fetchProcessorTypes", "fetchProcessorTypes", "fetchProcessorTypes", "fetchProcessorTypesCallable"]
},
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"GetProcessor": {
"methods": ["getProcessor", "getProcessor", "getProcessor", "getProcessorCallable"]
},
"GetProcessorVersion": {
"methods": ["getProcessorVersion", "getProcessorVersion", "getProcessorVersion", "getProcessorVersionCallable"]
},
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
"ListProcessorTypes": {
"methods": ["listProcessorTypes", "listProcessorTypes", "listProcessorTypes", "listProcessorTypesPagedCallable", "listProcessorTypesCallable"]
},
"ListProcessorVersions": {
"methods": ["listProcessorVersions", "listProcessorVersions", "listProcessorVersions", "listProcessorVersionsPagedCallable", "listProcessorVersionsCallable"]
},
"ListProcessors": {
"methods": ["listProcessors", "listProcessors", "listProcessors", "listProcessorsPagedCallable", "listProcessorsCallable"]
},
"ProcessDocument": {
"methods": ["processDocument", "processDocument", "processDocument", "processDocumentCallable"]
},
"ReviewDocument": {
"methods": ["reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentOperationCallable", "reviewDocumentCallable"]
},
"SetDefaultProcessorVersion": {
"methods": ["setDefaultProcessorVersionAsync", "setDefaultProcessorVersionOperationCallable", "setDefaultProcessorVersionCallable"]
},
"UndeployProcessorVersion": {
"methods": ["undeployProcessorVersionAsync", "undeployProcessorVersionAsync", "undeployProcessorVersionAsync", "undeployProcessorVersionOperationCallable", "undeployProcessorVersionCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to Cloud Document AI API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= DocumentProcessorServiceClient =======================
*
Expand All @@ -31,7 +33,7 @@
* // It may require modifications to work in your environment.
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
* DocumentProcessorServiceClient.create()) {
* ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
* ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
* ProcessResponse response = documentProcessorServiceClient.processDocument(name);
* }
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,61 @@

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

import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorTypesPagedResponse;
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorVersionsPagedResponse;
import static com.google.cloud.documentai.v1.DocumentProcessorServiceClient.ListProcessorsPagedResponse;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.documentai.v1.BatchProcessMetadata;
import com.google.cloud.documentai.v1.BatchProcessRequest;
import com.google.cloud.documentai.v1.BatchProcessResponse;
import com.google.cloud.documentai.v1.CreateProcessorRequest;
import com.google.cloud.documentai.v1.DeleteProcessorMetadata;
import com.google.cloud.documentai.v1.DeleteProcessorRequest;
import com.google.cloud.documentai.v1.DeleteProcessorVersionMetadata;
import com.google.cloud.documentai.v1.DeleteProcessorVersionRequest;
import com.google.cloud.documentai.v1.DeployProcessorVersionMetadata;
import com.google.cloud.documentai.v1.DeployProcessorVersionRequest;
import com.google.cloud.documentai.v1.DeployProcessorVersionResponse;
import com.google.cloud.documentai.v1.DisableProcessorMetadata;
import com.google.cloud.documentai.v1.DisableProcessorRequest;
import com.google.cloud.documentai.v1.DisableProcessorResponse;
import com.google.cloud.documentai.v1.EnableProcessorMetadata;
import com.google.cloud.documentai.v1.EnableProcessorRequest;
import com.google.cloud.documentai.v1.EnableProcessorResponse;
import com.google.cloud.documentai.v1.FetchProcessorTypesRequest;
import com.google.cloud.documentai.v1.FetchProcessorTypesResponse;
import com.google.cloud.documentai.v1.GetProcessorRequest;
import com.google.cloud.documentai.v1.GetProcessorVersionRequest;
import com.google.cloud.documentai.v1.ListProcessorTypesRequest;
import com.google.cloud.documentai.v1.ListProcessorTypesResponse;
import com.google.cloud.documentai.v1.ListProcessorVersionsRequest;
import com.google.cloud.documentai.v1.ListProcessorVersionsResponse;
import com.google.cloud.documentai.v1.ListProcessorsRequest;
import com.google.cloud.documentai.v1.ListProcessorsResponse;
import com.google.cloud.documentai.v1.ProcessRequest;
import com.google.cloud.documentai.v1.ProcessResponse;
import com.google.cloud.documentai.v1.Processor;
import com.google.cloud.documentai.v1.ProcessorVersion;
import com.google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
import com.google.cloud.documentai.v1.ReviewDocumentRequest;
import com.google.cloud.documentai.v1.ReviewDocumentResponse;
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata;
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest;
import com.google.cloud.documentai.v1.SetDefaultProcessorVersionResponse;
import com.google.cloud.documentai.v1.UndeployProcessorVersionMetadata;
import com.google.cloud.documentai.v1.UndeployProcessorVersionRequest;
import com.google.cloud.documentai.v1.UndeployProcessorVersionResponse;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
import javax.annotation.Generated;

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

public UnaryCallable<FetchProcessorTypesRequest, FetchProcessorTypesResponse>
fetchProcessorTypesCallable() {
throw new UnsupportedOperationException("Not implemented: fetchProcessorTypesCallable()");
}

public UnaryCallable<ListProcessorTypesRequest, ListProcessorTypesPagedResponse>
listProcessorTypesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listProcessorTypesPagedCallable()");
}

public UnaryCallable<ListProcessorTypesRequest, ListProcessorTypesResponse>
listProcessorTypesCallable() {
throw new UnsupportedOperationException("Not implemented: listProcessorTypesCallable()");
}

public UnaryCallable<ListProcessorsRequest, ListProcessorsPagedResponse>
listProcessorsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listProcessorsPagedCallable()");
}

public UnaryCallable<ListProcessorsRequest, ListProcessorsResponse> listProcessorsCallable() {
throw new UnsupportedOperationException("Not implemented: listProcessorsCallable()");
}

public UnaryCallable<GetProcessorRequest, Processor> getProcessorCallable() {
throw new UnsupportedOperationException("Not implemented: getProcessorCallable()");
}

public UnaryCallable<GetProcessorVersionRequest, ProcessorVersion> getProcessorVersionCallable() {
throw new UnsupportedOperationException("Not implemented: getProcessorVersionCallable()");
}

public UnaryCallable<ListProcessorVersionsRequest, ListProcessorVersionsPagedResponse>
listProcessorVersionsPagedCallable() {
throw new UnsupportedOperationException(
"Not implemented: listProcessorVersionsPagedCallable()");
}

public UnaryCallable<ListProcessorVersionsRequest, ListProcessorVersionsResponse>
listProcessorVersionsCallable() {
throw new UnsupportedOperationException("Not implemented: listProcessorVersionsCallable()");
}

public OperationCallable<DeleteProcessorVersionRequest, Empty, DeleteProcessorVersionMetadata>
deleteProcessorVersionOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteProcessorVersionOperationCallable()");
}

public UnaryCallable<DeleteProcessorVersionRequest, Operation> deleteProcessorVersionCallable() {
throw new UnsupportedOperationException("Not implemented: deleteProcessorVersionCallable()");
}

public OperationCallable<
DeployProcessorVersionRequest,
DeployProcessorVersionResponse,
DeployProcessorVersionMetadata>
deployProcessorVersionOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: deployProcessorVersionOperationCallable()");
}

public UnaryCallable<DeployProcessorVersionRequest, Operation> deployProcessorVersionCallable() {
throw new UnsupportedOperationException("Not implemented: deployProcessorVersionCallable()");
}

public OperationCallable<
UndeployProcessorVersionRequest,
UndeployProcessorVersionResponse,
UndeployProcessorVersionMetadata>
undeployProcessorVersionOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: undeployProcessorVersionOperationCallable()");
}

public UnaryCallable<UndeployProcessorVersionRequest, Operation>
undeployProcessorVersionCallable() {
throw new UnsupportedOperationException("Not implemented: undeployProcessorVersionCallable()");
}

public UnaryCallable<CreateProcessorRequest, Processor> createProcessorCallable() {
throw new UnsupportedOperationException("Not implemented: createProcessorCallable()");
}

public OperationCallable<DeleteProcessorRequest, Empty, DeleteProcessorMetadata>
deleteProcessorOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteProcessorOperationCallable()");
}

public UnaryCallable<DeleteProcessorRequest, Operation> deleteProcessorCallable() {
throw new UnsupportedOperationException("Not implemented: deleteProcessorCallable()");
}

public OperationCallable<EnableProcessorRequest, EnableProcessorResponse, EnableProcessorMetadata>
enableProcessorOperationCallable() {
throw new UnsupportedOperationException("Not implemented: enableProcessorOperationCallable()");
}

public UnaryCallable<EnableProcessorRequest, Operation> enableProcessorCallable() {
throw new UnsupportedOperationException("Not implemented: enableProcessorCallable()");
}

public OperationCallable<
DisableProcessorRequest, DisableProcessorResponse, DisableProcessorMetadata>
disableProcessorOperationCallable() {
throw new UnsupportedOperationException("Not implemented: disableProcessorOperationCallable()");
}

public UnaryCallable<DisableProcessorRequest, Operation> disableProcessorCallable() {
throw new UnsupportedOperationException("Not implemented: disableProcessorCallable()");
}

public OperationCallable<
SetDefaultProcessorVersionRequest,
SetDefaultProcessorVersionResponse,
SetDefaultProcessorVersionMetadata>
setDefaultProcessorVersionOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: setDefaultProcessorVersionOperationCallable()");
}

public UnaryCallable<SetDefaultProcessorVersionRequest, Operation>
setDefaultProcessorVersionCallable() {
throw new UnsupportedOperationException(
"Not implemented: setDefaultProcessorVersionCallable()");
}

public OperationCallable<
ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata>
reviewDocumentOperationCallable() {
Expand All @@ -72,6 +241,19 @@ public UnaryCallable<ReviewDocumentRequest, Operation> reviewDocumentCallable()
throw new UnsupportedOperationException("Not implemented: reviewDocumentCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
}

public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
}

@Override
public abstract void close();
}
Loading

0 comments on commit a4a1ecf

Please sign in to comment.