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

peersrpc.Peers.scala Maven / Gradle / Ivy

The newest version!

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

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

import pekko.grpc.PekkoGrpcGenerated

/**
 * Peers is a service that can be used to get information and interact
 * with the other nodes of the network.
 */
@PekkoGrpcGenerated
trait Peers {
  
  /**
   * lncli: peers updatenodeannouncement
   * UpdateNodeAnnouncement allows the caller to update the node parameters
   * and broadcasts a new version of the node announcement to its peers.
   */
  def updateNodeAnnouncement(in: peersrpc.NodeAnnouncementUpdateRequest): scala.concurrent.Future[peersrpc.NodeAnnouncementUpdateResponse]
  
}



@PekkoGrpcGenerated
object Peers extends pekko.grpc.ServiceDescription {
  val name = "peersrpc.Peers"

  val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
    peersrpc.PeersProto.javaDescriptor;

  object Serializers {
    import pekko.grpc.scaladsl.ScalapbProtobufSerializer
    
    val NodeAnnouncementUpdateRequestSerializer = new ScalapbProtobufSerializer(peersrpc.NodeAnnouncementUpdateRequest.messageCompanion)
    
    val NodeAnnouncementUpdateResponseSerializer = new ScalapbProtobufSerializer(peersrpc.NodeAnnouncementUpdateResponse.messageCompanion)
    
  }

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

    
    val updateNodeAnnouncementDescriptor: MethodDescriptor[peersrpc.NodeAnnouncementUpdateRequest, peersrpc.NodeAnnouncementUpdateResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("peersrpc.Peers", "UpdateNodeAnnouncement"))
        .setRequestMarshaller(new Marshaller(NodeAnnouncementUpdateRequestSerializer))
        .setResponseMarshaller(new Marshaller(NodeAnnouncementUpdateResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy