• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * A client to Cloud Document AI API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= DocumentUnderstandingServiceClient =======================
23  *
24  * <p>Service Description: Service to parse structured information from unstructured or
25  * semi-structured documents using state-of-the-art Google AI such as natural language, computer
26  * vision, and translation.
27  *
28  * <p>Sample for DocumentUnderstandingServiceClient:
29  *
30  * <pre>{@code
31  * // This snippet has been automatically generated and should be regarded as a code template only.
32  * // It will require modifications to work:
33  * // - It may require correct/in-range values for request initialization.
34  * // - It may require specifying regional endpoints when creating the service client as shown in
35  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
36  * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
37  *     DocumentUnderstandingServiceClient.create()) {
38  *   ProcessDocumentRequest request =
39  *       ProcessDocumentRequest.newBuilder()
40  *           .setParent("parent-995424086")
41  *           .setInputConfig(InputConfig.newBuilder().build())
42  *           .setOutputConfig(OutputConfig.newBuilder().build())
43  *           .setDocumentType("documentType-1473196299")
44  *           .setTableExtractionParams(TableExtractionParams.newBuilder().build())
45  *           .setFormExtractionParams(FormExtractionParams.newBuilder().build())
46  *           .setEntityExtractionParams(EntityExtractionParams.newBuilder().build())
47  *           .setOcrParams(OcrParams.newBuilder().build())
48  *           .setAutomlParams(AutoMlParams.newBuilder().build())
49  *           .build();
50  *   Document response = documentUnderstandingServiceClient.processDocument(request);
51  * }
52  * }</pre>
53  */
54 @Generated("by gapic-generator-java")
55 package com.google.cloud.documentai.v1beta2;
56 
57 import javax.annotation.Generated;
58