xyz.stratalab.node.services.RegtestRpcGrpc.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package xyz.stratalab.node.services
object RegtestRpcGrpc {
val METHOD_MAKE_BLOCKS: _root_.io.grpc.MethodDescriptor[xyz.stratalab.node.services.MakeBlocksReq, xyz.stratalab.node.services.MakeBlocksRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("xyz.stratalab.node.services.RegtestRpc", "MakeBlocks"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[xyz.stratalab.node.services.MakeBlocksReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[xyz.stratalab.node.services.MakeBlocksRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(xyz.stratalab.node.services.RegtestProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("xyz.stratalab.node.services.RegtestRpc")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(xyz.stratalab.node.services.RegtestProto.javaDescriptor))
.addMethod(METHOD_MAKE_BLOCKS)
.build()
trait RegtestRpc extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[RegtestRpc] = RegtestRpc
/** Instruct the node to make new blocks
*/
def makeBlocks(request: xyz.stratalab.node.services.MakeBlocksReq): scala.concurrent.Future[xyz.stratalab.node.services.MakeBlocksRes]
}
object RegtestRpc extends _root_.scalapb.grpc.ServiceCompanion[RegtestRpc] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[RegtestRpc] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = xyz.stratalab.node.services.RegtestProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = xyz.stratalab.node.services.RegtestProto.scalaDescriptor.services(0)
def bindService(serviceImpl: RegtestRpc, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
.addMethod(
METHOD_MAKE_BLOCKS,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: xyz.stratalab.node.services.MakeBlocksReq, observer: _root_.io.grpc.stub.StreamObserver[xyz.stratalab.node.services.MakeBlocksRes]) => {
serviceImpl.makeBlocks(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.build()
}
trait RegtestRpcBlockingClient {
def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[RegtestRpc] = RegtestRpc
/** Instruct the node to make new blocks
*/
def makeBlocks(request: xyz.stratalab.node.services.MakeBlocksReq): xyz.stratalab.node.services.MakeBlocksRes
}
class RegtestRpcBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[RegtestRpcBlockingStub](channel, options) with RegtestRpcBlockingClient {
/** Instruct the node to make new blocks
*/
override def makeBlocks(request: xyz.stratalab.node.services.MakeBlocksReq): xyz.stratalab.node.services.MakeBlocksRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_MAKE_BLOCKS, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): RegtestRpcBlockingStub = new RegtestRpcBlockingStub(channel, options)
}
class RegtestRpcStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[RegtestRpcStub](channel, options) with RegtestRpc {
/** Instruct the node to make new blocks
*/
override def makeBlocks(request: xyz.stratalab.node.services.MakeBlocksReq): scala.concurrent.Future[xyz.stratalab.node.services.MakeBlocksRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_MAKE_BLOCKS, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): RegtestRpcStub = new RegtestRpcStub(channel, options)
}
object RegtestRpcStub extends _root_.io.grpc.stub.AbstractStub.StubFactory[RegtestRpcStub] {
override def newStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): RegtestRpcStub = new RegtestRpcStub(channel, options)
implicit val stubFactory: _root_.io.grpc.stub.AbstractStub.StubFactory[RegtestRpcStub] = this
}
def bindService(serviceImpl: RegtestRpc, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = RegtestRpc.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): RegtestRpcBlockingStub = new RegtestRpcBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): RegtestRpcStub = new RegtestRpcStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = xyz.stratalab.node.services.RegtestProto.javaDescriptor.getServices().get(0)
}