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

wtclientrpc.WatchtowerClient.scala Maven / Gradle / Ivy

The newest version!

// Generated by Pekko gRPC. DO NOT EDIT.
package wtclientrpc

import org.apache.pekko
import pekko.annotation.ApiMayChange

import pekko.grpc.PekkoGrpcGenerated

/**
 * WatchtowerClient is a service that grants access to the watchtower client
 * functionality of the daemon.
 */
@PekkoGrpcGenerated
trait WatchtowerClient {
  
  /**
   * AddTower adds a new watchtower reachable at the given address and
   * considers it for new sessions. If the watchtower already exists, then
   * any new addresses included will be considered when dialing it for
   * session negotiations and backups.
   */
  def addTower(in: wtclientrpc.AddTowerRequest): scala.concurrent.Future[wtclientrpc.AddTowerResponse]
  
  /**
   * RemoveTower removes a watchtower from being considered for future session
   * negotiations and from being used for any subsequent backups until it's added
   * again. If an address is provided, then this RPC only serves as a way of
   * removing the address from the watchtower instead.
   */
  def removeTower(in: wtclientrpc.RemoveTowerRequest): scala.concurrent.Future[wtclientrpc.RemoveTowerResponse]
  
  /**
   * ListTowers returns the list of watchtowers registered with the client.
   */
  def listTowers(in: wtclientrpc.ListTowersRequest): scala.concurrent.Future[wtclientrpc.ListTowersResponse]
  
  /**
   * GetTowerInfo retrieves information for a registered watchtower.
   */
  def getTowerInfo(in: wtclientrpc.GetTowerInfoRequest): scala.concurrent.Future[wtclientrpc.Tower]
  
  /**
   * Stats returns the in-memory statistics of the client since startup.
   */
  def stats(in: wtclientrpc.StatsRequest): scala.concurrent.Future[wtclientrpc.StatsResponse]
  
  /**
   * Policy returns the active watchtower client policy configuration.
   */
  def policy(in: wtclientrpc.PolicyRequest): scala.concurrent.Future[wtclientrpc.PolicyResponse]
  
}



@PekkoGrpcGenerated
object WatchtowerClient extends pekko.grpc.ServiceDescription {
  val name = "wtclientrpc.WatchtowerClient"

  val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
    wtclientrpc.WtclientProto.javaDescriptor;

  object Serializers {
    import pekko.grpc.scaladsl.ScalapbProtobufSerializer
    
    val AddTowerRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.AddTowerRequest.messageCompanion)
    
    val RemoveTowerRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.RemoveTowerRequest.messageCompanion)
    
    val ListTowersRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.ListTowersRequest.messageCompanion)
    
    val GetTowerInfoRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.GetTowerInfoRequest.messageCompanion)
    
    val StatsRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.StatsRequest.messageCompanion)
    
    val PolicyRequestSerializer = new ScalapbProtobufSerializer(wtclientrpc.PolicyRequest.messageCompanion)
    
    val AddTowerResponseSerializer = new ScalapbProtobufSerializer(wtclientrpc.AddTowerResponse.messageCompanion)
    
    val RemoveTowerResponseSerializer = new ScalapbProtobufSerializer(wtclientrpc.RemoveTowerResponse.messageCompanion)
    
    val ListTowersResponseSerializer = new ScalapbProtobufSerializer(wtclientrpc.ListTowersResponse.messageCompanion)
    
    val TowerSerializer = new ScalapbProtobufSerializer(wtclientrpc.Tower.messageCompanion)
    
    val StatsResponseSerializer = new ScalapbProtobufSerializer(wtclientrpc.StatsResponse.messageCompanion)
    
    val PolicyResponseSerializer = new ScalapbProtobufSerializer(wtclientrpc.PolicyResponse.messageCompanion)
    
  }

  @ApiMayChange
  @PekkoGrpcGenerated
  object MethodDescriptors {
    import pekko.grpc.internal.Marshaller
    import io.grpc.MethodDescriptor
    import Serializers._

    
    val addTowerDescriptor: MethodDescriptor[wtclientrpc.AddTowerRequest, wtclientrpc.AddTowerResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "AddTower"))
        .setRequestMarshaller(new Marshaller(AddTowerRequestSerializer))
        .setResponseMarshaller(new Marshaller(AddTowerResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val removeTowerDescriptor: MethodDescriptor[wtclientrpc.RemoveTowerRequest, wtclientrpc.RemoveTowerResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "RemoveTower"))
        .setRequestMarshaller(new Marshaller(RemoveTowerRequestSerializer))
        .setResponseMarshaller(new Marshaller(RemoveTowerResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val listTowersDescriptor: MethodDescriptor[wtclientrpc.ListTowersRequest, wtclientrpc.ListTowersResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "ListTowers"))
        .setRequestMarshaller(new Marshaller(ListTowersRequestSerializer))
        .setResponseMarshaller(new Marshaller(ListTowersResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val getTowerInfoDescriptor: MethodDescriptor[wtclientrpc.GetTowerInfoRequest, wtclientrpc.Tower] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "GetTowerInfo"))
        .setRequestMarshaller(new Marshaller(GetTowerInfoRequestSerializer))
        .setResponseMarshaller(new Marshaller(TowerSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val statsDescriptor: MethodDescriptor[wtclientrpc.StatsRequest, wtclientrpc.StatsResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "Stats"))
        .setRequestMarshaller(new Marshaller(StatsRequestSerializer))
        .setResponseMarshaller(new Marshaller(StatsResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val policyDescriptor: MethodDescriptor[wtclientrpc.PolicyRequest, wtclientrpc.PolicyResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("wtclientrpc.WatchtowerClient", "Policy"))
        .setRequestMarshaller(new Marshaller(PolicyRequestSerializer))
        .setResponseMarshaller(new Marshaller(PolicyResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy