diff --git a/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java b/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java index 0a853a0c059..efee05e61ec 100644 --- a/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java +++ b/document-ai/snippets/src/main/java/documentai/v1/BatchProcessDocument.java @@ -106,7 +106,7 @@ public static void batchProcessDocument( // Note: first request to the service takes longer than subsequent // requests. System.out.println("Waiting for operation to complete..."); - future.get(180, TimeUnit.SECONDS); + future.get(240, TimeUnit.SECONDS); System.out.println("Document processing complete."); diff --git a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java index ed61ad37b0c..fe1efb75b88 100644 --- a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java +++ b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseFormBeta.java @@ -128,7 +128,7 @@ public static void batchParseFormGcs( // Wait for operation to complete. System.out.println("Waiting for operation to complete..."); - future.get(300, TimeUnit.SECONDS); + future.get(360, TimeUnit.SECONDS); System.out.println("Document processing complete."); diff --git a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java index dacaed9510b..bef6031553b 100644 --- a/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java +++ b/document-ai/snippets/src/main/java/documentai/v1beta2/BatchParseTableBeta.java @@ -131,7 +131,7 @@ public static void batchParseTableGcs( // Wait for operation to complete. System.out.println("Waiting for operation to complete..."); - future.get(300, TimeUnit.SECONDS); + future.get(360, TimeUnit.SECONDS); System.out.println("Document processing complete.");