Skip to content

Commit 5a77721

Browse files
dpebotchingor13
authored andcommitted
samples: Auto-update dependencies. (#853)
* Auto-update dependencies. * fixup stuff. 1. Bigtable uses 1.1.33.Final 2. Bigtable should use 1.0.0-pre3 3. Try and fix logging 4. remove a bunch of <prerequsites> (which is both required and annoys Maven - the versions plugin is confused, recommends using enforcer, then doesn’t care. 5. update to guava 23.0 where possible. 6. requires ignoring guava-jdk5 7. Storage sample would never compile. 8. add —fail-at-end so we see more of what’s wrong.
1 parent 1b6f864 commit 5a77721

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

speech/snippets/src/main/java/com/example/speech/Recognize.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.example.speech;
1818

1919
import com.google.api.gax.rpc.ApiStreamObserver;
20+
import com.google.api.gax.rpc.BidiStreamingCallable;
2021
import com.google.api.gax.rpc.OperationFuture;
21-
import com.google.api.gax.rpc.StreamingCallable;
2222
import com.google.cloud.speech.v1.LongRunningRecognizeMetadata;
2323
import com.google.cloud.speech.v1.LongRunningRecognizeResponse;
2424
import com.google.cloud.speech.v1.RecognitionAudio;
@@ -36,7 +36,6 @@
3636
import com.google.common.util.concurrent.SettableFuture;
3737
import com.google.longrunning.Operation;
3838
import com.google.protobuf.ByteString;
39-
4039
import java.io.IOException;
4140
import java.nio.file.Files;
4241
import java.nio.file.Path;
@@ -382,7 +381,7 @@ public SettableFuture<List<T>> future() {
382381
ResponseApiStreamingObserver<StreamingRecognizeResponse> responseObserver =
383382
new ResponseApiStreamingObserver<StreamingRecognizeResponse>();
384383

385-
StreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> callable =
384+
BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> callable =
386385
speech.streamingRecognizeCallable();
387386

388387
ApiStreamObserver<StreamingRecognizeRequest> requestObserver =

0 commit comments

Comments
 (0)