verrpc.Versioner.scala Maven / Gradle / Ivy
The newest version!
// Generated by Pekko gRPC. DO NOT EDIT.
package verrpc
import org.apache.pekko
import pekko.annotation.ApiMayChange
import pekko.grpc.PekkoGrpcGenerated
/**
* Versioner is a service that can be used to get information about the version
* and build information of the running daemon.
*/
@PekkoGrpcGenerated
trait Versioner {
/**
* lncli: `version`
* GetVersion returns the current version and build information of the running
* daemon.
*/
def getVersion(in: verrpc.VersionRequest): scala.concurrent.Future[verrpc.Version]
}
@PekkoGrpcGenerated
object Versioner extends pekko.grpc.ServiceDescription {
val name = "verrpc.Versioner"
val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
verrpc.VerrpcProto.javaDescriptor;
object Serializers {
import pekko.grpc.scaladsl.ScalapbProtobufSerializer
val VersionRequestSerializer = new ScalapbProtobufSerializer(verrpc.VersionRequest.messageCompanion)
val VersionSerializer = new ScalapbProtobufSerializer(verrpc.Version.messageCompanion)
}
@ApiMayChange
@PekkoGrpcGenerated
object MethodDescriptors {
import pekko.grpc.internal.Marshaller
import io.grpc.MethodDescriptor
import Serializers._
val getVersionDescriptor: MethodDescriptor[verrpc.VersionRequest, verrpc.Version] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("verrpc.Versioner", "GetVersion"))
.setRequestMarshaller(new Marshaller(VersionRequestSerializer))
.setResponseMarshaller(new Marshaller(VersionSerializer))
.setSampledToLocalTracing(true)
.build()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy