Wire Rpc
annotation class WireRpc(val path: String, val requestAdapter: String, val responseAdapter: String, val sourceFile: String = "")
For gRPC actions the path is formatted as /<service name>/<method name>
. The path of the proto service below is /squareup.helloworld.Greeter/SayHello
.
package squareup.helloworld;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
Content copied to clipboard