-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 Source-Link: googleapis/googleapis@d0237ea Source-Link: https://github.com/googleapis/googleapis-gen/commit/22d54f2d8eddd616149c5691d8056ef1290bacfa Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiMjJkNTRmMmQ4ZWRkZDYxNjE0OWM1NjkxZDgwNTZlZjEyOTBiYWNmYSJ9
- Loading branch information
1 parent
7bb42de
commit effeb4b
Showing
600 changed files
with
397,561 additions
and
0 deletions.
There are no files selected for viewing
2,901 changes: 2,901 additions & 0 deletions
2,901
...ument-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
573 changes: 573 additions & 0 deletions
573
...ent-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java
Large diffs are not rendered by default.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
...google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"schema": "1.0", | ||
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods", | ||
"language": "java", | ||
"protoPackage": "google.cloud.documentai.v1", | ||
"libraryPackage": "com.google.cloud.documentai.v1", | ||
"services": { | ||
"DocumentProcessorService": { | ||
"clients": { | ||
"grpc": { | ||
"libraryClient": "DocumentProcessorServiceClient", | ||
"rpcs": { | ||
"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"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* A client to Cloud Document AI API | ||
* | ||
* <p>The interfaces provided are listed below, along with usage samples. | ||
* | ||
* <p>======================= DocumentProcessorServiceClient ======================= | ||
* | ||
* <p>Service Description: Service to call Cloud DocumentAI to process documents according to the | ||
* processor's definition. Processors are built using state-of-the-art Google AI such as natural | ||
* language, computer vision, and translation to extract structured information from unstructured or | ||
* semi-structured documents. | ||
* | ||
* <p>Sample for DocumentProcessorServiceClient: | ||
* | ||
* <pre>{@code | ||
* // This snippet has been automatically generated for illustrative purposes only. | ||
* // It may require modifications to work in your environment. | ||
* try (DocumentProcessorServiceClient documentProcessorServiceClient = | ||
* DocumentProcessorServiceClient.create()) { | ||
* ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); | ||
* ProcessResponse response = documentProcessorServiceClient.processDocument(name); | ||
* } | ||
* }</pre> | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
package com.google.cloud.documentai.v1; | ||
|
||
import javax.annotation.Generated; |
256 changes: 256 additions & 0 deletions
256
...nt-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,256 @@ | ||
/* | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
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. | ||
/** | ||
* Base stub class for the DocumentProcessorService service API. | ||
* | ||
* <p>This class is for advanced usage and reflects the underlying API directly. | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
public abstract class DocumentProcessorServiceStub implements BackgroundResource { | ||
|
||
public OperationsStub getOperationsStub() { | ||
return null; | ||
} | ||
|
||
public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { | ||
return null; | ||
} | ||
|
||
public UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCallable() { | ||
throw new UnsupportedOperationException("Not implemented: processDocumentCallable()"); | ||
} | ||
|
||
public OperationCallable<BatchProcessRequest, BatchProcessResponse, BatchProcessMetadata> | ||
batchProcessDocumentsOperationCallable() { | ||
throw new UnsupportedOperationException( | ||
"Not implemented: batchProcessDocumentsOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<BatchProcessRequest, Operation> batchProcessDocumentsCallable() { | ||
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() { | ||
throw new UnsupportedOperationException("Not implemented: reviewDocumentOperationCallable()"); | ||
} | ||
|
||
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(); | ||
} |
Oops, something went wrong.