I am parsing a large PDF using Google Vision API asyncBatchAnnotateFilesAsync using Java Now I want to poll the request every 1 second to check the current status of the Async annotation request using getMetadata() method for the long-running operation Async call.
If I print(response.GetMetadat()), I get this output : [status=PENDING, info=[inputFuture=[com.google.api.core.AbstractApiFuture$InternalSettableFuture@ac76b42[status=PENDING]], function=[com.google.api.core.ApiFutures$ApiFunctionToGuavaFunction@268aa98c]]]
But I want to only capture status (status=PENDING) part of getMetadata(). I am not sure what variable datatype should I declare in Java to capture output of getMetadata() so I could parse it to get just "Status"