diff --git a/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java b/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java index c86b4d27f50..25b39b837f1 100644 --- a/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java +++ b/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java @@ -29,6 +29,7 @@ import com.google.longrunning.OperationsGrpc; import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; import io.grpc.StatusRuntimeException; import io.grpc.auth.ClientAuthInterceptor; import io.grpc.netty.NegotiationType; @@ -88,7 +89,7 @@ public static ManagedChannel createChannel(String host, int port) throws IOExcep GoogleCredentials creds = GoogleCredentials.getApplicationDefault(); creds = creds.createScoped(OAUTH2_SCOPES); ManagedChannel channel = - NettyChannelBuilder.forAddress(host, port) + ManagedChannelBuilder.forAddress(host, port) .negotiationType(NegotiationType.TLS) .intercept(new ClientAuthInterceptor(creds, Executors.newSingleThreadExecutor())) .build();