File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dialogflow/cloud-client/src/main/java/com/example/dialogflow Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2525import com .google .common .collect .Lists ;
2626
2727import java .util .List ;
28+ import java .util .concurrent .TimeUnit ;
2829
2930public class DocumentManagement {
3031 // [START dialogflow_list_document]
@@ -86,7 +87,7 @@ public static Document createDocument(
8687 .build ();
8788 OperationFuture <Document , KnowledgeOperationMetadata > response =
8889 documentsClient .createDocumentAsync (createDocumentRequest );
89- Document createdDocument = response .get ();
90+ Document createdDocument = response .get (120 , TimeUnit . SECONDS );
9091 System .out .format ("Created Document:\n " );
9192 System .out .format (" - Display Name: %s\n " , createdDocument .getDisplayName ());
9293 System .out .format (" - Knowledge ID: %s\n " , createdDocument .getName ());
You can’t perform that action at this time.
0 commit comments