xyz.block.ftl.v1.GrpcVerbServiceClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftl-generator Show documentation
Show all versions of ftl-generator Show documentation
Towards a 𝝺-calculus for large-scale systems
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.VerbService in xyz/block/ftl/v1/ftl.proto
package xyz.block.ftl.v1
import com.squareup.wire.GrpcCall
import com.squareup.wire.GrpcClient
import com.squareup.wire.GrpcMethod
/**
* VerbService is a common interface shared by multiple services for calling Verbs.
*/
public class GrpcVerbServiceClient(
private val client: GrpcClient,
) : VerbServiceClient {
/**
* Ping service for readiness.
*/
override fun Ping(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.VerbService/Ping",
requestAdapter = PingRequest.ADAPTER,
responseAdapter = PingResponse.ADAPTER
))
/**
* Issue a synchronous call to a Verb.
*/
override fun Call(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.VerbService/Call",
requestAdapter = CallRequest.ADAPTER,
responseAdapter = CallResponse.ADAPTER
))
}