0

我正在尝试使用带有 scalaPB 的 gRpc 构建客户端。根据文档,我应该能够运行以下命令来创建频道:

ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build

但是当我无法识别构建方法时,这是因为以下返回的是 Any 而不是 ManageChannelBuilder

val channelBuilder: Any = ManagedChannelBuilder.forAddress("localhost", 5000).usePlaintext(true)
4

0 回答 0