Skip to content

Commit 166b90e

Browse files
authored
feat: generate v1 client (#421)
1 parent f1a7877 commit 166b90e

9 files changed

Lines changed: 15 additions & 19 deletions

File tree

‎document-ai/snippets/src/main/java/documentai/v1beta2/SetEndPointBeta.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public static void setEndpoint(String projectId, String location, String inputGc
5656
// mime_type can be application/pdf, image/tiff,
5757
// and image/gif, or application/json
5858
InputConfig config =
59-
InputConfig.newBuilder().setGcsSource(uri)
60-
.setMimeType("application/pdf").build();
59+
InputConfig.newBuilder().setGcsSource(uri).setMimeType("application/pdf").build();
6160

6261
ProcessDocumentRequest request =
6362
ProcessDocumentRequest.newBuilder().setParent(parent).setInputConfig(config).build();

‎document-ai/snippets/src/main/java/documentai/v1beta3/BatchProcessDocumentBeta.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import com.google.api.gax.longrunning.OperationFuture;
2222
import com.google.api.gax.paging.Page;
23-
import com.google.api.gax.rpc.UnknownException;
2423
import com.google.cloud.documentai.v1beta3.BatchProcessMetadata;
2524
import com.google.cloud.documentai.v1beta3.BatchProcessRequest;
2625
import com.google.cloud.documentai.v1beta3.BatchProcessResponse;

‎document-ai/snippets/src/test/java/documentai/v1beta2/BatchParseFormBetaTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class BatchParseFormBetaTest {
4444

4545
private static void requireEnvVar(String varName) {
4646
assertNotNull(
47-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
48-
System.getenv(varName));
47+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
48+
System.getenv(varName));
4949
}
5050

5151
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/BatchParseTableBetaTest.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.concurrent.TimeoutException;
3232
import org.junit.After;
3333
import org.junit.Before;
34-
import org.junit.Ignore;
3534
import org.junit.Test;
3635

3736
public class BatchParseTableBetaTest {
@@ -45,8 +44,8 @@ public class BatchParseTableBetaTest {
4544

4645
private static void requireEnvVar(String varName) {
4746
assertNotNull(
48-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
49-
System.getenv(varName));
47+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
48+
System.getenv(varName));
5049
}
5150

5251
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/ParseFormBetaTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class ParseFormBetaTest {
3636

3737
private static void requireEnvVar(String varName) {
3838
assertNotNull(
39-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
40-
System.getenv(varName));
39+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
40+
System.getenv(varName));
4141
}
4242

4343
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/ParseTableBetaTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class ParseTableBetaTest {
3535

3636
private static void requireEnvVar(String varName) {
3737
assertNotNull(
38-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39-
System.getenv(varName));
38+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39+
System.getenv(varName));
4040
}
4141

4242
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/ParseWithModelBetaTest.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ public class ParseWithModelBetaTest {
3434
private ByteArrayOutputStream bout;
3535
private PrintStream out;
3636

37-
3837
private static void requireEnvVar(String varName) {
3938
assertNotNull(
40-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
41-
System.getenv(varName));
39+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
40+
System.getenv(varName));
4241
}
4342

4443
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/QuickStartTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class QuickStartTest {
3535

3636
private static void requireEnvVar(String varName) {
3737
assertNotNull(
38-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39-
System.getenv(varName));
38+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39+
System.getenv(varName));
4040
}
4141

4242
@Before

‎document-ai/snippets/src/test/java/documentai/v1beta2/SetEndpointTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class SetEndpointTest {
3535

3636
private static void requireEnvVar(String varName) {
3737
assertNotNull(
38-
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39-
System.getenv(varName));
38+
String.format("Environment variable '%s' must be set to perform these tests.", varName),
39+
System.getenv(varName));
4040
}
4141

4242
@Before

0 commit comments

Comments
 (0)