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

lnrpc.State.scala Maven / Gradle / Ivy

The newest version!

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

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

import pekko.grpc.PekkoGrpcGenerated

/**
 * State service is a always running service that exposes the current state of
 * the wallet and RPC server.
 */
@PekkoGrpcGenerated
trait State {
  
  /**
   * SubscribeState subscribes to the state of the wallet. The current wallet
   * state will always be delivered immediately.
   */
  def subscribeState(in: lnrpc.SubscribeStateRequest): org.apache.pekko.stream.scaladsl.Source[lnrpc.SubscribeStateResponse, org.apache.pekko.NotUsed]
  
  /**
   * GetState returns the current wallet state without streaming further
   * changes.
   */
  def getState(in: lnrpc.GetStateRequest): scala.concurrent.Future[lnrpc.GetStateResponse]
  
}



@PekkoGrpcGenerated
object State extends pekko.grpc.ServiceDescription {
  val name = "lnrpc.State"

  val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
    lnrpc.StateserviceProto.javaDescriptor;

  object Serializers {
    import pekko.grpc.scaladsl.ScalapbProtobufSerializer
    
    val SubscribeStateRequestSerializer = new ScalapbProtobufSerializer(lnrpc.SubscribeStateRequest.messageCompanion)
    
    val GetStateRequestSerializer = new ScalapbProtobufSerializer(lnrpc.GetStateRequest.messageCompanion)
    
    val SubscribeStateResponseSerializer = new ScalapbProtobufSerializer(lnrpc.SubscribeStateResponse.messageCompanion)
    
    val GetStateResponseSerializer = new ScalapbProtobufSerializer(lnrpc.GetStateResponse.messageCompanion)
    
  }

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

    
    val subscribeStateDescriptor: MethodDescriptor[lnrpc.SubscribeStateRequest, lnrpc.SubscribeStateResponse] =
      MethodDescriptor.newBuilder()
        .setType(
  
  
   MethodDescriptor.MethodType.SERVER_STREAMING 
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("lnrpc.State", "SubscribeState"))
        .setRequestMarshaller(new Marshaller(SubscribeStateRequestSerializer))
        .setResponseMarshaller(new Marshaller(SubscribeStateResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
    val getStateDescriptor: MethodDescriptor[lnrpc.GetStateRequest, lnrpc.GetStateResponse] =
      MethodDescriptor.newBuilder()
        .setType(
   MethodDescriptor.MethodType.UNARY 
  
  
  
)
        .setFullMethodName(MethodDescriptor.generateFullMethodName("lnrpc.State", "GetState"))
        .setRequestMarshaller(new Marshaller(GetStateRequestSerializer))
        .setResponseMarshaller(new Marshaller(GetStateResponseSerializer))
        .setSampledToLocalTracing(true)
        .build()
    
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy