WireRpc

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
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) {}
}

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard