All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.block.ftl.v1.console.GrpcConsoleServiceClient.kt Maven / Gradle / Ivy

There is a newer version: 0.133.2
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.console.ConsoleService in xyz/block/ftl/v1/console/console.proto
package xyz.block.ftl.v1.console

import com.squareup.wire.GrpcCall
import com.squareup.wire.GrpcClient
import com.squareup.wire.GrpcMethod
import com.squareup.wire.GrpcStreamingCall
import xyz.block.ftl.v1.PingRequest
import xyz.block.ftl.v1.PingResponse

public class GrpcConsoleServiceClient(
  private val client: GrpcClient,
) : ConsoleServiceClient {
  /**
   * Ping service for readiness.
   */
  override fun Ping(): GrpcCall = client.newCall(GrpcMethod(
      path = "/xyz.block.ftl.v1.console.ConsoleService/Ping",
      requestAdapter = PingRequest.ADAPTER,
      responseAdapter = PingResponse.ADAPTER
  ))

  override fun GetModules(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/xyz.block.ftl.v1.console.ConsoleService/GetModules",
      requestAdapter = GetModulesRequest.ADAPTER,
      responseAdapter = GetModulesResponse.ADAPTER
  ))

  override fun StreamEvents(): GrpcStreamingCall =
      client.newStreamingCall(GrpcMethod(
      path = "/xyz.block.ftl.v1.console.ConsoleService/StreamEvents",
      requestAdapter = StreamEventsRequest.ADAPTER,
      responseAdapter = StreamEventsResponse.ADAPTER
  ))

  override fun GetEvents(): GrpcCall = client.newCall(GrpcMethod(
      path = "/xyz.block.ftl.v1.console.ConsoleService/GetEvents",
      requestAdapter = EventsQuery.ADAPTER,
      responseAdapter = GetEventsResponse.ADAPTER
  ))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy