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

commonMain.media.node.GrpcHiveNodeClient.kt Maven / Gradle / Ivy

Go to download

KMP package which exports compiled protobuf entities to be used by other repos

There is a newer version: 2.89.0
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: media.node.HiveNode in media/hub_node.proto
package media.node

import com.squareup.wire.GrpcCall
import com.squareup.wire.GrpcClient
import com.squareup.wire.GrpcMethod
import media.CreateTransportRequest
import media.CreateTransportResponse
import media.RenegotiateRequest
import media.RenegotiateResponse

public class GrpcHiveNodeClient(
  private val client: GrpcClient,
) : HiveNodeClient {
  public override fun GetCapacity(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/GetCapacity",
      requestAdapter = GetCapacityRequest.ADAPTER,
      responseAdapter = GetCapacityResponse.ADAPTER
  ))

  public override fun ReserveCapacity(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/ReserveCapacity",
      requestAdapter = ReserveCapacityRequest.ADAPTER,
      responseAdapter = ReserveCapacityResponse.ADAPTER
  ))

  public override fun RegisterHubHandshake():
      GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/RegisterHubHandshake",
      requestAdapter = RegisterHubHandshakeRequest.ADAPTER,
      responseAdapter = RegisterHubHandshakeResponse.ADAPTER
  ))

  public override fun DeregisterHubHandshake():
      GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/DeregisterHubHandshake",
      requestAdapter = DeregisterHubHandshakeRequest.ADAPTER,
      responseAdapter = DeregisterHubHandshakeResponse.ADAPTER
  ))

  public override fun RenegotiateSessionDescription():
      GrpcCall = client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/RenegotiateSessionDescription",
      requestAdapter = RenegotiateRequest.ADAPTER,
      responseAdapter = RenegotiateResponse.ADAPTER
  ))

  public override fun CreateTransport(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CreateTransport",
      requestAdapter = CreateTransportRequest.ADAPTER,
      responseAdapter = CreateTransportResponse.ADAPTER
  ))

  public override fun CreateConsumers(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CreateConsumers",
      requestAdapter = CreateConsumersRequest.ADAPTER,
      responseAdapter = CreateConsumersResponse.ADAPTER
  ))

  public override fun CreateConsumersForMultipleProducers():
      GrpcCall
      = client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CreateConsumersForMultipleProducers",
      requestAdapter = CreateConsumersForMultipleProducersRequest.ADAPTER,
      responseAdapter = CreateConsumersForMultipleProducersResponse.ADAPTER
  ))

  public override fun CreateProducer(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CreateProducer",
      requestAdapter = CreateProducerRequest.ADAPTER,
      responseAdapter = CreateProducerResponse.ADAPTER
  ))

  public override fun ToggleProducer(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/ToggleProducer",
      requestAdapter = ToggleProducerRequest.ADAPTER,
      responseAdapter = ToggleProducerResponse.ADAPTER
  ))

  public override fun ToggleConsumer(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/ToggleConsumer",
      requestAdapter = ToggleConsumerRequest.ADAPTER,
      responseAdapter = ToggleConsumerResponse.ADAPTER
  ))

  public override fun CloseConsumer(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CloseConsumer",
      requestAdapter = CloseConsumerRequest.ADAPTER,
      responseAdapter = CloseConsumerResponse.ADAPTER
  ))

  public override fun CloseProducer(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CloseProducer",
      requestAdapter = CloseProducerRequest.ADAPTER,
      responseAdapter = CloseProducerResponse.ADAPTER
  ))

  public override fun CloseTransport(): GrpcCall =
      client.newCall(GrpcMethod(
      path = "/media.node.HiveNode/CloseTransport",
      requestAdapter = CloseTransportRequest.ADAPTER,
      responseAdapter = CloseTransportResponse.ADAPTER
  ))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy