devrpc.Dev.scala Maven / Gradle / Ivy
The newest version!
// Generated by Pekko gRPC. DO NOT EDIT.
package devrpc
import org.apache.pekko
import pekko.annotation.ApiMayChange
import pekko.grpc.PekkoGrpcGenerated
@PekkoGrpcGenerated
trait Dev {
/**
* ImportGraph imports a ChannelGraph into the graph database. Should only be
* used for development.
*/
def importGraph(in: lnrpc.ChannelGraph): scala.concurrent.Future[devrpc.ImportGraphResponse]
}
@PekkoGrpcGenerated
object Dev extends pekko.grpc.ServiceDescription {
val name = "devrpc.Dev"
val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
devrpc.DevProto.javaDescriptor;
object Serializers {
import pekko.grpc.scaladsl.ScalapbProtobufSerializer
val lnrpc_ChannelGraphSerializer = new ScalapbProtobufSerializer(lnrpc.ChannelGraph.messageCompanion)
val ImportGraphResponseSerializer = new ScalapbProtobufSerializer(devrpc.ImportGraphResponse.messageCompanion)
}
@ApiMayChange
@PekkoGrpcGenerated
object MethodDescriptors {
import pekko.grpc.internal.Marshaller
import io.grpc.MethodDescriptor
import Serializers._
val importGraphDescriptor: MethodDescriptor[lnrpc.ChannelGraph, devrpc.ImportGraphResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("devrpc.Dev", "ImportGraph"))
.setRequestMarshaller(new Marshaller(lnrpc_ChannelGraphSerializer))
.setResponseMarshaller(new Marshaller(ImportGraphResponseSerializer))
.setSampledToLocalTracing(true)
.build()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy