autopilotrpc.Autopilot.scala Maven / Gradle / Ivy
The newest version!
// Generated by Pekko gRPC. DO NOT EDIT.
package autopilotrpc
import org.apache.pekko
import pekko.annotation.ApiMayChange
import pekko.grpc.PekkoGrpcGenerated
/**
* Autopilot is a service that can be used to get information about the current
* state of the daemon's autopilot agent, and also supply it with information
* that can be used when deciding where to open channels.
*/
@PekkoGrpcGenerated
trait Autopilot {
/**
* Status returns whether the daemon's autopilot agent is active.
*/
def status(in: autopilotrpc.StatusRequest): scala.concurrent.Future[autopilotrpc.StatusResponse]
/**
* ModifyStatus is used to modify the status of the autopilot agent, like
* enabling or disabling it.
*/
def modifyStatus(in: autopilotrpc.ModifyStatusRequest): scala.concurrent.Future[autopilotrpc.ModifyStatusResponse]
/**
* QueryScores queries all available autopilot heuristics, in addition to any
* active combination of these heruristics, for the scores they would give to
* the given nodes.
*/
def queryScores(in: autopilotrpc.QueryScoresRequest): scala.concurrent.Future[autopilotrpc.QueryScoresResponse]
/**
* SetScores attempts to set the scores used by the running autopilot agent,
* if the external scoring heuristic is enabled.
*/
def setScores(in: autopilotrpc.SetScoresRequest): scala.concurrent.Future[autopilotrpc.SetScoresResponse]
}
@PekkoGrpcGenerated
object Autopilot extends pekko.grpc.ServiceDescription {
val name = "autopilotrpc.Autopilot"
val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
autopilotrpc.AutopilotProto.javaDescriptor;
object Serializers {
import pekko.grpc.scaladsl.ScalapbProtobufSerializer
val StatusRequestSerializer = new ScalapbProtobufSerializer(autopilotrpc.StatusRequest.messageCompanion)
val ModifyStatusRequestSerializer = new ScalapbProtobufSerializer(autopilotrpc.ModifyStatusRequest.messageCompanion)
val QueryScoresRequestSerializer = new ScalapbProtobufSerializer(autopilotrpc.QueryScoresRequest.messageCompanion)
val SetScoresRequestSerializer = new ScalapbProtobufSerializer(autopilotrpc.SetScoresRequest.messageCompanion)
val StatusResponseSerializer = new ScalapbProtobufSerializer(autopilotrpc.StatusResponse.messageCompanion)
val ModifyStatusResponseSerializer = new ScalapbProtobufSerializer(autopilotrpc.ModifyStatusResponse.messageCompanion)
val QueryScoresResponseSerializer = new ScalapbProtobufSerializer(autopilotrpc.QueryScoresResponse.messageCompanion)
val SetScoresResponseSerializer = new ScalapbProtobufSerializer(autopilotrpc.SetScoresResponse.messageCompanion)
}
@ApiMayChange
@PekkoGrpcGenerated
object MethodDescriptors {
import pekko.grpc.internal.Marshaller
import io.grpc.MethodDescriptor
import Serializers._
val statusDescriptor: MethodDescriptor[autopilotrpc.StatusRequest, autopilotrpc.StatusResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("autopilotrpc.Autopilot", "Status"))
.setRequestMarshaller(new Marshaller(StatusRequestSerializer))
.setResponseMarshaller(new Marshaller(StatusResponseSerializer))
.setSampledToLocalTracing(true)
.build()
val modifyStatusDescriptor: MethodDescriptor[autopilotrpc.ModifyStatusRequest, autopilotrpc.ModifyStatusResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("autopilotrpc.Autopilot", "ModifyStatus"))
.setRequestMarshaller(new Marshaller(ModifyStatusRequestSerializer))
.setResponseMarshaller(new Marshaller(ModifyStatusResponseSerializer))
.setSampledToLocalTracing(true)
.build()
val queryScoresDescriptor: MethodDescriptor[autopilotrpc.QueryScoresRequest, autopilotrpc.QueryScoresResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("autopilotrpc.Autopilot", "QueryScores"))
.setRequestMarshaller(new Marshaller(QueryScoresRequestSerializer))
.setResponseMarshaller(new Marshaller(QueryScoresResponseSerializer))
.setSampledToLocalTracing(true)
.build()
val setScoresDescriptor: MethodDescriptor[autopilotrpc.SetScoresRequest, autopilotrpc.SetScoresResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("autopilotrpc.Autopilot", "SetScores"))
.setRequestMarshaller(new Marshaller(SetScoresRequestSerializer))
.setResponseMarshaller(new Marshaller(SetScoresResponseSerializer))
.setSampledToLocalTracing(true)
.build()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy