addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.18") libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.7.1"
import scalapb.compiler.Version.{ scalapbVersion, grpcJavaVersion } PB.targets in Compile ++= Seq( scalapb.gen() -> (sourceManaged in Compile).value ) libraryDependencies ++= Seq( "io.grpc" % "grpc-netty" % grpcJavaVersion, "com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapbVersion )
def hello(request: Req, observer: StreamObserver[Res]): Unit = { // observer.onNext を0回以上複数回呼ぶ }