|
16 | 16 |
|
17 | 17 | package com.example.video;
|
18 | 18 |
|
19 |
| -import com.google.api.gax.rpc.OperationFuture; |
| 19 | +import com.google.api.gax.longrunning.OperationFuture; |
20 | 20 | import com.google.cloud.videointelligence.v1beta2.AnnotateVideoProgress;
|
21 | 21 | import com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest;
|
22 | 22 | import com.google.cloud.videointelligence.v1beta2.AnnotateVideoResponse;
|
@@ -113,7 +113,7 @@ public static void analyzeFaces(String gcsUri) throws Exception {
|
113 | 113 | .build();
|
114 | 114 |
|
115 | 115 | // asynchronously perform facial analysis on videos
|
116 |
| - OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress, Operation> response |
| 116 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> response |
117 | 117 | = client.annotateVideoAsync(request);
|
118 | 118 |
|
119 | 119 | boolean faceFound = false;
|
@@ -174,7 +174,7 @@ public static void analyzeLabels(String gcsUri) throws Exception {
|
174 | 174 | .addFeatures(Feature.LABEL_DETECTION)
|
175 | 175 | .build();
|
176 | 176 | // Create an operation that will contain the response when the operation completes.
|
177 |
| - OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress, Operation> operation = |
| 177 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
178 | 178 | client.annotateVideoAsync(request);
|
179 | 179 |
|
180 | 180 | System.out.println("Waiting for operation to complete...");
|
@@ -261,7 +261,7 @@ public static void analyzeLabelsFile(String filePath) throws Exception {
|
261 | 261 | .build();
|
262 | 262 |
|
263 | 263 | // Create an operation that will contain the response when the operation completes.
|
264 |
| - OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress, Operation> operation = |
| 264 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
265 | 265 | client.annotateVideoAsync(request);
|
266 | 266 |
|
267 | 267 | System.out.println("Waiting for operation to complete...");
|
@@ -344,7 +344,7 @@ public static void analyzeShots(String gcsUri) throws Exception {
|
344 | 344 | .build();
|
345 | 345 |
|
346 | 346 | // Create an operation that will contain the response when the operation completes.
|
347 |
| - OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress, Operation> operation = |
| 347 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
348 | 348 | client.annotateVideoAsync(request);
|
349 | 349 | System.out.println("Waiting for operation to complete...");
|
350 | 350 |
|
@@ -382,7 +382,7 @@ public static void analyzeExplicitContent(String gcsUri) throws Exception {
|
382 | 382 | .addFeatures(Feature.EXPLICIT_CONTENT_DETECTION)
|
383 | 383 | .build();
|
384 | 384 |
|
385 |
| - OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress, Operation> operation = |
| 385 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
386 | 386 | client.annotateVideoAsync(request);
|
387 | 387 |
|
388 | 388 | System.out.println("Waiting for operation to complete...");
|
|
0 commit comments